versionator 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -12,24 +12,22 @@ Install with bundler
12
12
 
13
13
  $ bundle install
14
14
 
15
- Create initial VERSION file
16
-
17
- bundle exec rake versionator:install
18
-
19
15
  == Usage
20
16
 
17
+ There are 3 rake tasks for each version category. If the VERSION file does not exist in the app root directory, the rake task will create it automatically
18
+
21
19
  Bump a patch version, git tag and push to github
22
- v1.1.1 moves to v1.1.2
20
+ Example: v1.1.1 moves to v1.1.2
23
21
 
24
22
  bundle exec rake versionator:patch
25
23
 
26
24
  Bump a minor version, git tag and push to github
27
- v1.1.1 moves to v1.2.0
25
+ Example: v1.1.1 moves to v1.2.0
28
26
 
29
27
  bundle exec rake versionator:minor
30
28
 
31
29
  Bump a major version, git tag and push to github
32
- v1.1.1 moves to v2.0.0
30
+ Example: v1.1.1 moves to v2.0.0
33
31
 
34
32
  bundle exec rake versionator:major
35
33
 
@@ -43,6 +41,7 @@ v1.1.1 moves to v2.0.0
43
41
  * Commit and push until you are happy with your contribution
44
42
  * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
45
43
  * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
44
+ *** Tests are located in a separate repository, since their needs to be a project to tag against. Here is the test repo: git@github.com:johnmcaliley/test_app.git
46
45
 
47
46
  == Copyright
48
47
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -0,0 +1,22 @@
1
+ namespace :versionator do
2
+ desc "patch version"
3
+ task :patch => :environment do
4
+ versionator = Versionator::Version.new
5
+ output = versionator.release(:patch)
6
+ puts output
7
+ end
8
+
9
+ desc "minor version"
10
+ task :minor => :environment do
11
+ versionator = Versionator::Version.new
12
+ output = versionator.release(:minor)
13
+ puts output
14
+ end
15
+
16
+ desc "major version"
17
+ task :major => :environment do
18
+ versionator = Versionator::Version.new
19
+ output = versionator.release(:major)
20
+ puts output
21
+ end
22
+ end
data/versionator.gemspec CHANGED
@@ -5,10 +5,10 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{versionator}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{John McAliley}]
11
+ s.authors = ["John McAliley"]
12
12
  s.date = %q{2011-07-21}
13
13
  s.description = %q{set of rake tasks that allow you to update your release version, tag it and push to github}
14
14
  s.email = %q{john.mcaliley@gmail.com}
@@ -28,17 +28,18 @@ Gem::Specification.new do |s|
28
28
  "lib/versionator/file.rb",
29
29
  "lib/versionator/git.rb",
30
30
  "lib/versionator/railtie.rb",
31
- "lib/versionator/railties/tasks/versionator.rake",
31
+ "lib/versionator/railties/versionator.rake",
32
32
  "lib/versionator/version.rb",
33
33
  "versionator.gemspec"
34
34
  ]
35
35
  s.homepage = %q{http://github.com/charlotte-ruby/versionator}
36
- s.licenses = [%q{MIT}]
37
- s.require_paths = [%q{lib}]
38
- s.rubygems_version = %q{1.8.5}
36
+ s.licenses = ["MIT"]
37
+ s.require_paths = ["lib"]
38
+ s.rubygems_version = %q{1.3.7}
39
39
  s.summary = %q{versioning for your Rails 3 app}
40
40
 
41
41
  if s.respond_to? :specification_version then
42
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
42
43
  s.specification_version = 3
43
44
 
44
45
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
metadata CHANGED
@@ -1,8 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: versionator
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.3
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 4
9
+ version: 0.0.4
6
10
  platform: ruby
7
11
  authors:
8
12
  - John McAliley
@@ -10,7 +14,8 @@ autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
16
 
13
- date: 2011-07-21 00:00:00 Z
17
+ date: 2011-07-21 00:00:00 -04:00
18
+ default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: shoulda
@@ -19,6 +24,8 @@ dependencies:
19
24
  requirements:
20
25
  - - ">="
21
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
22
29
  version: "0"
23
30
  type: :development
24
31
  prerelease: false
@@ -30,6 +37,10 @@ dependencies:
30
37
  requirements:
31
38
  - - ~>
32
39
  - !ruby/object:Gem::Version
40
+ segments:
41
+ - 1
42
+ - 0
43
+ - 0
33
44
  version: 1.0.0
34
45
  type: :development
35
46
  prerelease: false
@@ -41,6 +52,10 @@ dependencies:
41
52
  requirements:
42
53
  - - ~>
43
54
  - !ruby/object:Gem::Version
55
+ segments:
56
+ - 1
57
+ - 5
58
+ - 2
44
59
  version: 1.5.2
45
60
  type: :development
46
61
  prerelease: false
@@ -52,6 +67,8 @@ dependencies:
52
67
  requirements:
53
68
  - - ">="
54
69
  - !ruby/object:Gem::Version
70
+ segments:
71
+ - 0
55
72
  version: "0"
56
73
  type: :development
57
74
  prerelease: false
@@ -63,6 +80,8 @@ dependencies:
63
80
  requirements:
64
81
  - - ">="
65
82
  - !ruby/object:Gem::Version
83
+ segments:
84
+ - 0
66
85
  version: "0"
67
86
  type: :runtime
68
87
  prerelease: false
@@ -88,9 +107,10 @@ files:
88
107
  - lib/versionator/file.rb
89
108
  - lib/versionator/git.rb
90
109
  - lib/versionator/railtie.rb
91
- - lib/versionator/railties/tasks/versionator.rake
110
+ - lib/versionator/railties/versionator.rake
92
111
  - lib/versionator/version.rb
93
112
  - versionator.gemspec
113
+ has_rdoc: true
94
114
  homepage: http://github.com/charlotte-ruby/versionator
95
115
  licenses:
96
116
  - MIT
@@ -104,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
124
  requirements:
105
125
  - - ">="
106
126
  - !ruby/object:Gem::Version
107
- hash: -3592405963121011157
127
+ hash: 257450501227032483
108
128
  segments:
109
129
  - 0
110
130
  version: "0"
@@ -113,11 +133,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
133
  requirements:
114
134
  - - ">="
115
135
  - !ruby/object:Gem::Version
136
+ segments:
137
+ - 0
116
138
  version: "0"
117
139
  requirements: []
118
140
 
119
141
  rubyforge_project:
120
- rubygems_version: 1.8.5
142
+ rubygems_version: 1.3.7
121
143
  signing_key:
122
144
  specification_version: 3
123
145
  summary: versioning for your Rails 3 app
@@ -1,21 +0,0 @@
1
- VERSION_FILE = "#{Rails.root}/VERSION"
2
-
3
- namespace :versionator do
4
- desc "patch version"
5
- task :patch => :environment do
6
- versionator = Versionatorator.new
7
- versionator.release(:patch)
8
- end
9
-
10
- desc "minor version"
11
- task :minor => :environment do
12
- versionator = Versionator.new
13
- versionator.release(:minor)
14
- end
15
-
16
- desc "major version"
17
- task :major => :environment do
18
- versionator = Versionator.new
19
- versionator.release(:major)
20
- end
21
- end