ember-middleman 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5412a2bdb09ac3b5c4105d7e03b34ccf062d0a4
4
- data.tar.gz: 98aa32e4e3bcefc86b5e2576df9dca79f27b02be
3
+ metadata.gz: 9656340e41e3c0ab228600296263977e05833ba8
4
+ data.tar.gz: 13faa7e3c56f597e9b58e44358d09bd6c97e9212
5
5
  SHA512:
6
- metadata.gz: ca0c375fbf8b703914377944cb284f6338c2b7149fd27ff651ce0f3f534416f7ebf08e87c758cbe4d035406f2e3b80ccc88f87a502c99a431c7d4a6a6e18b306
7
- data.tar.gz: 80c039d0c23e957ed4ed8268fd95e34f7798215223c22e87d2440d5aa6ba87c52c00ff892bab01ce1b0546bcadfe7f91c4f041610add7439dd58a0703276e358
6
+ metadata.gz: 06b03a7f985052c5231eceea9e843a53373ee9b7feee09a0ce23b1f0d76a63c14213c6b3f178f3ce5fab91a614c990a1d7a13b9e019080180a72a3588b43da46
7
+ data.tar.gz: 7d5b0aab24bda8fd3b576bc9a296af20cdbb08138ac1e9d1d9a278b037fe531419e34240199398260d0c07f041827d09216c5cf7106a709dddddfd087a3db0ea
@@ -1,5 +1,11 @@
1
1
  language: ruby
2
+ sudo: false
2
3
  rvm:
3
4
  - 2.0.0
4
5
  - 2.1
5
6
  - 2.2
7
+ env:
8
+ matrix:
9
+ - EMBER_VERSION="~> 1.8.0"
10
+ - EMBER_VERSION="~> 1.9.0"
11
+ - EMBER_VERSION="~> 1.10.0"
@@ -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
@@ -1,3 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ if ENV['EMBER_VERSION']
6
+ gem 'ember-source', ENV['EMBER_VERSION']
7
+ end
data/README.md CHANGED
@@ -63,7 +63,7 @@ And put your template.
63
63
 
64
64
  For example:
65
65
 
66
- * `source/javascripts/templates/ok_button.js.hbs`
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['ok_button']`.
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
 
@@ -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', '>= 1.10.0'
23
- spec.add_dependency 'ember-data-source', '>= 1.0.0.beta.15'
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["ok_button"]'
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/ok_button.js"
10
- Then I should see 'Ember.TEMPLATES["ok_button"]'
9
+ When I go to "/javascripts/templates/ok-button.js"
10
+ Then I should see 'Ember.TEMPLATES["ok-button"]'
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Ember
2
2
  module Middleman
3
- VERSION = '0.0.13'
3
+ VERSION = '0.0.14'
4
4
  end
5
5
  end
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.13
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: 1.10.0
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: 1.10.0
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.15
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.15
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/ok_button.js.handlebars
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