bundler-geminabox 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +23 -0
- data/README.md +6 -0
- data/bundler-geminabox.gemspec +2 -2
- data/lib/bundler/geminabox/cli/gem.rb +1 -1
- data/lib/bundler/geminabox/gem_helper.rb +7 -5
- data/lib/bundler/geminabox/templates/newgem/Gemfile.tt +1 -1
- data/lib/bundler/geminabox/version.rb +1 -1
- metadata +5 -5
- data/Gemfile.lock +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94bdbe4a64321ae01df9d4d89c6f19ec854ecdf2
|
4
|
+
data.tar.gz: 2f1b069ad089053982847fc156b7935eb079e1db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcd094ba781e0e92ae5f4a2e3154a02d5a31d2226e9c0a027e7a53849e75018ba05a8d1949b2e39daf05b229deb816a1b90565e894aa601f48064ea66f44c2a4
|
7
|
+
data.tar.gz: 95959d4db0173632d342bcc94b89b6fe3f37c6d272d7bef38203205c45600a49663f2792aee2c4c107974f75adcd32481ede830e402ee768ad06e9967f336f52
|
data/.gitignore
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
23
|
+
foo/
|
data/README.md
CHANGED
@@ -85,3 +85,9 @@ $ GEMINABOX=https://your.rubygems.org bundle-geminabox gem foo
|
|
85
85
|
```
|
86
86
|
|
87
87
|
Note that `Gemfile` and `Rakefile` are updated.
|
88
|
+
|
89
|
+
## FOOTNOTE
|
90
|
+
|
91
|
+
* This gem should not be limited with the use of geminabox but for any internal rubygems. I named as bundler-geminabox just because I am using it.
|
92
|
+
* It would be nice to create a wrapper gem specific to your environment to omit setting GEMINABOX environment variable. I am actually doing so.
|
93
|
+
|
data/bundler-geminabox.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Bundler::Geminabox::VERSION
|
9
9
|
spec.authors = ["Naotoshi Seo"]
|
10
10
|
spec.email = ["sonots@gmail.com"]
|
11
|
-
spec.summary = %q{
|
12
|
-
spec.description = %q{
|
11
|
+
spec.summary = %q{Release gems to internal rubygems such as geminabox}
|
12
|
+
spec.description = %q{Release gems to internal rubygems such as geminabox, and disable `rake release`}
|
13
13
|
spec.homepage = "https://github.com/sonots/bundler-geminabox"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -13,7 +13,7 @@ module Bundler
|
|
13
13
|
target = File.join(Dir.pwd, name)
|
14
14
|
underscored_name = name.tr('-', '_')
|
15
15
|
opts = {
|
16
|
-
:
|
16
|
+
:geminabox => ENV['GEMINABOX'] || 'https://your.rubygems.org',
|
17
17
|
:name => name,
|
18
18
|
:underscored_name => underscored_name,
|
19
19
|
:test => options[:test],
|
@@ -6,8 +6,6 @@ module Bundler
|
|
6
6
|
class GemHelper
|
7
7
|
extend Forwardable
|
8
8
|
include Rake::DSL if defined? Rake::DSL
|
9
|
-
|
10
|
-
GEMINABOX = ENV['GEMINABOX'] || 'https://your.rubygems.org'
|
11
9
|
|
12
10
|
class << self
|
13
11
|
def install_tasks(opts = {})
|
@@ -31,7 +29,7 @@ module Bundler
|
|
31
29
|
abort 'gem release to rubygems.org is prohibited.'
|
32
30
|
end
|
33
31
|
|
34
|
-
desc "Create tag #{version_tag} and build and push #{name}-#{version}.gem to #{
|
32
|
+
desc "Create tag #{version_tag} and build and push #{name}-#{version}.gem to #{geminabox}"
|
35
33
|
task 'geminabox_release' => 'build' do
|
36
34
|
geminabox_release_gem(built_gem_path)
|
37
35
|
end
|
@@ -47,8 +45,12 @@ module Bundler
|
|
47
45
|
end
|
48
46
|
|
49
47
|
def geminabox_rubygem_push(path)
|
50
|
-
sh("gem push '#{path}' --host #{
|
51
|
-
Bundler.ui.confirm "Pushed #{name} #{version} to #{
|
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'
|
52
54
|
end
|
53
55
|
end
|
54
56
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler-geminabox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
@@ -80,8 +80,8 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description:
|
84
|
-
|
83
|
+
description: Release gems to internal rubygems such as geminabox, and disable `rake
|
84
|
+
release`
|
85
85
|
email:
|
86
86
|
- sonots@gmail.com
|
87
87
|
executables:
|
@@ -90,8 +90,8 @@ executables:
|
|
90
90
|
extensions: []
|
91
91
|
extra_rdoc_files: []
|
92
92
|
files:
|
93
|
+
- ".gitignore"
|
93
94
|
- Gemfile
|
94
|
-
- Gemfile.lock
|
95
95
|
- LICENSE.txt
|
96
96
|
- README.md
|
97
97
|
- Rakefile
|
@@ -132,7 +132,7 @@ rubyforge_project:
|
|
132
132
|
rubygems_version: 2.2.2
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
|
-
summary:
|
135
|
+
summary: Release gems to internal rubygems such as geminabox
|
136
136
|
test_files:
|
137
137
|
- spec/cli_spec.rb
|
138
138
|
- spec/gem_tasks_spec.rb
|
data/Gemfile.lock
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
bundler-geminabox (0.0.1)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
coderay (1.1.0)
|
10
|
-
diff-lcs (1.2.5)
|
11
|
-
method_source (0.8.2)
|
12
|
-
pry (0.10.1)
|
13
|
-
coderay (~> 1.1.0)
|
14
|
-
method_source (~> 0.8.1)
|
15
|
-
slop (~> 3.4)
|
16
|
-
pry-nav (0.2.4)
|
17
|
-
pry (>= 0.9.10, < 0.11.0)
|
18
|
-
rake (10.3.2)
|
19
|
-
rspec (3.1.0)
|
20
|
-
rspec-core (~> 3.1.0)
|
21
|
-
rspec-expectations (~> 3.1.0)
|
22
|
-
rspec-mocks (~> 3.1.0)
|
23
|
-
rspec-core (3.1.7)
|
24
|
-
rspec-support (~> 3.1.0)
|
25
|
-
rspec-expectations (3.1.2)
|
26
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
27
|
-
rspec-support (~> 3.1.0)
|
28
|
-
rspec-mocks (3.1.3)
|
29
|
-
rspec-support (~> 3.1.0)
|
30
|
-
rspec-support (3.1.2)
|
31
|
-
slop (3.6.0)
|
32
|
-
|
33
|
-
PLATFORMS
|
34
|
-
ruby
|
35
|
-
|
36
|
-
DEPENDENCIES
|
37
|
-
bundler (~> 1.6)
|
38
|
-
bundler-geminabox!
|
39
|
-
pry
|
40
|
-
pry-nav
|
41
|
-
rake
|
42
|
-
rspec
|