bundler-geminabox 0.1.2 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8202afbd74c6628dd02b0046474624a77fa5baf3
4
- data.tar.gz: b6ac0ec8040addd28a1af40480cf92dae266cad4
3
+ metadata.gz: 3ccb5229fb80e6e92fb241cf1f438b58b57ffa39
4
+ data.tar.gz: 5782fbee9c2ffa57d1370d566cfb798b93408cdc
5
5
  SHA512:
6
- metadata.gz: bc8c432df324bf0e297e8a96d7ba5a690ad9ad68de68a4bda09a371457d1446b3fdb1cda6df202910ed1e1a2e67030f4d71a9b84b2e0f4ab178599dd6ad96f96
7
- data.tar.gz: ddb1b2c5df53e2747506351b6c8e904e1ef00f1f4a80089d08cfabb7f835556659fce87ce58adb600c018712a62b9c7c32c2dd5ab31ce392a45a86d3a1ecd06f
6
+ metadata.gz: 32c754568c3faf173946aec1910c3cc0d5eb2eaf2e1009652cb3159de8c4da9cb6f1bb0c0832a3bcb1cf3d51b85d5d4a26d4745e3928fb50d89db6b4116df55f
7
+ data.tar.gz: 0395614a5ea8fc5bebdc4d58a451e67c6a91253a6402a2f283d8efece06415ad1cd50fdfaeabc91fe1f3a56e33386f376619e48e856d8501b90c976d8dcbefa4
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0
4
+ - 2.1
@@ -0,0 +1,3 @@
1
+ # 1.0.0
2
+
3
+ Initial Release
@@ -1,3 +1,2 @@
1
1
  require 'bundler/geminabox/version'
2
2
  require 'bundler/geminabox/cli'
3
-
@@ -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 => ENV['GEMINABOX'] || 'https://your.rubygems.org',
17
- :gem_tasks => ENV['CUSTOM_GEM_TASKS'] || 'bundler/geminabox/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 'geminabox_release' => 'build' do
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
@@ -1,5 +1,5 @@
1
1
  module Bundler
2
2
  module Geminabox
3
- VERSION = "0.1.2"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  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.1.2
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-15 00:00:00.000000000 Z
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