despecable 0.0.5 → 0.1.0

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: 98cd98797bdd7901e3577dc059fa92556d456c11
4
- data.tar.gz: 3f23e8c9cb02084a5ac39161bbe2756f52512dc9
3
+ metadata.gz: 9a990382ac0e881252fdba00bb3da79c83efd94b
4
+ data.tar.gz: 968824fbdd35b569e35480c1ff8e44e56e8d9f37
5
5
  SHA512:
6
- metadata.gz: bfe5b70765a7c8d6612df4d7746db2c49e887a5aae5d02ac879665d656646ac016abae7d12380c2e87ce773b5e063857838a4fe02ab6a874534fb55007b1312b
7
- data.tar.gz: 1f0e453dc92b6df6830e0feb43c749d552475f57a997675a451e1209bf601e400720131cc017350e29611a33d612705bd269740062378d4c412ef3817fc1d3d9
6
+ metadata.gz: ec7b8ba68446f1e2b6ecc3b1695fae9794044ea19e166ca690bfa632b982f20558db7e6037068d76127c8181a3bf2a2866a6f86e8b8cd0580676c3dbd827896c
7
+ data.tar.gz: a6267c9f73c3545f0967954bc36d80bf7ca2aa020b77f2f0f90363a560832db8123fbdb69b6cd7a6cd233f6fddca2c300f1c3d4cd68313713117737e47747931
@@ -43,7 +43,7 @@ module Despecable
43
43
  private
44
44
 
45
45
  def _spec(name, type, options = {})
46
- @specd.append(name)
46
+ @specd << (name)
47
47
  if !params.key?(name) && options[:default]
48
48
  params[name] = options[:default]
49
49
  elsif options[:array]
data/lib/despecable.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  module Despecable; end
2
2
 
3
+ require "date"
4
+
3
5
  require "despecable/action_controller.rb"
4
6
  require "despecable/me.rb"
5
7
  require "despecable/spectator.rb"
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: despecable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Schwartz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-17 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2017-12-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pry
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.10.4
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.10.4
13
41
  description: Write self-documenting parameter validation and type-casting in your
14
42
  API actions. Docs and development at https://github.com/ozydingo/despecable.
15
43
  email: ozydingo@gmail.com