emblem-rails 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -9,6 +9,11 @@ Add `gem 'emblem-rails'` to your application's Gemfile after `ember-rails`:
9
9
  gem 'ember-rails'
10
10
  gem 'emblem-rails'
11
11
 
12
+ If you are running Ember v.1.rc, which depends on Handlebars rc.3, you
13
+ must (for now) specify the following:
14
+
15
+ gem 'barber-emblem', github: 'machty/barber-emblem'
16
+
12
17
  And then execute:
13
18
 
14
19
  $ bundle
@@ -16,6 +16,6 @@ Gem::Specification.new do |gem|
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
- gem.add_dependency "barber-emblem", ">= 0.0.4"
20
- gem.add_dependency "ember-rails", ">= 0.9.2"
19
+ gem.add_dependency "barber-emblem", "~> 0.1.1"
20
+ gem.add_dependency "ember-rails", ">= 0.10.2"
21
21
  end
@@ -13,4 +13,4 @@ module Emblem
13
13
  end
14
14
  end
15
15
  end
16
- end
16
+ end
@@ -9,7 +9,7 @@ module Emblem
9
9
 
10
10
  def evaluate(scope, locals, &block)
11
11
  target = template_target(scope)
12
- raw = handlebars?(scope)
12
+ raw = raw?(scope)
13
13
 
14
14
  template = data
15
15
 
@@ -32,6 +32,10 @@ module Emblem
32
32
 
33
33
  private
34
34
 
35
+ def raw?(scope)
36
+ scope.pathname.to_s =~ /\.raw\.(emblem)/
37
+ end
38
+
35
39
  def compile_emblem(string)
36
40
  "Handlebars.compile(#{indent(string).inspect});"
37
41
  end
@@ -49,4 +53,4 @@ module Emblem
49
53
  end
50
54
  end
51
55
  end
52
- end
56
+ end
@@ -1,5 +1,5 @@
1
1
  module Emblem
2
2
  module Rails
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emblem-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,24 +10,24 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-17 00:00:00.000000000 Z
13
+ date: 2013-02-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: barber-emblem
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
- - - ! '>='
20
+ - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 0.0.4
22
+ version: 0.1.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  none: false
27
27
  requirements:
28
- - - ! '>='
28
+ - - ~>
29
29
  - !ruby/object:Gem::Version
30
- version: 0.0.4
30
+ version: 0.1.1
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: ember-rails
33
33
  requirement: !ruby/object:Gem::Requirement
@@ -35,7 +35,7 @@ dependencies:
35
35
  requirements:
36
36
  - - ! '>='
37
37
  - !ruby/object:Gem::Version
38
- version: 0.9.2
38
+ version: 0.10.2
39
39
  type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ! '>='
45
45
  - !ruby/object:Gem::Version
46
- version: 0.9.2
46
+ version: 0.10.2
47
47
  description: Use emblem.js with ember-rails - see https://github.com/machty/emblem.js
48
48
  email:
49
49
  - alex@alexspeller.com