bundler-norelease 0.0.2 → 0.0.3

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: 2688f317d7a9a3a31a2029cfdca29bf096d3c530
4
- data.tar.gz: e3f701cb51c153c69e7fb6eccf84a82ac84ce1ad
3
+ metadata.gz: 9a955efb7a2c053ef735ecd50fdeb5e24041a4ef
4
+ data.tar.gz: 196a84b3c9f9b9547d79713a1a0639e593366cbf
5
5
  SHA512:
6
- metadata.gz: 362d768afd77b1c5b91daf5d21b9c27531a61ff0949e50afd7f7cf5c1c4574a0823445a395cab0c79d374d00184b2e6470614d03b4bb9e87d31b858cdfe57f5f
7
- data.tar.gz: 08ba43f4f58405f90635cc61cbe7ad96c78af70c7db9a156946e94d7a43b58873d03f3f8b66c056e7a90d011f9cad7fec5cdf04b692c8fbb41b23aeba0e973c9
6
+ metadata.gz: 9ba9ac3ed650aff66dfd43a8ad4c7da25d7f25d4953994e84a282de4bdf5d421a47b55d2a85f7e5cd84c7332c71347d9a440cea4b21c7634b2a7a862ac13b295
7
+ data.tar.gz: 15f178700ac5ed9568768f50a738e4a04e5e5c231d8f377e39eb165278a84957feccc0b065f2e0f3c4d57265562a546456ec64672a525366bf67ff60398e207b
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Bundler::Norelease
2
2
 
3
- TODO: Write a gem description
3
+ Disable `rake release` task for `bundle gem GEM`
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,7 +18,29 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ `bundler-norelease gem GEM`
22
+
23
+ or you use bundler installed by master
24
+
25
+ `bundle norelease gem GEM`
26
+
27
+ So, generate gem related files.
28
+
29
+ ```
30
+ % bundler-norelease gem hoge
31
+ create hoge/Gemfile
32
+ create hoge/.gitignore
33
+ create hoge/lib/hoge.rb
34
+ create hoge/lib/hoge/version.rb
35
+ create hoge/LICENSE.txt
36
+ create hoge/hoge.gemspec
37
+ create hoge/.consolerc
38
+ create hoge/Rakefile
39
+ create hoge/README.md
40
+ force hoge/Rakefile
41
+ ```
42
+
43
+ In Rakefile, added `Rake::Task[:release].clear`
22
44
 
23
45
  ## Contributing
24
46
 
@@ -27,3 +49,10 @@ TODO: Write usage instructions here
27
49
  3. Commit your changes (`git commit -am 'Add some feature'`)
28
50
  4. Push to the branch (`git push origin my-new-feature`)
29
51
  5. Create a new Pull Request
52
+
53
+ ## Reference
54
+
55
+ * http://spring-mt.hatenablog.com/entry/2014/09/24/233321
56
+
57
+ (For Japanese)
58
+
@@ -21,7 +21,9 @@ module Bundler
21
21
  method_option :ext, :type => :boolean, :default => false, :banner => "Generate the boilerplate for C extension code"
22
22
  method_option :test, :type => :string, :lazy_default => 'rspec', :aliases => '-t', :banner =>
23
23
  "Generate a test directory for your library: 'rspec' is the default, but 'minitest' is also supported."
24
- def gem(name)
24
+ def gem(gem_name)
25
+ name = gem_name.chomp("/") # remove trailing slash if present
26
+ target = File.join(Dir.pwd, name)
25
27
  underscored_name = name.tr('-', '_')
26
28
  namespaced_path = name.tr('-', '/')
27
29
  constant_name = name.split('_').map{|p| p[0..0].upcase + p[1..-1] }.join
@@ -44,7 +46,7 @@ module Bundler
44
46
  bundler.run
45
47
  Bundler::Norelease::CLI.source_root(File.join(File.expand_path('../', __dir__), 'templates'))
46
48
  opts[:force] = true
47
- template("newgem/Rakefile.tt", File.join(bundler.target, "Rakefile"), opts)
49
+ template("newgem/Rakefile.tt", File.join(target, "Rakefile"), opts)
48
50
  end
49
51
 
50
52
  private
@@ -1,5 +1,5 @@
1
1
  module Bundler
2
2
  module Norelease
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler-norelease
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - SpringMT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-24 00:00:00.000000000 Z
11
+ date: 2014-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler