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: 18e5946b2b7b5b82d0de1a7655e39bbc78065ba8
4
- data.tar.gz: 7478a4ed58ea6f3bc8dc85b30897002ed2ed9ff0
3
+ metadata.gz: 186f5c846e670aea8044e9e31d7461ad3278bc1e
4
+ data.tar.gz: ffa1f3c3c076fa717007eec28fc91afbad37ccd3
5
5
  SHA512:
6
- metadata.gz: ddb475a5deea5a7307958428ccb9738015476edd71a4eda037587beff28d50aa12395ea9634da69c5330a23450c1855372c8cd2a1f8719ce13d040b20e669175
7
- data.tar.gz: 0d0eac11d8935b2df76947165ab441e1e9c2a123ff6c1ffd822e3da9f47b8173de7f745e3aac66469c1628e45786b75c2f098c29233a3eea359700d7d818b57d
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('&nbsp;-&nbsp;').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,4 +1,4 @@
1
- if defined?(EffectiveDatatables)
1
+ if defined?(EffectiveDatatables) && Gem::Version.new(EffectiveDatatables::VERSION) < Gem::Version.new('3.0')
2
2
  module Effective
3
3
  module Datatables
4
4
  class StyleGuide < Effective::Datatable
@@ -1,5 +1,9 @@
1
1
  %br
2
2
  - if defined?(EffectiveDatatables)
3
- = render_datatable Effective::Datatables::StyleGuide.new()
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveStyleGuide
2
- VERSION = '1.5.0'.freeze
2
+ VERSION = '1.5.1'.freeze
3
3
  end
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.0
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: 2016-12-07 00:00:00.000000000 Z
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