jquery_mobile_rails 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +66 -0
- data/lib/jquery_mobile_rails/version.rb +1 -1
- data/vendor/assets/javascripts/jquery.mobile.js +460 -187
- data/vendor/assets/javascripts/jquery.mobile.min.js +9 -9
- data/vendor/assets/stylesheets/jquery.mobile.css.scss +22 -17
- data/vendor/assets/stylesheets/jquery.mobile.min.css.scss +2 -2
- data/vendor/assets/stylesheets/jquery.mobile.structure.css.scss +16 -15
- data/vendor/assets/stylesheets/jquery.mobile.structure.min.css.scss +2 -2
- data/vendor/assets/stylesheets/jquery.mobile.theme.css.scss +9 -5
- data/vendor/assets/stylesheets/jquery.mobile.theme.min.css.scss +2 -2
- metadata +3 -3
- data/README.rdoc +0 -67
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41288fb39a3f897327288165d9df98e09a056211
|
4
|
+
data.tar.gz: 666adc5a0c798e89a09e4a94cf66166b57a686cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faad4d3fce16352441b499348d6b735a5c74bdec6293049b169def214ba7702e2bf6ead315c882e9c39452fdb117414246f2f778b878e8e95374bb68b5267179
|
7
|
+
data.tar.gz: 32fcc9568c668b4dc7efe018dd46113edc764568bb656e97882896c16749b87f99483a2477b62c8f7575a7efd059762d8ef601bef471a24ce667008350312d6f
|
data/README.md
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# jQuery Mobile for Rails
|
2
|
+
|
3
|
+
This gem adds the jQuery Mobile files to Rails' asset pipeline.
|
4
|
+
|
5
|
+
## Gem's jQuery Mobile Version
|
6
|
+
|
7
|
+
1.4.3 (gem 1.4.3)
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this gem to your Gemfile:
|
12
|
+
|
13
|
+
gem 'jquery_mobile_rails'
|
14
|
+
|
15
|
+
This will add jQuery Mobile's javascripts, stylesheets and images to your app.
|
16
|
+
|
17
|
+
Include jquery.mobile (or jquery.mobile.min) in your `application.js` manifest:
|
18
|
+
|
19
|
+
//= require jquery
|
20
|
+
//= require jquery_ujs
|
21
|
+
//= require jquery.mobile
|
22
|
+
|
23
|
+
And the same in your `application.css` manifest:
|
24
|
+
|
25
|
+
*= require_self
|
26
|
+
*= require_tree .
|
27
|
+
*= require jquery.mobile
|
28
|
+
|
29
|
+
__NOTE:__ You should probably remove Turbolinks from your `application.js` manifest, as it likely won't work well with jQuery Mobile.
|
30
|
+
|
31
|
+
## Use
|
32
|
+
|
33
|
+
I built this gem for using with the Mobylette gem, but it will work with your standalone application, or with any other gem that filters your mobile requests.
|
34
|
+
|
35
|
+
Please refer to [jQuery Mobile's documentation](http://view.jquerymobile.com/1.4.3/dist/demos/) for information on laying out your app and using all of the jQuery Mobile features.
|
36
|
+
|
37
|
+
## Example
|
38
|
+
|
39
|
+
There is a very simple application inside test/dummy demonstrating basic usage of jQuery Mobile templating.
|
40
|
+
|
41
|
+
## Versioning
|
42
|
+
|
43
|
+
jQuery Mobile Rails' gem versions will align with jQuery Mobile's version numbering, with the most recent gem always providing the current stable release of jQuery Mobile.
|
44
|
+
|
45
|
+
To use an older version, please be sure to reference the proper gem version in your Gemfile. For example, to use 1.3.2:
|
46
|
+
|
47
|
+
gem "jquery_mobile_rails", "1.3.2"
|
48
|
+
|
49
|
+
## Pull Requests
|
50
|
+
|
51
|
+
Please make sure to follow these steps before submitting any pull requests:
|
52
|
+
|
53
|
+
* Copy jQuery Mobile files to `vendor/assets/(javascripts|stylesheets|images)/`
|
54
|
+
* Remove version number from the filenames
|
55
|
+
* Run `bundle exec rake jquery_mobile_rails_css_fix`. This will convert the css files to scss and ensure that the image references will properly use Rails' asset pipeline (by using `image-url` instead of `url`).
|
56
|
+
|
57
|
+
## References
|
58
|
+
|
59
|
+
* [jQuery Mobile Page](http://jquerymobile.com/)
|
60
|
+
* [Mobylette Gem](https://github.com/tscolari/mobylette)
|
61
|
+
* [Mobile_fu Gem](https://github.com/brendanlim/mobile-fu)
|
62
|
+
|
63
|
+
## Authors
|
64
|
+
|
65
|
+
* [Tiago Scolari](https://github.com/tscolari)
|
66
|
+
* [Dylan Markow](https://github.com/dmarkow)
|