showbuilder 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/showbuilder/builders/model_table_row_builder.rb +9 -9
- metadata +14 -15
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ff3623f5940b2e95d2cbadf50fdfd440b5abfc1f
|
4
|
+
data.tar.gz: dea02da12e995175d7cfdca21833e1911e605664
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9ffb629e51e60efa88d0f9381576f38b5ceb9ab97e4038e81cae98b583dc61b95e00c7a8bb020f902cb55efb2227f9952b4fc524bf22701f92f1717a23f9031a
|
7
|
+
data.tar.gz: 3d23b8429f6f78604855572710a78c6b94c85d7da854bf8293b0820c0256e67708acad625a4cf6720e14bff8adbe69e7084b52a593e6ec02bf03cd2637b4a3c3
|
@@ -21,7 +21,7 @@ module Showbuilder
|
|
21
21
|
return show_header_column(methods) if is_header
|
22
22
|
|
23
23
|
content = get_methods_text_value(model, methods)
|
24
|
-
content_tag :td, content
|
24
|
+
content_tag :td, content, :class => 'text'
|
25
25
|
end
|
26
26
|
|
27
27
|
# show_currency_column :price
|
@@ -30,7 +30,7 @@ module Showbuilder
|
|
30
30
|
return show_header_column(methods) if is_header
|
31
31
|
|
32
32
|
content = get_methods_currency_value(model, methods)
|
33
|
-
content_tag :td, content
|
33
|
+
content_tag :td, content, :class => 'currency'
|
34
34
|
end
|
35
35
|
|
36
36
|
# show_percent_column :discount
|
@@ -39,7 +39,7 @@ module Showbuilder
|
|
39
39
|
return show_header_column(methods) if is_header
|
40
40
|
|
41
41
|
content = get_methods_percent_value(model, methods)
|
42
|
-
content_tag :td, content
|
42
|
+
content_tag :td, content, :class => 'percent'
|
43
43
|
end
|
44
44
|
|
45
45
|
# show_time_column :create_at
|
@@ -48,7 +48,7 @@ module Showbuilder
|
|
48
48
|
return show_header_column(methods) if is_header
|
49
49
|
|
50
50
|
content = get_methods_time_value(model, methods)
|
51
|
-
content_tag :td, content
|
51
|
+
content_tag :td, content, :class => 'time'
|
52
52
|
end
|
53
53
|
|
54
54
|
# show_date_column :create_at
|
@@ -57,7 +57,7 @@ module Showbuilder
|
|
57
57
|
return show_header_column(methods) if is_header
|
58
58
|
|
59
59
|
content = get_methods_date_value(model, methods)
|
60
|
-
content_tag :td, content
|
60
|
+
content_tag :td, content, :class => 'date'
|
61
61
|
end
|
62
62
|
|
63
63
|
# show_text_link_column :number
|
@@ -69,7 +69,7 @@ module Showbuilder
|
|
69
69
|
return show_header_column(methods) if is_header
|
70
70
|
|
71
71
|
name = get_methods_text_value(model, methods)
|
72
|
-
content_tag :td do
|
72
|
+
content_tag :td, :class => 'text' do
|
73
73
|
show_column_link name, methods
|
74
74
|
end
|
75
75
|
end
|
@@ -83,7 +83,7 @@ module Showbuilder
|
|
83
83
|
return show_header_column(methods) if is_header
|
84
84
|
|
85
85
|
name = get_methods_date_value(model, methods)
|
86
|
-
content_tag :td do
|
86
|
+
content_tag :td, :class => 'date' do
|
87
87
|
show_column_link name, methods
|
88
88
|
end
|
89
89
|
end
|
@@ -97,7 +97,7 @@ module Showbuilder
|
|
97
97
|
return show_header_column(methods) if is_header
|
98
98
|
|
99
99
|
name = get_methods_time_value(model, methods)
|
100
|
-
content_tag :td do
|
100
|
+
content_tag :td, :class => 'time' do
|
101
101
|
show_column_link name, methods
|
102
102
|
end
|
103
103
|
end
|
@@ -111,7 +111,7 @@ module Showbuilder
|
|
111
111
|
return show_header_column(methods) if is_header
|
112
112
|
|
113
113
|
name = get_methods_currency_value(model, methods)
|
114
|
-
content_tag :td do
|
114
|
+
content_tag :td, :class => 'currency' do
|
115
115
|
show_column_link name, methods
|
116
116
|
end
|
117
117
|
end
|
metadata
CHANGED
@@ -1,57 +1,56 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: showbuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.14
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ery Wang, Mario Du
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-08-13 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
|
-
description: A Rails View Helper.
|
13
|
+
description: A Rails View Helper. Base on Twitter Bootstrap v2.0.4. Fast show model/s
|
14
|
+
as view, form, table.
|
15
15
|
email: ery@baoleihang.com
|
16
16
|
executables: []
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- lib/showbuilder.rb
|
21
|
-
- lib/showbuilder/
|
22
|
-
- lib/showbuilder/show_form.rb
|
21
|
+
- lib/showbuilder/show_model_form.rb
|
23
22
|
- lib/showbuilder/show_paginate_renderer.rb
|
24
23
|
- lib/showbuilder/i18n_text.rb
|
25
|
-
- lib/showbuilder/
|
26
|
-
- lib/showbuilder/
|
24
|
+
- lib/showbuilder/show_form.rb
|
25
|
+
- lib/showbuilder/show_model_view.rb
|
27
26
|
- lib/showbuilder/corekit.rb
|
28
|
-
- lib/showbuilder/builders/
|
29
|
-
- lib/showbuilder/builders/model_form_builder.rb
|
27
|
+
- lib/showbuilder/builders/form_builder.rb
|
30
28
|
- lib/showbuilder/builders/model_view_builder.rb
|
29
|
+
- lib/showbuilder/builders/model_form_builder.rb
|
31
30
|
- lib/showbuilder/builders/template_methods.rb
|
32
|
-
- lib/showbuilder/builders/
|
31
|
+
- lib/showbuilder/builders/model_table_row_builder.rb
|
32
|
+
- lib/showbuilder/show_model_table.rb
|
33
33
|
homepage: https://github.com/ery/showbuilder
|
34
34
|
licenses: []
|
35
|
+
metadata: {}
|
35
36
|
post_install_message:
|
36
37
|
rdoc_options: []
|
37
38
|
require_paths:
|
38
39
|
- lib
|
39
40
|
required_ruby_version: !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
43
43
|
- !ruby/object:Gem::Version
|
44
44
|
version: '0'
|
45
45
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
46
|
-
none: false
|
47
46
|
requirements:
|
48
47
|
- - ! '>='
|
49
48
|
- !ruby/object:Gem::Version
|
50
49
|
version: '0'
|
51
50
|
requirements: []
|
52
51
|
rubyforge_project:
|
53
|
-
rubygems_version:
|
52
|
+
rubygems_version: 2.0.6
|
54
53
|
signing_key:
|
55
|
-
specification_version:
|
54
|
+
specification_version: 4
|
56
55
|
summary: A Rails View Helper.
|
57
56
|
test_files: []
|