-
Notifications
You must be signed in to change notification settings - Fork 0
/
diffable_yaml.gemspec
42 lines (35 loc) · 1.67 KB
/
diffable_yaml.gemspec
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
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'diffable_yaml/version'
Gem::Specification.new do |spec|
spec.name = 'diffable_yaml'
spec.version = DiffableYAML::VERSION
spec.authors = ["nrser"]
spec.email = '[email protected]'
spec.summary = "dump YAML in Ruby with hash keys ordered to make text diffs easier"
spec.description = <<-EOS
this is a little chunck of code i use to dump Ruby objects to YAML with Hash
keys in a some-what consistent order.
i do this because i often find myself using YAML files as data storage and
this makes it a lot easier to compare versions with text-based diff toolspec.
this lib is horribly alpha and has no tests what-so-ever. i'm sure it's
as full or bugs and bad ideas as 100 lines of code can be. i just put it
here so it's easier for me to use across projectspec. but you're welcome
to take it for a spin too if you really want.
this relies on Psych internals, so it has a dependency on pysch ~> 2.0.
it might work fine with other versions; that's just all i've tested it
against at the moment.
EOS
spec.homepage = 'https://github.com/nrser/DiffableYAML'
spec.license = 'BSD'
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_dependency 'psych', '~> 2.0'
spec.add_development_dependency "bundler", "~> 1.5"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
spec.add_development_dependency "nrser"
end