discourse-ember-rails 0.18.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +19 -0
  3. data/README.md +341 -0
  4. data/lib/ember-rails.rb +1 -0
  5. data/lib/ember/rails/engine.rb +25 -0
  6. data/lib/ember/rails/version.rb +5 -0
  7. data/lib/ember_rails.rb +96 -0
  8. data/lib/generators/ember/adapter_generator.rb +21 -0
  9. data/lib/generators/ember/bootstrap_generator.rb +76 -0
  10. data/lib/generators/ember/component_generator.rb +28 -0
  11. data/lib/generators/ember/controller_generator.rb +34 -0
  12. data/lib/generators/ember/generator_helpers.rb +58 -0
  13. data/lib/generators/ember/initializer_generator.rb +23 -0
  14. data/lib/generators/ember/install_generator.rb +194 -0
  15. data/lib/generators/ember/instance_initializer_generator.rb +23 -0
  16. data/lib/generators/ember/model_generator.rb +48 -0
  17. data/lib/generators/ember/resource_generator.rb +29 -0
  18. data/lib/generators/ember/resource_override.rb +38 -0
  19. data/lib/generators/ember/route_generator.rb +21 -0
  20. data/lib/generators/ember/service_generator.rb +23 -0
  21. data/lib/generators/ember/template_generator.rb +23 -0
  22. data/lib/generators/ember/view_generator.rb +24 -0
  23. data/lib/generators/templates/adapter.js +5 -0
  24. data/lib/generators/templates/adapter.js.coffee +5 -0
  25. data/lib/generators/templates/adapter.js.em +3 -0
  26. data/lib/generators/templates/app.js +11 -0
  27. data/lib/generators/templates/app.js.coffee +11 -0
  28. data/lib/generators/templates/app.js.em +11 -0
  29. data/lib/generators/templates/application.hbs +3 -0
  30. data/lib/generators/templates/application.js +11 -0
  31. data/lib/generators/templates/application.js.coffee +11 -0
  32. data/lib/generators/templates/application.js.em +10 -0
  33. data/lib/generators/templates/application_adapter.js +5 -0
  34. data/lib/generators/templates/application_adapter.js.coffee +5 -0
  35. data/lib/generators/templates/application_adapter.js.em +3 -0
  36. data/lib/generators/templates/array_controller.js +5 -0
  37. data/lib/generators/templates/array_controller.js.coffee +5 -0
  38. data/lib/generators/templates/array_controller.js.em +3 -0
  39. data/lib/generators/templates/component.js +4 -0
  40. data/lib/generators/templates/component.js.coffee +6 -0
  41. data/lib/generators/templates/component.js.em +6 -0
  42. data/lib/generators/templates/component.template.hbs +2 -0
  43. data/lib/generators/templates/controller.js +5 -0
  44. data/lib/generators/templates/controller.js.coffee +6 -0
  45. data/lib/generators/templates/controller.js.em +3 -0
  46. data/lib/generators/templates/model.js +13 -0
  47. data/lib/generators/templates/model.js.coffee +12 -0
  48. data/lib/generators/templates/model.js.em +12 -0
  49. data/lib/generators/templates/object_controller.js +5 -0
  50. data/lib/generators/templates/object_controller.js.coffee +5 -0
  51. data/lib/generators/templates/object_controller.js.em +3 -0
  52. data/lib/generators/templates/route.js +5 -0
  53. data/lib/generators/templates/route.js.coffee +5 -0
  54. data/lib/generators/templates/route.js.em +3 -0
  55. data/lib/generators/templates/router.js +5 -0
  56. data/lib/generators/templates/router.js.coffee +5 -0
  57. data/lib/generators/templates/router.js.em +5 -0
  58. data/lib/generators/templates/template.hbs +5 -0
  59. data/lib/generators/templates/view.js +5 -0
  60. data/lib/generators/templates/view.js.coffee +4 -0
  61. data/lib/generators/templates/view.js.em +4 -0
  62. metadata +329 -0
