bundle_dev 0.0.1
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 +7 -0
- data/.gitignore +17 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +22 -0
- data/README.md +20 -0
- data/Rakefile +1 -0
- data/bin/bundle_dev +6 -0
- data/bundle_dev.gemspec +24 -0
- data/lib/bundle_dev.rb +4 -0
- data/lib/bundle_dev/cli.rb +16 -0
- data/lib/bundle_dev/definition.rb +17 -0
- data/lib/bundle_dev/dsl.rb +12 -0
- data/lib/bundle_dev/version.rb +3 -0
- metadata +99 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 44ec65ae60b32218ec9eac94e176d4332c36215b
|
|
4
|
+
data.tar.gz: c7d124244fdcbc32c2a83429e1a3712417441720
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 879ce623c00829cb6fbf41e5d1435e31a9590ec1d0d527497673010d7a1d0d454833e920073cb2aa923331e0e4b2da2c1b91d7876ca7f7c98d3bb98cf21e09fa
|
|
7
|
+
data.tar.gz: 759d34974157e3173c30fe75f1725db9e2ded15cd2dd3ca2d6ee1de4b6aab35a607d3ba7540654a6e5e4ff1917db08368bbc8808536639406dcc62c2fa18cfd4
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2013 Lien Chiang
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# BundleDev
|
|
2
|
+
|
|
3
|
+
Install the development dependencies for your gem. (not runtime dependencies !)
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
$ gem install bundle_dev
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
$ cd /path/to/your/gem
|
|
12
|
+
$ bundle_dev install
|
|
13
|
+
|
|
14
|
+
## Contributing
|
|
15
|
+
|
|
16
|
+
1. Fork it
|
|
17
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
18
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
19
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
|
20
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require 'bundler/gem_tasks'
|
data/bin/bundle_dev
ADDED
data/bundle_dev.gemspec
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
lib = File.expand_path '../lib', __FILE__
|
|
2
|
+
$LOAD_PATH.unshift lib if not $LOAD_PATH.include? lib
|
|
3
|
+
require 'bundle_dev/version'
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = 'bundle_dev'
|
|
7
|
+
spec.version = BundleDev::VERSION
|
|
8
|
+
spec.authors = ['Lien Chiang']
|
|
9
|
+
spec.email = ['xsoameix@gmail.com']
|
|
10
|
+
spec.description = 'Install the development dependencies for your gem'
|
|
11
|
+
spec.summary = 'BundleDev'
|
|
12
|
+
spec.homepage = 'https://github.com/xsoameix/bundle-dev'
|
|
13
|
+
spec.license = 'MIT'
|
|
14
|
+
|
|
15
|
+
spec.files = `git ls-files`.split $/
|
|
16
|
+
spec.executables = spec.files.grep(/^bin\//) { |f| File.basename f }
|
|
17
|
+
spec.test_files = spec.files.grep /^(test|spec|features)\//
|
|
18
|
+
spec.require_paths = ['lib']
|
|
19
|
+
|
|
20
|
+
spec.add_dependency 'bundler', '~> 1.3'
|
|
21
|
+
spec.add_dependency 'thor'
|
|
22
|
+
|
|
23
|
+
spec.add_development_dependency 'rake'
|
|
24
|
+
end
|
data/lib/bundle_dev.rb
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module BundleDev
|
|
2
|
+
class CLI < Thor
|
|
3
|
+
|
|
4
|
+
default_task :install
|
|
5
|
+
desc 'install', 'install development dependencies for your gem'
|
|
6
|
+
def install
|
|
7
|
+
if Bundler.default_lockfile.exist?
|
|
8
|
+
puts 'Please remove the `Gemfile.lock` to install.'
|
|
9
|
+
else
|
|
10
|
+
Bundler::Installer.install Bundler.root, Definition.build
|
|
11
|
+
puts 'Your bundle is complete!'
|
|
12
|
+
puts 'Use `bundle show [gemname]` to see where a bundled gem is installed.'
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module BundleDev
|
|
2
|
+
class Definition
|
|
3
|
+
|
|
4
|
+
def self.build
|
|
5
|
+
gemfile = Bundler::SharedHelpers.default_gemfile
|
|
6
|
+
gemfile = Pathname.new(gemfile).expand_path
|
|
7
|
+
if not gemfile.file?
|
|
8
|
+
raise GemfileNotFound, "#{gemfile} not found"
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
lockfile = Bundler::SharedHelpers.default_lockfile
|
|
12
|
+
unlock = {}
|
|
13
|
+
|
|
14
|
+
Dsl.evaluate gemfile, lockfile, unlock
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: bundle_dev
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Lien Chiang
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2013-10-20 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ~>
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.3'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ~>
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.3'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: thor
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - '>='
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - '>='
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rake
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - '>='
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - '>='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
description: Install the development dependencies for your gem
|
|
56
|
+
email:
|
|
57
|
+
- xsoameix@gmail.com
|
|
58
|
+
executables:
|
|
59
|
+
- bundle_dev
|
|
60
|
+
extensions: []
|
|
61
|
+
extra_rdoc_files: []
|
|
62
|
+
files:
|
|
63
|
+
- .gitignore
|
|
64
|
+
- Gemfile
|
|
65
|
+
- LICENSE.txt
|
|
66
|
+
- README.md
|
|
67
|
+
- Rakefile
|
|
68
|
+
- bin/bundle_dev
|
|
69
|
+
- bundle_dev.gemspec
|
|
70
|
+
- lib/bundle_dev.rb
|
|
71
|
+
- lib/bundle_dev/cli.rb
|
|
72
|
+
- lib/bundle_dev/definition.rb
|
|
73
|
+
- lib/bundle_dev/dsl.rb
|
|
74
|
+
- lib/bundle_dev/version.rb
|
|
75
|
+
homepage: https://github.com/xsoameix/bundle-dev
|
|
76
|
+
licenses:
|
|
77
|
+
- MIT
|
|
78
|
+
metadata: {}
|
|
79
|
+
post_install_message:
|
|
80
|
+
rdoc_options: []
|
|
81
|
+
require_paths:
|
|
82
|
+
- lib
|
|
83
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
|
+
requirements:
|
|
85
|
+
- - '>='
|
|
86
|
+
- !ruby/object:Gem::Version
|
|
87
|
+
version: '0'
|
|
88
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
|
+
requirements:
|
|
90
|
+
- - '>='
|
|
91
|
+
- !ruby/object:Gem::Version
|
|
92
|
+
version: '0'
|
|
93
|
+
requirements: []
|
|
94
|
+
rubyforge_project:
|
|
95
|
+
rubygems_version: 2.1.9
|
|
96
|
+
signing_key:
|
|
97
|
+
specification_version: 4
|
|
98
|
+
summary: BundleDev
|
|
99
|
+
test_files: []
|