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 +4 -0
- data/lib/tumbler/gem.rb +10 -4
- data/lib/tumbler/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
data/lib/tumbler/gem.rb
CHANGED
@@ -10,10 +10,14 @@ module Tumbler
|
|
10
10
|
@manager.base
|
11
11
|
end
|
12
12
|
|
13
|
-
def
|
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
|
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
|
-
|
34
|
-
|
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
|
data/lib/tumbler/version.rb
CHANGED
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:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 13
|
10
|
+
version: 0.0.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joshua Hull
|