esvg 2.8.8 → 2.8.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/esvg/svg.rb +7 -4
- data/lib/esvg/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb8e640110063dbdfbbafa067e3a46b1cb6312cb
|
4
|
+
data.tar.gz: f544c21a203eef867fe5579b3737ce9705153662
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6144b4bddd911155e0d9b72a6c4ac8869a8c4b98bd6fa932987a55ea1b6ba1c22d71503b26d95205eba09f9c529f9ae5bf21c562910cd1114dbe558aa7f60036
|
7
|
+
data.tar.gz: c64e3128426de249f0eb22f7f16d59bbf8a8979e0b8903e70147556df114794f5a69c5a4b194fb26478bd66e20575bd4eb4a593dd95c47be63561f9b67dadd91
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 2.8.9 (2016-06-29)
|
4
|
+
- Fix: Now write path is returned after write.
|
5
|
+
|
6
|
+
### 2.8.8 (2016-02-23)
|
7
|
+
- Fix: Improved detection of Rails from CLI making it easier to use Rails defaults.
|
8
|
+
|
3
9
|
### 2.8.7 (2016-01-20)
|
4
10
|
- Fix: Fixed an accidental regex regression.
|
5
11
|
|
data/lib/esvg/svg.rb
CHANGED
@@ -259,17 +259,17 @@ module Esvg
|
|
259
259
|
|
260
260
|
def write
|
261
261
|
return if @files.empty?
|
262
|
-
case config[:format]
|
262
|
+
write_path = case config[:format]
|
263
263
|
when "html"
|
264
264
|
write_html
|
265
|
-
puts "Written to #{log_path config[:html_path]}" if config[:cli]
|
266
265
|
when "js"
|
267
266
|
write_js
|
268
|
-
puts "Written to #{log_path config[:js_path]}" if config[:cli]
|
269
267
|
when "css"
|
270
268
|
write_css
|
271
|
-
puts "Written to #{log_path config[:css_path]}" if config[:cli]
|
272
269
|
end
|
270
|
+
|
271
|
+
puts "Written to #{log_path write_path}" if config[:cli]
|
272
|
+
write_path
|
273
273
|
end
|
274
274
|
|
275
275
|
def log_path(path)
|
@@ -284,14 +284,17 @@ module Esvg
|
|
284
284
|
|
285
285
|
def write_js
|
286
286
|
write_file config[:js_path], js
|
287
|
+
config[:js_path]
|
287
288
|
end
|
288
289
|
|
289
290
|
def write_css
|
290
291
|
write_file config[:css_path], css
|
292
|
+
config[:css_path]
|
291
293
|
end
|
292
294
|
|
293
295
|
def write_html
|
294
296
|
write_file config[:html_path], html
|
297
|
+
config[:html_path]
|
295
298
|
end
|
296
299
|
|
297
300
|
def write_file(path, contents)
|
data/lib/esvg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: esvg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.8.
|
4
|
+
version: 2.8.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.5.1
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Embed svgs in HTML or CSS
|