M .rubocop.yml => .rubocop.yml +4 -0
@@ 67,6 67,10 @@ Style/ClassVars:
Style/Documentation:
Enabled: false
+Style/FileName:
+ Exclude:
+ - lib/dhall-xml.rb
+
Style/FormatString:
EnforcedStyle: percent
M Gemfile => Gemfile +1 -3
@@ 2,6 2,4 @@
source "https://rubygems.org"
-gem "dhall", "~> 0.4.0"
-gem "nokogiri"
-gem "simplecov"
+gemspec
M Makefile => Makefile +5 -0
@@ 1,5 1,10 @@
.PHONY: lint test
+dhall-xml.gem: dhall-xml.gemspec
+ $(RM) dhall-xml.gem
+ gem build dhall-xml.gemspec
+ mv dhall-xml*.gem dhall-xml.gem
+
test:
bundle exec ruby -E UTF-8 -Ilib/ test/test_suite.rb
A dhall-xml.gemspec => dhall-xml.gemspec +26 -0
@@ 0,0 1,26 @@
+# frozen_string_literal: true
+
+Gem::Specification.new do |spec|
+ spec.name = "dhall-xml"
+ spec.version = `git describe --always --dirty`
+ spec.authors = ["Stephen Paul Weber"]
+ spec.email = ["dev@singpolyma.net"]
+ spec.license = "GPL-3.0"
+
+ spec.summary = "XML extensions for Dhall"
+ spec.description = "Use Dhall to generate XML or integrate with Nokogiri."
+
+ spec.files =
+ `git ls-files -z`.split("\x00".b).reject do |f|
+ f.start_with?(".", "test/", "scripts/") ||
+ f == "Makefile" || f == "Gemfile"
+ end
+ spec.bindir = "bin"
+ spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
+ spec.require_paths = ["lib"]
+
+ spec.add_dependency "dhall", "~> 0.4.0"
+ spec.add_dependency "nokogiri", "~> 1.10"
+
+ spec.add_development_dependency "simplecov", "~> 0.16.1"
+end
A lib/dhall-xml.rb => lib/dhall-xml.rb +3 -0
@@ 0,0 1,3 @@
+# frozen_string_literal: true
+
+require "dhall/xml"