rack-params 0.0.1.pre2 → 0.0.1.pre3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86107cdc74eeb3167136590e9b84f81a5b0f3d96
4
- data.tar.gz: ac02daae71158e4e08d3fcd501437598a0bdd8ff
3
+ metadata.gz: 9639d1c1bf66f13870bb654b66e08daf47b83b0a
4
+ data.tar.gz: a1f5b916ef01a61473ec7846d61bd2b81868ecb3
5
5
  SHA512:
6
- metadata.gz: 11a1bb6dc8bcb6aedaf33bcc6bda8eafdf2d365546550bcb1324e4b11f1c56302ce7a417e8722682894f40a366decc8659aeb67c32189fe831dcee6120e8886d
7
- data.tar.gz: 4d04be133239c605b4c3fec310d6c5412d8dc8241389e3a750bd4fc4f4c4abf22e16424ffe0a7c1417153063831511840b6d0cd2be603d946c889aa0d3ad2ba3
6
+ metadata.gz: 9b760ac7d1b02b4f43c81af56220c503301eaf876a1fb0b7dc8f2dd6b21183042a6752c6c462dbfe48fc8a33b039fb872cc5bdbabd1047b5201ff807d600282e
7
+ data.tar.gz: 75fb7462ecb7f70e145b422ea76b26f673f20f7543a7b31cbb444270b26332c6481b3e991e2905eda3fa18d98e679fd0657ef70ed25aab8dd504b977c8a2a3ad
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Rack::Params
2
- [![Build Status](https://travis-ci.org/lygaret/rack-params.svg?branch=master)](https://travis-ci.org/lygaret/rack-params)
2
+ [![Gem Version](https://badge.fury.io/rb/rack-params.svg)](https://badge.fury.io/rb/rack-params) [![Build Status](https://travis-ci.org/lygaret/rack-params.svg?branch=master)](https://travis-ci.org/lygaret/rack-params) [![Coverage Status](https://coveralls.io/repos/github/lygaret/rack-params/badge.svg?branch=master)](https://coveralls.io/github/lygaret/rack-params?branch=master)
3
3
 
4
4
  `Rack::Request.params` validation and type coercion, on Rack.
5
5
 
data/Rakefile CHANGED
@@ -1,6 +1,8 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
+ require "coveralls/rake/task"
3
4
 
4
5
  RSpec::Core::RakeTask.new(:spec)
6
+ Coveralls::RakeTask.new
5
7
 
6
8
  task :default => :spec
data/_config.yml ADDED
@@ -0,0 +1 @@
1
+ theme: jekyll-theme-minimal
@@ -63,19 +63,7 @@ module Rack
63
63
 
64
64
  def _validate(name, value, validation, options)
65
65
  options = {} if options == true
66
-
67
- if validation == :oneOf
68
- raise InvalidParameterError, "must be one of #{options}" unless options.include? value
69
-
70
- elsif validation == :uri
71
- uri = URI.parse(value)
72
- schemes = options.fetch(:schemes, %w(http https))
73
- local = options.fetch(:local, false)
74
-
75
- unless uri && uri.host && schemes.include?(uri.scheme) && (local || uri.host.include?('.'))
76
- raise InvalidParameterError, "must be a #{schemes.join(',')} URI"
77
- end
78
- end
66
+ # what to do...
79
67
  end
80
68
 
81
69
  def _recurse(name, type, value, &block)
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Params
3
- VERSION = "0.0.1.pre2"
3
+ VERSION = "0.0.1.pre3"
4
4
  end
5
5
  end
data/rack-params.gemspec CHANGED
@@ -24,6 +24,11 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.16"
26
26
  spec.add_development_dependency "rake", "~> 10.0"
27
+
27
28
  spec.add_development_dependency "rspec", "~> 3.0"
29
+ spec.add_development_dependency 'coveralls'
30
+ spec.add_development_dependency 'simplecov'
31
+ spec.add_development_dependency 'simplecov-console'
32
+
28
33
  spec.add_development_dependency "byebug", "~> 9.0"
29
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-params
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre2
4
+ version: 0.0.1.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Raphaelson
@@ -66,6 +66,48 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: coveralls
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov-console
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
69
111
  - !ruby/object:Gem::Dependency
70
112
  name: byebug
71
113
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +136,7 @@ files:
94
136
  - LICENSE.txt
95
137
  - README.md
96
138
  - Rakefile
139
+ - _config.yml
97
140
  - bin/console
98
141
  - bin/setup
99
142
  - lib/rack/params.rb