sprint-rails 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 233051db26e431cbb2c23c251045b6300bc80f5b
4
- data.tar.gz: f6e91443fc67d16fefedf3b0bfbb5d27cc276b66
3
+ metadata.gz: 57d07afffd46b7977edbc94a298b12e97e6c7e19
4
+ data.tar.gz: 1a5bd2005d4c2a353748dc9f94a590ecdb2ff555
5
5
  SHA512:
6
- metadata.gz: edef618ddfeaccedd287851c19cac94d03cd4ec5e78278aa615b334727eedce677af422bb9ee06b24ff1e3d95a8cbeedaa7ef098b9f8561a09295f67d74fe852
7
- data.tar.gz: 7448ecdacd70324ff45f95e5f44e2240cbf16370e988e715e97d40ca011c860c6f895ce784bf0123d9606cb3016b65a527b50e3d64fd3fbb789d04805a396501
6
+ metadata.gz: ef03227cbfabc15b4d508d817ea7c0f9d06dbbf6b1a5dce406f61d7f42ecb3b056b0f7dbd09ec2d6144b268bbc4b8873f16df1add213253f278cc8898b052e5d
7
+ data.tar.gz: a3dbd8e732c983e03b2b31dabf53a2f723faa871a56c0e4c4e1f454cb52a1a2f5336852338b9a6a362fd003f1c7cd13250665a181a9e5bc5eb24216c357f01e1
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
- # Sprint::Rails
1
+ Sprint-rails
2
+ ===============
2
3
 
3
- TODO: Write a gem description
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
- $ bundle
16
+ ```
17
+ $ bundle install
18
+ ```
16
19
 
17
- Or install it yourself as:
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
- $ gem install sprint-rails
22
+ ```
23
+ //= require sprint
24
+ ```
20
25
 
21
26
  ## Usage
22
27
 
23
- TODO: Write usage instructions here
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
 
@@ -1,5 +1,5 @@
1
1
  module Sprint
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
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.1
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-27 00:00:00.000000000 Z
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.6
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.