turrialba 0.2.0 → 0.2.1
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 +4 -4
- data/lib/turrialba/client.rb +8 -2
- data/lib/turrialba/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41901a3aa6c5ed147cdefca75a1fd0dde6e0f7d3
|
|
4
|
+
data.tar.gz: 4a8d2e2de31c1c03db7f8f1400d0cc0b4104ad61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c8df16745995bf4e6206d39bc219417ac100b5cdff0c69c987ec96fdf2a7246794911982ad66de76a9f9fef54259f68503d6cd6b4deae3c3c5a8eaeef8942f25
|
|
7
|
+
data.tar.gz: 20b97d34dbdc92f1c9c94d95af0ecc95bcabe123228abbf465581f689950c7ff8961283db3d1a59813949391d593695c4e3d636a85cf7a778a5e052c11692f9b
|
data/lib/turrialba/client.rb
CHANGED
|
@@ -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
|
data/lib/turrialba/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2017-05-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|