-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhash_params.gemspec
36 lines (28 loc) · 1.56 KB
/
hash_params.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
# -*- encoding: utf-8 -*-
require File.dirname(__FILE__) + '/lib/hash_params'
Gem::Specification.new do |s|
s.name = 'hash_params'
s.license = 'MIT'
s.authors = ['Tim Uckun']
s.email = '[email protected]'
s.homepage = 'https://github.com/timuckun/hash_params'
s.version = HashParams::VERSION
s.platform = Gem::Platform::RUBY
s.summary = 'Parameter Validation & Type Coercion for parameters passed in as a Hash..'
s.description = 'hash-param allows you to declare, validate, and transform endpoint parameters as you would in frameworks like ActiveModel or DataMapper without the overhead.
This gem is a variation of the sinatra-param gem https://github.com/mattt/sinatra-param modified to be more generic and with some additional features'
s.files = Dir["./**/*"].reject { |file| file =~ /\.\/(bin|log|pkg|script|spec|test|vendor)/ }
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
# gem.require_paths = ['lib']
# gem.files = %w(.yardopts CHANGELOG.md CONTRIBUTING.md LICENSE README.md UPGRADING.md Rakefile hashie.gemspec)
# gem.files += Dir['lib/**/*.rb']
# gem.files += Dir['spec/**/*.rb']
# gem.test_files = Dir['spec/**/*.rb']
s.add_development_dependency 'rake'
s.add_development_dependency 'minitest'
s.add_development_dependency 'minitest-spec'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'pry'
end