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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 081559b4721a05b3972971d7fb3c57a383ec5760
4
- data.tar.gz: 826568045c34b5149a2d60a1823418199ffffc71
3
+ metadata.gz: 94bdbe4a64321ae01df9d4d89c6f19ec854ecdf2
4
+ data.tar.gz: 2f1b069ad089053982847fc156b7935eb079e1db
5
5
  SHA512:
6
- metadata.gz: 81ade12ace40df72db63dcf00a036ca776d71b478e8478fd0a96645ffeca379f1fc03c3b5b4e86775958c1ca4df20967e9b3d0ea96cff1ff03128139d04920e4
7
- data.tar.gz: d2578ad4310b059daefec4f83109e23eab23cfa31bf3ae8a985afda4da80ff635b6fc435ba3c2a68eaba8d0049ee57fb1093e0fab0bd8089020be67f20364acd
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
+
@@ -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{Provides rake geminabox_release to release gems to internal rubygems}
12
- spec.description = %q{Provides rake geminabox_release to release gems to internal rubygems, and disable rake release}
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
- :rubygems => ENV['GEMINABOX'] || 'https://your.rubygems.org',
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 #{GEMINABOX}"
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 #{GEMINABOX}")
51
- Bundler.ui.confirm "Pushed #{name} #{version} to #{GEMINABOX}."
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
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
- source '<%=config[:rubygems]%>' # latter gets query earlier
2
+ source '<%=config[:geminabox]%>' # latter gets query earlier
3
3
 
4
4
  # Specify your gem's dependencies in <%=config[:name]%>.gemspec
5
5
  gemspec
@@ -1,5 +1,5 @@
1
1
  module Bundler
2
2
  module Geminabox
3
- VERSION = "0.0.1"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  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.1
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: Provides rake geminabox_release to release gems to internal rubygems,
84
- and disable rake release
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: Provides rake geminabox_release to release gems to internal rubygems
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