middleman-automatic-clowncar 4.0.0 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 521f4d750e09f11d5dfbcb610cddce713f88b26ecf1bb36d083bee6a4604f72a
4
- data.tar.gz: 3cd1edd638d3d4d94e7e3e6935a9c39c418ba93125d6c8829114e8ab5b8bae3e
3
+ metadata.gz: 2f5fe147b74631551fc5dddbbd29da5ff5123c98808ca308897ca02dcc52492c
4
+ data.tar.gz: ece300ff371ad3db04edad4492eaee184774a196f119dc4a40243b96c025a0cd
5
5
  SHA512:
6
- metadata.gz: 7febf2daebd50e101f53088343ddbde2c60d631d6efd92be79e77a3225fbe951765ef8e3796723b6bcf48a63281c1076f4ff9e68396564f51b4f98a9d236aece
7
- data.tar.gz: 1b993e4f93f1f367adab19e06f8da9fc81ee10ff424d64142ec6ee9103bf17274803bebac0c5d52e9bed84393b608188191560e37fc4dcf4d77c9837aacbdb61
6
+ metadata.gz: 04b42bec24020afdf2dd0d762edaa8e87a98236013e5374e7624c837c845745f9c9fd8f187bdf415a307230f17f29bd555cc09f629d8e99591b1c53f1d4147e8
7
+ data.tar.gz: 28ab53fc3646e7c32a93e5e96cde0874dc7f95e4b76d9881355ed8511d495fe7eb0cdfc6fd4743b8695bf2bbe1bb157d457b7fb3e70d60e65a1145297b6e731a
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 2.7.7
@@ -80,8 +80,7 @@ module Middleman
80
80
 
81
81
  if is_relative
82
82
  url = app.asset_path(:images, svg_path)
83
- # TODO : Previously the images_dir could be configured. Now it seems to be hard coded by middleman?
84
- images_dir = 'images' # app.images_dir
83
+ images_dir = app.config[:images_dir] || 'images'
85
84
  url = url.sub("/#{images_dir}/",'/')
86
85
  if fallback_host && is_relative_url?(url)
87
86
  File.join(fallback_host, url)
@@ -169,6 +168,8 @@ module Middleman
169
168
  if is_relative_url?(test_path)
170
169
  if options.has_key?(:host)
171
170
  fallback_host = options[:host]
171
+ elsif app.config[:asset_host]
172
+ fallback_host = app.config[:asset_host]
172
173
  else
173
174
  warn "WARNING: Inline clowncar images require absolute paths. Please set a :host value"
174
175
  end
@@ -190,6 +191,10 @@ module Middleman
190
191
 
191
192
 
192
193
  helpers do
194
+ def automatic_clowncar_sizes
195
+ Extension.options_hash[:sizes]
196
+ end
197
+
193
198
  def automatic_clowncar_tag(name, options={})
194
199
  internal = ""
195
200
 
@@ -1,3 +1,3 @@
1
1
  module MiddlemanAutomaticClowncar
2
- VERSION = "4.0.0"
2
+ VERSION = "4.0.2"
3
3
  end
@@ -18,20 +18,20 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "middleman-core", "~> 4.3.0"
21
+ spec.add_dependency "middleman-core", "> 4.3.0"
22
22
 
23
- spec.add_dependency("mini_magick", ["~> 3.7.0"])
23
+ spec.add_dependency("mini_magick", ["~> 4.0"])
24
24
  spec.add_dependency "fastimage", "~> 2.0"
25
25
 
26
26
  # These are here to make sure that we don't have any collisions with sprockets
27
27
  spec.add_dependency "middleman-sprockets", "~> 4.1.0"
28
28
  #spec.add_dependency "sass", "~> 3.4.0"
29
29
 
30
- spec.add_development_dependency "middleman", "~> 4.3.0"
31
- spec.add_development_dependency "bundler", "~> 1.5"
30
+ spec.add_development_dependency "middleman", "~> 4.4.0"
31
+ spec.add_development_dependency "bundler", "~> 2.0"
32
32
  spec.add_development_dependency "rake"
33
33
  spec.add_development_dependency "capybara", "~> 2.5.0"
34
- spec.add_development_dependency "cucumber", "~> 2.0"
34
+ spec.add_development_dependency "cucumber", "~> 6.0"
35
35
  spec.add_development_dependency "aruba", "~> 0.14.0"
36
36
  spec.add_development_dependency "byebug"
37
37
  #spec.add_development_dependency "simplecov", "~> 0.8.2"
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-automatic-clowncar
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Green
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-09 00:00:00.000000000 Z
11
+ date: 2023-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.3.0
27
27
  - !ruby/object:Gem::Dependency
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 3.7.0
33
+ version: '4.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 3.7.0
40
+ version: '4.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: fastimage
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 4.3.0
75
+ version: 4.4.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 4.3.0
82
+ version: 4.4.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.5'
89
+ version: '2.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.5'
96
+ version: '2.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '2.0'
131
+ version: '6.0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '2.0'
138
+ version: '6.0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: aruba
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -173,6 +173,7 @@ extra_rdoc_files: []
173
173
  files:
174
174
  - ".gitignore"
175
175
  - ".ruby-version"
176
+ - ".tool-versions"
176
177
  - ".travis.yml"
177
178
  - Gemfile
178
179
  - LICENSE.txt
@@ -204,7 +205,7 @@ homepage: ''
204
205
  licenses:
205
206
  - MIT
206
207
  metadata: {}
207
- post_install_message:
208
+ post_install_message:
208
209
  rdoc_options: []
209
210
  require_paths:
210
211
  - lib
@@ -219,8 +220,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
220
  - !ruby/object:Gem::Version
220
221
  version: '0'
221
222
  requirements: []
222
- rubygems_version: 3.0.1
223
- signing_key:
223
+ rubygems_version: 3.1.6
224
+ signing_key:
224
225
  specification_version: 4
225
226
  summary: Automatically generated responsive images for middleman.
226
227
  test_files: