instagram_graph_api 0.0.6 → 0.0.7

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
  SHA256:
3
- metadata.gz: d0c409809467609f97a6fec49642625d3284a9566c3d8a6e78261edba2c888e2
4
- data.tar.gz: 51437c83374bc1a05dbf990c12a973e5880f697994af7bab54042133104359d9
3
+ metadata.gz: daeb123714cedb898fce9eb3aa4e7dade4650b7d4f98c3d3ac28c44c80645567
4
+ data.tar.gz: 21f71e8be7b3d10525033562e5cf1129979187ff50463b7f91fe2780632a1df2
5
5
  SHA512:
6
- metadata.gz: 10f829ab28106a2a3b39c2469e3b2d56f222df1bcc8bbbae095babdf0e3458f11fb4c9ba70ba4f67c3a15031ae57c498172fb5292c8dfa72c7963d169073126e
7
- data.tar.gz: ca8530ed9426383699254c87952077e12c0fb19f157a4900fd58efa8cd29c9e23d4610ea0975d3a3159fecf49cd9903bb2a18c5483a47c58365bd313dac20a43
6
+ metadata.gz: a5f982b034e984577ec4de6a5f822685b1baaa5d241b91cc165f118f57bb4d8609cf7920b29703818d92f68af94ee3be94c2a4d53d7efd6dd1da8f1da7496f14
7
+ data.tar.gz: 4319cde2bf73ec1e8378fa0a6964bd4a49f83befd90d4411e244b6f4c8062bb54a4b2133cf1e74ef793c09bab49782fa93edb0dfebc9af9271fe51efdcff2372
@@ -11,9 +11,11 @@ module InstagramGraphApi
11
11
  puts e.message
12
12
  end
13
13
 
14
- def discover_user_media(username, fields = nil)
14
+ def discover_user_media(username, fields = nil, options={})
15
15
  fields ||= "caption,media_url,media_type,like_count,comments_count,id"
16
- discover_user(username, "media{#{fields}}")
16
+ page_options = ".after(#{options['after']})" if options["after"]
17
+ page_options = ".after(#{options['before']})" if options["before"]
18
+ discover_user(username, "media#{page_options}{#{fields}}")
17
19
  end
18
20
  end
19
21
  end
@@ -1,3 +1,3 @@
1
1
  module InstagramGraphApi
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instagram_graph_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rakesh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-21 00:00:00.000000000 Z
11
+ date: 2018-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler