svgthang 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 53278c7ce8cb6611d5614a49e6762b98412441e47d10090eeb345a2d465c777e
4
+ data.tar.gz: ff4f195d39af8d3f21fdb754ddb193cb2e2514a12c60251895a422360b658d59
5
+ SHA512:
6
+ metadata.gz: 7213aab491ec4eef944450f17488a5f4d635c77ab75cc8736cf4b971737d8ff08400471d29d6c7ed4f16794a62c04acd2d4791c747857ac582484cb0a0af4788
7
+ data.tar.gz: d84a013988422676179fe90ab8cdde34814ba07ea04fc3b0f1f05101b9fd440f6c3c7d02a3f84cccbb2d97c68cc2f6d27b407fdbab5c99341d5dd27edcaa3ae0
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /build
10
+ .byebug_history
11
+ .rspec
12
+ /*.gem
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 - 2019-12-06
4
+
5
+ Initial release - See [README](https://github.com/joeybeninghove/svgthang/blob/master/README.md) for features and usage
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at me@joey.io. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in svgthang.gemspec
6
+ gemspec
@@ -0,0 +1,48 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ svgthang (0.1.0)
5
+ htmlentities (~> 4.3)
6
+ oga (~> 3.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ansi (1.5.0)
12
+ ast (2.4.0)
13
+ byebug (11.0.1)
14
+ diff-lcs (1.3)
15
+ htmlentities (4.3.4)
16
+ oga (3.0)
17
+ ast
18
+ ruby-ll (~> 2.1)
19
+ rake (10.5.0)
20
+ rspec (3.9.0)
21
+ rspec-core (~> 3.9.0)
22
+ rspec-expectations (~> 3.9.0)
23
+ rspec-mocks (~> 3.9.0)
24
+ rspec-core (3.9.0)
25
+ rspec-support (~> 3.9.0)
26
+ rspec-expectations (3.9.0)
27
+ diff-lcs (>= 1.2.0, < 2.0)
28
+ rspec-support (~> 3.9.0)
29
+ rspec-mocks (3.9.0)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.9.0)
32
+ rspec-support (3.9.0)
33
+ ruby-ll (2.1.2)
34
+ ansi
35
+ ast
36
+
37
+ PLATFORMS
38
+ ruby
39
+
40
+ DEPENDENCIES
41
+ bundler (~> 1.17)
42
+ byebug (~> 11.0)
43
+ rake (~> 10.0)
44
+ rspec (~> 3.9)
45
+ svgthang!
46
+
47
+ BUNDLED WITH
48
+ 1.17.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Joey Beninghove
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,136 @@
1
+ # SvgThang
2
+
3
+ For those times when you want to use inline SVGs so they can be styled with CSS, this little utility allows you to convert SVG files into different kinds of templates, such as ERB partials or Liquid templates.
4
+
5
+ The main reason I built this tool was to generate SVG templates for all of the FontAwesome SVG icons that could be rendered inline and styled via CSS classes.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'svgthang'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install svgthang
22
+
23
+ ## Usage
24
+
25
+ ```
26
+ Usage: svgthang [options]
27
+ -s, --source-dir SOURCE_DIR Source directory of SVG files
28
+ -o, --output-dir OUTPUT_DIR Output directory
29
+ -f, --format FORMAT Output format (erb, liquid)
30
+ -c, --classes DEFAULT_CLASSES Default CSS classes for each generated SVG element
31
+ -p, --prefix FILE_PREFIX Prefix to give output files (example: _ for ERB partials)
32
+ -h, --help Show help
33
+ ```
34
+
35
+ ### ERB Partials
36
+
37
+ You can generate ERB partials from SVG icons that can then be rendered in a Rails app and passed a `classes` argument as a string to give the `<svg>` element custom CSS classes.
38
+
39
+ ```bash
40
+ svgthang --source-dir icons/fa --output-dir build/icons --format erb --classes fill-current --prefix _
41
+
42
+ # generates
43
+ # build/icons/fa/_icon1.html.erb
44
+ # build/icons/fa/_icon2.html.erb
45
+ # build/icons/fa/_icon3.html.erb
46
+ ```
47
+
48
+ The contents of these partials would look something like this:
49
+
50
+ ```erb
51
+ <!-- build/icons/fa/_icon1.html.erb -->
52
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="fill-current <%= defined?(classes) ? classes : nil %>"><path></path></svg>
53
+ ```
54
+
55
+ Then to render this partial in a Rails app, you could do the following:
56
+ ```erb
57
+ <%= render "icons/fa/icon1", classes: "width-4 height-4 margin-right-4" %>
58
+ ```
59
+
60
+ ### Liquid Templates
61
+
62
+ Similarly, you can also generate configurable Liquid templates that can be included and passed custom CSS classes.
63
+
64
+ ```bash
65
+ svgthang --source-dir icons/fa --output-dir build/icons --format liquid --classes fill-current
66
+
67
+ # generates
68
+ # build/icons/fa/icon1.svg
69
+ # build/icons/fa/icon2.svg
70
+ # build/icons/fa/icon3.svg
71
+ ```
72
+
73
+ The contents of these SVG files would look something like this:
74
+
75
+ ```html
76
+ <!-- build/icons/fa/icon1.svg -->
77
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="fill-current {{ include.classes }}"><path></path></svg>
78
+ ```
79
+
80
+ Then to include this SVG template in something like Jekyll, you can do something like this:
81
+ ```liquid
82
+ {% include icons/fa/icon1.svg classes="h-8 w-8" %}
83
+ ```
84
+
85
+ ## How It Works
86
+
87
+ What makes this especially powerful is if you want to convert something like the entire set of FontAwesome icons into these configurable templates all at once.
88
+
89
+ When you run `svgthang`, it will look to mirror the `source-dir` completely into the `output-dir` (recursively), so if you downloaded the FontAwesome SVGs into a directory structure something like this:
90
+
91
+ ```bash
92
+ icons/fa
93
+ |- brands
94
+ |- github.svg
95
+ |- linkedin.svg
96
+ |- regular
97
+ |- acorn.svg
98
+ |- ad.svg
99
+ |- solid
100
+ |- acorn.svg
101
+ |- ad.svg
102
+ ```
103
+
104
+ And you ran `svgthang --source-dir icons/fa --output-dir build/icons`
105
+
106
+ It would generate the following in the output dir:
107
+ ```bash
108
+ build/icons/fa
109
+ |- brands
110
+ |- github.svg
111
+ |- linkedin.svg
112
+ |- regular
113
+ |- acorn.svg
114
+ |- ad.svg
115
+ |- solid
116
+ |- acorn.svg
117
+ |- ad.svg
118
+ ```
119
+
120
+ ## Development
121
+
122
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
123
+
124
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
125
+
126
+ ## Contributing
127
+
128
+ Bug reports and pull requests are welcome on GitHub at https://github.com/joeybeninghove/svgthang. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
129
+
130
+ ## License
131
+
132
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
133
+
134
+ ## Code of Conduct
135
+
136
+ Everyone interacting in the SvgThang project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/joeybeninghove/svgthang/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "svgthang"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,53 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "fileutils"
4
+ require "svgthang"
5
+ require "optparse"
6
+
7
+ options = {}
8
+
9
+ OptionParser.new do |opts|
10
+ opts.banner = "Usage: svgthang [options]"
11
+
12
+ opts.on("-s", "--source-dir SOURCE_DIR", "Source directory of SVG files") do |s|
13
+ options[:source_dir] = s
14
+ end
15
+
16
+ opts.on("-o", "--output-dir OUTPUT_DIR", "Output directory") do |o|
17
+ options[:output_dir] = o
18
+ end
19
+
20
+ opts.on("-f", "--format FORMAT", "Output format (erb, liquid)") do |f|
21
+ options[:format] = f.to_sym
22
+ end
23
+
24
+ opts.on("-c", "--classes DEFAULT_CLASSES", "Default CSS classes for each generated SVG element") do |c|
25
+ options[:classes] = c
26
+ end
27
+
28
+ opts.on("-p", "--prefix FILE_PREFIX", "Prefix to give output files (example: _ for ERB partials)") do |p|
29
+ options[:prefix] = p
30
+ end
31
+
32
+ opts.on("-h", "--help", "Show help") do |h|
33
+ puts opts
34
+ exit
35
+ end
36
+ end.parse!
37
+
38
+ converters = {
39
+ erb: SvgThang::ErbConverter,
40
+ liquid: SvgThang::LiquidConverter
41
+ }
42
+
43
+ if Dir.exist?(options[:output_dir])
44
+ FileUtils.remove_dir(options[:output_dir])
45
+ end
46
+
47
+ SvgThang::Mirrorer
48
+ .new(output_dir: options[:output_dir])
49
+ .mirror(dir: options[:source_dir]) do |source_path, target_path|
50
+ converters[options[:format]]
51
+ .new(default_classes: options[:classes], prefix: options[:prefix])
52
+ .convert(source_path, target_path)
53
+ end
@@ -0,0 +1,14 @@
1
+ require "svgthang/version"
2
+
3
+ module SvgThang
4
+ class Error < StandardError; end
5
+
6
+ class Foo
7
+ def self.bar
8
+ end
9
+ end
10
+ end
11
+
12
+ require "svgthang/mirrorer"
13
+ require "svgthang/erb_converter"
14
+ require "svgthang/liquid_converter"
@@ -0,0 +1,38 @@
1
+ require "oga"
2
+ require "htmlentities"
3
+ require "logger"
4
+
5
+ module SvgThang
6
+ class ErbConverter
7
+ attr_reader :default_classes, :prefix, :logger
8
+
9
+ def initialize(default_classes: "", prefix: "")
10
+ @default_classes = default_classes
11
+ @prefix = prefix
12
+ @logger = Logger.new(STDOUT)
13
+ end
14
+
15
+ def convert(source_path, target_path)
16
+ contents = File.read(source_path)
17
+
18
+ if !contents.start_with? "<svg"
19
+ logger.error "#{source_path} doesn't appear to be an SVG file"
20
+ return
21
+ end
22
+
23
+ logger.info "Converting #{source_path} to ERB template at #{target_path}"
24
+
25
+ svg_doc = Oga.parse_html(contents)
26
+ svg_doc.at_css("svg").set(
27
+ "class", "#{default_classes} <%= defined?(classes) ? classes : nil %>")
28
+ html = HTMLEntities.new.decode(svg_doc.to_xml)
29
+
30
+ filename = "#{prefix}#{File.basename(target_path, ".svg")}.html.erb"
31
+ new_target_path = Pathname.new(target_path).parent.join(filename)
32
+
33
+ File.open(new_target_path, "w") do |f|
34
+ f.write(html)
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,37 @@
1
+ require "oga"
2
+ require "logger"
3
+
4
+ module SvgThang
5
+ class LiquidConverter
6
+ attr_reader :default_classes, :prefix, :logger
7
+
8
+ def initialize(default_classes: "", prefix: "")
9
+ @default_classes = default_classes
10
+ @prefix = prefix
11
+ @logger = Logger.new(STDOUT)
12
+ end
13
+
14
+ def convert(source_path, target_path)
15
+ contents = File.read(source_path)
16
+
17
+ if !contents.start_with? "<svg"
18
+ logger.error "#{source_path} doesn't appear to be an SVG file"
19
+ return
20
+ end
21
+
22
+ logger.info "Converting #{source_path} to Liquid template at #{target_path}"
23
+
24
+ svg_doc = Oga.parse_html(contents)
25
+ svg_doc.at_css("svg").set(
26
+ "class", "#{default_classes} {{ include.classes }}")
27
+ html = svg_doc.to_xml
28
+
29
+ filename = "#{prefix}#{File.basename(target_path)}"
30
+ new_target_path = Pathname.new(target_path).parent.join(filename)
31
+
32
+ File.open(new_target_path, "w") do |f|
33
+ f.write(html)
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,33 @@
1
+ require "oga"
2
+ require "pathname"
3
+
4
+ module SvgThang
5
+ class Mirrorer
6
+ attr_reader :output_dir
7
+
8
+ def initialize(output_dir:)
9
+ @output_dir = output_dir
10
+ end
11
+
12
+ def mirror(dir:, &each_file)
13
+ FileUtils.mkdir_p Pathname.new(output_dir).join(File.basename(dir))
14
+ mirror_children(dir, File.basename(dir), &each_file)
15
+ end
16
+
17
+ private
18
+
19
+ def mirror_children(source_path, parent_path="", &each_file)
20
+ Dir.each_child(source_path).each do |child|
21
+ child_path = Pathname.new(source_path).join(child)
22
+ target_path = Pathname.new(output_dir).join(parent_path).join(child)
23
+
24
+ if File.directory? child_path
25
+ FileUtils.mkdir_p target_path
26
+ mirror_children(child_path, Pathname.new(parent_path).join(child), &each_file)
27
+ else
28
+ each_file.call(child_path, target_path) if each_file
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,3 @@
1
+ module SvgThang
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,43 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "svgthang/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "svgthang"
7
+ spec.version = SvgThang::VERSION
8
+ spec.authors = ["Joey Beninghove"]
9
+ spec.email = ["me@joey.io"]
10
+
11
+ spec.summary = %q{Ain't nuthin' but a SVG thang, baby}
12
+ spec.description = %q{Tool for converting SVGs to other formats like ERB partials or Liquid templates}
13
+ spec.homepage = "https://joey.io"
14
+ spec.license = "MIT"
15
+
16
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
18
+ if spec.respond_to?(:metadata)
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = "https://github.com/joeybeninghove/svgthang"
21
+ spec.metadata["changelog_uri"] = "https://github.com/joeybeninghove/svgthang/blob/master/CHANGELOG.md"
22
+ else
23
+ raise "RubyGems 2.0 or newer is required to protect against " \
24
+ "public gem pushes."
25
+ end
26
+
27
+ # Specify which files should be added to the gem when it is released.
28
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
29
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
30
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
31
+ end
32
+ spec.bindir = "exe"
33
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
34
+ spec.require_paths = ["lib"]
35
+
36
+ spec.add_dependency "oga", "~> 3.0"
37
+ spec.add_dependency "htmlentities", "~> 4.3"
38
+
39
+ spec.add_development_dependency "bundler", "~> 1.17"
40
+ spec.add_development_dependency "rake", "~> 10.0"
41
+ spec.add_development_dependency "rspec", "~> 3.9"
42
+ spec.add_development_dependency "byebug", "~> 11.0"
43
+ end
metadata ADDED
@@ -0,0 +1,149 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: svgthang
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Joey Beninghove
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-12-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: oga
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: htmlentities
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '4.3'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '4.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.17'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.17'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.9'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.9'
83
+ - !ruby/object:Gem::Dependency
84
+ name: byebug
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '11.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '11.0'
97
+ description: Tool for converting SVGs to other formats like ERB partials or Liquid
98
+ templates
99
+ email:
100
+ - me@joey.io
101
+ executables:
102
+ - svgthang
103
+ extensions: []
104
+ extra_rdoc_files: []
105
+ files:
106
+ - ".gitignore"
107
+ - CHANGELOG.md
108
+ - CODE_OF_CONDUCT.md
109
+ - Gemfile
110
+ - Gemfile.lock
111
+ - LICENSE.txt
112
+ - README.md
113
+ - Rakefile
114
+ - bin/console
115
+ - bin/setup
116
+ - exe/svgthang
117
+ - lib/svgthang.rb
118
+ - lib/svgthang/erb_converter.rb
119
+ - lib/svgthang/liquid_converter.rb
120
+ - lib/svgthang/mirrorer.rb
121
+ - lib/svgthang/version.rb
122
+ - svgthang.gemspec
123
+ homepage: https://joey.io
124
+ licenses:
125
+ - MIT
126
+ metadata:
127
+ homepage_uri: https://joey.io
128
+ source_code_uri: https://github.com/joeybeninghove/svgthang
129
+ changelog_uri: https://github.com/joeybeninghove/svgthang/blob/master/CHANGELOG.md
130
+ post_install_message:
131
+ rdoc_options: []
132
+ require_paths:
133
+ - lib
134
+ required_ruby_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ requirements: []
145
+ rubygems_version: 3.0.3
146
+ signing_key:
147
+ specification_version: 4
148
+ summary: Ain't nuthin' but a SVG thang, baby
149
+ test_files: []