fira 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -1
- data/fira.gemspec +1 -1
- data/lib/fira/version.rb +1 -1
- data/spec/fira_spec.rb +5 -0
- data/spec/spec_helper.rb +12 -0
- metadata +3 -3
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
##Description
|
4
4
|
|
5
|
-
Fira adds ease-of-use functionality to HTML files.
|
5
|
+
Fira adds ease-of-use functionality to HTML files.
|
6
6
|
|
7
7
|
Instead of typing `id="foo"` or `class="foo bar"`, you can simply type `#foo` or `.foo .bar` in HTML tags (in the normal place where you put id or class attributes)
|
8
8
|
|
@@ -44,6 +44,14 @@ becomes
|
|
44
44
|
|
45
45
|
<div class='multiple classes' >
|
46
46
|
|
47
|
+
###Data- attributes
|
48
|
+
|
49
|
+
<div $city="Provo">
|
50
|
+
|
51
|
+
becomes
|
52
|
+
|
53
|
+
<div data-city="Provo">
|
54
|
+
|
47
55
|
## Contributing
|
48
56
|
|
49
57
|
1. Fork it
|
data/fira.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.email = ["cameronsutter0@gmail.com"]
|
11
11
|
gem.description = %q{Adds improvements to HTML syntax for id and class attributes}
|
12
12
|
gem.summary = %q{Smarter HTML}
|
13
|
-
gem.homepage = "
|
13
|
+
gem.homepage = "http://cameronsutter.github.io/fira"
|
14
14
|
|
15
15
|
gem.add_dependency "activesupport", [">= 3.1", "< 4.1"]
|
16
16
|
gem.add_dependency "actionpack", [">= 3.1", "< 4.1"]
|
data/lib/fira/version.rb
CHANGED
data/spec/fira_spec.rb
CHANGED
@@ -48,6 +48,11 @@ describe Fira do
|
|
48
48
|
result = Fira.render data_attribute_simple
|
49
49
|
result.should == res_data_attribute_simple
|
50
50
|
end
|
51
|
+
|
52
|
+
it 'multiple data tags' do
|
53
|
+
result = Fira.render data_attribute_multiple
|
54
|
+
result.should == res_data_attribute_multiple
|
55
|
+
end
|
51
56
|
end
|
52
57
|
end
|
53
58
|
|
data/spec/spec_helper.rb
CHANGED
@@ -192,4 +192,16 @@ def res_data_attribute_simple
|
|
192
192
|
<<-FIRA
|
193
193
|
<span data-convo-id="72"></span>
|
194
194
|
FIRA
|
195
|
+
end
|
196
|
+
|
197
|
+
def data_attribute_multiple
|
198
|
+
<<-FIRA
|
199
|
+
<span $convo-id="72" $city="Provo" ></span>
|
200
|
+
FIRA
|
201
|
+
end
|
202
|
+
|
203
|
+
def res_data_attribute_multiple
|
204
|
+
<<-FIRA
|
205
|
+
<span data-convo-id="72" data-city="Provo"></span>
|
206
|
+
FIRA
|
195
207
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fira
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -126,7 +126,7 @@ files:
|
|
126
126
|
- lib/generators/fira/scaffold/templates/show.html.fira
|
127
127
|
- spec/fira_spec.rb
|
128
128
|
- spec/spec_helper.rb
|
129
|
-
homepage:
|
129
|
+
homepage: http://cameronsutter.github.io/fira
|
130
130
|
licenses: []
|
131
131
|
post_install_message:
|
132
132
|
rdoc_options: []
|