auto_bundle_install 0.0.5 → 0.0.6

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.
data/README.md CHANGED
@@ -18,8 +18,18 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- Run your server:
22
- rails s
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
@@ -1 +1,10 @@
1
1
  require "bundler/gem_tasks"
2
+
3
+ require 'rake/testtask'
4
+
5
+ Rake::TestTask.new do |t|
6
+ t.libs << 'test'
7
+ end
8
+
9
+ desc "Run tests"
10
+ task :default => :test
@@ -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
- system('bundle install')
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
@@ -1,3 +1,3 @@
1
1
  module AutoBundleInstall
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_bundle_install
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: