instagrammer 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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/instagrammer/post.rb +0 -7
- data/lib/instagrammer/user.rb +0 -5
- data/lib/instagrammer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44bbb972c061472e9e2a8317f0f80b10823337bfc2b3a1b471828fbecfd2ee3e
|
4
|
+
data.tar.gz: 43eabc1aed2ee83a643ece5a3ff497b0f4fb365f7f6ea97d9dd25cb3959b779c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e610abe849dc2f1824780e47e8608d4899655f1223d0e07d6c7e466949dcdce219154199015b17a34abc15064366c53b6162122c79752bd30bb6bc9e3f522926
|
7
|
+
data.tar.gz: 07443b7b020bf22292f556c2db7cd0e77fc23e85b2f6e841c9c3bc55ae59270bbacc4f4598230a89509fc7684219697a269b7d259c3bed4e83a61dd471d52520
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.2.1] - 2019-07-14
|
10
|
+
### Changed
|
11
|
+
- Remove custom #inspect output as this interferes with lazy data loading
|
12
|
+
|
9
13
|
## [0.2.0] - 2019-07-14
|
10
14
|
### Changed
|
11
15
|
- Refactor page status internals
|
data/lib/instagrammer/post.rb
CHANGED
@@ -11,13 +11,6 @@ class Instagrammer::Post
|
|
11
11
|
@data = nil
|
12
12
|
end
|
13
13
|
|
14
|
-
def inspect
|
15
|
-
attributes = %i(shortcode caption upload_date comment_count like_count)
|
16
|
-
attributes += %i(image_url image_urls) if photo?
|
17
|
-
attributes << "watch_count" if video?
|
18
|
-
"#<#{self.class.name}:#{object_id} #{attributes.map { |attr| "#{attr}:#{send(attr).inspect}" }.join(", ")}>"
|
19
|
-
end
|
20
|
-
|
21
14
|
def public?
|
22
15
|
get_data unless @data
|
23
16
|
@status == :public
|
data/lib/instagrammer/user.rb
CHANGED
@@ -12,11 +12,6 @@ class Instagrammer::User
|
|
12
12
|
@posts = []
|
13
13
|
end
|
14
14
|
|
15
|
-
def inspect
|
16
|
-
attributes = %i(follower_count following_count post_count name username avatar bio url posts)
|
17
|
-
"#<#{self.class.name}:#{object_id} #{attributes.map { |attr| "#{attr}:#{send(attr).inspect}" }.join(", ")}>"
|
18
|
-
end
|
19
|
-
|
20
15
|
def public?
|
21
16
|
get_data unless @data
|
22
17
|
@status == :public
|
data/lib/instagrammer/version.rb
CHANGED