caisson 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -56,14 +56,6 @@ Orbit Slider
56
56
  <th>Name</th>
57
57
  <th>Default</th>
58
58
  </tr>
59
- <tr>
60
- <td>advance_speed</td>
61
- <td>4000</td>
62
- </tr>
63
- <tr>
64
- <td>animation</td>
65
- <td>horizontal-push</td>
66
- </tr>
67
59
  <tr>
68
60
  <td>animation_speed</td>
69
61
  <td>400</td>
@@ -72,26 +64,6 @@ Orbit Slider
72
64
  <td>bullets</td>
73
65
  <td>false</td>
74
66
  </tr>
75
- <tr>
76
- <td>bullet_thumbs</td>
77
- <td>false</td>
78
- </tr>
79
- <tr>
80
- <td>bullet_thumbs_location</td>
81
- <td></td>
82
- </tr>
83
- <tr>
84
- <td>caption_animation</td>
85
- <td>fade</td>
86
- </tr>
87
- <tr>
88
- <td>caption_animation_speed</td>
89
- <td>800</td>
90
- </tr>
91
- <tr>
92
- <td>captions</td>
93
- <td>false</td>
94
- </tr>
95
67
  <tr>
96
68
  <td>class</td>
97
69
  <td>slider</td>
@@ -100,37 +72,13 @@ Orbit Slider
100
72
  <td>columns_per_slide</td>
101
73
  <td>1</td>
102
74
  </tr>
103
- <tr>
104
- <td>directional_nav</td>
105
- <td>true</td>
106
- </tr>
107
- <tr>
108
- <td>fluid</td>
109
- <td>16x5</td>
110
- </tr>
111
75
  <tr>
112
76
  <td>id</td>
113
77
  <td></td>
114
78
  </tr>
115
79
  <tr>
116
- <td>pause_on_hover</td>
117
- <td>true</td>
118
- </tr>
119
- <tr>
120
- <td>reset_timer_on_click</td>
121
- <td>false</td>
122
- </tr>
123
- <tr>
124
- <td>start_clock_on_mouse_out</td>
125
- <td>true</td>
126
- </tr>
127
- <tr>
128
- <td>start_clock_on_mouse_out_after</td>
129
- <td>1000</td>
130
- </tr>
131
- <tr>
132
- <td>timer</td>
133
- <td>false</td>
80
+ <td>timer_speed</td>
81
+ <td>0</td>
134
82
  </tr>
135
83
  </table>
136
84
 
@@ -19,27 +19,13 @@ module Caisson::Helpers
19
19
  private
20
20
 
21
21
  def build_options(options)
22
- # DEPRECATED IN VERSION 4
23
22
  options.reverse_merge(
24
- advance_speed: 4000,
25
- animation: "horizontal-push",
26
23
  animation_speed: 400,
27
24
  bullets: false,
28
- bullet_thumbs: false,
29
- bullet_thumbs_location: '',
30
- caption_animation: 'fade',
31
- caption_animation_speed: 800,
32
- captions: false,
33
25
  class: 'slider',
34
26
  columns_per_slide: 1,
35
- directional_nav: true,
36
- fluid: '16x5',
37
27
  id: "slider-#{rand(10000)}",
38
- pause_on_hover: true,
39
- reset_timer_on_click: false,
40
- start_clock_on_mouse_out: true,
41
- start_clock_on_mouse_out_after: 1000,
42
- timer: false)
28
+ timer_speed: 0)
43
29
  end
44
30
 
45
31
 
@@ -51,7 +37,7 @@ module Caisson::Helpers
51
37
  slides = []
52
38
 
53
39
  @items.each_slice @options[:columns_per_slide] do |slice|
54
- content = '<li><div class="spacer"></div><ul class="wink small-block-grid-3 large-block-grid-' + @options[:columns_per_slide].to_s + '">'
40
+ content = '<li><div class="spacer"></div><ul class="items small-block-grid-3 large-block-grid-' + @options[:columns_per_slide].to_s + '">'
55
41
  slice.each_with_index { |item,i| content << build_item(item, (i==slice.length-1), &block) }
56
42
  content << '</ul><div class="spacer"></div></li>'
57
43
 
@@ -72,7 +58,7 @@ module Caisson::Helpers
72
58
  def stringify_options
73
59
  results = []
74
60
 
75
- @options.each { |k,v| results << "#{k}:#{v};" }
61
+ @options.each { |k,v| results << "#{k}:#{v};" if not [:class, :columns_per_slide, :id].include? k }
76
62
 
77
63
  return results.join
78
64
  end
@@ -84,8 +70,7 @@ module Caisson::Helpers
84
70
  case k.to_s
85
71
  when 'id' then attributes[:id] = v
86
72
  when 'class' then attributes[:class] = ['slider', v].compact.join(' ')
87
- when 'columns_per_slide' then nil
88
- else nil #attributes["data-#{k}".gsub('_', '-')] = parse_attribute_value(v)
73
+ else nil
89
74
  end
90
75
  end
91
76
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caisson
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,10 +9,10 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-25 00:00:00.000000000 Z
12
+ date: 2013-03-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- requirement: &2172916280 !ruby/object:Gem::Requirement
15
+ requirement: &2159914380 !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ! '>='
18
18
  - !ruby/object:Gem::Version
@@ -21,9 +21,9 @@ dependencies:
21
21
  prerelease: false
22
22
  type: :development
23
23
  name: rake
24
- version_requirements: *2172916280
24
+ version_requirements: *2159914380
25
25
  - !ruby/object:Gem::Dependency
26
- requirement: &2172915780 !ruby/object:Gem::Requirement
26
+ requirement: &2159913820 !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - ! '>='
29
29
  - !ruby/object:Gem::Version
@@ -32,7 +32,7 @@ dependencies:
32
32
  prerelease: false
33
33
  type: :development
34
34
  name: rspec
35
- version_requirements: *2172915780
35
+ version_requirements: *2159913820
36
36
  description: Caisson will provide a set of tools to facilitate the integration of
37
37
  Zurb-Foundation to your Rails project.
38
38
  email: