tumbler 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.13
2
+
3
+ * Tidier pathing and building. (Joshua Hull, 21a9017)
4
+
1
5
  == 0.0.12
2
6
 
3
7
  * Having a default require for the version file is probably a reasonable default. (Joshua Hull, 6afc0be)
@@ -10,10 +10,14 @@ module Tumbler
10
10
  @manager.base
11
11
  end
12
12
 
13
- def built_gem_path
13
+ def built_gem_base
14
14
  "#{@manager.name}-#{@manager.version.to_s}.gem"
15
15
  end
16
16
 
17
+ def built_gem_path
18
+ File.join('pkg', built_gem_base)
19
+ end
20
+
17
21
  def push
18
22
  build
19
23
  sh("gem push #{built_gem_path}")
@@ -21,7 +25,7 @@ module Tumbler
21
25
 
22
26
  def install
23
27
  build
24
- exec("sudo gem install pkg/#{built_gem_path}")
28
+ exec("sudo gem install #{built_gem_path}")
25
29
  end
26
30
 
27
31
  def spec_path
@@ -30,8 +34,10 @@ module Tumbler
30
34
 
31
35
  def build
32
36
  sh("bundle exec gem build #{spec_path}")
33
- sh("mkdir -p pkg")
34
- sh("mv -f #{built_gem_path} pkg/")
37
+ Dir.chdir(base) {
38
+ FileUtils.mkdir_p('pkg')
39
+ FileUtils.mv(built_gem_base, 'pkg')
40
+ }
35
41
  end
36
42
  end
37
43
  end
@@ -1,3 +1,3 @@
1
1
  module Tumbler
2
- VERSION = '0.0.12'
2
+ VERSION = '0.0.13'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tumbler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 12
10
- version: 0.0.12
9
+ - 13
10
+ version: 0.0.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joshua Hull