rails-ajax 0.1.1.20120710 → 0.1.2.20130211
Sign up to get free protection for your applications and to get access to all the features.
- data/{AUTHORS → AUTHORS.rdoc} +1 -0
- data/ChangeLog +4 -0
- data/Gemfile +0 -12
- data/Gemfile.lock +73 -110
- data/README.rdoc +56 -0
- data/ReleaseInfo +1 -1
- data/assets/javascripts/jquery.rails-ajax.js.erb +44 -0
- metadata +5 -5
- data/README +0 -15
data/{AUTHORS → AUTHORS.rdoc}
RENAMED
data/ChangeLog
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -6,48 +6,47 @@ PATH
|
|
6
6
|
GEM
|
7
7
|
remote: http://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actionmailer (3.2.
|
10
|
-
actionpack (= 3.2.
|
9
|
+
actionmailer (3.2.11)
|
10
|
+
actionpack (= 3.2.11)
|
11
11
|
mail (~> 2.4.4)
|
12
|
-
actionpack (3.2.
|
13
|
-
activemodel (= 3.2.
|
14
|
-
activesupport (= 3.2.
|
12
|
+
actionpack (3.2.11)
|
13
|
+
activemodel (= 3.2.11)
|
14
|
+
activesupport (= 3.2.11)
|
15
15
|
builder (~> 3.0.0)
|
16
16
|
erubis (~> 2.7.0)
|
17
|
-
journey (~> 1.0.
|
17
|
+
journey (~> 1.0.4)
|
18
18
|
rack (~> 1.4.0)
|
19
19
|
rack-cache (~> 1.2)
|
20
20
|
rack-test (~> 0.6.1)
|
21
|
-
sprockets (~> 2.1
|
22
|
-
activemodel (3.2.
|
23
|
-
activesupport (= 3.2.
|
21
|
+
sprockets (~> 2.2.1)
|
22
|
+
activemodel (3.2.11)
|
23
|
+
activesupport (= 3.2.11)
|
24
24
|
builder (~> 3.0.0)
|
25
|
-
activerecord (3.2.
|
26
|
-
activemodel (= 3.2.
|
27
|
-
activesupport (= 3.2.
|
25
|
+
activerecord (3.2.11)
|
26
|
+
activemodel (= 3.2.11)
|
27
|
+
activesupport (= 3.2.11)
|
28
28
|
arel (~> 3.0.2)
|
29
29
|
tzinfo (~> 0.3.29)
|
30
|
-
activeresource (3.2.
|
31
|
-
activemodel (= 3.2.
|
32
|
-
activesupport (= 3.2.
|
33
|
-
activesupport (3.2.
|
30
|
+
activeresource (3.2.11)
|
31
|
+
activemodel (= 3.2.11)
|
32
|
+
activesupport (= 3.2.11)
|
33
|
+
activesupport (3.2.11)
|
34
34
|
i18n (~> 0.6)
|
35
35
|
multi_json (~> 1.0)
|
36
|
-
addressable (2.2.8)
|
37
36
|
arel (3.0.2)
|
38
|
-
builder (3.0.
|
39
|
-
capybara (
|
37
|
+
builder (3.0.4)
|
38
|
+
capybara (2.0.2)
|
40
39
|
mime-types (>= 1.16)
|
41
40
|
nokogiri (>= 1.3.3)
|
42
41
|
rack (>= 1.0.0)
|
43
42
|
rack-test (>= 0.5.4)
|
44
43
|
selenium-webdriver (~> 2.0)
|
45
|
-
xpath (~> 0.
|
46
|
-
capybara-webkit (0.
|
47
|
-
capybara (
|
44
|
+
xpath (~> 1.0.0)
|
45
|
+
capybara-webkit (0.14.1)
|
46
|
+
capybara (~> 2.0, >= 2.0.2)
|
48
47
|
json
|
49
|
-
childprocess (0.3.
|
50
|
-
ffi (~> 1.0.
|
48
|
+
childprocess (0.3.8)
|
49
|
+
ffi (~> 1.0, >= 1.0.11)
|
51
50
|
cucumber (1.2.1)
|
52
51
|
builder (>= 2.1.2)
|
53
52
|
diff-lcs (>= 1.1.3)
|
@@ -57,114 +56,84 @@ GEM
|
|
57
56
|
capybara (>= 1.1.2)
|
58
57
|
cucumber (>= 1.1.8)
|
59
58
|
nokogiri (>= 1.5.0)
|
60
|
-
database_cleaner (0.
|
61
|
-
diff-lcs (1.1
|
59
|
+
database_cleaner (0.9.1)
|
60
|
+
diff-lcs (1.2.1)
|
62
61
|
erubis (2.7.0)
|
63
|
-
ffi (1.
|
64
|
-
gherkin (2.11.
|
65
|
-
json (>= 1.
|
66
|
-
guard (1.2.3)
|
67
|
-
listen (>= 0.4.2)
|
68
|
-
thor (>= 0.14.6)
|
69
|
-
guard-spork (1.1.0)
|
70
|
-
guard (>= 1.1)
|
71
|
-
spork (>= 0.8.4)
|
62
|
+
ffi (1.3.1-x86-mingw32)
|
63
|
+
gherkin (2.11.6-x86-mingw32)
|
64
|
+
json (>= 1.7.6)
|
72
65
|
hike (1.2.1)
|
73
|
-
i18n (0.6.
|
66
|
+
i18n (0.6.1)
|
74
67
|
journey (1.0.4)
|
75
|
-
jquery-rails (2.
|
76
|
-
railties (>= 3.
|
77
|
-
thor (
|
78
|
-
json (1.7.
|
79
|
-
libwebsocket (0.1.3)
|
80
|
-
addressable
|
81
|
-
listen (0.4.7)
|
82
|
-
rb-fchange (~> 0.0.5)
|
83
|
-
rb-fsevent (~> 0.9.1)
|
84
|
-
rb-inotify (~> 0.8.8)
|
68
|
+
jquery-rails (2.2.1)
|
69
|
+
railties (>= 3.0, < 5.0)
|
70
|
+
thor (>= 0.14, < 2.0)
|
71
|
+
json (1.7.6)
|
85
72
|
mail (2.4.4)
|
86
73
|
i18n (>= 0.4.0)
|
87
74
|
mime-types (~> 1.16)
|
88
75
|
treetop (~> 1.4.8)
|
89
|
-
mime-types (1.
|
90
|
-
multi_json (1.
|
91
|
-
nokogiri (1.5.
|
76
|
+
mime-types (1.21)
|
77
|
+
multi_json (1.5.0)
|
78
|
+
nokogiri (1.5.6-x86-mingw32)
|
92
79
|
polyglot (0.3.3)
|
93
|
-
rack (1.4.
|
80
|
+
rack (1.4.5)
|
94
81
|
rack-cache (1.2)
|
95
82
|
rack (>= 0.4)
|
96
|
-
rack-ssl (1.3.
|
83
|
+
rack-ssl (1.3.3)
|
97
84
|
rack
|
98
|
-
rack-test (0.6.
|
85
|
+
rack-test (0.6.2)
|
99
86
|
rack (>= 1.0)
|
100
|
-
rails (3.2.
|
101
|
-
actionmailer (= 3.2.
|
102
|
-
actionpack (= 3.2.
|
103
|
-
activerecord (= 3.2.
|
104
|
-
activeresource (= 3.2.
|
105
|
-
activesupport (= 3.2.
|
87
|
+
rails (3.2.11)
|
88
|
+
actionmailer (= 3.2.11)
|
89
|
+
actionpack (= 3.2.11)
|
90
|
+
activerecord (= 3.2.11)
|
91
|
+
activeresource (= 3.2.11)
|
92
|
+
activesupport (= 3.2.11)
|
106
93
|
bundler (~> 1.0)
|
107
|
-
railties (= 3.2.
|
108
|
-
railties (3.2.
|
109
|
-
actionpack (= 3.2.
|
110
|
-
activesupport (= 3.2.
|
94
|
+
railties (= 3.2.11)
|
95
|
+
railties (3.2.11)
|
96
|
+
actionpack (= 3.2.11)
|
97
|
+
activesupport (= 3.2.11)
|
111
98
|
rack-ssl (~> 1.3.2)
|
112
99
|
rake (>= 0.8.7)
|
113
100
|
rdoc (~> 3.4)
|
114
101
|
thor (>= 0.14.6, < 2.0)
|
115
|
-
rake (0.
|
116
|
-
|
117
|
-
ffi
|
118
|
-
rb-fsevent (0.9.1)
|
119
|
-
rb-inotify (0.8.8)
|
120
|
-
ffi (>= 0.5.0)
|
121
|
-
rdoc (3.12)
|
102
|
+
rake (10.0.3)
|
103
|
+
rdoc (3.12.1)
|
122
104
|
json (~> 1.4)
|
123
|
-
rspec (2.
|
124
|
-
rspec-core (~> 2.
|
125
|
-
rspec-expectations (~> 2.
|
126
|
-
rspec-mocks (~> 2.
|
127
|
-
rspec-core (2.
|
128
|
-
rspec-expectations (2.
|
129
|
-
diff-lcs (
|
130
|
-
rspec-mocks (2.
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
rspec (~> 2.10.0)
|
136
|
-
ruby_gntp (0.3.4)
|
105
|
+
rspec (2.0.1)
|
106
|
+
rspec-core (~> 2.0.1)
|
107
|
+
rspec-expectations (~> 2.0.1)
|
108
|
+
rspec-mocks (~> 2.0.1)
|
109
|
+
rspec-core (2.0.1)
|
110
|
+
rspec-expectations (2.0.1)
|
111
|
+
diff-lcs (>= 1.1.2)
|
112
|
+
rspec-mocks (2.0.1)
|
113
|
+
rspec-core (~> 2.0.1)
|
114
|
+
rspec-expectations (~> 2.0.1)
|
115
|
+
rspec-rails (2.0.1)
|
116
|
+
rspec (~> 2.0.0)
|
137
117
|
rubyzip (0.9.9)
|
138
|
-
selenium-webdriver (2.
|
118
|
+
selenium-webdriver (2.29.0)
|
139
119
|
childprocess (>= 0.2.5)
|
140
|
-
libwebsocket (~> 0.1.3)
|
141
120
|
multi_json (~> 1.0)
|
142
121
|
rubyzip
|
143
|
-
|
144
|
-
|
145
|
-
rails (>= 3.0.0, < 3.3.0)
|
146
|
-
spork (>= 1.0rc0)
|
147
|
-
sprockets (2.1.3)
|
122
|
+
websocket (~> 1.0.4)
|
123
|
+
sprockets (2.2.2)
|
148
124
|
hike (~> 1.2)
|
125
|
+
multi_json (~> 1.0)
|
149
126
|
rack (~> 1.0)
|
150
127
|
tilt (~> 1.1, != 1.3.0)
|
151
|
-
sqlite3 (1.3.
|
152
|
-
thor (0.
|
128
|
+
sqlite3 (1.3.7-x86-mingw32)
|
129
|
+
thor (0.17.0)
|
153
130
|
tilt (1.3.3)
|
154
|
-
treetop (1.4.
|
131
|
+
treetop (1.4.12)
|
155
132
|
polyglot
|
156
133
|
polyglot (>= 0.3.1)
|
157
|
-
tzinfo (0.3.
|
158
|
-
|
159
|
-
|
160
|
-
windows-pr (>= 1.1.2)
|
161
|
-
win32console (1.3.2-x86-mingw32)
|
162
|
-
windows-api (0.4.1)
|
163
|
-
win32-api (>= 1.4.5)
|
164
|
-
windows-pr (1.2.1)
|
165
|
-
win32-api (>= 1.4.5)
|
166
|
-
windows-api (>= 0.3.0)
|
167
|
-
xpath (0.1.4)
|
134
|
+
tzinfo (0.3.35)
|
135
|
+
websocket (1.0.7)
|
136
|
+
xpath (1.0.0)
|
168
137
|
nokogiri (~> 1.3)
|
169
138
|
|
170
139
|
PLATFORMS
|
@@ -174,15 +143,9 @@ DEPENDENCIES
|
|
174
143
|
capybara-webkit
|
175
144
|
cucumber-rails
|
176
145
|
database_cleaner
|
177
|
-
guard
|
178
|
-
guard-spork
|
179
146
|
jquery-rails
|
180
147
|
rails (~> 3.2.1)
|
181
148
|
rails-ajax!
|
182
149
|
rspec
|
183
150
|
rspec-rails
|
184
|
-
ruby_gntp
|
185
|
-
spork-rails
|
186
151
|
sqlite3
|
187
|
-
win32-process
|
188
|
-
win32console
|
data/README.rdoc
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
= Rails-Ajax
|
2
|
+
|
3
|
+
<b>Integrate Ajax capabilities to Rails websites with history, bookmarking, partial refreshes, Rails flashes, user callbacks, scripts execution, redirections.</b>
|
4
|
+
|
5
|
+
Rails-Ajax is a <b>Rails plugin</b> that turns a static <b>Rails website into an optimized one using Ajax</b>, <b>without altering the user experience</b> and with minimal code changes.
|
6
|
+
|
7
|
+
== Where is the documentation ?
|
8
|
+
|
9
|
+
Complete documentation can be found at http://rails-ajax.sourceforge.net
|
10
|
+
|
11
|
+
== Basic install
|
12
|
+
|
13
|
+
rails-ajax is packaged as a Ruby gem. You can install it using RubyGems:
|
14
|
+
|
15
|
+
gem install rails-ajax
|
16
|
+
|
17
|
+
== Basic usage
|
18
|
+
|
19
|
+
=== Generate configuration files
|
20
|
+
|
21
|
+
Once installed, some configuration files need to be generated:
|
22
|
+
|
23
|
+
rake rails-ajax:install
|
24
|
+
|
25
|
+
=== Edit configuration files
|
26
|
+
|
27
|
+
Edit the generated config files to your taste.
|
28
|
+
Most importantly, identify the container that should be refreshed by Ajax calls, and set it in <em>config/initializers/rails-ajax-config.rb</em>:
|
29
|
+
|
30
|
+
main_container 'div#Content'
|
31
|
+
|
32
|
+
=== Include Javascript files
|
33
|
+
|
34
|
+
Include rails-ajax Javascript files in your asset pipeline (<em>app/assets/javascripts/application.js</em>):
|
35
|
+
|
36
|
+
<tt>// RailsAjax</tt>
|
37
|
+
|
38
|
+
<tt>//= require jquery.history</tt>
|
39
|
+
|
40
|
+
<tt>//= require jquery.rails-ajax</tt>
|
41
|
+
|
42
|
+
<tt>//= require RailsAjax-Config</tt>
|
43
|
+
|
44
|
+
=== It already works
|
45
|
+
|
46
|
+
Just restart your Rails server and your application should be working using Ajax calls to refresh just your main site container, with history, redirects, forms... working exactly the same way they did before.
|
47
|
+
|
48
|
+
For more advanced features, see the complete documentation.
|
49
|
+
|
50
|
+
== Who contributed to it ?
|
51
|
+
|
52
|
+
Check the AUTHORS[link:http://github.com/Muriel-Salvan/rails-ajax/blob/master/AUTHORS.rdoc] file.
|
53
|
+
|
54
|
+
== What is the license ?
|
55
|
+
|
56
|
+
You can find out in the LICENSE[link:http://github.com/Muriel-Salvan/rails-ajax/blob/master/LICENSE] file.
|
data/ReleaseInfo
CHANGED
@@ -5,6 +5,50 @@
|
|
5
5
|
|
6
6
|
<% if (RailsAjax.config.Enabled) %>
|
7
7
|
|
8
|
+
//=========================================
|
9
|
+
// Browser detection code (removed from jQuery >=1.9):
|
10
|
+
// Can be removed along with setFavicon as soon as Firefox corrects bug: https://bugzilla.mozilla.org/show_bug.cgi?id=519028
|
11
|
+
var matched, browser;
|
12
|
+
|
13
|
+
// Use of jQuery.browser is frowned upon.
|
14
|
+
// More details: http://api.jquery.com/jQuery.browser
|
15
|
+
// jQuery.uaMatch maintained for back-compat
|
16
|
+
jQuery.uaMatch = function( ua ) {
|
17
|
+
ua = ua.toLowerCase();
|
18
|
+
|
19
|
+
var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
|
20
|
+
/(webkit)[ \/]([\w.]+)/.exec( ua ) ||
|
21
|
+
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
|
22
|
+
/(msie) ([\w.]+)/.exec( ua ) ||
|
23
|
+
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
|
24
|
+
[];
|
25
|
+
|
26
|
+
return {
|
27
|
+
browser: match[ 1 ] || "",
|
28
|
+
version: match[ 2 ] || "0"
|
29
|
+
};
|
30
|
+
};
|
31
|
+
|
32
|
+
matched = jQuery.uaMatch( navigator.userAgent );
|
33
|
+
browser = {};
|
34
|
+
|
35
|
+
if ( matched.browser ) {
|
36
|
+
browser[ matched.browser ] = true;
|
37
|
+
browser.version = matched.version;
|
38
|
+
}
|
39
|
+
|
40
|
+
// Chrome is Webkit, but Webkit is also Safari.
|
41
|
+
if ( browser.chrome ) {
|
42
|
+
browser.webkit = true;
|
43
|
+
} else if ( browser.webkit ) {
|
44
|
+
browser.safari = true;
|
45
|
+
}
|
46
|
+
|
47
|
+
jQuery.browser = browser;
|
48
|
+
//===========================================
|
49
|
+
|
50
|
+
|
51
|
+
|
8
52
|
// Encapsulate everything in a nice namespace
|
9
53
|
var railsAjax = {
|
10
54
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-ajax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2.20130211
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -37,7 +37,7 @@ extra_rdoc_files: []
|
|
37
37
|
files:
|
38
38
|
- assets/javascripts/jquery.history.js
|
39
39
|
- assets/javascripts/jquery.rails-ajax.js.erb
|
40
|
-
- AUTHORS
|
40
|
+
- AUTHORS.rdoc
|
41
41
|
- ChangeLog
|
42
42
|
- Credits
|
43
43
|
- Gemfile
|
@@ -55,7 +55,7 @@ files:
|
|
55
55
|
- lib/rails-ajax.rb
|
56
56
|
- LICENSE
|
57
57
|
- Rakefile
|
58
|
-
- README
|
58
|
+
- README.rdoc
|
59
59
|
- ReleaseInfo
|
60
60
|
- tasks/rails-ajax_tasks.rake
|
61
61
|
homepage: http://rails-ajax.sourceforge.net
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
version: '0'
|
79
79
|
requirements: []
|
80
80
|
rubyforge_project: rails-ajax
|
81
|
-
rubygems_version: 1.8.
|
81
|
+
rubygems_version: 1.8.24
|
82
82
|
signing_key:
|
83
83
|
specification_version: 3
|
84
84
|
summary: Add Ajax capabilities to Rails websites with history, bookmarking, partial
|
data/README
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
= Rails-Ajax
|
2
|
-
|
3
|
-
Add Ajax capabilities to Rails websites with history, bookmarking...
|
4
|
-
|
5
|
-
== Where is the documentation ?
|
6
|
-
|
7
|
-
Check the website at http://rails-ajax.sourceforge.net
|
8
|
-
|
9
|
-
== Who wrote it ?
|
10
|
-
|
11
|
-
Check the AUTHORS[link:AUTHORS.html] file.
|
12
|
-
|
13
|
-
== What is the license ?
|
14
|
-
|
15
|
-
You can find out in the LICENSE[link:LICENSE.html] file.
|