zooniverse_social 1.0.0 → 1.0.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: e2170887303b63833125fc8442597b5b40310bf0
4
- data.tar.gz: b9b132c059cc39f2e5801e9e1158ba1e3596237d
3
+ metadata.gz: 13a2b48e21b016642a4fc5ee321082084e424f93
4
+ data.tar.gz: 90908c8d750ae473e6951f088a244e7b44778fe7
5
5
  SHA512:
6
- metadata.gz: 550e4e0a5ae8e3dd2fc3a48509065ec0ec9578206134601c76eb6ac962c81e439ea8f9b2ec72831d3faba79ceff2b74d1a8c6be0feac7408b7280afa05f2bb35
7
- data.tar.gz: 686211f3d27eb7215a817bbc112ba56a3e1fbc4b741a89eaf4ec845ca10c781f1c51f677e2a3e6608ac5616dd19d02677176191274ca91adab44765c2c94b1ec
6
+ metadata.gz: 6af3d0f32ac2faf03c188bb314b2ebf0fbd4e71d04f96ca2446765aad13d17e9bf3c25d1530e15504699d11b0190848697c17dcd6210451cbeaeb2dbc009ad83
7
+ data.tar.gz: f55785f82c04bf4a199a57772f99bd502e181e92332b4793e5a3d4ab9ba5fed4678a692b72ff475d53a3e2aeaffaf149e70b4fc9549efcae58049725d8934df3
@@ -14,7 +14,12 @@ module ZooniverseSocial
14
14
  end
15
15
 
16
16
  def update
17
- @data = @twitter.search('from:the_zooniverse', result_type: 'recent').take(3).collect &:to_h
17
+ @data = @twitter.search('from:the_zooniverse', result_type: 'recent').take(3).collect do |tweet|
18
+ tweet.to_h.tap do |hash|
19
+ appended = hash.dig :entities, :urls, 0, :url
20
+ hash[:text].sub!(/\s?#{ appended }/, '') if appended
21
+ end
22
+ end
18
23
  end
19
24
  end
20
25
  end
@@ -1,3 +1,3 @@
1
1
  module ZooniverseSocial
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zooniverse_social
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Parrish