card-mod-machines 0.11.5 → 0.11.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/vendor/jquery_file_upload/CONTRIBUTING.md +15 -0
- data/vendor/jquery_file_upload/LICENSE.txt +21 -0
- data/vendor/jquery_file_upload/README.md +107 -0
- data/vendor/jquery_file_upload/angularjs.html +211 -0
- data/vendor/jquery_file_upload/basic-plus.html +226 -0
- data/vendor/jquery_file_upload/basic.html +136 -0
- data/vendor/jquery_file_upload/bower-version-update.js +16 -0
- data/vendor/jquery_file_upload/bower.json +64 -0
- data/vendor/jquery_file_upload/cors/postmessage.html +75 -0
- data/vendor/jquery_file_upload/cors/result.html +24 -0
- data/vendor/jquery_file_upload/css/jquery-ui-demo-ie8.css +21 -0
- data/vendor/jquery_file_upload/css/jquery-ui-demo.css +67 -0
- data/vendor/jquery_file_upload/css/jquery.fileupload-noscript.css +22 -0
- data/vendor/jquery_file_upload/css/jquery.fileupload-ui-noscript.css +17 -0
- data/vendor/jquery_file_upload/css/jquery.fileupload-ui.css +57 -0
- data/vendor/jquery_file_upload/css/jquery.fileupload.css +37 -0
- data/vendor/jquery_file_upload/css/style.css +15 -0
- data/vendor/jquery_file_upload/img/loading.gif +0 -0
- data/vendor/jquery_file_upload/img/progressbar.gif +0 -0
- data/vendor/jquery_file_upload/index.html +255 -0
- data/vendor/jquery_file_upload/jquery-ui.html +252 -0
- data/vendor/jquery_file_upload/js/app.js +101 -0
- data/vendor/jquery_file_upload/js/cors/jquery.postmessage-transport.js +126 -0
- data/vendor/jquery_file_upload/js/cors/jquery.xdr-transport.js +89 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-angular.js +437 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-audio.js +113 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-image.js +326 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-jquery-ui.js +161 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-process.js +178 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-ui.js +714 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-validate.js +125 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-video.js +113 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload.js +1486 -0
- data/vendor/jquery_file_upload/js/jquery.iframe-transport.js +224 -0
- data/vendor/jquery_file_upload/js/main.js +75 -0
- data/vendor/jquery_file_upload/js/vendor/jquery.ui.widget.js +748 -0
- data/vendor/jquery_file_upload/package.json +55 -0
- data/vendor/jquery_file_upload/server/gae-go/app.yaml +12 -0
- data/vendor/jquery_file_upload/server/gae-go/app/main.go +361 -0
- data/vendor/jquery_file_upload/server/gae-go/static/favicon.ico +0 -0
- data/vendor/jquery_file_upload/server/gae-go/static/robots.txt +2 -0
- data/vendor/jquery_file_upload/server/gae-python/app.yaml +17 -0
- data/vendor/jquery_file_upload/server/gae-python/main.py +204 -0
- data/vendor/jquery_file_upload/server/gae-python/static/favicon.ico +0 -0
- data/vendor/jquery_file_upload/server/gae-python/static/robots.txt +2 -0
- data/vendor/jquery_file_upload/server/php/Dockerfile +38 -0
- data/vendor/jquery_file_upload/server/php/UploadHandler.php +1411 -0
- data/vendor/jquery_file_upload/server/php/docker-compose.yml +9 -0
- data/vendor/jquery_file_upload/server/php/index.php +15 -0
- data/vendor/jquery_file_upload/test/index.html +172 -0
- data/vendor/jquery_file_upload/test/test.js +1292 -0
- data/vendor/jquery_rails/CHANGELOG.md +359 -0
- data/vendor/jquery_rails/CONTRIBUTING.md +132 -0
- data/vendor/jquery_rails/Gemfile +22 -0
- data/vendor/jquery_rails/MIT-LICENSE +21 -0
- data/vendor/jquery_rails/README.md +75 -0
- data/vendor/jquery_rails/Rakefile +59 -0
- data/vendor/jquery_rails/VERSIONS.md +62 -0
- data/vendor/jquery_rails/jquery-rails.gemspec +26 -0
- data/vendor/jquery_rails/lib/jquery-rails.rb +1 -0
- data/vendor/jquery_rails/lib/jquery/assert_select.rb +149 -0
- data/vendor/jquery_rails/lib/jquery/rails.rb +8 -0
- data/vendor/jquery_rails/lib/jquery/rails/engine.rb +6 -0
- data/vendor/jquery_rails/lib/jquery/rails/version.rb +9 -0
- data/vendor/jquery_rails/test/assert_select_jquery_test.rb +85 -0
- data/vendor/jquery_rails/test/test_helper.rb +6 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery.js +11008 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery.min.js +5 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery.min.map +1 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.js +9814 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.min.js +4 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.min.map +1 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.js +10364 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.min.js +2 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.min.map +1 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery_ujs.js +555 -0
- metadata +108 -12
@@ -0,0 +1,359 @@
|
|
1
|
+
## 4.3.3
|
2
|
+
|
3
|
+
- update jquery to 3.3.1
|
4
|
+
|
5
|
+
## 4.3.2
|
6
|
+
|
7
|
+
- update jquery to 3.3.0
|
8
|
+
- Add possibility to test HTML: all, attribute prefix, attribute contains,
|
9
|
+
attribute ends with, child, and class selectors
|
10
|
+
- Fix matching mutiple calls for the same selector/function exception
|
11
|
+
|
12
|
+
## 4.3.1
|
13
|
+
|
14
|
+
- update jquery to 3.2.1
|
15
|
+
|
16
|
+
## 4.3.0
|
17
|
+
|
18
|
+
- update jquery to 3.2.0
|
19
|
+
- Add possibility to test HTML attribute selectors
|
20
|
+
|
21
|
+
## 4.2.2
|
22
|
+
|
23
|
+
- update jquery to 3.1.1
|
24
|
+
|
25
|
+
## 4.2.1
|
26
|
+
|
27
|
+
- update jquery to 3.1.0
|
28
|
+
|
29
|
+
## 4.2.0
|
30
|
+
|
31
|
+
- Support jQuery 3.x
|
32
|
+
- Update jquery-ujs to 1.2.2
|
33
|
+
- Update jQuery to 1.12.4 and 2.2.4
|
34
|
+
|
35
|
+
## 4.1.1
|
36
|
+
|
37
|
+
- Update jQuery to 1.12.1 and 2.2.1
|
38
|
+
- Update jquery-ujs to 1.2.1
|
39
|
+
|
40
|
+
## 4.1.0
|
41
|
+
|
42
|
+
- Update jQuery to 1.12.0 and 2.2.0
|
43
|
+
- Update jquery-ujs to 1.2.0
|
44
|
+
|
45
|
+
## 4.0.5
|
46
|
+
|
47
|
+
- Specify that Ruby version 1.9.3+ is required
|
48
|
+
- Test on Ruby 2.2
|
49
|
+
- Update jquery-ujs from 1.0.4 to 1.1.0
|
50
|
+
|
51
|
+
## 4.0.4
|
52
|
+
|
53
|
+
- Fix CSP bypass vulnerability. CVE-2015-1840
|
54
|
+
|
55
|
+
## 4.0.1
|
56
|
+
|
57
|
+
- Fix RubyGems permission problem.
|
58
|
+
|
59
|
+
## 4.0.0
|
60
|
+
|
61
|
+
- Minimum dependency set to Rails 4.2
|
62
|
+
- Updated to jquery-ujs 1.0.2
|
63
|
+
- Support jQuery 1.x and 2.x
|
64
|
+
|
65
|
+
## 3.1.3 (16 June 2015)
|
66
|
+
|
67
|
+
- Fix CSP bypass vulnerability. CVE-2015-1840
|
68
|
+
|
69
|
+
## 3.1.2 (1 September 2014)
|
70
|
+
|
71
|
+
- Updated to jquery-ujs 1.0.1
|
72
|
+
|
73
|
+
## 3.1.1 (23 June 2014)
|
74
|
+
|
75
|
+
- Updated to jQuery 1.11.1
|
76
|
+
- Updated to jquery-ujs 1.0.0
|
77
|
+
|
78
|
+
## 3.1.0 (29 January 2014)
|
79
|
+
|
80
|
+
- Updated to jQuery 1.11.0
|
81
|
+
- Updated to latest jquery-ujs
|
82
|
+
- Added development rake task for updating jQuery
|
83
|
+
|
84
|
+
## 3.0.4 (10 July 2013)
|
85
|
+
|
86
|
+
- Fixed jQuery source map
|
87
|
+
|
88
|
+
## 3.0.3 (10 July 2013)
|
89
|
+
|
90
|
+
- Updated to jQuery 1.10.2
|
91
|
+
|
92
|
+
## 3.0.2 (04 July 2013)
|
93
|
+
|
94
|
+
- Updated to latest jquery-ujs
|
95
|
+
|
96
|
+
## 3.0.1 (07 June 2013)
|
97
|
+
|
98
|
+
- Updated to jQuery 1.10.1
|
99
|
+
- Removed jQuery UI from generator
|
100
|
+
|
101
|
+
## 3.0.0 (29 May 2013)
|
102
|
+
|
103
|
+
- Removed jQuery UI
|
104
|
+
|
105
|
+
## 2.3.0 (29 May 2013)
|
106
|
+
|
107
|
+
- Updated to jQuery 1.10.0
|
108
|
+
- Updated to jQuery UI 1.10.3
|
109
|
+
|
110
|
+
## 2.2.2 (29 May 2013)
|
111
|
+
|
112
|
+
- Updated to latest jquery-ujs
|
113
|
+
|
114
|
+
## 2.2.1 (08 February 2013)
|
115
|
+
|
116
|
+
- Updated to jQuery 1.9.1
|
117
|
+
- Updated to latest jquery-ujs
|
118
|
+
|
119
|
+
## 2.2.0 (19 January 2013)
|
120
|
+
|
121
|
+
- Updated to jQuery 1.9.0
|
122
|
+
- Updated to latest jquery-ujs
|
123
|
+
|
124
|
+
## 2.1.4 (26 November 2012)
|
125
|
+
|
126
|
+
- Updated to jQuery 1.8.3
|
127
|
+
- Updated to jQuery UI 1.9.2
|
128
|
+
- Rails 4 compatibility
|
129
|
+
- Rails 3.1 compatibility (without asset pipeline)
|
130
|
+
- Rails 3.0 compatibility
|
131
|
+
|
132
|
+
## 2.1.3 (24 September 2012)
|
133
|
+
|
134
|
+
- Updated to latest jquery-ujs
|
135
|
+
- Updated to jQuery 1.8.2
|
136
|
+
|
137
|
+
## 2.1.2 (06 September 2012)
|
138
|
+
|
139
|
+
- Updated to latest jquery-ujs
|
140
|
+
- required radio bugfix
|
141
|
+
- Updated to jQuery 1.8.1
|
142
|
+
|
143
|
+
## 2.1.1 (18 August 2012)
|
144
|
+
|
145
|
+
- Updated to latest jquery-ujs
|
146
|
+
- ajax:aborted:file bugfixes
|
147
|
+
|
148
|
+
## 2.1.0 (16 August 2012)
|
149
|
+
|
150
|
+
- Updated to latest jquery-ujs
|
151
|
+
- jQuery 1.8.0 compatibility
|
152
|
+
- Updated to jQuery 1.8.0
|
153
|
+
- Updated to jQuery UI 1.8.23
|
154
|
+
|
155
|
+
## 2.0.3 (16 August 2012)
|
156
|
+
|
157
|
+
- Updated to latest jquery-ujs
|
158
|
+
- created `rails:attachBindings` to allow for customization of $.rails object settings
|
159
|
+
- created `ajax:send` event to provide access to jqXHR object from ajax requests
|
160
|
+
- added support for `data-with-credentials`
|
161
|
+
|
162
|
+
## 2.0.2 (03 April 2012)
|
163
|
+
|
164
|
+
- Updated to jQuery 1.7.2
|
165
|
+
- Updated to jQuery UI 1.8.18
|
166
|
+
- Updated to latest jquery-ujs
|
167
|
+
- Override provided for obtaining `href`
|
168
|
+
- Edit `crossDomain` and `dataType` from `ajax:before` event
|
169
|
+
|
170
|
+
## 2.0.1 (28 February 2012)
|
171
|
+
|
172
|
+
- Fixed Rails 3.2 dependency issue
|
173
|
+
|
174
|
+
## 2.0 (20 December 2011)
|
175
|
+
|
176
|
+
- Minimum dependency set to Rails 3.2
|
177
|
+
|
178
|
+
## 1.0.19 (26 November 2011)
|
179
|
+
|
180
|
+
- Updated to jQuery 1.7.1
|
181
|
+
- Updated to latest jquery-ujs
|
182
|
+
- Fixed disabled links to re-enable when `ajax:before` or
|
183
|
+
`ajax:beforeSend` are canceled
|
184
|
+
- Switched from deprecated `live` to `delegate`
|
185
|
+
|
186
|
+
## 1.0.18 (18 November 2011)
|
187
|
+
|
188
|
+
- Updated to latest jquery-ujs
|
189
|
+
- Fixed event parameter for form submit event handlers in IE for
|
190
|
+
jQuery 1.6.x
|
191
|
+
- Fixed form submit event handlers for jQuery 1.7
|
192
|
+
|
193
|
+
## 1.0.17 (9 November 2011)
|
194
|
+
|
195
|
+
- Updated to jQuery 1.7
|
196
|
+
- Updated to latest jquery-ujs
|
197
|
+
- Moved file comment above function so it won't be included in
|
198
|
+
compressed version
|
199
|
+
|
200
|
+
## 1.0.16 (12 October 2011)
|
201
|
+
|
202
|
+
- Updated to jQuery 1.6.4
|
203
|
+
- Updated to jQuery UI 1.8.16
|
204
|
+
|
205
|
+
## 1.0.15 (12 October 2011)
|
206
|
+
|
207
|
+
- Updated to latest jquery-ujs
|
208
|
+
- Fixed formInputClickSelector `button[type]` for IE7
|
209
|
+
- Copy target attribute to generated form for `a[data-method]` links
|
210
|
+
- Return true (abort ajax) for ctrl- and meta-clicks on remote links
|
211
|
+
- Use jQuery `.prop()` for disabling/enabling elements
|
212
|
+
|
213
|
+
## 1.0.14 (08 September 2011)
|
214
|
+
|
215
|
+
- Updated to latest jquery-ujs
|
216
|
+
- Added `disable-with` support for links
|
217
|
+
- minor bug fixes
|
218
|
+
- Added `data-remote` support for change events of all input types
|
219
|
+
- Added install generator for Rails 3.1 with instructional message
|
220
|
+
|
221
|
+
## 1.0.13 (11 August 2011)
|
222
|
+
|
223
|
+
- Updated to latest jquery-ujs with `novalidate` support
|
224
|
+
- No more support for jquery older than v1.6
|
225
|
+
|
226
|
+
## 1.0.12 (23 June 2011)
|
227
|
+
|
228
|
+
- Updated to latest jquery-ujs with 'blank form action' and
|
229
|
+
data-remote support for select elements
|
230
|
+
|
231
|
+
## 1.0.11 (15 June 2011)
|
232
|
+
|
233
|
+
- Updated to latest jqueyr-ujs with cross-domain support
|
234
|
+
|
235
|
+
[See jquery-ujs issue 167](https://github.com/rails/jquery-ujs/pull/167) for relevant discussion
|
236
|
+
|
237
|
+
## 1.0.10 (13 June 2011)
|
238
|
+
|
239
|
+
- Updated to latest jqueyr-ujs with bug fixes
|
240
|
+
|
241
|
+
## 1.0.9 (25 May 2011)
|
242
|
+
|
243
|
+
- Merged with new rails repo (3.1 fix)
|
244
|
+
|
245
|
+
## 1.0.8 (25 May 2011)
|
246
|
+
|
247
|
+
- Updated to latest jquery-ujs with `[disabled][required]` fix
|
248
|
+
|
249
|
+
## 1.0.7 (21 May 2011)
|
250
|
+
|
251
|
+
- Fix assert_select_jquery's bad call to unescape_rjs
|
252
|
+
|
253
|
+
## 1.0.6 (21 May 2011)
|
254
|
+
|
255
|
+
- Updated to latest jquery-ujs with `data-params` support
|
256
|
+
|
257
|
+
## 1.0.5 (17 May 2011)
|
258
|
+
|
259
|
+
- Updated to latest jquery-ujs
|
260
|
+
- Remove old rails.js in Rails 3.0 generator
|
261
|
+
|
262
|
+
## 1.0.4 (17 May 2011)
|
263
|
+
|
264
|
+
- Fix exception in Rails 3.0 generator
|
265
|
+
|
266
|
+
## 1.0.3 (17 May 2011)
|
267
|
+
|
268
|
+
- Update to jQuery 1.6.1
|
269
|
+
- Remove useless --version generator option
|
270
|
+
|
271
|
+
## 1.0.2 (12 May 2011)
|
272
|
+
|
273
|
+
- Fix Rails 3.0 now that rails.js is named jquery_ujs.js
|
274
|
+
|
275
|
+
## 1.0.1 (10 May 2011)
|
276
|
+
|
277
|
+
- Stop downloading rails.js from GitHub
|
278
|
+
- Vendor jQuery UI for those who want it
|
279
|
+
- Fix assert_select_jquery now that Rails 3.1 has no RJS at all
|
280
|
+
- Fix rails dependency to just be railties
|
281
|
+
|
282
|
+
## 1.0.rc (3 May 2011)
|
283
|
+
|
284
|
+
- Rails 3.1 asset pipeline edition
|
285
|
+
- Removes generators and railties
|
286
|
+
- Just provides jquery.js and jquery_ujs.js
|
287
|
+
- Still compatible with Rails 3.0 via the old generator code
|
288
|
+
|
289
|
+
## 0.2.7 (5 February 2011)
|
290
|
+
|
291
|
+
- Updated to use jQuery 1.5 by default
|
292
|
+
|
293
|
+
## 0.2.6 (1 December 2010)
|
294
|
+
|
295
|
+
Feature:
|
296
|
+
|
297
|
+
- Updated to use jQuery 1.4.4 by default
|
298
|
+
|
299
|
+
## 0.2.5 (4 November 2010)
|
300
|
+
|
301
|
+
Bugfix:
|
302
|
+
|
303
|
+
- Download JQuery Rails UJS via HTTPS since Github is now HTTPS only
|
304
|
+
|
305
|
+
## 0.2.4 (16 October 2010)
|
306
|
+
|
307
|
+
Features:
|
308
|
+
|
309
|
+
- Updated to use the new jQuery 1.4.3 by default, with the IE .live() bug fixed
|
310
|
+
- Always download the newest 1.x release of jQuery UI
|
311
|
+
- Try to install unknown versions of jQuery, with fallback to the default
|
312
|
+
- Print informative messages in the correct Generator style
|
313
|
+
|
314
|
+
## 0.2.3 (13 October 2010)
|
315
|
+
|
316
|
+
Features:
|
317
|
+
|
318
|
+
- Support Edge Rails 3.1 by depending on Rails ~>3.0
|
319
|
+
- Add Sam Ruby's assert_select_jquery test helper method
|
320
|
+
- Use jquery.min only in production (and not in the test env)
|
321
|
+
|
322
|
+
## 0.2.2 (8 October 2010)
|
323
|
+
|
324
|
+
Feature:
|
325
|
+
|
326
|
+
- Depend on Rails >=3.0 && <4.0 for edge Rails compatibility
|
327
|
+
|
328
|
+
## 0.2.1 (2 October 2010)
|
329
|
+
|
330
|
+
Bugfix:
|
331
|
+
|
332
|
+
- Default to jQuery 1.4.1 as recommended by jQuery-ujs
|
333
|
+
due to a bug in 1.4.2 (http://jsbin.com/uboxu3/7/)
|
334
|
+
|
335
|
+
## 0.2 (2 October 2010)
|
336
|
+
|
337
|
+
Features:
|
338
|
+
|
339
|
+
- Allow specifying which version of jQuery to install
|
340
|
+
- Add generator tests (thanks, Louis T.)
|
341
|
+
- Automatically use non-minified JS in development mode
|
342
|
+
|
343
|
+
## 0.1.3 (16 September 2010)
|
344
|
+
|
345
|
+
Bugfix:
|
346
|
+
|
347
|
+
- allow javascript :defaults tag to be overridden
|
348
|
+
|
349
|
+
## 0.1.2 (18 August 2010)
|
350
|
+
|
351
|
+
Bugfix:
|
352
|
+
|
353
|
+
- check for jQueryUI in the right place
|
354
|
+
|
355
|
+
## 0.1.1 (16 August 2010)
|
356
|
+
|
357
|
+
Bugfix:
|
358
|
+
|
359
|
+
- fix generator by resolving namespace conflict between Jquery::Rails and ::Rails
|
@@ -0,0 +1,132 @@
|
|
1
|
+
Contributing to jquery-rails
|
2
|
+
=====================
|
3
|
+
|
4
|
+
[![Build Status](https://travis-ci.org/rails/jquery-rails.svg?branch=master)](https://travis-ci.org/rails/jquery-rails)
|
5
|
+
|
6
|
+
jquery-rails is work of [many contributors](https://github.com/rails/jquery-rails/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/rails/jquery-rails/pulls), [propose features and discuss issues](https://github.com/rails/jquery-rails/issues).
|
7
|
+
|
8
|
+
#### Updating jQuery
|
9
|
+
|
10
|
+
If the jquery or jquery-ui scripts are outdated (i.e. maybe a new version of jquery was released yesterday), feel free to open an issue and prod us to get that thing updated. However, for security reasons, we won't be accepting pull requests with updated jquery or jquery-ui scripts.
|
11
|
+
|
12
|
+
#### Changes to jquery_ujs.js
|
13
|
+
|
14
|
+
**If it's an issue pertaining to the jquery-ujs javascript, please
|
15
|
+
report it to the [rails/jquery-ujs project](https://github.com/rails/jquery-ujs/issues).**
|
16
|
+
|
17
|
+
#### Fork the Project
|
18
|
+
|
19
|
+
Fork the [project on Github](https://github.com/rails/jquery-rails) and check out your copy.
|
20
|
+
|
21
|
+
```
|
22
|
+
git clone https://github.com/contributor/jquery-rails.git
|
23
|
+
cd jquery-rails
|
24
|
+
git remote add upstream https://github.com/rails/jquery-rails.git
|
25
|
+
```
|
26
|
+
|
27
|
+
#### Create a Topic Branch
|
28
|
+
|
29
|
+
Make sure your fork is up-to-date and create a topic branch for your feature or bug fix.
|
30
|
+
|
31
|
+
```
|
32
|
+
git checkout master
|
33
|
+
git pull upstream master
|
34
|
+
git checkout -b my-feature-branch
|
35
|
+
```
|
36
|
+
|
37
|
+
#### Bundle Install and Test
|
38
|
+
|
39
|
+
Ensure that you can build the project and run tests.
|
40
|
+
|
41
|
+
```
|
42
|
+
bundle install
|
43
|
+
bundle exec rake test
|
44
|
+
```
|
45
|
+
|
46
|
+
#### Write Tests
|
47
|
+
|
48
|
+
Try to write a test that reproduces the problem you're trying to fix or describes a feature that you want to build. Add to [test](test).
|
49
|
+
|
50
|
+
#### Testing
|
51
|
+
|
52
|
+
This is a gem that simply includes jQuery and jQuery UJS into the Rails
|
53
|
+
asset pipeline. The asset pipeline functionality is well tested within the
|
54
|
+
Rails framework. And jQuery and jQuery UJS each have their own extensive
|
55
|
+
test suites. Thus, there's not a lot to actually test here.
|
56
|
+
|
57
|
+
That being said, we do have a few integration-level tests to make sure
|
58
|
+
everything is being included and basic UJS functionality works within a
|
59
|
+
sample Rails app.
|
60
|
+
|
61
|
+
If you're making changes to the actual gem, run the tests as follows:
|
62
|
+
|
63
|
+
1. Checkout the demo Rails app: `git clone git://github.com/JangoSteve/Rails-jQuery-Demo.git`
|
64
|
+
|
65
|
+
2. Install the gems: `bundle install`
|
66
|
+
|
67
|
+
3. Change the jquery-rails gem in the Gemfile to use your local
|
68
|
+
version of the gem with your updates: `gem 'jquery-rails', :path => '../path/to/jquery-rails'`
|
69
|
+
|
70
|
+
4. Update your bundled jquery-rails gem: `bundle update jquery-rails`
|
71
|
+
|
72
|
+
5. Run the tests: `bundle exec rspec spec/`
|
73
|
+
|
74
|
+
We definitely appreciate pull requests that highlight or reproduce a problem, even without a fix.
|
75
|
+
|
76
|
+
#### Write Code
|
77
|
+
|
78
|
+
Implement your feature or bug fix.
|
79
|
+
|
80
|
+
Make sure that `bundle exec rake test` completes without errors.
|
81
|
+
|
82
|
+
#### Write Documentation
|
83
|
+
|
84
|
+
Document any external behavior in the [README](README.md).
|
85
|
+
|
86
|
+
#### Commit Changes
|
87
|
+
|
88
|
+
Make sure git knows your name and email address:
|
89
|
+
|
90
|
+
```
|
91
|
+
git config --global user.name "Your Name"
|
92
|
+
git config --global user.email "contributor@example.com"
|
93
|
+
```
|
94
|
+
|
95
|
+
Writing good commit logs is important. A commit log should describe what changed and why.
|
96
|
+
|
97
|
+
```
|
98
|
+
git add ...
|
99
|
+
git commit
|
100
|
+
```
|
101
|
+
|
102
|
+
#### Push
|
103
|
+
|
104
|
+
```
|
105
|
+
git push origin my-feature-branch
|
106
|
+
```
|
107
|
+
|
108
|
+
#### Make a Pull Request
|
109
|
+
|
110
|
+
Go to https://github.com/contributor/jquery-rails and select your feature branch. Click the 'Pull Request' button and fill out the form. Pull requests are usually reviewed within a few days.
|
111
|
+
|
112
|
+
#### Rebase
|
113
|
+
|
114
|
+
If you've been working on a change for a while, rebase with upstream/master.
|
115
|
+
|
116
|
+
```
|
117
|
+
git fetch upstream
|
118
|
+
git rebase upstream/master
|
119
|
+
git push origin my-feature-branch -f
|
120
|
+
```
|
121
|
+
|
122
|
+
#### Check on Your Pull Request
|
123
|
+
|
124
|
+
Go back to your pull request after a few minutes and see whether it passed muster with Travis-CI. Everything should look green, otherwise fix issues and amend your commit as described above.
|
125
|
+
|
126
|
+
#### Be Patient
|
127
|
+
|
128
|
+
It's likely that your change will not be merged and that the nitpicky maintainers will ask you to do more, or fix seemingly benign problems. Hang on there!
|
129
|
+
|
130
|
+
#### Thank You
|
131
|
+
|
132
|
+
Please do know that we really appreciate and value your time and work. We love you, really.
|