sprint-rails 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +23 -6
- data/lib/sprint/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 57d07afffd46b7977edbc94a298b12e97e6c7e19
|
|
4
|
+
data.tar.gz: 1a5bd2005d4c2a353748dc9f94a590ecdb2ff555
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef03227cbfabc15b4d508d817ea7c0f9d06dbbf6b1a5dce406f61d7f42ecb3b056b0f7dbd09ec2d6144b268bbc4b8873f16df1add213253f278cc8898b052e5d
|
|
7
|
+
data.tar.gz: a3dbd8e732c983e03b2b31dabf53a2f723faa871a56c0e4c4e1f454cb52a1a2f5336852338b9a6a362fd003f1c7cd13250665a181a9e5bc5eb24216c357f01e1
|
data/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
Sprint-rails
|
|
2
|
+
===============
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
Integrate [Sprint.js](https://github.com/bendc/sprint), a high-performance, minimal, and simple substitute of jQuery to Asset pipeline of your Rails App.
|
|
4
5
|
|
|
5
6
|
## Installation
|
|
6
7
|
|
|
@@ -12,15 +13,31 @@ gem 'sprint-rails'
|
|
|
12
13
|
|
|
13
14
|
And then execute:
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
```
|
|
17
|
+
$ bundle install
|
|
18
|
+
```
|
|
16
19
|
|
|
17
|
-
|
|
20
|
+
After that, you need to make sprint.js available on your pages. To do that, you can add it to your application.js file, like this:
|
|
18
21
|
|
|
19
|
-
|
|
22
|
+
```
|
|
23
|
+
//= require sprint
|
|
24
|
+
```
|
|
20
25
|
|
|
21
26
|
## Usage
|
|
22
27
|
|
|
23
|
-
|
|
28
|
+
Just as same as jQuery, you can use like following. If you'd check in detail, visit [the original github repo of Sprint.js](https://github.com/bendc/sprint)
|
|
29
|
+
|
|
30
|
+
*In original case, Sprint's syntax is like this:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
$("div").addClass("new").append("<p>Hi Sprint</p>");
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
But if you try to integrate it with Rails or existing jQuery apps, you have to use "Sprint" instead of "$" like this:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
Sprint("div").addClass("new").append("<p>Hi Sprint</p>");
|
|
40
|
+
```
|
|
24
41
|
|
|
25
42
|
## Contributing
|
|
26
43
|
|
data/lib/sprint/rails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sprint-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- timakin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-04-
|
|
11
|
+
date: 2015-04-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
84
84
|
version: '0'
|
|
85
85
|
requirements: []
|
|
86
86
|
rubyforge_project:
|
|
87
|
-
rubygems_version: 2.0.
|
|
87
|
+
rubygems_version: 2.0.14
|
|
88
88
|
signing_key:
|
|
89
89
|
specification_version: 4
|
|
90
90
|
summary: Module to integrate Sprint.js to Rails Asset Pipeline.
|