require_reloader 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -1
- data/lib/require_reloader/railtie.rb +0 -5
- data/lib/require_reloader/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -39,7 +39,8 @@ You can also **reload a `.rb` file in `lib`** or any directory:
|
|
39
39
|
|
40
40
|
The `:path` option is *optional*. In **Rails 3.2**, `:path` value is added into `watchable_dirs`. Rails 3.1 and 3.0 ignore this value.
|
41
41
|
|
42
|
-
RequireReloader adds `lib`
|
42
|
+
RequireReloader adds `lib` into `watchable_dirs`. So, specify `:path`
|
43
|
+
only if it is not specified in `Gemfile` and the file is located in other directory.
|
43
44
|
|
44
45
|
|
45
46
|
## Installation
|
@@ -68,6 +69,7 @@ This gem is forked from Colin Young's [gem_reloader](https://github.com/colinyou
|
|
68
69
|
|
69
70
|
## Changelog
|
70
71
|
|
72
|
+
- v0.1.4: remove 'vendor/gems' from watchable_dirs & autoload_paths, as local gem path is already specified in Gemfile.
|
71
73
|
- v0.1.3: Skip reload local gem if it's itself; added integration tests.
|
72
74
|
- v0.1.2: Minor rephrase on gem's description and summary.
|
73
75
|
- v0.1.1: Use Bundler to fetch local gems info, instead of parsing Gemfile by hand.
|
@@ -1,12 +1,7 @@
|
|
1
1
|
class RequireReloaderRailtie < Rails::Railtie
|
2
2
|
|
3
|
-
initializer 'require_reloader.autoload', :before => :set_autoload_paths do |app|
|
4
|
-
app.config.autoload_paths += Dir["#{app.config.root}/vendor/gems/"]
|
5
|
-
end
|
6
|
-
|
7
3
|
initializer 'require_reloader.add_watchable_dirs', :before => :set_autoload_paths do |app|
|
8
4
|
if app.config.respond_to?(:watchable_dirs)
|
9
|
-
app.config.watchable_dirs['vendor/gems'] = [:rb]
|
10
5
|
app.config.watchable_dirs['lib'] = [:rb]
|
11
6
|
end
|
12
7
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: require_reloader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-01-
|
13
|
+
date: 2013-01-19 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: Auto-reload require files or local gems without restarting server during
|
16
16
|
Rails development.
|