rocky 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +1 -1
- data/lib/rocky/version.rb +1 -1
- data/vendor/assets/javascripts/middleware/system/base.js.coffee +5 -3
- metadata +14 -22
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f25d88fd075bc48bd71f366d938f44bf5dfa454b
|
4
|
+
data.tar.gz: d5b28fe0e3c66e2da205d5e2b6daca65a11bf211
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 65faf04dd3f943e9656197587d348ec473ddddf722617e9bf3e7ab1d772cded52b70d71ae14de3c0468d626bb14b6a4c29a296f00b320c1a2b6edb8955e23982
|
7
|
+
data.tar.gz: 2019bd1cc2c8a4559b518614b45ca818a6dfc95b0b3729dada05666da6834579c94fda780a36054e49faec55b4d418c1699c301da1bade6355fedae24ba75385
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Current status: Middleware in development
|
4
4
|
|
5
5
|
### Latest News:
|
6
|
-
+ 26.03 JsonForm Component added to core.
|
6
|
+
+ 26.03 JsonForm Component added to core, reBind() added to Base class.
|
7
7
|
|
8
8
|
Rocky is CoffeeScript Middleware that binds class objects with HTML page elements.
|
9
9
|
Class objects interact with page elements through Backbone events.
|
data/lib/rocky/version.rb
CHANGED
@@ -4,13 +4,15 @@ class Middleware.System.Base
|
|
4
4
|
collection = []
|
5
5
|
instance = @
|
6
6
|
|
7
|
-
$(selector).
|
8
|
-
|
7
|
+
if $(selector).length > 0
|
8
|
+
$(selector).each ->
|
9
|
+
collection.push(new instance($(@)))
|
9
10
|
|
10
11
|
collection
|
11
12
|
|
12
13
|
@bindOne: (selector) ->
|
13
|
-
|
14
|
+
if $(selector).length > 0
|
15
|
+
new @($(selector))
|
14
16
|
|
15
17
|
reBind: =>
|
16
18
|
@.constructor(@.container)
|
metadata
CHANGED
@@ -1,62 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Juri Semjonov
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-06-15 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: coffee-script
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: jquery-rails
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rake
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
|
-
type: :
|
48
|
+
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
description: Rocky CoffeeScript Middleware
|
@@ -83,26 +76,25 @@ files:
|
|
83
76
|
homepage: https://github.com/Semjonow/rocky
|
84
77
|
licenses:
|
85
78
|
- MIT
|
79
|
+
metadata: {}
|
86
80
|
post_install_message:
|
87
81
|
rdoc_options: []
|
88
82
|
require_paths:
|
89
83
|
- lib
|
90
84
|
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
85
|
requirements:
|
93
|
-
- -
|
86
|
+
- - '>='
|
94
87
|
- !ruby/object:Gem::Version
|
95
88
|
version: '0'
|
96
89
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
90
|
requirements:
|
99
|
-
- -
|
91
|
+
- - '>='
|
100
92
|
- !ruby/object:Gem::Version
|
101
93
|
version: '0'
|
102
94
|
requirements: []
|
103
95
|
rubyforge_project:
|
104
|
-
rubygems_version:
|
96
|
+
rubygems_version: 2.0.2
|
105
97
|
signing_key:
|
106
|
-
specification_version:
|
98
|
+
specification_version: 4
|
107
99
|
summary: Rocky CoffeeScript Middleware
|
108
100
|
test_files: []
|