svgeez 2.0.0 → 2.0.1

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
- SHA1:
3
- metadata.gz: ffc434b8172b66099c912055ef13b35c80e77c81
4
- data.tar.gz: 8fcc4b68c1524106727b9763eb72c857ede85571
2
+ SHA256:
3
+ metadata.gz: 3a34b3e2f43c0d78cd9f77457795fc021a5576acec7209a235d5d150990917da
4
+ data.tar.gz: f26e9b0c2b70381cd939cda274240454b69fb575f004e853b9afc8e08c5dd237
5
5
  SHA512:
6
- metadata.gz: b50e59f7247e21a0312e82dd6382b7eb0bd452825007569173c6d68826a4cf6bf06185222c63c66793c07a12fc2ffbf605e3d15158be13e0ee54fe48f7f66aaf
7
- data.tar.gz: a80f431e5289595e059dd8e11a7cd73508d204b45f1513690911301ac24494157825ffea391fd3b6c0a359aabaf119d937f0f6aa40343280fb2a550a7c2ec49d
6
+ metadata.gz: e059e288c8d7a92dbeb8a2f5c099004519c2cab971cfaf6d9f33f749aeda842b03cb60fce87f05c7f65370b42f24d611dfd63f73ab819a647e4bd58441f7fa4a
7
+ data.tar.gz: 0fceee63b7a84300a7485a02e898909ba3e15540cecc445a095858a34da003489a24704e64ba6ab36beb9a3dff4c69a17cd83035b94a8c65943e5a6d7e976c0a
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.4.4
1
+ 2.4.5
data/.travis.yml CHANGED
@@ -1,11 +1,12 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.4.4
3
+ - 2.4.5
4
4
  - 2.5.3
5
+ - 2.6.0
5
6
  cache:
6
7
  - bundler
7
8
  before_install:
8
- - gem install bundler
9
+ - gem install bundler -v '~> 1.17'
9
10
  - nvm install node
10
11
  - npm install -g svgo
11
12
  before_script:
