Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 32 lines (27 sloc) 0.858 kb
0544fcc R.I.Pienaar First stab at a JSON backend gem
authored
1 require 'rubygems'
2 require 'rake/gempackagetask'
2c7da2d R.I.Pienaar Add test coverage
authored
3 require 'rspec/core/rake_task'
0544fcc R.I.Pienaar First stab at a JSON backend gem
authored
4
5 spec = Gem::Specification.new do |s|
6 s.name = "hiera-json"
6cc6a69 R.I.Pienaar Release 0.2.0
authored
7 s.version = "0.2.0"
0544fcc R.I.Pienaar First stab at a JSON backend gem
authored
8 s.author = "R.I.Pienaar"
9 s.email = "rip@devco.net"
daa6578 R.I.Pienaar Release 0.1.0
authored
10 s.homepage = "https://github.com/ripienaar/hiera-json/"
0544fcc R.I.Pienaar First stab at a JSON backend gem
authored
11 s.summary = "JSON backend for the Hiera hierarcical data store"
12 s.description = "Store Hiera data in JSON"
6cc6a69 R.I.Pienaar Release 0.2.0
authored
13 s.files = FileList["lib/**/*"].to_a
0544fcc R.I.Pienaar First stab at a JSON backend gem
authored
14 s.require_path = "lib"
6cc6a69 R.I.Pienaar Release 0.2.0
authored
15 s.test_files = FileList["{spec}/**/*spec.rb"].to_a
0544fcc R.I.Pienaar First stab at a JSON backend gem
authored
16 s.has_rdoc = true
6cc6a69 R.I.Pienaar Release 0.2.0
authored
17 s.add_dependency 'hiera', '~>0.2.0'
232ac01 R.I.Pienaar Changes for Hiera API changes
authored
18 s.add_dependency 'json'
0544fcc R.I.Pienaar First stab at a JSON backend gem
authored
19 end
20
21 Rake::GemPackageTask.new(spec) do |pkg|
22 pkg.need_tar = true
23 end
2c7da2d R.I.Pienaar Add test coverage
authored
24
25 desc "Run all specs"
26 RSpec::Core::RakeTask.new(:test) do |t|
27 t.pattern = 'spec/**/*_spec.rb'
28 t.rspec_opts = File.read("spec/spec.opts").chomp || ""
29 end
232ac01 R.I.Pienaar Changes for Hiera API changes
authored
30
31 task :default => [:test, :repackage]
Something went wrong with that request. Please try again.