-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathimage_scraper.gemspec
37 lines (29 loc) · 1.25 KB
/
image_scraper.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# frozen_string_literal: true
require_relative 'lib/image_scraper/version'
Gem::Specification.new do |spec|
spec.name = 'image_scraper'
spec.version = ImageScraper::VERSION
spec.authors = ['John McAliley', 'Matt McMahand']
spec.email = ['john.mcaliley@gmail.com', 'matt@invalid8.com']
spec.summary = 'Simple utility to pull image urls from web page'
spec.description = spec.summary
spec.homepage = 'http://github.com/charlotte-ruby/image_scraper'
spec.license = 'MIT'
spec.required_ruby_version = '>= 2.6.0'
spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage
spec.metadata['changelog_uri'] = File.join(spec.homepage, 'blob/master/CHANGELOG.md')
spec.metadata['rubygems_mfa_required'] = 'true'
begin
files = (result = `git ls-files -z`.split "\0").empty? ? Dir['**/*'] : result
rescue StandardError
files = Dir['**/*']
end
# Specify which files should be added to the gem when it is released.
spec.files = files.grep_v(/^\A(?:(?:test|spec|features|.git|sig))/)
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.add_dependency 'css_parser', '~> 1.11'
spec.add_dependency 'nokogiri', '~> 1.13'
end