-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgoogle_robotstxt_parser.gemspec
More file actions
45 lines (37 loc) · 1.69 KB
/
google_robotstxt_parser.gemspec
File metadata and controls
45 lines (37 loc) · 1.69 KB
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
38
39
40
41
42
43
44
45
# frozen_string_literal: true
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'google_robotstxt_parser/version'
Gem::Specification.new do |s|
s.name = 'google_robotstxt_parser'
s.version = GoogleRobotstxtParser::VERSION
s.date = '2019-11-25'
s.summary = 'Ruby gem wrapper around Google Robotstxt Parser library'
s.description = 'This is a unofficial Ruby gem that provides a wrapper around [Google Robotstxt Parser C++ library]'
s.authors = ['Bastien Montois']
s.email = 'bastien.montois@la-revanche-des-sites.fr'
s.files = Dir['lib/**/*.rb']
s.homepage = 'https://github.com/larevanchedessites/google-robotstxt-ruby'
s.license = 'MIT'
# normal spec stuff above
s.files = `git ls-files`.split("\n")
# get an array of submodule dirs by executing 'pwd' inside each submodule
gem_dir = File.expand_path(File.dirname(__FILE__)) + "/"
`git submodule --quiet foreach pwd`.split($\).each do |submodule_path|
Dir.chdir(submodule_path) do
submodule_relative_path = submodule_path.sub gem_dir, ""
# issue git ls-files in submodule's directory and
# prepend the submodule path to create absolute file paths
`git ls-files`.split($\).each do |filename|
s.files << "#{submodule_relative_path}/#{filename}"
end
end
end
s.require_paths = %w[lib ext]
s.extensions = ['ext/robotstxt/extconf.rb']
s.add_development_dependency 'bundler', '~> 2.0'
s.add_development_dependency 'rake', '~> 10.0'
s.add_development_dependency 'rake-compiler', '~> 1.0'
s.add_development_dependency 'guard-rspec', '~> 4.7'
s.add_development_dependency 'rspec', '~> 3.0'
end