patient_zero 0.5.3 → 0.5.4

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: 59aa916f1590ba751b0b050dfa280aa3ebee6f3e
4
- data.tar.gz: 0ce2b9f49f60014408c7ea68b9c15a210baea24c
3
+ metadata.gz: 2d4a80fc330778657a0a34ba390b9aeaa0304346
4
+ data.tar.gz: ed9f4a9d3e1ddef6d04f5c8d4c3d45542cf6c048
5
5
  SHA512:
6
- metadata.gz: 63539b115d587743db6646af44bae7fdaaca293548ddf7e74bcf92a889b3afa6e8ace9147edc3d3782f2427da3a1d900bf3890e39171148ac7a39d7d42a83e25
7
- data.tar.gz: 4c0d0ad475c63d19f09030b9592693a6170dd838dd15aad9765a30cf2dc5a3ca6c4af66964cb3eeaa418cf44f2c44d35eed7dc5dccee1ca6a8c89d4465b90e96
6
+ metadata.gz: 4ec9eda3e118858e6c240a160e10805408ff304b7d3355fdef2cda9eeb4ddba03b81378b86905099301edc0e4dae20f0680d117aea1b35c530b084f0540f64c6
7
+ data.tar.gz: 90dfa1e51ecf8ee3b38bfdc0f4241ba854669c967c13c5846f98ccef8f81bd4f239476ae78091f8524fb1ee0fb0b91b66d3ed89ceb2f4e82353aa379c01e29ae
@@ -32,11 +32,11 @@ module PatientZero
32
32
  unknown: gender_stats.fetch('U', 0) }
33
33
  end
34
34
 
35
- def organic_posts
35
+ def organic_impressions
36
36
  find_impressions 'Organic'
37
37
  end
38
38
 
39
- def promoted_posts
39
+ def promoted_impressions
40
40
  find_impressions 'Paid'
41
41
  end
42
42
 
@@ -8,6 +8,10 @@ module PatientZero
8
8
  def impressions
9
9
  @impressions ||= messages.reduce(0) { |sum, message| sum + message.impressions }
10
10
  end
11
+
12
+ def followers
13
+ analytical_data.fetch 'total_followers'
14
+ end
11
15
  end
12
16
  end
13
17
  end
@@ -1,3 +1,3 @@
1
1
  module PatientZero
2
- VERSION = '0.5.3'
2
+ VERSION = '0.5.4'
3
3
  end
@@ -81,15 +81,15 @@ module PatientZero
81
81
  end
82
82
  end
83
83
 
84
- describe '#organic_posts' do
84
+ describe '#organic_impressions' do
85
85
  it 'returns the sum of organic_posts' do
86
- expect(facebook_analytics.organic_posts).to eq 100
86
+ expect(facebook_analytics.organic_impressions).to eq 100
87
87
  end
88
88
  end
89
89
 
90
- describe '#promoted_posts' do
90
+ describe '#promoted_impressions' do
91
91
  it 'returns the sum of promoted_posts' do
92
- expect(facebook_analytics.promoted_posts).to eq 101
92
+ expect(facebook_analytics.promoted_impressions).to eq 101
93
93
  end
94
94
  end
95
95
  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.3
4
+ version: 0.5.4
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-01 00:00:00.000000000 Z
12
+ date: 2015-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler