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 +5 -0
- data/emblem-rails.gemspec +2 -2
- data/lib/emblem/rails/engine.rb +1 -1
- data/lib/emblem/rails/template.rb +6 -2
- data/lib/emblem/rails/version.rb +1 -1
- metadata +8 -8
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
|
data/emblem-rails.gemspec
CHANGED
@@ -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", "
|
20
|
-
gem.add_dependency "ember-rails", ">= 0.
|
19
|
+
gem.add_dependency "barber-emblem", "~> 0.1.1"
|
20
|
+
gem.add_dependency "ember-rails", ">= 0.10.2"
|
21
21
|
end
|
data/lib/emblem/rails/engine.rb
CHANGED
@@ -9,7 +9,7 @@ module Emblem
|
|
9
9
|
|
10
10
|
def evaluate(scope, locals, &block)
|
11
11
|
target = template_target(scope)
|
12
|
-
raw =
|
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
|
data/lib/emblem/rails/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
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
|