gem_reloader 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -14,6 +14,10 @@ Or, if you want to watch **all** local gems:
14
14
 
15
15
  That's literally it. Tiny but useful.
16
16
 
17
+ **Important Note**:
18
+
19
+ > If your gems are in irregular directories (directories that aren't in your `autoload_paths`), you'll need to add those paths in your `application.rb`. GemReloader will automatically add `vendor/gems` to the autoload_paths for you.
20
+
17
21
  By the way, a gem will be picked up by `::watch_all!` if it has a :path attribute.
18
22
 
19
23
  ## Installation
@@ -37,3 +41,7 @@ Or install it yourself as:
37
41
  3. Commit your changes (`git commit -am 'Added some feature'`)
38
42
  4. Push to the branch (`git push origin my-new-feature`)
39
43
  5. Create new Pull Request
44
+
45
+ ## Changelog
46
+
47
+ - v0.0.2: Added "vendor/gems" to the config.autoload_paths so the user doesn't have to.
data/lib/gem_reloader.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "gem_reloader/version"
2
+ require "gem_reloader/railtie"
2
3
 
3
4
  module GemReloader
4
5
 
@@ -0,0 +1,5 @@
1
+ class GemReloaderRailtie < Rails::Railtie
2
+ initializer 'gem_reloader.autoload', :before => :set_autoload_paths do |app|
3
+ app.config.autoload_paths += Dir["#{app.config.root}/vendor/gems/"]
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module GemReloader
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_reloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -25,6 +25,7 @@ files:
25
25
  - Rakefile
26
26
  - gem_reloader.gemspec
27
27
  - lib/gem_reloader.rb
28
+ - lib/gem_reloader/railtie.rb
28
29
  - lib/gem_reloader/version.rb
29
30
  homepage: https://github.com/colinyoung/gem_reloader
30
31
  licenses: []