geminabox-rake 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/geminabox-rake.gemspec +1 -1
- data/lib/geminabox/rake.rb +2 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ac7caf829c53f3289610c07c3fc6a9340a25302
|
4
|
+
data.tar.gz: ef8500a17257cf51d05ac00c8343bd93ff6e0037
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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: '
|
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
|
data/geminabox-rake.gemspec
CHANGED
@@ -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 = '
|
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.}
|
data/lib/geminabox/rake.rb
CHANGED
@@ -25,16 +25,15 @@ module Geminabox
|
|
25
25
|
|
26
26
|
protected
|
27
27
|
def rubygem_push(path)
|
28
|
-
sh("bundle exec gem
|
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
|
-
|
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:
|
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:
|
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.
|
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:
|