rocky 0.0.7 → 0.0.8
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.
data/README.md
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Current status: Middleware in development
|
|
4
4
|
|
|
5
|
+
### Latest News:
|
|
6
|
+
+ 26.03 JsonForm Component added to core.
|
|
7
|
+
|
|
5
8
|
Rocky is CoffeeScript Middleware that binds class objects with HTML page elements.
|
|
6
9
|
Class objects interact with page elements through Backbone events.
|
|
7
10
|
Rocky also implements the logic of the following components:
|
data/lib/rocky/version.rb
CHANGED
|
@@ -4,7 +4,7 @@ class Middleware.Component.JsonForm extends Middleware.System.Base
|
|
|
4
4
|
@initForm()
|
|
5
5
|
|
|
6
6
|
initForm: =>
|
|
7
|
-
if @container.
|
|
7
|
+
if @container.prop("tagName") == "FORM"
|
|
8
8
|
@form = @container
|
|
9
9
|
else
|
|
10
10
|
@form = @container.find("form")
|
|
@@ -25,7 +25,7 @@ class Middleware.Component.JsonForm extends Middleware.System.Base
|
|
|
25
25
|
@form.trigger("submit.rails")
|
|
26
26
|
e.preventDefault()
|
|
27
27
|
|
|
28
|
-
@
|
|
28
|
+
@cancelButton = @form.find("*[data-action='cancel']")
|
|
29
29
|
@cancelButton.on "click", =>
|
|
30
30
|
@form.trigger("request:cancel")
|
|
31
31
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rocky
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -66,18 +66,18 @@ executables: []
|
|
|
66
66
|
extensions: []
|
|
67
67
|
extra_rdoc_files: []
|
|
68
68
|
files:
|
|
69
|
+
- lib/rocky.rb
|
|
69
70
|
- lib/generators/rocky/install/install_generator.rb
|
|
70
71
|
- lib/generators/rocky/install/templates/app.coffee
|
|
71
72
|
- lib/generators/rocky/resource_helpers.rb
|
|
72
73
|
- lib/rocky/version.rb
|
|
73
|
-
-
|
|
74
|
-
- vendor/assets/javascripts/backbone.js
|
|
75
|
-
- vendor/assets/javascripts/middleware/component/json_form.js.coffee
|
|
74
|
+
- vendor/assets/javascripts/middleware/system/base.js.coffee
|
|
76
75
|
- vendor/assets/javascripts/middleware/component/modal.js.coffee
|
|
77
76
|
- vendor/assets/javascripts/middleware/component/puppet.js.coffee
|
|
78
|
-
- vendor/assets/javascripts/middleware/
|
|
79
|
-
- vendor/assets/javascripts/middleware.js.coffee
|
|
77
|
+
- vendor/assets/javascripts/middleware/component/json_form.js.coffee
|
|
80
78
|
- vendor/assets/javascripts/underscore.js
|
|
79
|
+
- vendor/assets/javascripts/backbone.js
|
|
80
|
+
- vendor/assets/javascripts/middleware.js.coffee
|
|
81
81
|
- Rakefile
|
|
82
82
|
- README.md
|
|
83
83
|
homepage: https://github.com/Semjonow/rocky
|