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 +4 -4
- data/README.md +31 -2
- data/lib/bundler/norelease/cli.rb +4 -2
- data/lib/bundler/norelease/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a955efb7a2c053ef735ecd50fdeb5e24041a4ef
|
4
|
+
data.tar.gz: 196a84b3c9f9b9547d79713a1a0639e593366cbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ba9ac3ed650aff66dfd43a8ad4c7da25d7f25d4953994e84a282de4bdf5d421a47b55d2a85f7e5cd84c7332c71347d9a440cea4b21c7634b2a7a862ac13b295
|
7
|
+
data.tar.gz: 15f178700ac5ed9568768f50a738e4a04e5e5c231d8f377e39eb165278a84957feccc0b065f2e0f3c4d57265562a546456ec64672a525366bf67ff60398e207b
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Bundler::Norelease
|
2
2
|
|
3
|
-
|
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
|
-
|
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(
|
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(
|
49
|
+
template("newgem/Rakefile.tt", File.join(target, "Rakefile"), opts)
|
48
50
|
end
|
49
51
|
|
50
52
|
private
|
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.
|
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-
|
11
|
+
date: 2014-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|