rake_tasks 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rake_tasks/gem.rb +10 -3
- data/lib/rake_tasks/release.rb +1 -0
- data/rake_tasks.gemspec +1 -1
- data/readme.markdown +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56f4b56685658e884369b50bdd0e9e5e1007bbe3
|
4
|
+
data.tar.gz: 97dacbe313e813e9ad772512d62c96501168b0e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24d9c2266f42327e4abbf38ee4ae92dd40b801af2202dd5a86dd17c11e2e62e08c435741f29a261ef4ee8e12cdba6e3bc588acead1d3e35059e086198ffcaf9a
|
7
|
+
data.tar.gz: 216301745d910815ac5fb7420440116fba68ba3b7ffff8b6a75f502f668929f7f6d5ade449a3d8f0594e8d9374b8d7a713f0994a807b736ff06cc2928fa15e75
|
data/lib/rake_tasks/gem.rb
CHANGED
@@ -46,15 +46,22 @@ module RakeTasks
|
|
46
46
|
mark
|
47
47
|
end
|
48
48
|
end
|
49
|
+
@scrubbed = false
|
49
50
|
end
|
50
51
|
|
51
|
-
def
|
52
|
+
def scrub!
|
53
|
+
return if @scrubbed
|
52
54
|
@marks = @marks.select { |m| m.class == Fixnum }
|
55
|
+
@scrubbed = true
|
56
|
+
end
|
57
|
+
|
58
|
+
def next_revision!
|
59
|
+
scrub!
|
53
60
|
@marks[-1] += 1
|
54
61
|
end
|
55
62
|
|
56
63
|
def next_minor_version!
|
57
|
-
|
64
|
+
scrub!
|
58
65
|
@marks.count.times do |n|
|
59
66
|
case n
|
60
67
|
when 0
|
@@ -68,7 +75,7 @@ module RakeTasks
|
|
68
75
|
end
|
69
76
|
|
70
77
|
def next_major_version!
|
71
|
-
|
78
|
+
scrub!
|
72
79
|
@marks.count.times do |n|
|
73
80
|
if n == 0
|
74
81
|
@marks[n] += 1
|
data/lib/rake_tasks/release.rb
CHANGED
data/rake_tasks.gemspec
CHANGED
data/readme.markdown
CHANGED
@@ -34,7 +34,7 @@ Install RakeTasks at the command prompt if you haven't yet:
|
|
34
34
|
|
35
35
|
Require the gem in your Gemfile:
|
36
36
|
|
37
|
-
gem 'rake\_tasks', '~> 4.2.
|
37
|
+
gem 'rake\_tasks', '~> 4.2.1'
|
38
38
|
|
39
39
|
Require the gem wherever you need to use it:
|
40
40
|
(This will load any \*.rake files in your project.)
|
@@ -296,6 +296,8 @@ It will have all pre-requisites, plus run the specs.
|
|
296
296
|
Updates
|
297
297
|
-------
|
298
298
|
|
299
|
+
4.2.1 Scrub the version before presenting the first one in release task.
|
300
|
+
|
299
301
|
4.2.0 Added travis_ci:lint task.
|
300
302
|
|
301
303
|
Added checksums rake task.
|