civic_information 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f191f4b57c93f590de515f14419f641c5f0969c61c3530d39fb36e273c69908f
4
- data.tar.gz: 135820cdc370842bff9591be7811bac3c4e8803a20c897533ed54b46bc9d42f4
3
+ metadata.gz: 665d3075653e2ee14b450aaa26393e8f82271b1f01b9f85d6e9d79297c55728b
4
+ data.tar.gz: 4c9173c54a0e3ba4100be288ccb2b06114a93fd96ce1525cc2d495e758bd6834
5
5
  SHA512:
6
- metadata.gz: 5a6aa69986eada23823eff9aff7487de11278f4d4db96fad284d27f48062a547c5d660bdcd3a2687707d16135057e3267ae646aa1e998d3b9e07ea4c664a189f
7
- data.tar.gz: 547b36d74bb0569010cf4efc981076e4e1a57002d4e97280910486d465005c5e158afd26e277d94d371cc959af81f373b6aa962f9d437a4ed88aa7990e09b1c0
6
+ metadata.gz: e21e76557fc87ced3aaf23f7acec1e8817843775e376b809ff5c546b02bdc7f2750a7ec9801c4647976c24a5c221a0bdfd7acd055348276af65ebaba804398c7
7
+ data.tar.gz: a01d431efbb53979277bf0c2b0fbba0bec9f784bf71c8866d0bdb8ec9ae806b4459b6c11da1d72f0f64cda98e1b7f59cc033c7de37eb9d4d1ba857d473bd9d10
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- civic_information (1.1.0)
4
+ civic_information (1.2.0)
5
5
  httparty (= 0.18.0)
6
6
 
7
7
  GEM
@@ -2,11 +2,12 @@ module CivicInformation
2
2
  class RepresentativesResource
3
3
  attr_accessor :divisions, :offices, :officials
4
4
 
5
- def self.where(address: nil, roles: nil)
5
+ def self.where(address: nil, roles: nil, levels: nil)
6
6
  response = CivicInformation.get "/representatives", query: {
7
7
  key: CivicInformation.configuration.google_api_key,
8
8
  address: address,
9
- roles: roles
9
+ roles: roles,
10
+ levels: levels
10
11
  }.delete_if { |k, v| v.nil? }
11
12
 
12
13
  self.new response: response
@@ -1,3 +1,3 @@
1
1
  module CivicInformation
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: civic_information
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Olson