geminabox-rake 1.0.1 → 1.1.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/geminabox-rake.gemspec +1 -1
- data/lib/geminabox/rake.rb +12 -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: 8cc0f7b9bf046b7b07c8a22457adae5d123cb017
|
4
|
+
data.tar.gz: 8eafa8e7837dfe4fce8164b10628ac143699e75d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 170a8607df3823084ba8651e404af673ba792ded7204ffc6ffbe23227b4228f68ccef292632f3dd98e70a58a387a178792f8d2687f20733b1f27afb3632a33a7
|
7
|
+
data.tar.gz: 77f3e7611d7d68bedb8af422019c44a00492d601438181f6b27b573922d368e4930df2d29371033b6affb3ac73ce96d6ccd15dbc3d2283825183e8b7409d5c8d
|
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 = '1.0
|
7
|
+
spec.version = '1.1.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
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'uri'
|
1
2
|
require 'bundler/gem_helper'
|
2
3
|
|
3
4
|
module Geminabox
|
@@ -11,7 +12,7 @@ module Geminabox
|
|
11
12
|
end
|
12
13
|
|
13
14
|
def initialize(dir, name, opts = {})
|
14
|
-
@host = opts[:host]
|
15
|
+
@host = URI.parse opts[:host]
|
15
16
|
@namespace = opts[:namespace]
|
16
17
|
super File.absolute_path(dir), name
|
17
18
|
end
|
@@ -25,13 +26,22 @@ module Geminabox
|
|
25
26
|
protected
|
26
27
|
def rubygem_push(path)
|
27
28
|
sh("bundle exec gem inabox '#{path}' #{geminabox_host_param}")
|
28
|
-
Bundler.ui.confirm "Pushed #{name} #{version} to #{
|
29
|
+
Bundler.ui.confirm "Pushed #{name} #{version} to #{geminabox_host_string}."
|
29
30
|
end
|
30
31
|
|
31
32
|
def geminabox_host_param
|
32
33
|
@host ? "--host '#{@host}'" : nil
|
33
34
|
end
|
34
35
|
|
36
|
+
def geminabox_host_string
|
37
|
+
return 'default host' unless @host
|
38
|
+
@host.dup.tap do |uri|
|
39
|
+
uri.user = uri.password = nil
|
40
|
+
uri.user = '**' if uri.user
|
41
|
+
uri.password = '**' if uri.password
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
35
45
|
def geminabox_task_namespace
|
36
46
|
@namespace || 'geminabox'
|
37
47
|
end
|
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.0
|
4
|
+
version: 1.1.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-
|
11
|
+
date: 2013-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|