effective_style_guide 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 186f5c846e670aea8044e9e31d7461ad3278bc1e
|
4
|
+
data.tar.gz: ffa1f3c3c076fa717007eec28fc91afbad37ccd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a1f4106ef9e925f7effc172d2f74c0edbd4db66c6b526f65922b72d2960b1080c5a20edba8df7a196bf8d50f33ebff6b3df4246dea310c1b79172052240f388
|
7
|
+
data.tar.gz: d72442e1f9f54bafa7547cd611ca107db06da3bb111d35dc276230e4c663a942e4a0b09dd28bbd413507ab5f72380b9aad9a717c96d0e8c35fe9c2c0c72315e4
|
data/README.md
CHANGED
@@ -162,9 +162,6 @@ end
|
|
162
162
|
|
163
163
|
MIT License. Copyright [Code and Effect Inc.](http://www.codeandeffect.com/)
|
164
164
|
|
165
|
-
Code and Effect is the product arm of [AgileStyle](http://www.agilestyle.com/), an Edmonton-based shop that specializes in building custom web applications with Ruby on Rails.
|
166
|
-
|
167
|
-
|
168
165
|
## Testing
|
169
166
|
|
170
167
|
The test suite for this gem is unfortunately not yet complete.
|
@@ -0,0 +1,45 @@
|
|
1
|
+
if defined?(EffectiveDatatables) && Gem::Version.new(EffectiveDatatables::VERSION) >= Gem::Version.new('3.0')
|
2
|
+
class EffectiveStyleGuideDatatable < Effective::Datatable
|
3
|
+
|
4
|
+
datatable do
|
5
|
+
col :id
|
6
|
+
col :material, search: { collection: ['Stainless Steel', 'Copper', 'Cast Iron', 'Composite'] }
|
7
|
+
col :bowl, search: { collection: ['Single Bowl', 'Double Bowl', 'Triple Bowl'] }
|
8
|
+
col :name
|
9
|
+
|
10
|
+
actions_col show: false, edit: false, destroy: false do
|
11
|
+
[link_to('View', '#'), link_to('Edit', '#')].join(' - ').html_safe
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
collection do
|
16
|
+
[
|
17
|
+
[1, 'Stainless Steel', 'Single Bowl', 'KOHLER Staccato'],
|
18
|
+
[2, 'Stainless Steel', 'Double Bowl', 'KOHLER Vault Undercounter'],
|
19
|
+
[3, 'Stainless Steel', 'Triple Bowl', 'KRAUS All-In-One'],
|
20
|
+
[4, 'Stainless Steel', 'Single Bowl', 'KOHLER Vault Dual Mount'],
|
21
|
+
[5, 'Stainless Steel', 'Single Bowl', 'KRAUS All-In-One Undermount'],
|
22
|
+
[6, 'Stainless Steel', 'Double Bowl', 'Glacier Bay All-in-One'],
|
23
|
+
[7, 'Stainless Steel', 'Single Bowl', 'Elkay Neptune'],
|
24
|
+
[8, 'Copper', 'Single Bowl', 'ECOSINKS Apron Front Dual Mount'],
|
25
|
+
[9, 'Copper', 'Double Bowl', 'ECOSINKS Dual Mount Front Hammered'],
|
26
|
+
[10, 'Copper', 'Triple Bowl', 'Glarier Bay Undermount'],
|
27
|
+
[11, 'Copper', 'Single Bowl', 'Whitehaus Undermount'],
|
28
|
+
[12, 'Copper', 'Double Bowl', 'Belle Foret Apron Front'],
|
29
|
+
[13, 'Copper', 'Double Bowl', 'Pegasus Dual Mount'],
|
30
|
+
[14, 'Cast Iron', 'Double Bowl', 'KOHLER Whitehaven'],
|
31
|
+
[15, 'Cast Iron', 'Triple Bowl', 'KOHLER Hartland'],
|
32
|
+
[16, 'Cast Iron', 'Single Bowl', 'KOHLER Cape Dory Undercounter'],
|
33
|
+
[17, 'Cast Iron', 'Double Bowl', 'KOLER Bakersfield'],
|
34
|
+
[18, 'Cast Iron', 'Double Bowl', 'American Standard Offset'],
|
35
|
+
[19, 'Cast Iron', 'Single Bowl', 'Brookfield Top'],
|
36
|
+
[20, 'Composite', 'Single Bowl', 'Blanco Diamond Undermount'],
|
37
|
+
[21, 'Composite', 'Double Bowl', 'Mont Blanc Waterbrook'],
|
38
|
+
[22, 'Composite', 'Triple Bowl', 'Pegasus Triple Mount'],
|
39
|
+
[23, 'Composite', 'Single Bowl', 'Swanstone Dual Mount']
|
40
|
+
]
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
@@ -1,5 +1,9 @@
|
|
1
1
|
%br
|
2
2
|
- if defined?(EffectiveDatatables)
|
3
|
-
|
3
|
+
- if Gem::Version.new(EffectiveDatatables::VERSION) < Gem::Version.new('3.0')
|
4
|
+
= render_datatable Effective::Datatables::StyleGuide.new()
|
5
|
+
- else
|
6
|
+
= render_datatable EffectiveStyleGuideDatatable.new()
|
7
|
+
|
4
8
|
- else
|
5
9
|
%p Please install the effective_datatables gem
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_style_guide
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- README.md
|
93
93
|
- Rakefile
|
94
94
|
- app/controllers/effective/style_guide_controller.rb
|
95
|
+
- app/datatables/effective_style_guide_datatable.rb
|
95
96
|
- app/models/effective/access_denied.rb
|
96
97
|
- app/models/effective/datatables/style_guide.rb
|
97
98
|
- app/models/effective/style_guide.rb
|