data/CHANGELOG.md CHANGED
@@ -1,10 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.1 / 2019-01-03
4
+
5
+ - Expand supported Ruby versions to include 2.6 ([0facfd0](https://github.com/jgarber623/svgeez/commit/0facfd0)).
6
+
3
7
  ## 2.0.0 / 2018-12-04
4
8
 
5
9
  - Refactor classes to use `attr_reader`s ([c62780f](https://github.com/jgarber623/svgeez/commit/c62780f))
6
10
  - Change required Ruby versions and liberalize dependency constraints ([35fcadb](https://github.com/jgarber623/svgeez/commit/35fcadb))
7
- - Change project Ruby version to 2.4.4 ([301d341](https://github.com/jgarber623/svgeez/commit/301d341))
11
+ - Change project Ruby version to 2.4.5 ([301d341](https://github.com/jgarber623/svgeez/commit/301d341))
8
12
  - Bump required SVGO version to 1.1.1 ([28741fc](https://github.com/jgarber623/svgeez/commit/28741fc))
9
13
 
10
14
  ## Previous Releases
data/CONTRIBUTING.md CHANGED
@@ -8,9 +8,9 @@ There are a couple ways you can help improve svgeez:
8
8
 
9
9
  ## Getting Started
10
10
 
11
- svgeez is developed using Ruby 2.4.4 and is additionally tested against Ruby 2.5.3 using [Travis CI](https://travis-ci.org/jgarber623/svgeez).
11
+ svgeez is developed using Ruby 2.4.5 and is additionally tested against Ruby 2.5.3 and 2.6.0 using [Travis CI](https://travis-ci.org/jgarber623/svgeez).
12
12
 
13
- Before making changes to svgeez, you'll want to install Ruby 2.4.4. It's recommended that you use a Ruby version managment tool like [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), or [rvm](https://github.com/rvm/rvm). Once you've installed Ruby 2.4.4 using your method of choice, install the project's gems by running:
13
+ Before making changes to svgeez, you'll want to install Ruby 2.4.5. It's recommended that you use a Ruby version managment tool like [rbenv](https://github.com/rbenv/rbenv), [chruby](https://github.com/postmodern/chruby), or [rvm](https://github.com/rvm/rvm). Once you've installed Ruby 2.4.5 using your method of choice, install the project's gems by running:
14
14
 
15
15
  ```sh
16
16
  bundle install
data/README.md CHANGED
@@ -21,7 +21,7 @@ _For more on why SVG sprites are the bee's knees as far as icon systems go, give
21
21
 
22
22
  ## Getting Started
23
23
 
24
- Before installing and using svgeez, you'll want to have Ruby 2.4 (or newer) installed on your computer. There are plenty of ways to go about this, but my preference is [rbenv](https://github.com/sstephenson/rbenv). svgeez is developed using Ruby 2.4.4 and automatically tested against 2.4.4 and 2.5.3 by [Travis CI](https://travis-ci.org/jgarber623/svgeez).
24
+ Before installing and using svgeez, you'll want to have Ruby 2.4 (or newer) installed on your computer. There are plenty of ways to go about this, but my preference is [rbenv](https://github.com/sstephenson/rbenv). svgeez is developed using Ruby 2.4.5 and is additionally tested against Ruby 2.5.3 and 2.6.0 using [Travis CI](https://travis-ci.org/jgarber623/svgeez).
25
25
 
26
26
  ## Installation
27
27
 
@@ -21,7 +21,10 @@ module Svgeez
21
21
 
22
22
  def element_contents(content)
23
23
  content.scan(/\sid="(.+?)"/).flatten.each do |value|
24
- content.gsub!(/\s(id|xlink:href)="(#?#{value})"/m, %( \\1="\\2-#{SecureRandom.uuid}"))
24
+ uuid = SecureRandom.uuid
25
+
26
+ content.gsub!(/\s(id|xlink:href)="(#?#{value})"/m, %( \\1="\\2-#{uuid}"))
27
+ content.gsub!(/\s(clip-path|fill|filter|marker-end|marker-mid|marker-start|mask|stroke)="url\((##{value})\)"/m, %( \\1="url(\\2-#{uuid})"))
25
28
  end
26
29
 
27
30
  content
@@ -1,3 +1,3 @@
1
1
  module Svgeez
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.0.1'.freeze
3
3
  end
data/svgeez.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'svgeez/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.required_ruby_version = ['>= 2.4', '< 2.6']
7
+ spec.required_ruby_version = ['>= 2.4', '< 2.7']
8
8
 
9
9
  spec.name = 'svgeez'
10
10
  spec.version = Svgeez::VERSION
@@ -25,8 +25,8 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency 'bundler', '~> 1.17'
26
26
  spec.add_development_dependency 'rake', '~> 12.3'
27
27
  spec.add_development_dependency 'rspec', '~> 3.8'
28
- spec.add_development_dependency 'rubocop', '~> 0.60.0'
29
- spec.add_development_dependency 'rubocop-rspec', '~> 1.30'
28
+ spec.add_development_dependency 'rubocop', '~> 0.62.0'
29
+ spec.add_development_dependency 'rubocop-rspec', '~> 1.31'
30
30
  spec.add_development_dependency 'simplecov', '~> 0.16.1'
31
31
  spec.add_development_dependency 'simplecov-console', '~> 0.4.2'
32
32
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svgeez
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Garber
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-04 00:00:00.000000000 Z
11
+ date: 2019-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.60.0
61
+ version: 0.62.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.60.0
68
+ version: 0.62.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.30'
75
+ version: '1.31'
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: '1.30'
82
+ version: '1.31'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -187,15 +187,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
187
187
  version: '2.4'
188
188
  - - "<"
189
189
  - !ruby/object:Gem::Version
190
- version: '2.6'
190
+ version: '2.7'
191
191
  required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  requirements:
193
193
  - - ">="
194
194
  - !ruby/object:Gem::Version
195
195
  version: '0'
196
196
  requirements: []
197
- rubyforge_project:
198
- rubygems_version: 2.6.14.1
197
+ rubygems_version: 3.0.2
199
198
  signing_key:
200
199
  specification_version: 4
201
200
  summary: Automatically generate an SVG sprite from a folder of SVG icons.