rcap 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/rcap.rb +3 -5
- data/lib/rcap/{validations.rb → custom_validators.rb} +1 -0
- data/lib/rcap/extensions/array.rb +4 -0
- data/lib/{assistance → rcap}/validation.rb +1 -0
- data/lib/rcap/version.rb +1 -1
- metadata +4 -5
- data/lib/assistance/extract_options.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7884d08e11ec38241caeca586cff0238fb81bd54
|
4
|
+
data.tar.gz: b2ab2aa464a5d69917b75bf7f3550a2c0d795f0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dc12b2de19db14730392366b7e6b6e27a22158e939d28582aef7e7ac81691ae8bea37b83ba79aa8a0f6360f603c4d10a6101c8b8481a894b25f76e8fd15bf4c
|
7
|
+
data.tar.gz: 2027150b43a529be6ab6c778bf39b8d4ff4939894fa443cfa428c946a2749b247d27897c0ebdea04997ea3bf27b8303666b66e13ba1cd728fa1ccdce3d37202d
|
data/CHANGELOG.md
CHANGED
data/lib/rcap.rb
CHANGED
@@ -9,10 +9,6 @@ require 'open-uri'
|
|
9
9
|
require 'base64'
|
10
10
|
require 'digest/sha1'
|
11
11
|
|
12
|
-
# these files are taken from the defunct assitance gem and are included as source in this gem
|
13
|
-
require 'assistance/extract_options'
|
14
|
-
require 'assistance/validation'
|
15
|
-
|
16
12
|
# Extensions
|
17
13
|
require 'rcap/extensions/nil_class'
|
18
14
|
require 'rcap/extensions/fixnum'
|
@@ -26,7 +22,8 @@ require 'rcap/extensions/date'
|
|
26
22
|
# RCAP
|
27
23
|
require 'rcap/version'
|
28
24
|
require 'rcap/utilities'
|
29
|
-
require 'rcap/
|
25
|
+
require 'rcap/validation'
|
26
|
+
require 'rcap/custom_validators'
|
30
27
|
# Base
|
31
28
|
require 'rcap/base/parameter'
|
32
29
|
require 'rcap/base/point'
|
@@ -74,5 +71,6 @@ require 'rcap/cap_1_2/area'
|
|
74
71
|
|
75
72
|
require 'rcap/info'
|
76
73
|
require 'rcap/alert'
|
74
|
+
|
77
75
|
# Configuration
|
78
76
|
require 'rcap/config'
|
data/lib/rcap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rcap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Farrel Lifson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07
|
11
|
+
date: 2014-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -95,8 +95,6 @@ files:
|
|
95
95
|
- Gemfile
|
96
96
|
- README.md
|
97
97
|
- Rakefile
|
98
|
-
- lib/assistance/extract_options.rb
|
99
|
-
- lib/assistance/validation.rb
|
100
98
|
- lib/rcap.rb
|
101
99
|
- lib/rcap/alert.rb
|
102
100
|
- lib/rcap/base/alert.rb
|
@@ -140,6 +138,7 @@ files:
|
|
140
138
|
- lib/rcap/cap_1_2/polygon.rb
|
141
139
|
- lib/rcap/cap_1_2/resource.rb
|
142
140
|
- lib/rcap/config.rb
|
141
|
+
- lib/rcap/custom_validators.rb
|
143
142
|
- lib/rcap/extensions/array.rb
|
144
143
|
- lib/rcap/extensions/date.rb
|
145
144
|
- lib/rcap/extensions/date_time.rb
|
@@ -150,7 +149,7 @@ files:
|
|
150
149
|
- lib/rcap/extensions/time.rb
|
151
150
|
- lib/rcap/info.rb
|
152
151
|
- lib/rcap/utilities.rb
|
153
|
-
- lib/rcap/
|
152
|
+
- lib/rcap/validation.rb
|
154
153
|
- lib/rcap/version.rb
|
155
154
|
- rcap.gemspec
|
156
155
|
- spec/alert_spec.rb
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# Array extensions
|
2
|
-
class Array
|
3
|
-
# Removes and returns the last member of the array if it is a hash. Otherwise,
|
4
|
-
# an empty hash is returned This method is useful when writing methods that
|
5
|
-
# take an options hash as the last parameter. For example:
|
6
|
-
#
|
7
|
-
# def validate_each(*args, &block)
|
8
|
-
# opts = args.extract_options!
|
9
|
-
# ...
|
10
|
-
# end
|
11
|
-
def extract_options!
|
12
|
-
last.is_a?(Hash) ? pop : {}
|
13
|
-
end
|
14
|
-
end
|