imaginable 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,8 +32,9 @@ module Imaginable
32
32
  image = @object.method("#{method_name}").call
33
33
  end
34
34
 
35
- options[:preview_width] ||= ( options[:preview_height].present? ? nil : 50 )
36
- options[:preview_height] ||= ( options[:preview_width].present? ? nil : 50 )
35
+ options[:preview_width] ||= 0
36
+ options[:preview_height] ||= 0
37
+
37
38
  dom_prefix = "#{@object_name}_#{@method_name}"
38
39
  tag_text = content_tag('div', :id => "#{dom_prefix}_container", :class => "imaginable",
39
40
  :'data-imaginable-prefix' => dom_prefix,
@@ -11,7 +11,7 @@ module Imaginable
11
11
  end
12
12
 
13
13
  def url(options = {})
14
- options[:width] ||= 100
14
+ options[:width] ||= 0
15
15
  options[:format] ||= 'original'
16
16
 
17
17
  height = options.has_key?(:height) ? "-#{options[:height]}" : ""
@@ -1,3 +1,3 @@
1
1
  module Imaginable
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imaginable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Thomas Dippel