hexagonaljs-rails 0.0.1

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.
@@ -0,0 +1,27 @@
1
+ _.defaults this,
2
+ Before: (object, methodName, adviseMethod) ->
3
+ YouAreDaBomb(object, methodName).before(adviseMethod)
4
+ BeforeAnyCallback: (object, methodName, adviseMethod) ->
5
+ YouAreDaBomb(object, methodName).beforeAnyCallback(adviseMethod)
6
+ After: (object, methodName, adviseMethod) ->
7
+ YouAreDaBomb(object, methodName).after(adviseMethod)
8
+ Around: (object, methodName, adviseMethod) ->
9
+ YouAreDaBomb(object, methodName).around(adviseMethod)
10
+
11
+ AfterAll: (object, methodNames, adviseMethod) ->
12
+ for methodName in methodNames
13
+ After(object, methodName, adviseMethod)
14
+
15
+ LogAll: (object) ->
16
+ for own key, value of object
17
+ if _.isFunction(value)
18
+ do (key) ->
19
+ Before(object, key, -> console.log("calling: #{key}"))
20
+
21
+ AutoBind: (gui, useCase) ->
22
+ for key, value of gui
23
+ if _.isFunction(value)
24
+ do (key) ->
25
+ if key.endsWith("Clicked") and useCase[key.remove("Clicked")]
26
+ After(gui, key, (args) -> useCase[key.remove("Clicked")](args))
27
+
@@ -0,0 +1,7 @@
1
+ require "hexagonaljs-rails/version"
2
+
3
+ module Hexagonaljs
4
+ module Rails
5
+ # Your code goes here...
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module Hexagonaljs
2
+ module Rails
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,70 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hexagonaljs-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Andrzej Krzywda
9
+ - Jan Filipowski
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2013-03-06 00:00:00.000000000 Z
14
+ dependencies: []
15
+ description: hexagonaljs Rails generator
16
+ email:
17
+ - andrzejkrzywda@gmail.com
18
+ - jachuf@gmail.com
19
+ executables: []
20
+ extensions: []
21
+ extra_rdoc_files: []
22
+ files:
23
+ - .gitignore
24
+ - Gemfile
25
+ - LICENSE.txt
26
+ - README.md
27
+ - Rakefile
28
+ - hexagonaljs-rails.gemspec
29
+ - lib/generators/hexagonaljs/hexagonaljs_generator.rb
30
+ - lib/generators/hexagonaljs/templates/app.coffee
31
+ - lib/generators/hexagonaljs/templates/controller.rb
32
+ - lib/generators/hexagonaljs/templates/glue.coffee
33
+ - lib/generators/hexagonaljs/templates/gui.coffee
34
+ - lib/generators/hexagonaljs/templates/server_side_adapter.coffee
35
+ - lib/generators/hexagonaljs/templates/use_case.coffee
36
+ - lib/generators/hexagonaljs/vendor_assets/YouAreDaBomb.js
37
+ - lib/generators/hexagonaljs/vendor_assets/handlebars-1.0.0.beta.6.js
38
+ - lib/generators/hexagonaljs/vendor_assets/jquery-1.7.2.min.js
39
+ - lib/generators/hexagonaljs/vendor_assets/jquery.json-2.3.min.js
40
+ - lib/generators/hexagonaljs/vendor_assets/sugar-1.3.min.js
41
+ - lib/generators/hexagonaljs/vendor_assets/underscore.js
42
+ - lib/generators/hexagonaljs/vendor_assets/utils.coffee
43
+ - lib/hexagonaljs-rails.rb
44
+ - lib/hexagonaljs-rails/version.rb
45
+ homepage: http://hexagonaljs.com
46
+ licenses: []
47
+ post_install_message:
48
+ rdoc_options: []
49
+ require_paths:
50
+ - lib
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ requirements: []
64
+ rubyforge_project:
65
+ rubygems_version: 1.8.23
66
+ signing_key:
67
+ specification_version: 3
68
+ summary: it generates the basic files needed for working with hexagonaljs-style Single
69
+ Page Application inside your Rails app
70
+ test_files: []