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 +4 -4
- data/lib/governator.rb +3 -3
- data/lib/governator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5327f863405f454b4710f2bfc96e722803715a0
|
4
|
+
data.tar.gz: 436e569409abd1fb139b9dc5397b9489d1dc77b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/governator/version.rb
CHANGED