editables 0.1.0 → 0.1.2

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.2
@@ -63,10 +63,11 @@ module Editables
63
63
  end
64
64
 
65
65
  def editable_image_tag(name, width, height)
66
+ image = Editables::EditableImage.find_by_name(name)
66
67
  form_id = "editable-image-#{name.gsub(" ","-")}"
67
- image = Editables::EditableImage.find_by_name(name)
68
68
  if image.present?
69
- if image.image(:cropped).present? && (open(image.image(:cropped)) rescue false)
69
+ # if image.image(:cropped).present? && (open(image.image(:cropped)) rescue false)
70
+ if image.image(:cropped).present?
70
71
  src = image.image(:cropped)
71
72
  elsif width >= 1200
72
73
  src = image.image(:original)
@@ -96,7 +97,6 @@ module Editables
96
97
  if image.present? or can_edit?
97
98
  html += "<img src='#{src}' alt='#{name}' width='#{width}' height='#{height}' />"
98
99
  end
99
- # html += "</div>"
100
100
  html.html_safe
101
101
  end
102
102
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "editables"
8
- s.version = "0.1.0"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gabe Coyne"]
12
- s.date = "2013-06-19"
12
+ s.date = "2013-08-05"
13
13
  s.description = "Easy wysiwyg editing of website content and images"
14
14
  s.email = "gabe@killitcreative.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: editables
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-19 00:00:00.000000000 Z
12
+ date: 2013-08-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  segments:
145
145
  - 0
146
- hash: -1362831002386609110
146
+ hash: 1492875497492773439
147
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  none: false
149
149
  requirements: