2011-08-03 13:02:44 -04:00
|
|
|
# -*- encoding: utf-8 -*-
|
2017-07-14 02:15:58 -04:00
|
|
|
# frozen_string_literal: true
|
2011-08-03 13:02:44 -04:00
|
|
|
|
2018-08-26 20:44:04 -04:00
|
|
|
begin
|
|
|
|
require_relative 'lib/psych/versions'
|
|
|
|
rescue LoadError
|
2018-10-20 00:25:04 -04:00
|
|
|
# for Ruby core repository
|
2018-08-26 20:44:04 -04:00
|
|
|
require_relative 'versions'
|
|
|
|
end
|
|
|
|
|
2011-08-03 13:02:44 -04:00
|
|
|
Gem::Specification.new do |s|
|
2011-10-03 17:44:38 -04:00
|
|
|
s.name = "psych"
|
2018-08-26 20:44:04 -04:00
|
|
|
s.version = Psych::VERSION
|
2016-11-30 08:55:02 -05:00
|
|
|
s.authors = ["Aaron Patterson", "SHIBATA Hiroshi", "Charles Oliver Nutter"]
|
|
|
|
s.email = ["aaron@tenderlovemaking.com", "hsbt@ruby-lang.org", "headius@headius.com"]
|
2016-09-06 23:16:15 -04:00
|
|
|
s.summary = "Psych is a YAML parser and emitter"
|
|
|
|
s.description = <<-DESCRIPTION
|
2018-10-20 00:25:04 -04:00
|
|
|
Psych is a YAML parser and emitter. Psych leverages libyaml[https://pyyaml.org/wiki/LibYAML]
|
2016-09-06 23:16:15 -04:00
|
|
|
for its YAML parsing and emitting capabilities. In addition to wrapping libyaml,
|
|
|
|
Psych also knows how to serialize and de-serialize most Ruby objects to and from the YAML format.
|
|
|
|
DESCRIPTION
|
2016-11-13 19:40:04 -05:00
|
|
|
s.homepage = "https://github.com/ruby/psych"
|
2013-11-26 17:14:34 -05:00
|
|
|
s.licenses = ["MIT"]
|
2016-09-06 23:16:15 -04:00
|
|
|
s.require_paths = ["lib"]
|
2016-09-08 01:33:59 -04:00
|
|
|
|
|
|
|
# for ruby core repository. It was generated by `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
2017-07-14 02:15:58 -04:00
|
|
|
s.files = [
|
2019-02-26 01:56:55 -05:00
|
|
|
".gitignore", ".travis.yml", "Gemfile", "Mavenfile", "README.md", "Rakefile", "bin/console",
|
2018-04-27 21:47:58 -04:00
|
|
|
"bin/setup", "ext/psych/depend", "ext/psych/extconf.rb", "ext/psych/psych.c", "ext/psych/psych.h",
|
2017-07-14 02:15:58 -04:00
|
|
|
"ext/psych/psych_emitter.c", "ext/psych/psych_emitter.h", "ext/psych/psych_parser.c", "ext/psych/psych_parser.h",
|
|
|
|
"ext/psych/psych_to_ruby.c", "ext/psych/psych_to_ruby.h", "ext/psych/psych_yaml_tree.c", "ext/psych/psych_yaml_tree.h",
|
|
|
|
"ext/psych/yaml/LICENSE", "ext/psych/yaml/api.c", "ext/psych/yaml/config.h", "ext/psych/yaml/dumper.c",
|
|
|
|
"ext/psych/yaml/emitter.c", "ext/psych/yaml/loader.c", "ext/psych/yaml/parser.c", "ext/psych/yaml/reader.c",
|
|
|
|
"ext/psych/yaml/scanner.c", "ext/psych/yaml/writer.c", "ext/psych/yaml/yaml.h", "ext/psych/yaml/yaml_private.h",
|
|
|
|
"lib/psych.rb", "lib/psych/class_loader.rb", "lib/psych/coder.rb", "lib/psych/core_ext.rb", "lib/psych/exception.rb",
|
|
|
|
"lib/psych/handler.rb", "lib/psych/handlers/document_stream.rb", "lib/psych/handlers/recorder.rb",
|
|
|
|
"lib/psych/json/ruby_events.rb", "lib/psych/json/stream.rb", "lib/psych/json/tree_builder.rb",
|
|
|
|
"lib/psych/json/yaml_events.rb", "lib/psych/nodes.rb", "lib/psych/nodes/alias.rb", "lib/psych/nodes/document.rb",
|
|
|
|
"lib/psych/nodes/mapping.rb", "lib/psych/nodes/node.rb", "lib/psych/nodes/scalar.rb", "lib/psych/nodes/sequence.rb",
|
|
|
|
"lib/psych/nodes/stream.rb", "lib/psych/omap.rb", "lib/psych/parser.rb", "lib/psych/scalar_scanner.rb",
|
|
|
|
"lib/psych/set.rb", "lib/psych/stream.rb", "lib/psych/streaming.rb", "lib/psych/syntax_error.rb",
|
|
|
|
"lib/psych/tree_builder.rb", "lib/psych/versions.rb", "lib/psych/visitors.rb","lib/psych/visitors/depth_first.rb",
|
|
|
|
"lib/psych/visitors/emitter.rb", "lib/psych/visitors/json_tree.rb", "lib/psych/visitors/to_ruby.rb",
|
|
|
|
"lib/psych/visitors/visitor.rb", "lib/psych/visitors/yaml_tree.rb", "lib/psych/y.rb", "psych.gemspec"
|
|
|
|
]
|
2016-09-06 23:16:15 -04:00
|
|
|
|
2016-11-13 19:40:04 -05:00
|
|
|
s.rdoc_options = ["--main", "README.md"]
|
2019-02-26 18:44:33 -05:00
|
|
|
s.extra_rdoc_files = ["README.md"]
|
2016-09-06 23:16:15 -04:00
|
|
|
|
2019-07-24 16:08:59 -04:00
|
|
|
s.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
2016-06-24 05:06:08 -04:00
|
|
|
s.rubygems_version = "2.5.1"
|
2016-09-06 23:16:15 -04:00
|
|
|
s.required_rubygems_version = Gem::Requirement.new(">= 0")
|
2016-06-24 05:06:08 -04:00
|
|
|
|
2016-11-30 08:55:02 -05:00
|
|
|
if RUBY_ENGINE == 'jruby'
|
2016-09-06 23:16:15 -04:00
|
|
|
s.platform = 'java'
|
2017-07-14 02:15:58 -04:00
|
|
|
s.files.concat [
|
2018-12-17 21:01:39 -05:00
|
|
|
"ext/java/org/jruby/ext/psych/PsychEmitter.java",
|
|
|
|
"ext/java/org/jruby/ext/psych/PsychLibrary.java",
|
|
|
|
"ext/java/org/jruby/ext/psych/PsychParser.java",
|
|
|
|
"ext/java/org/jruby/ext/psych/PsychToRuby.java",
|
|
|
|
"ext/java/org/jruby/ext/psych/PsychYamlTree.java",
|
|
|
|
"lib/psych_jars.rb",
|
|
|
|
"lib/psych.jar"
|
2017-07-14 02:15:58 -04:00
|
|
|
]
|
2018-08-26 20:44:04 -04:00
|
|
|
s.requirements = "jar org.yaml:snakeyaml, #{Psych::DEFAULT_SNAKEYAML_VERSION}"
|
2016-09-06 23:16:15 -04:00
|
|
|
s.add_dependency 'jar-dependencies', '>= 0.1.7'
|
2016-06-24 05:06:08 -04:00
|
|
|
else
|
2016-09-06 23:16:15 -04:00
|
|
|
s.extensions = ["ext/psych/extconf.rb"]
|
2016-06-24 05:06:08 -04:00
|
|
|
end
|
2011-08-03 13:02:44 -04:00
|
|
|
end
|