geminabox-rake 1.1.0 → 2.0.0

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: 8cc0f7b9bf046b7b07c8a22457adae5d123cb017
4
- data.tar.gz: 8eafa8e7837dfe4fce8164b10628ac143699e75d
3
+ metadata.gz: 5ac7caf829c53f3289610c07c3fc6a9340a25302
4
+ data.tar.gz: ef8500a17257cf51d05ac00c8343bd93ff6e0037
5
5
  SHA512:
6
- metadata.gz: 170a8607df3823084ba8651e404af673ba792ded7204ffc6ffbe23227b4228f68ccef292632f3dd98e70a58a387a178792f8d2687f20733b1f27afb3632a33a7
7
- data.tar.gz: 77f3e7611d7d68bedb8af422019c44a00492d601438181f6b27b573922d368e4930df2d29371033b6affb3ac73ce96d6ccd15dbc3d2283825183e8b7409d5c8d
6
+ metadata.gz: 8659f69a6e48969210fcf7b7fd32d2002a7479d0d00ecb4afadffa41cabea40a44db46cab4a54030418eea848f627327dcd3151180fd7d49242a24f7962cb2b6
7
+ data.tar.gz: cc00a85f09b70c779c899b3e33e89edd5d3a29fe6a6650603d1467c915da3ad52f1b9e87d429bbce8b45d94f455c7bce8705f101efe7efde3cba1b86e6813906
data/README.md CHANGED
@@ -24,14 +24,14 @@ Instead of requiring bundler's rake tasks in your Rakefile use `geminabox-rake`:
24
24
  #require 'bundler/gem_tasks' # Do not require bundler's tasks
25
25
 
26
26
  require 'geminabox/rake'
27
- Geminabox::Rake.install
27
+ Geminabox::Rake.install host: 'https://gemhost/'
28
28
  ```
29
29
 
30
30
  You can also specify gem dir or geminabox server in your Rakefile:
31
31
 
32
32
  ```ruby
33
33
  require 'geminabox/rake'
34
- Geminabox::Rake.install dir: './client', host: 'http://user:password@gems.server.org/'
34
+ Geminabox::Rake.install dir: './client', host: 'https://user:password@gems.server.org/'
35
35
  ```
36
36
 
37
37
  By default all tasks will be scoped under the `geminabox` namespace to avoid accidental pushes to rubygems.org.
@@ -39,7 +39,7 @@ You can define your own namespace:
39
39
 
40
40
  ```ruby
41
41
  require 'geminabox/rake'
42
- Geminabox::Rake.install namespace: 'my'
42
+ Geminabox::Rake.install namespace: 'my', host: 'https://gemhost/'
43
43
  ```
44
44
 
45
45
  ## Contributing
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'geminabox-rake'
7
- spec.version = '1.1.0'
7
+ spec.version = '2.0.0'
8
8
  spec.authors = ['Jan Graichen']
9
9
  spec.email = %w(jg@altimos.de)
10
10
  spec.description = %q{Geminabox rake task for building and releasing gems.}
@@ -25,16 +25,15 @@ module Geminabox
25
25
 
26
26
  protected
27
27
  def rubygem_push(path)
28
- sh("bundle exec gem inabox '#{path}' #{geminabox_host_param}")
28
+ sh("bundle exec gem push '#{path}' #{geminabox_host_param}")
29
29
  Bundler.ui.confirm "Pushed #{name} #{version} to #{geminabox_host_string}."
30
30
  end
31
31
 
32
32
  def geminabox_host_param
33
- @host ? "--host '#{@host}'" : nil
33
+ "--host '#{@host}'"
34
34
  end
35
35
 
36
36
  def geminabox_host_string
37
- return 'default host' unless @host
38
37
  @host.dup.tap do |uri|
39
38
  uri.user = uri.password = nil
40
39
  uri.user = '**' if uri.user
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geminabox-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-09 00:00:00.000000000 Z
11
+ date: 2014-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,8 +100,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.0.3
103
+ rubygems_version: 2.1.11
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Geminabox rake task for building and releasing gems.
107
107
  test_files: []
108
+ has_rdoc: