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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae842a633a474135178dc05a13e3bc5345052f73
4
- data.tar.gz: 6921316fca53523a11f936f48df30df631aad75d
3
+ metadata.gz: 56f4b56685658e884369b50bdd0e9e5e1007bbe3
4
+ data.tar.gz: 97dacbe313e813e9ad772512d62c96501168b0e0
5
5
  SHA512:
6
- metadata.gz: 066d77e2633bc458e9e41cb05a51b8e91692f0e04b5aa7eedf0536463d9ee52dfe5f3c258294a3e1d2cf9543cd1f4b7a8f9d665e796367fe7516bb296caea9ab
7
- data.tar.gz: 7621678b82298e9794e1ef0aafbfbe8a76683db4be19bacf87678a8dc77b6f6f604c0259dd5a388f1362221b810bda50dd0e3c767ae9e98d4da1ff69b4e91f9a
6
+ metadata.gz: 24d9c2266f42327e4abbf38ee4ae92dd40b801af2202dd5a86dd17c11e2e62e08c435741f29a261ef4ee8e12cdba6e3bc588acead1d3e35059e086198ffcaf9a
7
+ data.tar.gz: 216301745d910815ac5fb7420440116fba68ba3b7ffff8b6a75f502f668929f7f6d5ade449a3d8f0594e8d9374b8d7a713f0994a807b736ff06cc2928fa15e75
@@ -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 next_revision!
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
- @marks = @marks.select { |m| m.class == Fixnum }
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
- @marks = @marks.select { |m| m.class == Fixnum }
78
+ scrub!
72
79
  @marks.count.times do |n|
73
80
  if n == 0
74
81
  @marks[n] += 1
@@ -51,6 +51,7 @@ module RakeTasks
51
51
 
52
52
  def get_version
53
53
  version = Gem.gem_version
54
+ version.scrub!
54
55
  return version.to_s if is_version?(version)
55
56
 
56
57
  version.next_revision!
data/rake_tasks.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rake_tasks'
3
- s.version = '4.2.0'
3
+ s.version = '4.2.1'
4
4
 
5
5
  s.summary = 'Basic rake tasks. You know you want some.'
6
6
  s.description =%Q{
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.0'
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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Herrick