styx 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/styx/_initializer.html.erb +12 -0
- data/styx.gemspec +1 -1
- metadata +14 -15
- data/app/views/styx/_initializer.html.haml +0 -9
@@ -0,0 +1,12 @@
|
|
1
|
+
<script type="text/javascript">
|
2
|
+
//<![CDATA[
|
3
|
+
if (Styx.Initializers.<%=klass%> && Styx.Initializers.<%=klass%>.initialize)
|
4
|
+
{
|
5
|
+
Styx.Initializers.<%=klass%>.initialize(<%=data.to_json%>)
|
6
|
+
}
|
7
|
+
if (Styx.Initializers.<%=klass%> && Styx.Initializers.<%=klass%>.<%=method%>)
|
8
|
+
{
|
9
|
+
Styx.Initializers.<%=klass%>.<%=method%>(<%=data.to_json%>)
|
10
|
+
}
|
11
|
+
//]]>
|
12
|
+
</script>
|
data/styx.gemspec
CHANGED
metadata
CHANGED
@@ -1,18 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: styx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Boris Staal
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-01-08 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
|
-
description: Set of helpers to maintain bridge between Server (Rails) side and Client
|
15
|
-
(JS) side
|
14
|
+
description: Set of helpers to maintain bridge between Server (Rails) side and Client (JS) side
|
16
15
|
email: boris@roundlake.ru
|
17
16
|
executables: []
|
18
17
|
extensions: []
|
@@ -21,7 +20,7 @@ files:
|
|
21
20
|
- README.md
|
22
21
|
- app/assets/javascripts/styx.forms.js.coffee
|
23
22
|
- app/assets/javascripts/styx.js.coffee
|
24
|
-
- app/views/styx/_initializer.html.
|
23
|
+
- app/views/styx/_initializer.html.erb
|
25
24
|
- init.rb
|
26
25
|
- lib/styx.rb
|
27
26
|
- lib/styx/engine.rb
|
@@ -31,27 +30,27 @@ files:
|
|
31
30
|
- styx.gemspec
|
32
31
|
homepage: http://github.com/roundlake/styx
|
33
32
|
licenses: []
|
34
|
-
post_install_message:
|
33
|
+
post_install_message:
|
35
34
|
rdoc_options: []
|
36
35
|
require_paths:
|
37
36
|
- lib
|
38
37
|
required_ruby_version: !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
38
|
requirements:
|
41
39
|
- - ! '>='
|
42
40
|
- !ruby/object:Gem::Version
|
43
41
|
version: '0'
|
44
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
42
|
none: false
|
43
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
46
44
|
requirements:
|
47
45
|
- - ! '>='
|
48
46
|
- !ruby/object:Gem::Version
|
49
47
|
version: '0'
|
48
|
+
none: false
|
50
49
|
requirements: []
|
51
|
-
rubyforge_project:
|
52
|
-
rubygems_version: 1.8.
|
53
|
-
signing_key:
|
50
|
+
rubyforge_project:
|
51
|
+
rubygems_version: 1.8.9
|
52
|
+
signing_key:
|
54
53
|
specification_version: 3
|
55
|
-
summary: Set of helpers to maintain bridge between Server (Rails) side and Client
|
56
|
-
(JS) side
|
54
|
+
summary: Set of helpers to maintain bridge between Server (Rails) side and Client (JS) side
|
57
55
|
test_files: []
|
56
|
+
...
|
@@ -1,9 +0,0 @@
|
|
1
|
-
:javascript
|
2
|
-
if (Styx.Initializers.#{klass} && Styx.Initializers.#{klass}.initialize)
|
3
|
-
{
|
4
|
-
Styx.Initializers.#{klass}.initialize(#{data.to_json})
|
5
|
-
}
|
6
|
-
if (Styx.Initializers.#{klass} && Styx.Initializers.#{klass}.#{method})
|
7
|
-
{
|
8
|
-
Styx.Initializers.#{klass}.#{method}(#{data.to_json})
|
9
|
-
}
|