comfy_carousel 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -6,8 +6,8 @@ class Carousel::Slide < ActiveRecord::Base
6
6
 
7
7
  upload_options = (ComfyCarousel.config.upload_options || {}).merge(
8
8
  :styles => lambda { |slide|
9
- if c = slide.instance.carousel && dimentions = c.try(:dimentions)
10
- { :original => dimentions }
9
+ if (c = slide.instance.carousel) && c.dimensions.present?
10
+ { :original => c.dimensions }
11
11
  else
12
12
  { }
13
13
  end
@@ -8,11 +8,18 @@
8
8
  <div class='item'>
9
9
  <div class='icon'></div>
10
10
  <div class='action_links'>
11
+ <%= link_to pluralize(carousel.slides.count, 'Slide'), admin_carousel_carousel_slides_path(carousel) %>
11
12
  <%= link_to 'Edit', edit_admin_carousel_carousel_path(carousel) %>
12
13
  <%= link_to 'Delete', admin_carousel_carousel_path(carousel), :method => :delete, :confirm => 'Are you sure?' %>
13
14
  </div>
14
15
  <div class='label'>
15
16
  <%= link_to carousel.label, admin_carousel_carousel_slides_path(carousel) %>
17
+ <div class='sublabel'>
18
+ <%= carousel.identifier %>
19
+ <% if carousel.dimensions.present? %>
20
+ [<%= carousel.dimensions %>]
21
+ <% end %>
22
+ </div>
16
23
  </div>
17
24
  </div>
18
25
  </li>
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "comfy_carousel"
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Oleg Khabarov", "The Working Group Inc."]
12
- s.date = "2012-02-07"
12
+ s.date = "2012-02-08"
13
13
  s.description = ""
14
14
  s.email = "oleg@twg.ca"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comfy_carousel
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:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-07 00:00:00.000000000Z
13
+ date: 2012-02-08 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &70281782162840 !ruby/object:Gem::Requirement
17
+ requirement: &70220575029800 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.1.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70281782162840
25
+ version_requirements: *70220575029800
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: jquery-rails
28
- requirement: &70281782162080 !ruby/object:Gem::Requirement
28
+ requirement: &70220575028420 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70281782162080
36
+ version_requirements: *70220575028420
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: paperclip
39
- requirement: &70281782161380 !ruby/object:Gem::Requirement
39
+ requirement: &70220575026940 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: 2.3.0
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *70281782161380
47
+ version_requirements: *70220575026940
48
48
  description: ''
49
49
  email: oleg@twg.ca
50
50
  executables: []
@@ -135,7 +135,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
135
  version: '0'
136
136
  segments:
137
137
  - 0
138
- hash: -4170429523828767881
138
+ hash: -3502852902835907497
139
139
  required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  none: false
141
141
  requirements: