patient_zero 0.5.6 → 0.5.7

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: e8c596e88ae22ea81ab58ec1e429803dbeef9fc9
4
- data.tar.gz: 6a95d5e7301c2d817dc372ae5c885c2ae2e7b4c3
3
+ metadata.gz: 2aa24126e715d27d3a0529f9813dece06db5e590
4
+ data.tar.gz: 9ddf973aa5680b4c2eb9f224b746866deced8bb0
5
5
  SHA512:
6
- metadata.gz: cab0fb75293cb27e2fe330ceb30782cee6648a1247521f4b89d1ace340942db2e189fdc7f1e90d5906804c38f7807cdd5a8e3cea630158ab684251412ce7e8b9
7
- data.tar.gz: 99c069e546181406352010c78efdc8a1eb116d5a03a7d4d8cbc0dc93f6fe53d8ea6101113e1b5e14e91fea1392a718f8b7a338c820506fec8d1ff70360fd192b
6
+ metadata.gz: a253bcb54cdf7a7999c0c9f9fa54413b369508b8c287230f5304d8514add028eff0a363510bc1e90eee9f815d6e6dc9d7ee1d1e8f585268cd3d87f01bf28f9e1
7
+ data.tar.gz: 8b3ce8a4ef8408f3a9c18542d471b107ed9ed1bc59efd417c1a300347f4ce3d0fb5dc6e0926af83159037a3cf93a14b830250573a523d6ec405c238125e8979b
@@ -67,6 +67,10 @@ module PatientZero
67
67
  messages.sum { |message| message.data['comments'] }
68
68
  end
69
69
 
70
+ def followers
71
+ nil
72
+ end
73
+
70
74
  private
71
75
 
72
76
  def message_impressions
@@ -10,7 +10,23 @@ module PatientZero
10
10
  end
11
11
 
12
12
  def followers
13
- analytical_data.fetch 'total_followers'
13
+ analytical_data['total_followers'].to_i
14
+ end
15
+
16
+ def reach
17
+ nil
18
+ end
19
+
20
+ def impressions_by_city
21
+ {}
22
+ end
23
+
24
+ def likes
25
+ analytical_data['total_likes'].to_i
26
+ end
27
+
28
+ def total_comments
29
+ analytical_data['total_comments'].to_i
14
30
  end
15
31
  end
16
32
  end
@@ -20,6 +20,22 @@ module PatientZero
20
20
  def likes
21
21
  analytical_data.fetch('total_likes').to_i
22
22
  end
23
+
24
+ def impressions_by_city
25
+ {}
26
+ end
27
+
28
+ def total_comments
29
+ nil
30
+ end
31
+
32
+ def impressions
33
+ nil
34
+ end
35
+
36
+ def reach
37
+ nil
38
+ end
23
39
  end
24
40
  end
25
41
  end
@@ -2,7 +2,7 @@ module PatientZero
2
2
  module Analytics
3
3
  class Twitter < Base
4
4
  def impressions
5
- analytical_data['total_impressions']
5
+ analytical_data['total_impressions'].to_i
6
6
  end
7
7
 
8
8
  def engagements
@@ -20,6 +20,14 @@ module PatientZero
20
20
  def likes
21
21
  analytical_data['total_favorites'].to_i
22
22
  end
23
+
24
+ def impressions_by_city
25
+ {}
26
+ end
27
+
28
+ def total_comments
29
+ nil
30
+ end
23
31
  end
24
32
  end
25
33
  end
@@ -1,3 +1,3 @@
1
1
  module PatientZero
2
- VERSION = '0.5.6'
2
+ VERSION = '0.5.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patient_zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Zaninovich
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-06 00:00:00.000000000 Z
12
+ date: 2015-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  version: '0'
184
184
  requirements: []
185
185
  rubyforge_project:
186
- rubygems_version: 2.4.5
186
+ rubygems_version: 2.2.2
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: A gem to use the Viral Heat API