turrialba 0.2.0 → 0.2.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: 88ccc4016514569f93a301cb095d0ed4000a1ae9
4
- data.tar.gz: 2ab0e05c39f59f15911c91e31f42856fd8052510
3
+ metadata.gz: 41901a3aa6c5ed147cdefca75a1fd0dde6e0f7d3
4
+ data.tar.gz: 4a8d2e2de31c1c03db7f8f1400d0cc0b4104ad61
5
5
  SHA512:
6
- metadata.gz: 0d6530d7e954da1815d7f5cbbeef7698887a656fd0a2b5bc2601e5111437f5b0034d062a1bdd5078bb37c355a49bc220acee35ffd0ab6c5fa62cf717be520626
7
- data.tar.gz: a144b2ffdcd03f04588d8653a51f59fbc3c01f24ddb633f5fa02b615fb0c80affd5663c4980eff439793a86fed505a8fa942380a3e15c59e2ea38a547d952ceb
6
+ metadata.gz: c8df16745995bf4e6206d39bc219417ac100b5cdff0c69c987ec96fdf2a7246794911982ad66de76a9f9fef54259f68503d6cd6b4deae3c3c5a8eaeef8942f25
7
+ data.tar.gz: 20b97d34dbdc92f1c9c94d95af0ecc95bcabe123228abbf465581f689950c7ff8961283db3d1a59813949391d593695c4e3d636a85cf7a778a5e052c11692f9b
@@ -96,7 +96,10 @@ module Turrialba
96
96
  :scrapping_queued_at, :scrapping_request_count, :scrapped_at,
97
97
  :possessed_at, :possession_group, :queue_rate_pause,
98
98
  :total_scrapping_request_count]
99
- hash.select {|k,v| valid_params.include?(k) }
99
+ hash.select {|k,v| valid_params.include?(k)}
100
+
101
+ # Remove Unicode NULL character from Strings (it makes Postgres cry)
102
+ hash.transform_values! {|v| v.class == String ? v.gsub("\u0000", "") : v}
100
103
  end
101
104
 
102
105
  def filter_tweet_params(hash)
@@ -104,7 +107,10 @@ module Turrialba
104
107
  :author_id, :in_reply_to_tweet_id, :scrapping_queued_at,
105
108
  :scrapping_request_count, :scrapped_at, :favorite_count,
106
109
  :retweet_count, :in_reply_to_user_id, :total_scrapping_request_count]
107
- hash.select {|k,v| valid_params.include?(k) }
110
+ hash.select {|k,v| valid_params.include?(k)}
111
+
112
+ # Remove Unicode NULL character from Strings (it makes Postgres cry)
113
+ hash.transform_values! {|v| v.class == String ? v.gsub("\u0000", "") : v}
108
114
  end
109
115
  end
110
116
  end
@@ -1,3 +1,3 @@
1
1
  module Turrialba
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turrialba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Valverde Arredondo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-30 00:00:00.000000000 Z
11
+ date: 2017-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty