Skip to content

Commit bbf8460

Browse files
committed
Bump version to 1.1.0 and cleanup versioning:
- Move version to a class file - Reference version in Rakefile - Regenerate Gemspec
1 parent f42ea73 commit bbf8460

File tree

5 files changed

+24
-25
lines changed

5 files changed

+24
-25
lines changed

Rakefile

+10-12
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
require 'rubygems'
22
require 'bundler'
3-
begin
4-
Bundler.setup(:default, :development)
5-
rescue Bundler::BundlerError => e
6-
$stderr.puts e.message
7-
$stderr.puts "Run `bundle install` to install missing gems"
8-
exit e.status_code
9-
end
10-
require 'rake'
3+
Bundler.setup
114

5+
require 'rake'
126
require 'jeweler'
7+
8+
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
9+
require 'mongoid/taggable_with_context/version'
10+
1311
Jeweler::Tasks.new do |gem|
1412
gem.name = "mongoid_taggable_with_context"
15-
gem.homepage = "http://github.com/aq1018/mongoid_taggable_with_context"
13+
gem.homepage = "http://github.com/lgs/mongoid_taggable_with_context"
1614
gem.license = "MIT"
1715
gem.summary = %Q{Mongoid taggable behaviour}
18-
gem.description = %Q{It provides some helpers to create taggable documents with context.}
19-
gem.email = "[email protected]"
20-
gem.authors = ["Aaron Qian"]
16+
gem.description = %Q{Add multiple tag fields on Mongoid documents with aggregation capability.}
17+
gem.authors = ["Aaron Qian", "Luca G. Soave", "John Shields", "Wilker Lucio", "Ches Martin"]
18+
gem.version = Mongoid::TaggableWithContext::VERSION
2119
end
2220
Jeweler::RubygemsDotOrgTasks.new
2321

VERSION

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# encoding: utf-8
2+
module Mongoid
3+
module TaggableWithContext
4+
VERSION = '1.1.0'
5+
end
6+
end

lib/mongoid_taggable_with_context.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
require File.join(File.dirname(__FILE__), 'mongoid/taggable_with_context/aggregation_strategy/map_reduce')
55
require File.join(File.dirname(__FILE__), 'mongoid/taggable_with_context/aggregation_strategy/real_time')
66
require File.join(File.dirname(__FILE__), 'mongoid/taggable_with_context/group_by/taggable_with_context')
7-
require File.join(File.dirname(__FILE__), 'mongoid/taggable_with_context/group_by/aggregation_strategy/real_time')
7+
require File.join(File.dirname(__FILE__), 'mongoid/taggable_with_context/group_by/aggregation_strategy/real_time')
8+
require File.join(File.dirname(__FILE__), 'mongoid/taggable_with_context/version')

mongoid_taggable_with_context.gemspec

+6-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
# Generated by jeweler
22
# DO NOT EDIT THIS FILE DIRECTLY
3-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
3+
# Instead, edit Jeweler::Tasks in rakefile, and run 'rake gemspec'
44
# -*- encoding: utf-8 -*-
55

66
Gem::Specification.new do |s|
77
s.name = "mongoid_taggable_with_context"
8-
s.version = "1.0.1"
8+
s.version = "1.1.0"
99

1010
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11-
s.authors = ["Aaron Qian"] #["Johnny Shields", "Steve Chung", "Luca G. Soave", "Aaron Qian"]
12-
s.date = "2013-02-18"
13-
s.description = "It provides some helpers to create taggable documents with context."
14-
s.email = ["[email protected]"]
11+
s.authors = ["Aaron Qian", "Luca G. Soave", "John Shields", "Wilker Lucio", "Ches Martin"]
12+
s.date = "2013-05-18"
13+
s.description = "Add multiple tag fields on Mongoid documents with aggregation capability."
1514
s.extra_rdoc_files = [
1615
"LICENSE.txt",
1716
"README.md"
@@ -23,13 +22,13 @@ Gem::Specification.new do |s|
2322
"LICENSE.txt",
2423
"README.md",
2524
"Rakefile",
26-
"VERSION",
2725
"init.rb",
2826
"lib/mongoid/taggable_with_context.rb",
2927
"lib/mongoid/taggable_with_context/aggregation_strategy/map_reduce.rb",
3028
"lib/mongoid/taggable_with_context/aggregation_strategy/real_time.rb",
3129
"lib/mongoid/taggable_with_context/group_by/aggregation_strategy/real_time.rb",
3230
"lib/mongoid/taggable_with_context/group_by/taggable_with_context.rb",
31+
"lib/mongoid/taggable_with_context/version.rb",
3332
"lib/mongoid_taggable_with_context.rb",
3433
"mongoid_taggable_with_context.gemspec",
3534
"spec/mongoid_taggable_with_context_spec.rb",
@@ -40,10 +39,6 @@ Gem::Specification.new do |s|
4039
s.require_paths = ["lib"]
4140
s.rubygems_version = "1.8.24"
4241
s.summary = "Mongoid taggable behaviour"
43-
s.test_files = [
44-
"spec/mongoid_taggable_with_context_spec.rb",
45-
"spec/spec_helper.rb"
46-
]
4742

4843
if s.respond_to? :specification_version then
4944
s.specification_version = 3

0 commit comments

Comments
 (0)