attrtastic 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +17 -19
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/doc/Attrtastic.html +31 -45
- data/doc/Attrtastic/Railtie.html +116 -0
- data/doc/Attrtastic/SemanticAttributesBuilder.html +219 -111
- data/doc/Attrtastic/SemanticAttributesHelper.html +33 -18
- data/doc/_index.html +91 -64
- data/doc/class_list.html +21 -10
- data/doc/css/style.css +20 -10
- data/doc/file.README.html +27 -14
- data/doc/file_list.html +20 -9
- data/doc/frames.html +1 -1
- data/doc/index.html +27 -14
- data/doc/js/app.js +17 -14
- data/doc/js/full_list.js +7 -6
- data/doc/js/jquery.js +5 -143
- data/doc/method_list.html +20 -9
- data/doc/top-level-namespace.html +27 -12
- data/lib/attrtastic/semantic_attributes_builder.rb +67 -7
- data/lib/attrtastic/version.rb +1 -1
- data/test/helper.rb +16 -1
- data/test/test_attribute.rb +194 -11
- data/test/test_attributes.rb +10 -8
- data/test/test_attrtastic.rb +4 -4
- metadata +13 -12
data/test/test_attributes.rb
CHANGED
@@ -42,7 +42,7 @@ class TestAttributes < TestCase
|
|
42
42
|
should "show header" do
|
43
43
|
expected = html <<-EOHTML
|
44
44
|
<div class="attributes">
|
45
|
-
<div class="legend">Legend</div>
|
45
|
+
<div class="legend"><span>Legend</span></div>
|
46
46
|
<ol>
|
47
47
|
</ol>
|
48
48
|
</div>
|
@@ -82,7 +82,7 @@ class TestAttributes < TestCase
|
|
82
82
|
should "show header" do
|
83
83
|
expected = html <<-EOHTML
|
84
84
|
<div class="attributes contact">
|
85
|
-
<div class="legend">Contact</div>
|
85
|
+
<div class="legend"><span>Contact</span></div>
|
86
86
|
<ol>
|
87
87
|
<li class="attribute">
|
88
88
|
<span class="label">Full name</span>
|
@@ -124,6 +124,7 @@ class TestAttributes < TestCase
|
|
124
124
|
@blog_builder.attributes :for => :author do |author|
|
125
125
|
|
126
126
|
assert_equal @blog.author, author.record
|
127
|
+
assert_equal @blog.author, author.object
|
127
128
|
|
128
129
|
end
|
129
130
|
end
|
@@ -156,7 +157,7 @@ class TestAttributes < TestCase
|
|
156
157
|
should "show header" do
|
157
158
|
expected = html <<-EOHTML
|
158
159
|
<div class="attributes user">
|
159
|
-
<div class="legend">Author</div>
|
160
|
+
<div class="legend"><span>Author</span></div>
|
160
161
|
<ol>
|
161
162
|
</ol>
|
162
163
|
</div>
|
@@ -190,6 +191,7 @@ class TestAttributes < TestCase
|
|
190
191
|
@blog_builder.attributes :for => @user do |author|
|
191
192
|
|
192
193
|
assert_equal @user, author.record
|
194
|
+
assert_equal @user, author.object
|
193
195
|
|
194
196
|
end
|
195
197
|
end
|
@@ -225,7 +227,7 @@ class TestAttributes < TestCase
|
|
225
227
|
|
226
228
|
expected = html <<-EOHTML
|
227
229
|
<div class="attributes user">
|
228
|
-
<div class="legend">Author</div>
|
230
|
+
<div class="legend"><span>Author</span></div>
|
229
231
|
<ol>
|
230
232
|
</ol>
|
231
233
|
</div>
|
@@ -285,12 +287,12 @@ class TestAttributes < TestCase
|
|
285
287
|
should "show header" do
|
286
288
|
expected = html <<-EOHTML
|
287
289
|
<div class="attributes post">
|
288
|
-
<div class="legend">Post</div>
|
290
|
+
<div class="legend"><span>Post</span></div>
|
289
291
|
<ol>
|
290
292
|
</ol>
|
291
293
|
</div>
|
292
294
|
<div class="attributes post">
|
293
|
-
<div class="legend">Post</div>
|
295
|
+
<div class="legend"><span>Post</span></div>
|
294
296
|
<ol>
|
295
297
|
</ol>
|
296
298
|
</div>
|
@@ -360,12 +362,12 @@ class TestAttributes < TestCase
|
|
360
362
|
should "show header" do
|
361
363
|
expected = html <<-EOHTML
|
362
364
|
<div class="attributes post">
|
363
|
-
<div class="legend">Post</div>
|
365
|
+
<div class="legend"><span>Post</span></div>
|
364
366
|
<ol>
|
365
367
|
</ol>
|
366
368
|
</div>
|
367
369
|
<div class="attributes post">
|
368
|
-
<div class="legend">Post</div>
|
370
|
+
<div class="legend"><span>Post</span></div>
|
369
371
|
<ol>
|
370
372
|
</ol>
|
371
373
|
</div>
|
data/test/test_attrtastic.rb
CHANGED
@@ -12,7 +12,7 @@ class TestAttrtastic < TestCase
|
|
12
12
|
expected = html <<-EOHTML
|
13
13
|
<div class="attrtastic user">
|
14
14
|
<div class="attributes">
|
15
|
-
|
15
|
+
<div class="legend"><span>User</span></div>
|
16
16
|
<ol>
|
17
17
|
<li class="attribute strong">
|
18
18
|
<span class="label">First name</span>
|
@@ -26,7 +26,7 @@ class TestAttrtastic < TestCase
|
|
26
26
|
</div>
|
27
27
|
|
28
28
|
<div class="attributes">
|
29
|
-
<div class="legend">Contact</div>
|
29
|
+
<div class="legend"><span>Contact</span></div>
|
30
30
|
<ol>
|
31
31
|
<li class="attribute">
|
32
32
|
<span class="label">Email</span>
|
@@ -55,7 +55,7 @@ class TestAttrtastic < TestCase
|
|
55
55
|
expected = html <<-EOHTML
|
56
56
|
<div class="attrtastic user">
|
57
57
|
<div class="attributes">
|
58
|
-
<div class="legend">User</div>
|
58
|
+
<div class="legend"><span>User</span></div>
|
59
59
|
<ol>
|
60
60
|
<li class="attribute">
|
61
61
|
<span class="label">First name</span>
|
@@ -69,7 +69,7 @@ class TestAttrtastic < TestCase
|
|
69
69
|
</div>
|
70
70
|
|
71
71
|
<div class="attributes">
|
72
|
-
<div class="legend">Contact</div>
|
72
|
+
<div class="legend"><span>Contact</span></div>
|
73
73
|
<ol>
|
74
74
|
<li class="attribute">
|
75
75
|
<span class="label">Email</span>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attrtastic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-06-
|
12
|
+
date: 2011-06-25 00:00:00.000000000 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: yard
|
17
|
-
requirement: &
|
17
|
+
requirement: &13820520 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 0.6.0
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *13820520
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: bluecloth
|
28
|
-
requirement: &
|
28
|
+
requirement: &13820000 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 2.0.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *13820000
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: shoulda
|
39
|
-
requirement: &
|
39
|
+
requirement: &13819520 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: 2.11.0
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *13819520
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: activesupport
|
50
|
-
requirement: &
|
50
|
+
requirement: &13819040 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: '3.0'
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *13819040
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: actionpack
|
61
|
-
requirement: &
|
61
|
+
requirement: &13818560 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ! '>='
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
version: '3.0'
|
67
67
|
type: :runtime
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *13818560
|
70
70
|
description: Rails view helper for scaffolding show/index pages for objects
|
71
71
|
email:
|
72
72
|
- boruta.miroslaw@gmail.com
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- Rakefile
|
84
84
|
- attrtastic.gemspec
|
85
85
|
- doc/Attrtastic.html
|
86
|
+
- doc/Attrtastic/Railtie.html
|
86
87
|
- doc/Attrtastic/SemanticAttributesBuilder.html
|
87
88
|
- doc/Attrtastic/SemanticAttributesHelper.html
|
88
89
|
- doc/_index.html
|