bundler-geminabox 0.1.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/CHANGELOG.md +3 -0
- data/lib/bundler/geminabox.rb +0 -1
- data/lib/bundler/geminabox/cli/gem.rb +4 -2
- data/lib/bundler/geminabox/config.rb +21 -0
- data/lib/bundler/geminabox/gem_helper.rb +5 -8
- data/lib/bundler/geminabox/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ccb5229fb80e6e92fb241cf1f438b58b57ffa39
|
4
|
+
data.tar.gz: 5782fbee9c2ffa57d1370d566cfb798b93408cdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32c754568c3faf173946aec1910c3cc0d5eb2eaf2e1009652cb3159de8c4da9cb6f1bb0c0832a3bcb1cf3d51b85d5d4a26d4745e3928fb50d89db6b4116df55f
|
7
|
+
data.tar.gz: 0395614a5ea8fc5bebdc4d58a451e67c6a91253a6402a2f283d8efece06415ad1cd50fdfaeabc91fe1f3a56e33386f376619e48e856d8501b90c976d8dcbefa4
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/lib/bundler/geminabox.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'bundler/geminabox/config'
|
2
|
+
|
1
3
|
module Bundler
|
2
4
|
module Geminabox
|
3
5
|
class CLI::Gem
|
@@ -13,8 +15,8 @@ module Bundler
|
|
13
15
|
target = File.join(Dir.pwd, name)
|
14
16
|
underscored_name = name.tr('-', '_')
|
15
17
|
opts = {
|
16
|
-
:geminabox =>
|
17
|
-
:gem_tasks =>
|
18
|
+
:geminabox => Config.geminabox,
|
19
|
+
:gem_tasks => Config.gem_tasks,
|
18
20
|
:name => name,
|
19
21
|
:underscored_name => underscored_name,
|
20
22
|
:test => options[:test],
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Bundler
|
2
|
+
module Geminabox
|
3
|
+
class Config
|
4
|
+
class << self
|
5
|
+
attr_writer :geminabox, :gem_tasks, :release_task
|
6
|
+
|
7
|
+
def geminabox
|
8
|
+
@geminabox ||= ENV['GEMINABOX'] || 'https://your.rubygems.org'
|
9
|
+
end
|
10
|
+
|
11
|
+
def gem_tasks
|
12
|
+
@gem_tasks ||= ENV['GEM_TASKS'] || 'bundler/geminabox/gem_tasks'
|
13
|
+
end
|
14
|
+
|
15
|
+
def release_task
|
16
|
+
@release_task ||= ENV['RELEASE_TASK'] || 'geminabox_release'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'bundler/gem_helper'
|
2
2
|
require 'forwardable'
|
3
|
+
require 'bundler/geminabox/config'
|
3
4
|
|
4
5
|
module Bundler
|
5
6
|
module Geminabox
|
@@ -29,8 +30,8 @@ module Bundler
|
|
29
30
|
abort 'gem release to rubygems.org is prohibited.'
|
30
31
|
end
|
31
32
|
|
32
|
-
desc "Create tag #{version_tag} and build and push #{name}-#{version}.gem to #{geminabox}"
|
33
|
-
task
|
33
|
+
desc "Create tag #{version_tag} and build and push #{name}-#{version}.gem to #{Config.geminabox}"
|
34
|
+
task Config.release_task => 'build' do
|
34
35
|
geminabox_release_gem(built_gem_path)
|
35
36
|
end
|
36
37
|
end
|
@@ -45,12 +46,8 @@ module Bundler
|
|
45
46
|
end
|
46
47
|
|
47
48
|
def geminabox_rubygem_push(path)
|
48
|
-
sh("gem push '#{path}' --host #{geminabox}")
|
49
|
-
Bundler.ui.confirm "Pushed #{name} #{version} to #{geminabox}."
|
50
|
-
end
|
51
|
-
|
52
|
-
def geminabox
|
53
|
-
ENV['GEMINABOX'] || 'https://your.rubygems.org'
|
49
|
+
sh("gem push '#{path}' --host #{Config.geminabox}")
|
50
|
+
Bundler.ui.confirm "Pushed #{name} #{version} to #{Config.geminabox}."
|
54
51
|
end
|
55
52
|
end
|
56
53
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler-geminabox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,6 +91,9 @@ extensions: []
|
|
91
91
|
extra_rdoc_files: []
|
92
92
|
files:
|
93
93
|
- ".gitignore"
|
94
|
+
- ".rspec"
|
95
|
+
- ".travis.yml"
|
96
|
+
- CHANGELOG.md
|
94
97
|
- Gemfile
|
95
98
|
- LICENSE.txt
|
96
99
|
- README.md
|
@@ -101,6 +104,7 @@ files:
|
|
101
104
|
- lib/bundler/geminabox.rb
|
102
105
|
- lib/bundler/geminabox/cli.rb
|
103
106
|
- lib/bundler/geminabox/cli/gem.rb
|
107
|
+
- lib/bundler/geminabox/config.rb
|
104
108
|
- lib/bundler/geminabox/gem_helper.rb
|
105
109
|
- lib/bundler/geminabox/gem_tasks.rb
|
106
110
|
- lib/bundler/geminabox/templates/newgem/Gemfile.tt
|