@@ -0,0 +1,5 @@
1
+ # for more details see: http://emberjs.com/guides/controllers/
2
+
3
+ <%= application_name.camelize %>.<%= class_name %>Controller = Ember.Controller.extend({
4
+
5
+ })
@@ -0,0 +1,3 @@
1
+ # for more details see: http://emberjs.com/guides/controllers/
2
+
3
+ class <%= application_name.camelize %>.<%= class_name %>Controller extends Ember.Controller
@@ -0,0 +1,5 @@
1
+ // For more information see: http://emberjs.com/guides/routing/
2
+
3
+ <%= application_name.camelize %>.<%= class_name.camelize %>Route = Ember.Route.extend({
4
+
5
+ });
@@ -0,0 +1,5 @@
1
+ # For more information see: http://emberjs.com/guides/routing/
2
+
3
+ <%= application_name.camelize %>.<%= class_name.camelize %>Route = Ember.Route.extend({
4
+
5
+ })
@@ -0,0 +1,3 @@
1
+ # For more information see: http://emberjs.com/guides/routing/
2
+
3
+ class <%= application_name.camelize %>.<%= class_name.camelize %>Route extends Ember.Route
@@ -0,0 +1,5 @@
1
+ // For more information see: http://emberjs.com/guides/routing/
2
+
3
+ <%= application_name.camelize %>.Router.map(function() {
4
+ // this.resource('posts');
5
+ });
@@ -0,0 +1,5 @@
1
+ # For more information see: http://emberjs.com/guides/routing/
2
+
3
+ <%= application_name.camelize %>.Router.map ()->
4
+ # @resource('posts')
5
+
@@ -0,0 +1,5 @@
1
+ # For more information see: http://emberjs.com/guides/routing/
2
+
3
+ <%= application_name.camelize %>.Router.map ->
4
+ # @resource('posts')
5
+
@@ -0,0 +1,5 @@
1
+ <h1><%= class_name %></h1>
2
+
3
+ <p>Your content here.</p>
4
+
5
+ {{outlet}}
@@ -0,0 +1,5 @@
1
+ // for more details see: http://emberjs.com/guides/views/
2
+
3
+ <%= application_name.camelize %>.<%= class_name.camelize %>View = Ember.View.extend({
4
+ templateName: '<%= handlebars_template_path %>'
5
+ });
@@ -0,0 +1,4 @@
1
+ # for more details see: http://emberjs.com/guides/views/
2
+
3
+ <%= application_name.camelize %>.<%= class_name.camelize %>View = Ember.View.extend
4
+ templateName: '<%= handlebars_template_path %>'
@@ -0,0 +1,4 @@
1
+ # for more details see: http://emberjs.com/guides/views/
2
+
3
+ class <%= application_name.camelize %>.<%= class_name.camelize %>View extends Ember.View
4
+ templateName: '<%= handlebars_template_path %>'
metadata ADDED
@@ -0,0 +1,329 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: discourse-ember-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.18.6
5
+ platform: ruby
6
+ authors:
7
+ - Keith Pitt
8
+ - Rob Monie
9
+ - Joao Carlos
10
+ - Paul Chavard
11
+ autorequire:
12
+ bindir: bin
13
+ cert_chain: []
14
+ date: 2020-09-04 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: railties
18
+ requirement: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: '3.1'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
30
+ - !ruby/object:Gem::Dependency
31
+ name: active_model_serializers
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ - !ruby/object:Gem::Dependency
45
+ name: jquery-rails
46
+ requirement: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 1.0.17
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: 1.0.17
58
+ - !ruby/object:Gem::Dependency
59
+ name: ember-source
60
+ requirement: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 1.1.0
65
+ type: :runtime
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: 1.1.0
72
+ - !ruby/object:Gem::Dependency
73
+ name: ember-data-source
74
+ requirement: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: 1.0.0.beta.5
79
+ type: :runtime
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: 1.0.0.beta.5
86
+ - !ruby/object:Gem::Dependency
87
+ name: ember-handlebars-template
88
+ requirement: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: 0.1.1
93
+ - - "<"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.0'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 0.1.1
103
+ - - "<"
104
+ - !ruby/object:Gem::Version
105
+ version: '1.0'
106
+ - !ruby/object:Gem::Dependency
107
+ name: bundler
108
+ requirement: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 1.2.2
113
+ type: :development
114
+ prerelease: false
115
+ version_requirements: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: 1.2.2
120
+ - !ruby/object:Gem::Dependency
121
+ name: appraisal
122
+ requirement: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: 1.0.0
127
+ type: :development
128
+ prerelease: false
129
+ version_requirements: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: 1.0.0
134
+ - !ruby/object:Gem::Dependency
135
+ name: tzinfo
136
+ requirement: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ type: :development
142
+ prerelease: false
143
+ version_requirements: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ - !ruby/object:Gem::Dependency
149
+ name: vcr
150
+ requirement: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ type: :development
156
+ prerelease: false
157
+ version_requirements: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ version: '0'
162
+ - !ruby/object:Gem::Dependency
163
+ name: webmock
164
+ requirement: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - "<"
167
+ - !ruby/object:Gem::Version
168
+ version: 1.14.0
169
+ type: :development
170
+ prerelease: false
171
+ version_requirements: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - "<"
174
+ - !ruby/object:Gem::Version
175
+ version: 1.14.0
176
+ - !ruby/object:Gem::Dependency
177
+ name: sprockets-rails
178
+ requirement: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ version: '0'
183
+ type: :development
184
+ prerelease: false
185
+ version_requirements: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ - !ruby/object:Gem::Dependency
191
+ name: handlebars-source
192
+ requirement: !ruby/object:Gem::Requirement
193
+ requirements:
194
+ - - ">"
195
+ - !ruby/object:Gem::Version
196
+ version: 1.0.0
197
+ - - "<"
198
+ - !ruby/object:Gem::Version
199
+ version: '3'
200
+ type: :development
201
+ prerelease: false
202
+ version_requirements: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - ">"
205
+ - !ruby/object:Gem::Version
206
+ version: 1.0.0
207
+ - - "<"
208
+ - !ruby/object:Gem::Version
209
+ version: '3'
210
+ - !ruby/object:Gem::Dependency
211
+ name: test-unit
212
+ requirement: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ version: '0'
217
+ type: :development
218
+ prerelease: false
219
+ version_requirements: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - ">="
222
+ - !ruby/object:Gem::Version
223
+ version: '0'
224
+ - !ruby/object:Gem::Dependency
225
+ name: safe_yaml
226
+ requirement: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - ">="
229
+ - !ruby/object:Gem::Version
230
+ version: 1.0.4
231
+ type: :development
232
+ prerelease: false
233
+ version_requirements: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ">="
236
+ - !ruby/object:Gem::Version
237
+ version: 1.0.4
238
+ description:
239
+ email:
240
+ - me@keithpitt.com
241
+ - paul@chavard.net
242
+ executables: []
243
+ extensions: []
244
+ extra_rdoc_files: []
245
+ files:
246
+ - LICENSE
247
+ - README.md
248
+ - lib/ember-rails.rb
249
+ - lib/ember/rails/engine.rb
250
+ - lib/ember/rails/version.rb
251
+ - lib/ember_rails.rb
252
+ - lib/generators/ember/adapter_generator.rb
253
+ - lib/generators/ember/bootstrap_generator.rb
254
+ - lib/generators/ember/component_generator.rb
255
+ - lib/generators/ember/controller_generator.rb
256
+ - lib/generators/ember/generator_helpers.rb
257
+ - lib/generators/ember/initializer_generator.rb
258
+ - lib/generators/ember/install_generator.rb
259
+ - lib/generators/ember/instance_initializer_generator.rb
260
+ - lib/generators/ember/model_generator.rb
261
+ - lib/generators/ember/resource_generator.rb
262
+ - lib/generators/ember/resource_override.rb
263
+ - lib/generators/ember/route_generator.rb
264
+ - lib/generators/ember/service_generator.rb
265
+ - lib/generators/ember/template_generator.rb
266
+ - lib/generators/ember/view_generator.rb
267
+ - lib/generators/templates/adapter.js
268
+ - lib/generators/templates/adapter.js.coffee
269
+ - lib/generators/templates/adapter.js.em
270
+ - lib/generators/templates/app.js
271
+ - lib/generators/templates/app.js.coffee
272
+ - lib/generators/templates/app.js.em
273
+ - lib/generators/templates/application.hbs
274
+ - lib/generators/templates/application.js
275
+ - lib/generators/templates/application.js.coffee
276
+ - lib/generators/templates/application.js.em
277
+ - lib/generators/templates/application_adapter.js
278
+ - lib/generators/templates/application_adapter.js.coffee
279
+ - lib/generators/templates/application_adapter.js.em
280
+ - lib/generators/templates/array_controller.js
281
+ - lib/generators/templates/array_controller.js.coffee
282
+ - lib/generators/templates/array_controller.js.em
283
+ - lib/generators/templates/component.js
284
+ - lib/generators/templates/component.js.coffee
285
+ - lib/generators/templates/component.js.em
286
+ - lib/generators/templates/component.template.hbs
287
+ - lib/generators/templates/controller.js
288
+ - lib/generators/templates/controller.js.coffee
289
+ - lib/generators/templates/controller.js.em
290
+ - lib/generators/templates/model.js
291
+ - lib/generators/templates/model.js.coffee
292
+ - lib/generators/templates/model.js.em
293
+ - lib/generators/templates/object_controller.js
294
+ - lib/generators/templates/object_controller.js.coffee
295
+ - lib/generators/templates/object_controller.js.em
296
+ - lib/generators/templates/route.js
297
+ - lib/generators/templates/route.js.coffee
298
+ - lib/generators/templates/route.js.em
299
+ - lib/generators/templates/router.js
300
+ - lib/generators/templates/router.js.coffee
301
+ - lib/generators/templates/router.js.em
302
+ - lib/generators/templates/template.hbs
303
+ - lib/generators/templates/view.js
304
+ - lib/generators/templates/view.js.coffee
305
+ - lib/generators/templates/view.js.em
306
+ homepage: https://github.com/emberjs/ember-rails
307
+ licenses:
308
+ - MIT
309
+ metadata: {}
310
+ post_install_message:
311
+ rdoc_options: []
312
+ require_paths:
313
+ - lib
314
+ required_ruby_version: !ruby/object:Gem::Requirement
315
+ requirements:
316
+ - - ">="
317
+ - !ruby/object:Gem::Version
318
+ version: '0'
319
+ required_rubygems_version: !ruby/object:Gem::Requirement
320
+ requirements:
321
+ - - ">="
322
+ - !ruby/object:Gem::Version
323
+ version: '0'
324
+ requirements: []
325
+ rubygems_version: 3.1.2
326
+ signing_key:
327
+ specification_version: 4
328
+ summary: Ember for Rails 3.1+
329
+ test_files: []