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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 548ad24cc10525bee68f71efb84786a0f490419f
4
- data.tar.gz: 4baf6cbd9b0b98973f139181d69a968b3c16dc50
3
+ metadata.gz: 7884d08e11ec38241caeca586cff0238fb81bd54
4
+ data.tar.gz: b2ab2aa464a5d69917b75bf7f3550a2c0d795f0a
5
5
  SHA512:
6
- metadata.gz: 11bf3c92150c6ce9585e675208ce7553427e83c10de6a0d91fa50919c038eba254c2eefaf7902fedccb60109949d2f2a58eecb3297fa28ea526498be8e92b50f
7
- data.tar.gz: e0660c2f73fd50bdd268221b496e32d018a2a86c55734ca31ec3c11e66bddad4445eea4efd6de6c92739812203b19a7eae1da19470447d76090483d75631c217
6
+ metadata.gz: 8dc12b2de19db14730392366b7e6b6e27a22158e939d28582aef7e7ac81691ae8bea37b83ba79aa8a0f6360f603c4d10a6101c8b8481a894b25f76e8fd15bf4c
7
+ data.tar.gz: 2027150b43a529be6ab6c778bf39b8d4ff4939894fa443cfa428c946a2749b247d27897c0ebdea04997ea3bf27b8303666b66e13ba1cd728fa1ccdce3d37202d
@@ -1,6 +1,10 @@
1
1
  Change Log
2
2
  ==========
3
3
 
4
+ ## 2.4.1 - 7 August 2013
5
+
6
+ * Further integration of validations.
7
+
4
8
  ## 2.4.0 - 29 July 2014
5
9
 
6
10
  * Removed assistance gem and extracted validations into a local file. (David van Geest)
@@ -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/validations'
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'
@@ -152,3 +152,4 @@ module Validation
152
152
  end
153
153
  end
154
154
  end
155
+
@@ -12,4 +12,8 @@ class Array
12
12
  def blank?
13
13
  empty?
14
14
  end
15
+
16
+ def extract_options!
17
+ last.is_a?(Hash) ? pop : {}
18
+ end
15
19
  end
@@ -249,3 +249,4 @@ module Validation
249
249
  end
250
250
  end
251
251
  end
252
+
@@ -1,3 +1,3 @@
1
1
  module RCAP
2
- VERSION = '2.4.0'
2
+ VERSION = '2.4.1'
3
3
  end
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.0
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-28 00:00:00.000000000 Z
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/validations.rb
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