active_reload 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +10 -0
- data/README.md +157 -0
- data/Rakefile +28 -1
- data/active_reload.gemspec +1 -0
- data/lib/active_reload.rb +31 -3
- data/lib/active_reload/version.rb +1 -1
- data/test/dummy309/Gemfile +32 -0
- data/test/dummy309/README +256 -0
- data/test/dummy309/Rakefile +7 -0
- data/test/dummy309/app/controllers/application_controller.rb +3 -0
- data/test/dummy309/app/controllers/empty_controller.rb +5 -0
- data/test/dummy309/app/views/layouts/application.html.erb +14 -0
- data/test/dummy309/config.ru +4 -0
- data/test/dummy309/config/application.rb +42 -0
- data/test/dummy309/config/boot.rb +11 -0
- data/test/dummy309/config/database.yml +22 -0
- data/test/dummy309/config/environment.rb +5 -0
- data/test/dummy309/config/environments/development.rb +29 -0
- data/test/dummy309/config/environments/production.rb +49 -0
- data/test/dummy309/config/environments/test.rb +35 -0
- data/test/dummy309/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy309/config/initializers/inflections.rb +10 -0
- data/test/dummy309/config/initializers/mime_types.rb +5 -0
- data/test/dummy309/config/initializers/secret_token.rb +7 -0
- data/test/dummy309/config/initializers/session_store.rb +8 -0
- data/test/dummy309/config/locales/en.yml +5 -0
- data/test/dummy309/config/routes.rb +61 -0
- data/test/dummy309/db/seeds.rb +7 -0
- data/test/dummy309/doc/README_FOR_APP +2 -0
- data/test/dummy309/lib/tasks/.gitkeep +0 -0
- data/test/dummy309/public/404.html +26 -0
- data/test/dummy309/public/422.html +26 -0
- data/test/dummy309/public/500.html +26 -0
- data/test/dummy309/public/favicon.ico +0 -0
- data/test/dummy309/public/images/rails.png +0 -0
- data/test/dummy309/public/index.html +239 -0
- data/test/dummy309/public/javascripts/application.js +2 -0
- data/test/dummy309/public/javascripts/controls.js +965 -0
- data/test/dummy309/public/javascripts/dragdrop.js +974 -0
- data/test/dummy309/public/javascripts/effects.js +1123 -0
- data/test/dummy309/public/javascripts/prototype.js +6001 -0
- data/test/dummy309/public/javascripts/rails.js +191 -0
- data/test/dummy309/public/robots.txt +5 -0
- data/test/dummy309/public/stylesheets/.gitkeep +0 -0
- data/test/dummy309/script/rails +6 -0
- data/test/dummy309/test/performance/browsing_test.rb +9 -0
- data/test/dummy309/test/test_helper.rb +13 -0
- data/test/dummy309/vendor/plugins/.gitkeep +0 -0
- data/test/dummy310rc4/.gitignore +5 -0
- data/test/dummy310rc4/Gemfile +12 -0
- data/test/dummy310rc4/README +261 -0
- data/test/dummy310rc4/Rakefile +7 -0
- data/test/dummy310rc4/app/assets/images/rails.png +0 -0
- data/test/dummy310rc4/app/assets/javascripts/application.js +9 -0
- data/test/dummy310rc4/app/assets/stylesheets/application.css +7 -0
- data/test/dummy310rc4/app/controllers/application_controller.rb +3 -0
- data/test/dummy310rc4/app/helpers/application_helper.rb +2 -0
- data/test/dummy310rc4/app/mailers/.gitkeep +0 -0
- data/test/dummy310rc4/app/models/.gitkeep +0 -0
- data/test/dummy310rc4/app/views/layouts/application.html.erb +14 -0
- data/test/dummy310rc4/config.ru +4 -0
- data/test/dummy310rc4/config/application.rb +42 -0
- data/test/dummy310rc4/config/boot.rb +6 -0
- data/test/dummy310rc4/config/database.yml +25 -0
- data/test/dummy310rc4/config/environment.rb +5 -0
- data/test/dummy310rc4/config/environments/development.rb +45 -0
- data/test/dummy310rc4/config/environments/production.rb +54 -0
- data/test/dummy310rc4/config/environments/test.rb +39 -0
- data/test/dummy310rc4/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy310rc4/config/initializers/inflections.rb +10 -0
- data/test/dummy310rc4/config/initializers/mime_types.rb +5 -0
- data/test/dummy310rc4/config/initializers/secret_token.rb +7 -0
- data/test/dummy310rc4/config/initializers/session_store.rb +8 -0
- data/test/dummy310rc4/config/initializers/wrap_parameters.rb +12 -0
- data/test/dummy310rc4/config/locales/en.yml +5 -0
- data/test/dummy310rc4/config/routes.rb +61 -0
- data/test/dummy310rc4/db/seeds.rb +7 -0
- data/test/dummy310rc4/doc/README_FOR_APP +2 -0
- data/test/dummy310rc4/lib/tasks/.gitkeep +0 -0
- data/test/dummy310rc4/log/.gitkeep +0 -0
- data/test/dummy310rc4/public/404.html +26 -0
- data/test/dummy310rc4/public/422.html +26 -0
- data/test/dummy310rc4/public/500.html +26 -0
- data/test/dummy310rc4/public/favicon.ico +0 -0
- data/test/dummy310rc4/public/index.html +241 -0
- data/test/dummy310rc4/public/robots.txt +5 -0
- data/test/dummy310rc4/script/rails +6 -0
- data/test/dummy310rc4/test/fixtures/.gitkeep +0 -0
- data/test/dummy310rc4/test/functional/.gitkeep +0 -0
- data/test/dummy310rc4/test/integration/.gitkeep +0 -0
- data/test/dummy310rc4/test/performance/browsing_test.rb +12 -0
- data/test/dummy310rc4/test/test_helper.rb +13 -0
- data/test/dummy310rc4/test/unit/.gitkeep +0 -0
- data/test/dummy310rc4/vendor/assets/stylesheets/.gitkeep +0 -0
- data/test/dummy310rc4/vendor/plugins/.gitkeep +0 -0
- data/test/support/defined_middleware.rb +16 -0
- data/test/unit/reload_test.rb +119 -0
- metadata +112 -10
- data/README.textile +0 -58
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_reload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
13
|
-
default_executable:
|
12
|
+
date: 2011-07-20 00:00:00.000000000Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rake
|
17
|
-
requirement: &
|
16
|
+
requirement: &72186500 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ! '>='
|
@@ -22,7 +21,18 @@ dependencies:
|
|
22
21
|
version: '0'
|
23
22
|
type: :development
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
24
|
+
version_requirements: *72186500
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: bbq
|
27
|
+
requirement: &72186290 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *72186290
|
26
36
|
description: Reload Rails code in development mode only when change is deteced
|
27
37
|
email:
|
28
38
|
- robert.pankowecki@gmail.com
|
@@ -32,12 +42,104 @@ extra_rdoc_files: []
|
|
32
42
|
files:
|
33
43
|
- .gitignore
|
34
44
|
- Gemfile
|
35
|
-
- README.
|
45
|
+
- README.md
|
36
46
|
- Rakefile
|
37
47
|
- active_reload.gemspec
|
38
48
|
- lib/active_reload.rb
|
39
49
|
- lib/active_reload/version.rb
|
40
|
-
|
50
|
+
- test/dummy309/Gemfile
|
51
|
+
- test/dummy309/Gemfile.lock
|
52
|
+
- test/dummy309/README
|
53
|
+
- test/dummy309/Rakefile
|
54
|
+
- test/dummy309/app/controllers/application_controller.rb
|
55
|
+
- test/dummy309/app/controllers/empty_controller.rb
|
56
|
+
- test/dummy309/app/views/layouts/application.html.erb
|
57
|
+
- test/dummy309/config.ru
|
58
|
+
- test/dummy309/config/application.rb
|
59
|
+
- test/dummy309/config/boot.rb
|
60
|
+
- test/dummy309/config/database.yml
|
61
|
+
- test/dummy309/config/environment.rb
|
62
|
+
- test/dummy309/config/environments/development.rb
|
63
|
+
- test/dummy309/config/environments/production.rb
|
64
|
+
- test/dummy309/config/environments/test.rb
|
65
|
+
- test/dummy309/config/initializers/backtrace_silencers.rb
|
66
|
+
- test/dummy309/config/initializers/inflections.rb
|
67
|
+
- test/dummy309/config/initializers/mime_types.rb
|
68
|
+
- test/dummy309/config/initializers/secret_token.rb
|
69
|
+
- test/dummy309/config/initializers/session_store.rb
|
70
|
+
- test/dummy309/config/locales/en.yml
|
71
|
+
- test/dummy309/config/routes.rb
|
72
|
+
- test/dummy309/db/seeds.rb
|
73
|
+
- test/dummy309/doc/README_FOR_APP
|
74
|
+
- test/dummy309/lib/tasks/.gitkeep
|
75
|
+
- test/dummy309/public/404.html
|
76
|
+
- test/dummy309/public/422.html
|
77
|
+
- test/dummy309/public/500.html
|
78
|
+
- test/dummy309/public/favicon.ico
|
79
|
+
- test/dummy309/public/images/rails.png
|
80
|
+
- test/dummy309/public/index.html
|
81
|
+
- test/dummy309/public/javascripts/application.js
|
82
|
+
- test/dummy309/public/javascripts/controls.js
|
83
|
+
- test/dummy309/public/javascripts/dragdrop.js
|
84
|
+
- test/dummy309/public/javascripts/effects.js
|
85
|
+
- test/dummy309/public/javascripts/prototype.js
|
86
|
+
- test/dummy309/public/javascripts/rails.js
|
87
|
+
- test/dummy309/public/robots.txt
|
88
|
+
- test/dummy309/public/stylesheets/.gitkeep
|
89
|
+
- test/dummy309/script/rails
|
90
|
+
- test/dummy309/test/performance/browsing_test.rb
|
91
|
+
- test/dummy309/test/test_helper.rb
|
92
|
+
- test/dummy309/vendor/plugins/.gitkeep
|
93
|
+
- test/dummy310rc4/.gitignore
|
94
|
+
- test/dummy310rc4/Gemfile
|
95
|
+
- test/dummy310rc4/Gemfile.lock
|
96
|
+
- test/dummy310rc4/README
|
97
|
+
- test/dummy310rc4/Rakefile
|
98
|
+
- test/dummy310rc4/app/assets/images/rails.png
|
99
|
+
- test/dummy310rc4/app/assets/javascripts/application.js
|
100
|
+
- test/dummy310rc4/app/assets/stylesheets/application.css
|
101
|
+
- test/dummy310rc4/app/controllers/application_controller.rb
|
102
|
+
- test/dummy310rc4/app/helpers/application_helper.rb
|
103
|
+
- test/dummy310rc4/app/mailers/.gitkeep
|
104
|
+
- test/dummy310rc4/app/models/.gitkeep
|
105
|
+
- test/dummy310rc4/app/views/layouts/application.html.erb
|
106
|
+
- test/dummy310rc4/config.ru
|
107
|
+
- test/dummy310rc4/config/application.rb
|
108
|
+
- test/dummy310rc4/config/boot.rb
|
109
|
+
- test/dummy310rc4/config/database.yml
|
110
|
+
- test/dummy310rc4/config/environment.rb
|
111
|
+
- test/dummy310rc4/config/environments/development.rb
|
112
|
+
- test/dummy310rc4/config/environments/production.rb
|
113
|
+
- test/dummy310rc4/config/environments/test.rb
|
114
|
+
- test/dummy310rc4/config/initializers/backtrace_silencers.rb
|
115
|
+
- test/dummy310rc4/config/initializers/inflections.rb
|
116
|
+
- test/dummy310rc4/config/initializers/mime_types.rb
|
117
|
+
- test/dummy310rc4/config/initializers/secret_token.rb
|
118
|
+
- test/dummy310rc4/config/initializers/session_store.rb
|
119
|
+
- test/dummy310rc4/config/initializers/wrap_parameters.rb
|
120
|
+
- test/dummy310rc4/config/locales/en.yml
|
121
|
+
- test/dummy310rc4/config/routes.rb
|
122
|
+
- test/dummy310rc4/db/seeds.rb
|
123
|
+
- test/dummy310rc4/doc/README_FOR_APP
|
124
|
+
- test/dummy310rc4/lib/tasks/.gitkeep
|
125
|
+
- test/dummy310rc4/log/.gitkeep
|
126
|
+
- test/dummy310rc4/public/404.html
|
127
|
+
- test/dummy310rc4/public/422.html
|
128
|
+
- test/dummy310rc4/public/500.html
|
129
|
+
- test/dummy310rc4/public/favicon.ico
|
130
|
+
- test/dummy310rc4/public/index.html
|
131
|
+
- test/dummy310rc4/public/robots.txt
|
132
|
+
- test/dummy310rc4/script/rails
|
133
|
+
- test/dummy310rc4/test/fixtures/.gitkeep
|
134
|
+
- test/dummy310rc4/test/functional/.gitkeep
|
135
|
+
- test/dummy310rc4/test/integration/.gitkeep
|
136
|
+
- test/dummy310rc4/test/performance/browsing_test.rb
|
137
|
+
- test/dummy310rc4/test/test_helper.rb
|
138
|
+
- test/dummy310rc4/test/unit/.gitkeep
|
139
|
+
- test/dummy310rc4/vendor/assets/stylesheets/.gitkeep
|
140
|
+
- test/dummy310rc4/vendor/plugins/.gitkeep
|
141
|
+
- test/support/defined_middleware.rb
|
142
|
+
- test/unit/reload_test.rb
|
41
143
|
homepage: https://github.com/paneq/active_reload
|
42
144
|
licenses: []
|
43
145
|
post_install_message:
|
@@ -52,7 +154,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
52
154
|
version: '0'
|
53
155
|
segments:
|
54
156
|
- 0
|
55
|
-
hash: -
|
157
|
+
hash: -80285411
|
56
158
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
159
|
none: false
|
58
160
|
requirements:
|
@@ -61,10 +163,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
163
|
version: '0'
|
62
164
|
segments:
|
63
165
|
- 0
|
64
|
-
hash: -
|
166
|
+
hash: -80285411
|
65
167
|
requirements: []
|
66
168
|
rubyforge_project: active_reload
|
67
|
-
rubygems_version: 1.
|
169
|
+
rubygems_version: 1.8.5
|
68
170
|
signing_key:
|
69
171
|
specification_version: 3
|
70
172
|
summary: Reload Rails code in development mode only when change is deteced
|
data/README.textile
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
h1. Active Reload
|
2
|
-
|
3
|
-
Active Reload is a gem that changes a little when Rails code reloading is executed.
|
4
|
-
Normally Rails "forgets" your code after every request in development mode and loads again necessary
|
5
|
-
files during the request. If your application is big this can take lot of time especially on "dashboard" page
|
6
|
-
that uses lot of different classes.
|
7
|
-
|
8
|
-
However this constant reloading is not always necessary. This gem changes it so it occurs
|
9
|
-
before request and only when file was changed or added. It won't make reloading your app
|
10
|
-
faster but it will skip reloading when nothing changed and that saved second can really sum
|
11
|
-
up to a big value. It means that after change first request in development mode will reload the code
|
12
|
-
and take as much time as it takes without this gem but subsequent request will be faster until next
|
13
|
-
changes due to lack of code reloading.
|
14
|
-
|
15
|
-
h2. Installation
|
16
|
-
|
17
|
-
Simply add Active Reload to your Gemfile and bundle it up:
|
18
|
-
|
19
|
-
<pre>
|
20
|
-
gem 'active_reload'
|
21
|
-
</pre>
|
22
|
-
|
23
|
-
h2. Compatibility
|
24
|
-
|
25
|
-
It was hand tested only with Rails 3.0.9 but should work without any problem on any 3.0.* version.
|
26
|
-
Expect 3.1.* support soon :-) !
|
27
|
-
|
28
|
-
h2. Notifications
|
29
|
-
|
30
|
-
You can subscribe to two notifications provided by this gem.
|
31
|
-
|
32
|
-
@active_reload.set_clear_dependencies_hook_replaced@ event is triggered when the gem changes original rails hook for code reloading.
|
33
|
-
|
34
|
-
<pre>
|
35
|
-
|
36
|
-
ActiveSupport::Notifications.subscribe("active_reload.set_clear_dependencies_hook_replaced") do |*args|
|
37
|
-
event = ActiveSupport::Notifications::Event.new(*args)
|
38
|
-
msg = event.name
|
39
|
-
# Ubuntu: https://github.com/splattael/libnotify, Example: Libnotify.show(:body => msg, :summary => Rails.application.class.name, :timeout => 2.5, :append => true)
|
40
|
-
# Macos: http://segment7.net/projects/ruby/growl/
|
41
|
-
puts Rails.logger.warn(" --- #{msg} --- ")
|
42
|
-
end
|
43
|
-
|
44
|
-
</pre>
|
45
|
-
|
46
|
-
@active_support.dependencies.clear@ event is triggered when code reloading is triggered by this gem.
|
47
|
-
|
48
|
-
<pre>
|
49
|
-
|
50
|
-
ActiveSupport::Notifications.subscribe("active_support.dependencies.clear") do |*args|
|
51
|
-
msg = "Code reloaded!"
|
52
|
-
# Ubuntu: https://github.com/splattael/libnotify, Example: Libnotify.show(:body => msg, :summary => Rails.application.class.name, :timeout => 2.5, :append => true)
|
53
|
-
# Macos: http://segment7.net/projects/ruby/growl/
|
54
|
-
puts Rails.logger.info(" --- #{msg} --- ")
|
55
|
-
end
|
56
|
-
|
57
|
-
</pre>
|
58
|
-
|