Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.65 KB | None | 0 0
  1. # -*- encoding: utf-8 -*-
  2. $:.unshift File.expand_path("../lib", __FILE__)
  3. require 'psych'
  4.  
  5. Gem::Specification.new do |s|
  6. s.name = "psych"
  7. s.version = Psych::VERSION
  8. s.authors = ["Aaron Patterson", "SHIBATA Hiroshi", "Charles Oliver Nutter"]
  9. s.email = ["aaron@tenderlovemaking.com", "hsbt@ruby-lang.org", "headius@headius.com"]
  10. s.date = "2016-11-14"
  11. s.summary = "Psych is a YAML parser and emitter"
  12. s.description = <<-DESCRIPTION
  13. Psych is a YAML parser and emitter. Psych leverages libyaml[http://pyyaml.org/wiki/LibYAML]
  14. for its YAML parsing and emitting capabilities. In addition to wrapping libyaml,
  15. Psych also knows how to serialize and de-serialize most Ruby objects to and from the YAML format.
  16. DESCRIPTION
  17. s.homepage = "https://github.com/ruby/psych"
  18. s.licenses = ["MIT"]
  19. s.require_paths = ["lib"]
  20.  
  21. # for ruby core repository. It was generated by `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
  22. s.files = [".gitignore", ".travis.yml", "CHANGELOG.rdoc", "Gemfile", "Mavenfile", "README.md", "Rakefile", "bin/console", "bin/setup", "ext/psych/.gitignore", "ext/psych/depend", "ext/psych/extconf.rb", "ext/psych/psych.c", "ext/psych/psych.h", "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/deprecated.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"]
  23.  
  24. s.rdoc_options = ["--main", "README.md"]
  25. s.extra_rdoc_files = ["CHANGELOG.rdoc", "README.md"]
  26.  
  27. s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
  28. s.rubygems_version = "2.5.1"
  29. s.required_rubygems_version = Gem::Requirement.new(">= 0")
  30.  
  31. s.add_development_dependency 'rake-compiler', ">= 0.4.1"
  32. s.add_development_dependency 'minitest', "~> 5.0"
  33.  
  34. if RUBY_ENGINE == 'jruby'
  35. s.platform = 'java'
  36. s.files.concat ["ext/java/PsychEmitter.java", "ext/java/PsychLibrary.java", "ext/java/PsychParser.java", "ext/java/PsychToRuby.java", "ext/java/PsychYamlTree.java", "lib/psych_jars.rb", "lib/psych.jar"]
  37. s.requirements = "jar org.yaml:snakeyaml, 1.17"
  38. s.add_dependency 'jar-dependencies', '>= 0.1.7'
  39. s.add_development_dependency 'ruby-maven'
  40. else
  41. s.extensions = ["ext/psych/extconf.rb"]
  42. end
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement