gistyle 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +12 -2
- data/lib/gistyle/version.rb +1 -1
- metadata +8 -50
- data/test/dummy/tmp/pids/server.pid +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 36359b3e460aa90180c4c0c57e7fc34d63e55a6b
|
4
|
+
data.tar.gz: 62d5dc72b1196c29dda2838ec443a7b396f55d54
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 43f5f9755ad4a51eab089fa82bb8f54862cb7f2a5fa1c4d471fb3628e36503bfee940390ce02cb6494aa7c85e69a4e38cc43c9855e979e175d28234f16b22790
|
7
|
+
data.tar.gz: 16416c339983ee4e40b16b6c6f884317730fcc652eae4c13c207ef8f9d657849ba924ac67d827b1db7f85dbdbc284ea3907c7afb82ea1271fcd15b66b5eaab06
|
data/README.md
CHANGED
@@ -1,11 +1,17 @@
|
|
1
1
|
# GIStyle
|
2
2
|
|
3
|
-
GIStyle is a Rails plug-in for DOM-based routing of Javascript, inspired from [Paul Irish
|
3
|
+
GIStyle (Garber-Irish Style) is a Rails plug-in for DOM-based routing of Javascript, inspired from [Paul Irish](http://paulirish.com/2009/markup-based-unobtrusive-comprehensive-dom-ready-execution/) and [Jason Garber](http://viget.com/inspire/extending-paul-irishs-comprehensive-dom-ready-execution).
|
4
4
|
|
5
5
|
## Usage
|
6
6
|
|
7
7
|
### Install
|
8
8
|
|
9
|
+
`Gemfile`
|
10
|
+
|
11
|
+
...
|
12
|
+
gem 'gistyle'
|
13
|
+
...
|
14
|
+
|
9
15
|
`app/assets/javascripts/application.js`
|
10
16
|
|
11
17
|
...
|
@@ -15,7 +21,7 @@ GIStyle is a Rails plug-in for DOM-based routing of Javascript, inspired from [P
|
|
15
21
|
//= require_tree .
|
16
22
|
|
17
23
|
APP.init = function() {
|
18
|
-
console.log("application");
|
24
|
+
console.log("application"); // global
|
19
25
|
};
|
20
26
|
...
|
21
27
|
|
@@ -29,6 +35,8 @@ Be sure to place `require gistyle` before `require_tree .`.
|
|
29
35
|
|
30
36
|
### Example
|
31
37
|
|
38
|
+
#### JavaScript
|
39
|
+
|
32
40
|
`app/assets/javascripts/home.js`
|
33
41
|
|
34
42
|
...
|
@@ -47,6 +55,8 @@ Be sure to place `require gistyle` before `require_tree .`.
|
|
47
55
|
}
|
48
56
|
}
|
49
57
|
|
58
|
+
#### CoffeeScript
|
59
|
+
|
50
60
|
`app/assets/javascripts/posts.js.coffee`
|
51
61
|
|
52
62
|
APP.posts =
|
data/lib/gistyle/version.rb
CHANGED
metadata
CHANGED
@@ -1,48 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gistyle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
5
|
-
prerelease:
|
4
|
+
version: 0.9.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Tony Jian
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
13
|
-
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: rails
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 3.2.11
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 3.2.11
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: sqlite3
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '0'
|
38
|
-
type: :development
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
11
|
+
date: 2013-04-28 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
46
13
|
description: GIStyle is a Rails plug-in for DOM-based routing of Javascript, inspired
|
47
14
|
from Paul Irish and Jason Garber.
|
48
15
|
email:
|
@@ -100,7 +67,6 @@ files:
|
|
100
67
|
- test/dummy/public/404.html
|
101
68
|
- test/dummy/public/500.html
|
102
69
|
- test/dummy/Rakefile
|
103
|
-
- test/dummy/tmp/pids/server.pid
|
104
70
|
- test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0
|
105
71
|
- test/dummy/tmp/cache/assets/CDF/870/sprockets%2Fb878faf942403e313a5b103e5d80488e
|
106
72
|
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
@@ -121,33 +87,26 @@ files:
|
|
121
87
|
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
122
88
|
homepage: https://github.com/tonytonyjan/gistyle
|
123
89
|
licenses: []
|
90
|
+
metadata: {}
|
124
91
|
post_install_message:
|
125
92
|
rdoc_options: []
|
126
93
|
require_paths:
|
127
94
|
- lib
|
128
95
|
required_ruby_version: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
96
|
requirements:
|
131
|
-
- -
|
97
|
+
- - '>='
|
132
98
|
- !ruby/object:Gem::Version
|
133
99
|
version: '0'
|
134
|
-
segments:
|
135
|
-
- 0
|
136
|
-
hash: 3020711135826047585
|
137
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
-
none: false
|
139
101
|
requirements:
|
140
|
-
- -
|
102
|
+
- - '>='
|
141
103
|
- !ruby/object:Gem::Version
|
142
104
|
version: '0'
|
143
|
-
segments:
|
144
|
-
- 0
|
145
|
-
hash: 3020711135826047585
|
146
105
|
requirements: []
|
147
106
|
rubyforge_project:
|
148
|
-
rubygems_version:
|
107
|
+
rubygems_version: 2.0.0
|
149
108
|
signing_key:
|
150
|
-
specification_version:
|
109
|
+
specification_version: 4
|
151
110
|
summary: GIStyle is a Rails plug-in for DOM-based routing of Javascript.
|
152
111
|
test_files:
|
153
112
|
- test/gistyle_test.rb
|
@@ -191,7 +150,6 @@ test_files:
|
|
191
150
|
- test/dummy/public/404.html
|
192
151
|
- test/dummy/public/500.html
|
193
152
|
- test/dummy/Rakefile
|
194
|
-
- test/dummy/tmp/pids/server.pid
|
195
153
|
- test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0
|
196
154
|
- test/dummy/tmp/cache/assets/CDF/870/sprockets%2Fb878faf942403e313a5b103e5d80488e
|
197
155
|
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
@@ -1 +0,0 @@
|
|
1
|
-
9729
|