technicalpickles-jeweler 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -20,6 +20,7 @@ end
20
20
 
21
21
  require 'rake/testtask'
22
22
  Rake::TestTask.new(:test) do |test|
23
+ test.pattern = 'test/**/test_*.rb'
23
24
  test.libs << 'test'
24
25
  end
25
26
 
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 9
3
- :patch: 0
3
+ :patch: 1
4
4
  :major: 0
@@ -12,6 +12,7 @@ class Jeweler
12
12
 
13
13
  raise "Hey buddy, try committing them files first" if any_pending_changes?
14
14
 
15
+ gemspec_helper.update_version(version)
15
16
  gemspec_helper.write
16
17
 
17
18
  repo.add(gemspec_helper.path)
@@ -43,5 +43,9 @@ class Jeweler
43
43
  File.join(@base_dir, 'pkg', parse.file_name)
44
44
  end
45
45
 
46
+ def update_version(version)
47
+ @spec.version = version.to_s
48
+ end
49
+
46
50
  end
47
51
  end
@@ -93,6 +93,7 @@ class Jeweler
93
93
  @gemspec_helper = Object.new
94
94
  stub(@gemspec_helper).write
95
95
  stub(@gemspec_helper).path {'zomg.gemspec'}
96
+ stub(@gemspec_helper).update_version('1.2.3')
96
97
 
97
98
  status = Object.new
98
99
  stub(status).added { [] }
@@ -115,6 +116,10 @@ class Jeweler
115
116
  assert_received(@repo) {|repo| repo.checkout('master') }
116
117
  end
117
118
 
119
+ should "refresh gemspec version" do
120
+ assert_received(@gemspec_helper) {|gemspec_helper| gemspec_helper.update_version('1.2.3') }
121
+ end
122
+
118
123
  should "write gemspec" do
119
124
  assert_received(@gemspec_helper) {|gemspec_helper| gemspec_helper.write }
120
125
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: technicalpickles-jeweler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Nichols