|
1 | | -# coding: utf-8 |
2 | | -lib = File.expand_path('../lib', __FILE__) |
| 1 | +# frozen_string_literal: true |
| 2 | + |
| 3 | +lib = File.expand_path('lib', __dir__) |
3 | 4 | $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) |
4 | 5 | require 'junoser/version' |
5 | 6 |
|
6 | 7 | Gem::Specification.new do |spec| |
7 | | - spec.name = "junoser" |
| 8 | + spec.name = 'junoser' |
8 | 9 | spec.version = Junoser::VERSION |
9 | | - spec.authors = ["Shintaro Kojima"] |
10 | | - spec.email = ["[email protected]"] |
| 10 | + spec.authors = ['Shintaro Kojima'] |
| 11 | + spec.email = ['[email protected]'] |
11 | 12 |
|
12 | | - spec.summary = %q{PEG parser for JUNOS configuration.} |
13 | | - spec.description = %q{PEG parser to vefiry and translate into different formats for JUNOS configuration.} |
14 | | - spec.homepage = "https://github.com/codeout/junoser" |
| 13 | + spec.summary = 'PEG parser for JUNOS configuration.' |
| 14 | + spec.description = 'PEG parser to vefiry and translate into different formats for JUNOS configuration.' |
| 15 | + spec.homepage = 'https://github.com/codeout/junoser' |
15 | 16 |
|
16 | 17 | # Specify which files should be added to the gem when it is released. |
17 | 18 | # The `git ls-files -z` loads the files in the RubyGem that have been added into git. |
18 | | - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do |
| 19 | + spec.files = Dir.chdir(File.expand_path(__dir__)) do |
19 | 20 | `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|example)/}) } |
20 | 21 | end |
21 | | - spec.bindir = "exe" |
| 22 | + spec.bindir = 'exe' |
22 | 23 | spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } |
23 | | - spec.require_paths = ["lib"] |
| 24 | + spec.require_paths = ['lib'] |
24 | 25 |
|
25 | | - spec.add_dependency "parslet" |
| 26 | + spec.add_dependency 'parslet' |
26 | 27 |
|
27 | | - spec.add_development_dependency "bundler", "~> 2.0" |
28 | | - spec.add_development_dependency "rake", "~> 13.0" |
29 | | - spec.add_development_dependency "nokogiri" |
30 | | - spec.add_development_dependency "test-unit" |
| 28 | + spec.metadata['rubygems_mfa_required'] = 'true' |
31 | 29 | end |
0 commit comments