ember-middleman 0.0.13 → 0.0.14
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.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +4 -0
- data/README.md +2 -2
- data/ember-middleman.gemspec +2 -2
- data/features/handlebars_compilation.feature +3 -3
- data/fixtures/handlebars-compilation/source/javascripts/templates/{ok_button.js.handlebars → ok-button.js.handlebars} +0 -0
- data/lib/ember/middleman/extension.rb +6 -0
- data/lib/ember/middleman/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9656340e41e3c0ab228600296263977e05833ba8
|
4
|
+
data.tar.gz: 13faa7e3c56f597e9b58e44358d09bd6c97e9212
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06b03a7f985052c5231eceea9e843a53373ee9b7feee09a0ce23b1f0d76a63c14213c6b3f178f3ce5fab91a614c990a1d7a13b9e019080180a72a3588b43da46
|
7
|
+
data.tar.gz: 7d5b0aab24bda8fd3b576bc9a296af20cdbb08138ac1e9d1d9a278b037fe531419e34240199398260d0c07f041827d09216c5cf7106a709dddddfd087a3db0ea
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Ember::Middleman Changelog
|
2
2
|
|
3
|
+
## [v0.0.14](https://github.com/tricknotes/ember-middleman/tree/v0.0.14)
|
4
|
+
|
5
|
+
* Ember < 1.10.0 support is back (handlebars related features are optional)
|
6
|
+
|
3
7
|
## [v0.0.13](https://github.com/tricknotes/ember-middleman/tree/v0.0.13)
|
4
8
|
|
5
9
|
* Drop Ember < 1.10.0 support (It depends on handlebars-source)
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -63,7 +63,7 @@ And put your template.
|
|
63
63
|
|
64
64
|
For example:
|
65
65
|
|
66
|
-
* `source/javascripts/templates/
|
66
|
+
* `source/javascripts/templates/ok-button.js.hbs`
|
67
67
|
|
68
68
|
``` hbs
|
69
69
|
<div>
|
@@ -71,7 +71,7 @@ For example:
|
|
71
71
|
</div>
|
72
72
|
```
|
73
73
|
|
74
|
-
It automatically set as `Ember.TEMPLATES['
|
74
|
+
It automatically set as `Ember.TEMPLATES['ok-button']`.
|
75
75
|
|
76
76
|
**Without precompilation, `ember-template-compiler.js` is required for client side compilation.**
|
77
77
|
|
data/ember-middleman.gemspec
CHANGED
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
21
|
spec.add_dependency 'barber', '~> 0.7.0'
|
22
|
-
spec.add_dependency 'ember-source'
|
23
|
-
spec.add_dependency 'ember-data-source', '>= 1.0.0.beta.
|
22
|
+
spec.add_dependency 'ember-source'
|
23
|
+
spec.add_dependency 'ember-data-source', '>= 1.0.0.beta.8'
|
24
24
|
spec.add_dependency 'sass'
|
25
25
|
spec.add_dependency 'middleman', ['~> 3.0']
|
26
26
|
spec.add_dependency 'middleman-sprockets', ['~> 3.0']
|
@@ -2,9 +2,9 @@ Feature: Handlebars compilation
|
|
2
2
|
Scenario: Tempalte writen by HTMLBars
|
3
3
|
Given the Server is running at "handlebars-compilation"
|
4
4
|
When I go to "/javascripts/templates.js"
|
5
|
-
Then I should see 'Ember.TEMPLATES["
|
5
|
+
Then I should see 'Ember.TEMPLATES["ok-button"]'
|
6
6
|
|
7
7
|
Scenario: Access template as JS file
|
8
8
|
Given the Server is running at "handlebars-compilation"
|
9
|
-
When I go to "/javascripts/templates/
|
10
|
-
Then I should see 'Ember.TEMPLATES["
|
9
|
+
When I go to "/javascripts/templates/ok-button.js"
|
10
|
+
Then I should see 'Ember.TEMPLATES["ok-button"]'
|
File without changes
|
@@ -5,6 +5,12 @@ require 'ember/middleman/handlebars/template'
|
|
5
5
|
require 'ember/source'
|
6
6
|
require 'ember/data/source'
|
7
7
|
|
8
|
+
begin
|
9
|
+
require 'handlebars/source'
|
10
|
+
rescue LoadError => e
|
11
|
+
raise e unless e.message == 'cannot load such file -- handlebars/source'
|
12
|
+
end
|
13
|
+
|
8
14
|
module Ember
|
9
15
|
module Middleman
|
10
16
|
module Extension
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember-middleman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryunosuke SATO
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: ember-data-source
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.0.0.beta.
|
47
|
+
version: 1.0.0.beta.8
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.0.0.beta.
|
54
|
+
version: 1.0.0.beta.8
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sass
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,7 +171,7 @@ files:
|
|
171
171
|
- features/support/env.rb
|
172
172
|
- fixtures/handlebars-compilation/config.rb
|
173
173
|
- fixtures/handlebars-compilation/source/javascripts/templates.js
|
174
|
-
- fixtures/handlebars-compilation/source/javascripts/templates/
|
174
|
+
- fixtures/handlebars-compilation/source/javascripts/templates/ok-button.js.handlebars
|
175
175
|
- fixtures/path-to-libraries/config.rb
|
176
176
|
- fixtures/path-to-libraries/source/index.erb
|
177
177
|
- fixtures/path-to-libraries/source/javascripts/application.js
|