ext_bundler 2.0.2 → 2.0.3
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 +4 -4
- data/README.md +0 -109
- data/lib/ext_bundler/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d28d4092493b76e2365c53a0de617d5568bfb464
|
4
|
+
data.tar.gz: ce167a1e788c54add7f540633237815202e0de57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a94820f9813e8c8c7edafd1e99ad50c8542f95ea49d71227457979a4fedbcc6dd0068d94da23a58ce5200186a5c997081dda49faaa835624484a9ed838a520a4
|
7
|
+
data.tar.gz: 2fb51277bd3eecee2e39cf1d3f973a4c86ec3c19dc200f9d568f491ba3365ff74601411c58968b668cefd40dc052e3b687e58bbd56e1b6e08d6ae874e22f5b38
|
data/README.md
CHANGED
@@ -1,112 +1,3 @@
|
|
1
1
|
# ExtBundler
|
2
2
|
|
3
|
-
### Installation
|
4
|
-
|
5
|
-
```bash
|
6
|
-
$ gem install ext_bundler
|
7
|
-
```
|
8
|
-
|
9
|
-
### Usage
|
10
|
-
|
11
|
-
In your project Gemfile:
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
# Gemfile
|
15
|
-
|
16
|
-
source 'https://rubygems.org'
|
17
|
-
|
18
|
-
load(Bundler.settings['ext_bundler'] ||= File.join(
|
19
|
-
(File.exist?('EXT_BUNDLER') ? File.readlines('EXT_BUNDLER').first : `gem path ext_bundler`).strip,
|
20
|
-
'lib', 'ext_bundler', 'bundler.rb'
|
21
|
-
)
|
22
|
-
)
|
23
|
-
|
24
|
-
# ...
|
25
|
-
```
|
26
|
-
|
27
|
-
Add `.bundle` and `Gemfile.lock` to your project `.gitignore` if not already added.
|
28
|
-
|
29
|
-
In some other gem's gemspec file:
|
30
|
-
|
31
|
-
```ruby
|
32
|
-
# gem_name.gemspec
|
33
|
-
|
34
|
-
# ...
|
35
|
-
Gem::Specification.new do |s|
|
36
|
-
# ...
|
37
|
-
|
38
|
-
s.add_dependency 'some_other_gem', github: 'account_name/repo_name'
|
39
|
-
|
40
|
-
s.add_dependency 'another_dev_gem', group: :development, require: false
|
41
|
-
|
42
|
-
# ...
|
43
|
-
end
|
44
|
-
```
|
45
|
-
|
46
|
-
Supported keys are:
|
47
|
-
|
48
|
-
- :group, :groups
|
49
|
-
- :github, :git, :branch, :ref, :tag, :submodules
|
50
|
-
- :require
|
51
|
-
- :platform, :platforms
|
52
|
-
|
53
|
-
After running `bundle install` or `bundle update`, `ExtGemfile` is added or updated.
|
54
|
-
|
55
|
-
You also have to run `bundle install` again to replace your `Gemfile.lock` with a `ExtGemfile.lock`.
|
56
|
-
|
57
|
-
### Bundler configurations
|
58
|
-
|
59
|
-
After running `bundle install` or `bundle update`, your `.bundle/config` will be updated accordingly with:
|
60
|
-
|
61
|
-
- `BUNDLE_EXT_BUNDLER` set to the current library path
|
62
|
-
- `BUNDLE_GITHUB__HTTPS` set to true
|
63
|
-
- `BUNDLE_GEMFILE` set to `ExtGemfile`
|
64
|
-
|
65
|
-
### Upgrading
|
66
|
-
|
67
|
-
Clear `.bundle` directory within your project after updating `ext_bundler` gem.
|
68
|
-
|
69
|
-
### Rails server
|
70
|
-
|
71
|
-
If you don't want to run `bundle exec rails server`, you could specify the extended gemfile with:
|
72
|
-
|
73
|
-
`BUNDLE_GEMFILE=ExtGemfile rails server`
|
74
|
-
|
75
|
-
### Capistrano
|
76
|
-
|
77
|
-
The new Gemfile used must be `ExtGemfile` and could be configured by capistrano-bundler like this:
|
78
|
-
|
79
|
-
```ruby
|
80
|
-
# config/deploy.rb
|
81
|
-
|
82
|
-
set :bundle_gemfile, -> { 'ExtGemfile' }
|
83
|
-
```
|
84
|
-
|
85
|
-
Bundler also needs to know where to find `ext_bundler` and can be configured by [ExtCapistrano](https://github.com/patleb/ext_capistrano/blob/master/lib/capistrano/tasks/ext_capistrano/deploy.rb#L59);
|
86
|
-
|
87
|
-
### Passenger + Nginx
|
88
|
-
|
89
|
-
Passenger needs to know where is the `ExtGemfile` and can be configured by [ExtCapistrano](https://github.com/patleb/ext_capistrano/blob/master/config/nginx.app.conf.erb#L29).
|
90
|
-
|
91
|
-
### Development
|
92
|
-
|
93
|
-
```ruby
|
94
|
-
# Gemfile
|
95
|
-
|
96
|
-
if ENV['EXT_BUNDLER']
|
97
|
-
require 'pathname'
|
98
|
-
gem_path = Pathname.new('~/path_to_gem/ext_bundler').expand_path
|
99
|
-
gem 'ext_bundler', path: gem_path.to_s
|
100
|
-
load(Bundler.settings['ext_bundler'] ||= gem_path.join('lib/ext_bundler/bundler.rb').to_s)
|
101
|
-
else
|
102
|
-
load(Bundler.settings['ext_bundler'] ||= File.join(
|
103
|
-
(File.exist?('EXT_BUNDLER') ? File.readlines('EXT_BUNDLER').first : `gem path ext_bundler`).strip,
|
104
|
-
'lib', 'ext_bundler', 'bundler.rb'
|
105
|
-
)
|
106
|
-
)
|
107
|
-
end
|
108
|
-
```
|
109
|
-
|
110
|
-
### License
|
111
|
-
|
112
3
|
This project rocks and uses MIT-LICENSE.
|
data/lib/ext_bundler/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ext_bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrice Lebel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: gem-path
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0.6'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0.6'
|
41
27
|
description: ExtBundler
|
42
28
|
email:
|
43
29
|
- patleb@users.noreply.github.com
|