da_face 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3006499b36f5918cde98a97d663016d8ae965961
4
- data.tar.gz: b71a793192d04a002b9ec1a4599f24f9dcc2b72c
3
+ metadata.gz: 5daad7c1f5cb7899679e10fa975d086550c7e9ea
4
+ data.tar.gz: 37361768e4e9aa7a6125d17846023d2958196be8
5
5
  SHA512:
6
- metadata.gz: a349eee95ac044a513de9abee53a71873f8197368dac94c96b2559948bce305aec3fb1a2f6b9a3823204afd0b1c2c01fe5b3687e3e96ac0d66bef5998dd6a70a
7
- data.tar.gz: 3bbf73e9b5341399664c9fb3749d0d73bc11659aae6f95dd3c7ec4ec81f46fd9fa43185040a7bd6370b34a6b083276cfeff96a6859fee3973553c5f0ead52312
6
+ metadata.gz: f238ee809a4336180376457a7582860804887734b007d24ab6f257d34da9890ff05b35b3744aebc6fc8c27e74a43077326953afe3170850d8b4116f96a3fd886
7
+ data.tar.gz: 9dd87e3a95712e5a0112a7632fc91dc36dbead2ad9aa534c4d84273110fc29e32eb63ead8b4c5c07fbda3b1ccaffa5aa1aa2ee84ab0c729f11ae84ddb2fb3d25
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- da_face (0.0.3)
4
+ da_face (0.0.4)
5
5
  excon
6
6
  json
7
7
 
@@ -5,7 +5,7 @@ module DaFace
5
5
 
6
6
  attr_reader :id, :created_at, :favourites_count, :friends_count, :geo_enabled,
7
7
  :lang, :listed_count, :name, :profile_image_url, :profile_image_url_https,
8
- :screen_name, :statuses_count, :verified
8
+ :screen_name, :statuses_count, :verified, :protected
9
9
 
10
10
 
11
11
  def initialize data={}
@@ -21,13 +21,14 @@ module DaFace
21
21
  def allowed_attributes
22
22
  [:id, :created_at, :favourites_count, :friends_count, :geo_enabled,
23
23
  :lang, :listed_count, :name, :profile_image_url, :profile_image_url_https,
24
- :screen_name, :statuses_count, :verified]
24
+ :screen_name, :statuses_count, :verified, :protected]
25
25
  end
26
26
 
27
27
  def normalize_attributes!
28
28
  @created_at = parse_timestamp(@created_at) if @created_at
29
29
  @profile_image_url = parse_uri(@profile_image_url) if @profile_image_url
30
30
  @profile_image_url_https = parse_uri(@profile_image_url_https) if @profile_image_url_https
31
+ @protected = false if @protected.nil?
31
32
  end
32
33
 
33
34
  def favourites_count
@@ -1,3 +1,3 @@
1
1
  module DaFace
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -48,10 +48,6 @@ describe DaFace::Datasift::Twitter do
48
48
  expect(@twitter.retweet?).to eq(true)
49
49
  end
50
50
  end
51
-
52
-
53
-
54
-
55
51
  end
56
52
  end
57
53
 
@@ -111,6 +111,12 @@ describe DaFace::Twitter::User do
111
111
  expect(@user.verified).to eq(@data[:verified])
112
112
  end
113
113
  end
114
+
115
+ describe '#protected' do
116
+ it 'is present' do
117
+ expect(@user.protected).not_to eq(nil)
118
+ end
119
+ end
114
120
 
115
121
  end
116
122
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: da_face
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rayko