rails-backbone 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +40 -0
  3. data/Rakefile +48 -0
  4. data/lib/backbone-rails.rb +12 -0
  5. data/lib/generators/backbone/controller/controller_generator.rb +47 -0
  6. data/lib/generators/backbone/controller/templates/controller.coffee +14 -0
  7. data/lib/generators/backbone/controller/templates/template.jst +2 -0
  8. data/lib/generators/backbone/controller/templates/view.coffee +8 -0
  9. data/lib/generators/backbone/install/install_generator.rb +39 -0
  10. data/lib/generators/backbone/install/templates/app.coffee +11 -0
  11. data/lib/generators/backbone/model/model_generator.rb +19 -0
  12. data/lib/generators/backbone/model/templates/model.coffee +11 -0
  13. data/lib/generators/backbone/resource_helpers.rb +31 -0
  14. data/lib/generators/backbone/scaffold/scaffold_generator.rb +31 -0
  15. data/lib/generators/backbone/scaffold/templates/controller.coffee +32 -0
  16. data/lib/generators/backbone/scaffold/templates/model.coffee +11 -0
  17. data/lib/generators/backbone/scaffold/templates/templates/edit.jst +17 -0
  18. data/lib/generators/backbone/scaffold/templates/templates/index.jst +16 -0
  19. data/lib/generators/backbone/scaffold/templates/templates/model.jst +7 -0
  20. data/lib/generators/backbone/scaffold/templates/templates/new.jst +17 -0
  21. data/lib/generators/backbone/scaffold/templates/templates/show.jst +9 -0
  22. data/lib/generators/backbone/scaffold/templates/views/edit_view.coffee +24 -0
  23. data/lib/generators/backbone/scaffold/templates/views/index_view.coffee +22 -0
  24. data/lib/generators/backbone/scaffold/templates/views/model_view.coffee +19 -0
  25. data/lib/generators/backbone/scaffold/templates/views/new_view.coffee +25 -0
  26. data/lib/generators/backbone/scaffold/templates/views/show_view.coffee +8 -0
  27. data/lib/tasks/backbone-rails_tasks.rake +4 -0
  28. data/vendor/assets/javascripts/backbone.js +1098 -0
  29. data/vendor/assets/javascripts/backbone_datalink.js +21 -0
  30. data/vendor/assets/javascripts/backbone_rails_sync.js +51 -0
  31. data/vendor/assets/javascripts/underscore.js +818 -0
  32. metadata +126 -0
metadata ADDED
@@ -0,0 +1,126 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails-backbone
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.2
6
+ platform: ruby
7
+ authors:
8
+ - Ryan Fitzgerald
9
+ - Code Brew Studios
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+
14
+ date: 2011-06-17 00:00:00 -04:00
15
+ default_executable:
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
18
+ name: rails
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ~>
23
+ - !ruby/object:Gem::Version
24
+ version: 3.1.0.beta1
25
+ type: :runtime
26
+ prerelease: false
27
+ version_requirements: *id001
28
+ - !ruby/object:Gem::Dependency
29
+ name: coffee-script
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ~>
34
+ - !ruby/object:Gem::Version
35
+ version: 2.2.0
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: *id002
39
+ - !ruby/object:Gem::Dependency
40
+ name: ejs
41
+ requirement: &id003 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: 1.0.0
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: *id003
50
+ description: Quickly setup backbone.js for use with rails 3.1. Generators are provided to quickly get started.
51
+ email:
52
+ - ryan@codebrewstudios.com
53
+ executables: []
54
+
55
+ extensions: []
56
+
57
+ extra_rdoc_files: []
58
+
59
+ files:
60
+ - lib/backbone-rails.rb
61
+ - lib/generators/backbone/controller/controller_generator.rb
62
+ - lib/generators/backbone/controller/templates/controller.coffee
63
+ - lib/generators/backbone/controller/templates/template.jst
64
+ - lib/generators/backbone/controller/templates/view.coffee
65
+ - lib/generators/backbone/install/install_generator.rb
66
+ - lib/generators/backbone/install/templates/app.coffee
67
+ - lib/generators/backbone/model/model_generator.rb
68
+ - lib/generators/backbone/model/templates/model.coffee
69
+ - lib/generators/backbone/resource_helpers.rb
70
+ - lib/generators/backbone/scaffold/scaffold_generator.rb
71
+ - lib/generators/backbone/scaffold/templates/controller.coffee
72
+ - lib/generators/backbone/scaffold/templates/model.coffee
73
+ - lib/generators/backbone/scaffold/templates/templates/edit.jst
74
+ - lib/generators/backbone/scaffold/templates/templates/index.jst
75
+ - lib/generators/backbone/scaffold/templates/templates/model.jst
76
+ - lib/generators/backbone/scaffold/templates/templates/new.jst
77
+ - lib/generators/backbone/scaffold/templates/templates/show.jst
78
+ - lib/generators/backbone/scaffold/templates/views/edit_view.coffee
79
+ - lib/generators/backbone/scaffold/templates/views/index_view.coffee
80
+ - lib/generators/backbone/scaffold/templates/views/model_view.coffee
81
+ - lib/generators/backbone/scaffold/templates/views/new_view.coffee
82
+ - lib/generators/backbone/scaffold/templates/views/show_view.coffee
83
+ - lib/tasks/backbone-rails_tasks.rake
84
+ - vendor/assets/javascripts/backbone.js
85
+ - vendor/assets/javascripts/backbone_datalink.js
86
+ - vendor/assets/javascripts/backbone_rails_sync.js
87
+ - vendor/assets/javascripts/underscore.js
88
+ - MIT-LICENSE
89
+ - Rakefile
90
+ - README.md
91
+ has_rdoc: true
92
+ homepage: http://github.com/codebrew/backbone-rails
93
+ licenses: []
94
+
95
+ post_install_message:
96
+ rdoc_options: []
97
+
98
+ require_paths:
99
+ - lib
100
+ required_ruby_version: !ruby/object:Gem::Requirement
101
+ none: false
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ hash: 2053251052562520578
106
+ segments:
107
+ - 0
108
+ version: "0"
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
+ none: false
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ hash: 2053251052562520578
115
+ segments:
116
+ - 0
117
+ version: "0"
118
+ requirements: []
119
+
120
+ rubyforge_project:
121
+ rubygems_version: 1.6.2
122
+ signing_key:
123
+ specification_version: 3
124
+ summary: Use backbone.js with rails 3.1
125
+ test_files: []
126
+