bozo-scripts 0.18.3 → 0.18.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/bozo/publishers/rubygems.rb +21 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 285bd2051ad69e984a46e8043b0d45c26a101fc0
|
4
|
+
data.tar.gz: 22b6f9098371e2aa17eccdd551f778b5a8a18739
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dc41e8d21bd6f1821ffdc87225359568d2c19bbea9003122ecbf6223b89510bbcd2f4dd729b2a69ea3c8fc961aedc9f110397915e65762a94355db6b303ba85
|
7
|
+
data.tar.gz: d5e356942be5e7e72a1db0f3a659c10d6f03863c249717fe4e77a822f5bce438637defd1c7639b46e9c756bc43be51835cc45198d236971cdb0478784f1b239b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.18.
|
1
|
+
0.18.4
|
@@ -3,6 +3,14 @@ module Bozo::Publishers
|
|
3
3
|
# Publisher that publishes gem files to rubygems.org
|
4
4
|
class Rubygems
|
5
5
|
|
6
|
+
def initialize
|
7
|
+
@host = nil
|
8
|
+
end
|
9
|
+
|
10
|
+
def host(value)
|
11
|
+
@host = value
|
12
|
+
end
|
13
|
+
|
6
14
|
def execute
|
7
15
|
Dir['dist/gem/*.gem'].each { |gem| push gem }
|
8
16
|
end
|
@@ -10,9 +18,20 @@ module Bozo::Publishers
|
|
10
18
|
private
|
11
19
|
|
12
20
|
def push(gem)
|
13
|
-
execute_command :rubygems,
|
21
|
+
execute_command :rubygems, command_arguments(gem)
|
22
|
+
end
|
23
|
+
|
24
|
+
def command_arguments(gem)
|
25
|
+
args = ['gem', 'push', gem]
|
26
|
+
|
27
|
+
unless @host.nil?
|
28
|
+
args << '--host'
|
29
|
+
args << @host
|
30
|
+
end
|
31
|
+
|
32
|
+
args
|
14
33
|
end
|
15
34
|
|
16
35
|
end
|
17
36
|
|
18
|
-
end
|
37
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bozo-scripts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garry Shutler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-08-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|