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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd8bcc5895e13b86a75404b13185a4f758c3e3cf
4
- data.tar.gz: 5c8d9d5cd4d00d626e2c6b7271839d43ce340dda
3
+ metadata.gz: 285bd2051ad69e984a46e8043b0d45c26a101fc0
4
+ data.tar.gz: 22b6f9098371e2aa17eccdd551f778b5a8a18739
5
5
  SHA512:
6
- metadata.gz: ce2b8b6e6f9fe7ce3a8e75648c463acdd04a99986c5549c8c3bd9a817c9b93434915f22edf48319b569aca3d04386a8217bb98462af8cbb58fe1413d22d98a78
7
- data.tar.gz: 6b0208e6c7203641a3d85ac116e77a75a6f044e8b6eb1eeffcbce45d6881cb65401523950a4aa8788661b645d66c7b62c0f27f70fdaf4b5411d5b5110e533dfe
6
+ metadata.gz: 0dc41e8d21bd6f1821ffdc87225359568d2c19bbea9003122ecbf6223b89510bbcd2f4dd729b2a69ea3c8fc961aedc9f110397915e65762a94355db6b303ba85
7
+ data.tar.gz: d5e356942be5e7e72a1db0f3a659c10d6f03863c249717fe4e77a822f5bce438637defd1c7639b46e9c756bc43be51835cc45198d236971cdb0478784f1b239b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.18.3
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, ['gem', 'push', gem]
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.3
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-07-19 00:00:00.000000000 Z
12
+ date: 2017-08-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri