governator 0.1.4 → 0.1.5

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: e83849b1368c34a77c30164f2f862ccda8d7bc2e
4
- data.tar.gz: 2af4ab9bb776e17a4455539aafeac5d68f4ffeb9
3
+ metadata.gz: d5327f863405f454b4710f2bfc96e722803715a0
4
+ data.tar.gz: 436e569409abd1fb139b9dc5397b9489d1dc77b5
5
5
  SHA512:
6
- metadata.gz: bfa0cdae74b49c0807e90b865e82811a32c490dc5d8c5299a3d22473faca6cc19a228a6c1e5bac0a71389c38af5d785fa67b5fc1959ba602d4ba2100650bc132
7
- data.tar.gz: 0b003baed9cc21ac5aac09a92e83dd58835f3bbc94c3eb8005d786504889dbe063ca5a232ca41125e349ead6c60be2dc348304f085cbf2647d4a489cfe628a3a
6
+ metadata.gz: 074ed2d205bb36b6afaa02b36a1392fb2b16fa3840e9c0f63e0dbc74379c4fb16adde1b8abd83515634ce7496538ce197174a46bdc46af5db2e6e2b3aea9e19f
7
+ data.tar.gz: e52f2ac63e43f1e418b6d19a9d0b12ea767721f82029728c9eaac68127797a1c4017874eeb26dc72e890c4a10264038f59986361bca476121b9c2906f0a0d599
data/lib/governator.rb CHANGED
@@ -130,9 +130,9 @@ class Governator
130
130
 
131
131
  def fetch_twitter_handle
132
132
  twitter_governor = TwitterClient.governors.detect do |tg|
133
- tg[:name].match?(last) &&
134
- tg[:location].match?(state_name) ||
135
- tg[:description].match?(state_name)
133
+ tg[:name].match?(last) && (
134
+ tg[:location].match?(state_name) || tg[:description].match?(state_name)
135
+ )
136
136
  end
137
137
 
138
138
  @twitter = twitter_governor[:screen_name] if twitter_governor
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Governator
4
- VERSION = '0.1.4'
4
+ VERSION = '0.1.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: governator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. Simon Borg