auto_bundle_install 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +12 -2
- data/Rakefile +9 -0
- data/lib/auto_bundle_install.rb +5 -1
- data/lib/auto_bundle_install/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -18,8 +18,18 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
Rails:
|
22
|
+
|
23
|
+
```>rails s```
|
24
|
+
|
25
|
+
Sinatra:
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
#app.rb
|
29
|
+
require 'auto_bundle_install'
|
30
|
+
```
|
31
|
+
|
32
|
+
```>ruby app.rb```
|
23
33
|
|
24
34
|
## Contributing
|
25
35
|
|
data/Rakefile
CHANGED
data/lib/auto_bundle_install.rb
CHANGED
@@ -6,7 +6,11 @@ module AutoBundleInstall
|
|
6
6
|
script = Watchr::Script.new
|
7
7
|
script.watch( '^Gemfile$' ) do
|
8
8
|
puts "Run bundle install"
|
9
|
-
|
9
|
+
if Object.const_defined?('AutoBundleInstallTest')
|
10
|
+
puts `bundle install`
|
11
|
+
else
|
12
|
+
system('bundle install')
|
13
|
+
end
|
10
14
|
end
|
11
15
|
controller = Watchr::Controller.new(script, Watchr.handler.new)
|
12
16
|
controller.run
|