responsive_images 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NTA0NGI5YzYxNGM0MjI0OGE0MzZlZDM5MmFhNWIwN2EwYjUwMzhjYQ==
5
+ data.tar.gz: !binary |-
6
+ NGUxOGM5NTlmNjdiMmY0MTM3ZGIxM2JlZTBjMmY4MTM5MmY2MDNlMg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NjBjOWNkMTVhZDc5MGI0YTkxYmY5NjFlYjQwNzhlMTAxN2VkNGJhMjExYjZi
10
+ MGJlMjA5MjlkZjc0OWY0YzY2ODVjNGZmZjk2YmM3ZDJjYTNkNGFlYjE0ZDg1
11
+ MDljMzAwYjcxYTFhN2Y0ZGY1OGNjZmZmNGQ5NzgxZjdjZTQ5MWY=
12
+ data.tar.gz: !binary |-
13
+ ODlkZTJlZDFkNjhmN2NmZTBiZDJiYmQ1YjFlMjdiN2RjYjIwYjA4YTg4OTc0
14
+ NWIzNzg3NzJkYmExNTM0MzQyMGZhNjVlY2RiOTk0YTk3ZjI1YzRjYzNiMDNh
15
+ MjUxNTJjNzQyZjM2YmVlYTg1YWEzNGRjNTMyOGVjMzJjNWRiM2M=
data/README.md CHANGED
@@ -49,7 +49,7 @@ The Responsive Image gem is easy to setup and use. Please note that it is curren
49
49
  You can add as many as you'd like.
50
50
 
51
51
  #### Initializer
52
- In order to configure the gem, you'll need to add an initializer in app/initializers/responsive_images.rb
52
+ In order to configure the gem, you'll need to add an initializer in config/initializers/responsive_images.rb
53
53
 
54
54
  ResponsiveImages.configure do |config|
55
55
  # Set the default version for image. If you leave it at :default then it will use
@@ -1,3 +1,3 @@
1
1
  module ResponsiveImages
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -24,7 +24,7 @@ module ResponsiveImages
24
24
  def responsive_background_image image, options={}
25
25
  # Merge any options passed with the configured options
26
26
  sizes = ResponsiveImages.options.deep_merge(options)
27
- data_hash = { style: "background-image: #{src_path(image, sizes)}" }.merge(alternative_sizes(image, sizes))
27
+ data_hash = { style: "background-image: url(#{src_path(image, sizes)})" }.merge(alternative_sizes(image, sizes))
28
28
  end
29
29
 
30
30
 
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: responsive_images
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - John Koht
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-01 00:00:00.000000000 Z
11
+ date: 2013-09-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: mobvious
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -83,26 +76,25 @@ files:
83
76
  homepage: ''
84
77
  licenses:
85
78
  - MIT
79
+ metadata: {}
86
80
  post_install_message:
87
81
  rdoc_options: []
88
82
  require_paths:
89
83
  - lib
90
84
  required_ruby_version: !ruby/object:Gem::Requirement
91
- none: false
92
85
  requirements:
93
86
  - - ! '>='
94
87
  - !ruby/object:Gem::Version
95
88
  version: '0'
96
89
  required_rubygems_version: !ruby/object:Gem::Requirement
97
- none: false
98
90
  requirements:
99
91
  - - ! '>='
100
92
  - !ruby/object:Gem::Version
101
93
  version: '0'
102
94
  requirements: []
103
95
  rubyforge_project:
104
- rubygems_version: 1.8.25
96
+ rubygems_version: 2.0.7
105
97
  signing_key:
106
- specification_version: 3
98
+ specification_version: 4
107
99
  summary: A responsive image gem for Rails and Carrierwave
108
100
  test_files: []