ember-rails 0.2.4 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,21 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Keith Pitt
9
9
  - Rob Monie
10
10
  - Joao Carlos
11
+ - Paul Chavard
11
12
  autorequire:
12
13
  bindir: bin
13
14
  cert_chain: []
14
- date: 2012-01-26 00:00:00.000000000 Z
15
+ date: 2012-04-19 00:00:00.000000000 Z
15
16
  dependencies:
16
17
  - !ruby/object:Gem::Dependency
17
18
  name: execjs
18
- requirement: &70132059842260 !ruby/object:Gem::Requirement
19
+ requirement: &70157492866740 !ruby/object:Gem::Requirement
19
20
  none: false
20
21
  requirements:
21
22
  - - ! '>='
@@ -23,44 +24,63 @@ dependencies:
23
24
  version: '1.2'
24
25
  type: :runtime
25
26
  prerelease: false
26
- version_requirements: *70132059842260
27
+ version_requirements: *70157492866740
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: railties
29
- requirement: &70132059839920 !ruby/object:Gem::Requirement
30
+ requirement: &70157492866220 !ruby/object:Gem::Requirement
30
31
  none: false
31
32
  requirements:
32
- - - ! '>='
33
+ - - ~>
33
34
  - !ruby/object:Gem::Version
34
- version: '3.0'
35
+ version: '3.1'
35
36
  type: :runtime
36
37
  prerelease: false
37
- version_requirements: *70132059839920
38
+ version_requirements: *70157492866220
38
39
  - !ruby/object:Gem::Dependency
39
40
  name: rails
40
- requirement: &70132059839140 !ruby/object:Gem::Requirement
41
+ requirement: &70157492865740 !ruby/object:Gem::Requirement
41
42
  none: false
42
43
  requirements:
43
- - - ! '>='
44
+ - - ~>
44
45
  - !ruby/object:Gem::Version
45
- version: '3.0'
46
+ version: '3.1'
46
47
  type: :development
47
48
  prerelease: false
48
- version_requirements: *70132059839140
49
+ version_requirements: *70157492865740
49
50
  description:
50
51
  email:
51
52
  - me@keithpitt.com
53
+ - paul@chavard.net
52
54
  executables: []
53
55
  extensions: []
54
56
  extra_rdoc_files: []
55
57
  files:
56
58
  - README.md
57
- - lib/ember-rails/hjs_template.rb
58
- - lib/ember-rails/version.rb
59
+ - lib/ember/filters/haml.rb
60
+ - lib/ember/filters/slim.rb
61
+ - lib/ember/handlebars/assets/ember-precompiler.js
62
+ - lib/ember/handlebars/source.rb
63
+ - lib/ember/handlebars/template.rb
64
+ - lib/ember/handlebars/version.rb
65
+ - lib/ember/rails/engine.rb
66
+ - lib/ember/rails/version.rb
67
+ - lib/ember/version.rb
59
68
  - lib/ember-rails.rb
69
+ - lib/ember_rails.rb
70
+ - lib/generators/ember/bootstrap_generator.rb
71
+ - lib/generators/ember/controller_generator.rb
72
+ - lib/generators/ember/generator_helpers.rb
73
+ - lib/generators/ember/install_generator.rb
74
+ - lib/generators/ember/model_generator.rb
75
+ - lib/generators/templates/app.js
76
+ - lib/generators/templates/array_controller.js
77
+ - lib/generators/templates/controller.js
78
+ - lib/generators/templates/model.js
60
79
  - vendor/assets/javascripts/ember-dev.js
61
- - vendor/assets/javascripts/ember-precompiler.js
80
+ - vendor/assets/javascripts/ember-runtime-dev.js
81
+ - vendor/assets/javascripts/ember-runtime.js
62
82
  - vendor/assets/javascripts/ember.js
63
- homepage: https://github.com/keithpitt/ember-rails
83
+ homepage: https://github.com/emberjs/ember-rails
64
84
  licenses: []
65
85
  post_install_message:
66
86
  rdoc_options: []
@@ -74,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
94
  version: '0'
75
95
  segments:
76
96
  - 0
77
- hash: -3093858940708555992
97
+ hash: 248381783363684182
78
98
  required_rubygems_version: !ruby/object:Gem::Requirement
79
99
  none: false
80
100
  requirements:
@@ -83,11 +103,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
103
  version: '0'
84
104
  segments:
85
105
  - 0
86
- hash: -3093858940708555992
106
+ hash: 248381783363684182
87
107
  requirements: []
88
108
  rubyforge_project:
89
- rubygems_version: 1.8.10
109
+ rubygems_version: 1.8.11
90
110
  signing_key:
91
111
  specification_version: 3
92
- summary: Ember for Rails 3.1
112
+ summary: Ember for Rails 3.1+
93
113
  test_files: []
@@ -1,44 +0,0 @@
1
- require 'tilt/template'
2
- require "execjs"
3
-
4
- module EmberRails
5
-
6
- # = Sprockets engine for HandlebarsJS templates
7
- class HjsTemplate < Tilt::Template
8
-
9
- def self.default_mime_type
10
- 'application/javascript'
11
- end
12
-
13
- def initialize_engine
14
- end
15
-
16
- def prepare
17
- end
18
-
19
- # Generates Javascript code from a HandlebarsJS template.
20
- # The Ember template name is derived from the lowercase logical asset path
21
- # by replacing non-alphanum characheters by underscores.
22
- def evaluate(scope, locals, &block)
23
- "Ember.TEMPLATES[\"#{scope.logical_path}\"] = Handlebars.template(#{precompile(data)});\n"
24
- end
25
-
26
- private
27
-
28
- def precompile(template)
29
- runtime.call("EmberRails.precompile", template)
30
- end
31
-
32
- def runtime
33
- Thread.current[:hjs_runtime] ||= ExecJS.compile(ember)
34
- end
35
-
36
- def ember
37
- [ "ember-precompiler.js", "ember.js" ].map do |name|
38
- File.read(File.expand_path(File.join(__FILE__, "..", "..", "..", "vendor/assets/javascripts/#{name}")))
39
- end.join("\n")
40
- end
41
-
42
- end
43
-
44
- end
@@ -1,3 +0,0 @@
1
- module EmberRails
2
- VERSION = "0.2.4"
3
- end