get-your-rep 1.1.0 → 1.1.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: 525f29909bf1690e4fe35ca0b23571e9e5aa2c1d
4
- data.tar.gz: d6378420bd8bf41840d5b91764474146a721fcae
3
+ metadata.gz: 839cadee15c7e85c63f324be9aa8e7c8e9d4645c
4
+ data.tar.gz: 5f932732be3da07629fb6332de2d9bd07c50f92c
5
5
  SHA512:
6
- metadata.gz: 286fc80f857728c5180ad4547aa072123ea10ead4eaff9c97b5ec58f81e0f841b04bdea0bdfa5468b0f7902a3bc5574fbc8891fef86592f3928649b58cc57bcf
7
- data.tar.gz: 7af1318a9327e8d8d3245672247f4102dcba9693c8d49ef81b9d10c1b5c702e4e243b0963933a525d8c69a2f1fa0f7d5882bbb6ad7c7a728922c9e45bb0defd6
6
+ metadata.gz: 78de803d20f2ffd74eba17b2a8c769e6793893545fa35de5189f762b3839fefce2d689ad38c9901416c6de6f92acd17debf8787827ab00a207e1b745bd525de1
7
+ data.tar.gz: e7c46802f372cfecca5faa50ba9b3d58124237ce8f451c7a0375e93efd75c8182ce97aebdade76a305bd13286da3e10500bd2725a38fa586983e68938cc17495
@@ -12,7 +12,11 @@ class Delegation < Array
12
12
 
13
13
  # Overloads the + operator to return a new Delegation instead of an Array.
14
14
  def +(value)
15
- Delegation.new(super)
15
+ if value.is_a?(Delegation)
16
+ super.to_del
17
+ else
18
+ Delegation.new(super)
19
+ end
16
20
  end
17
21
 
18
22
  # Collects the first names of every rep in the Delegation.
@@ -8,7 +8,7 @@ end
8
8
 
9
9
  # :nodoc
10
10
  class Hash
11
- # Converts a Hash to a Delegation
11
+ # Wraps a Hash in a Delegation
12
12
  def to_del
13
13
  del = Delegation.new
14
14
  del << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get-your-rep
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - msimonborg
@@ -58,6 +58,26 @@ dependencies:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: 5.10.1
61
+ - !ruby/object:Gem::Dependency
62
+ name: minitest-reporters
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '1.1'
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 1.1.13
71
+ type: :development
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: '1.1'
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: 1.1.13
61
81
  description: Get your rep with Google's Civic Information API using your address and
62
82
  API key.
63
83
  email: msimonborg@gmail.com