instagram-community-maintained 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +7 -0
  5. data/.yardopts +9 -0
  6. data/Gemfile +3 -0
  7. data/LICENSE.md +30 -0
  8. data/PATENTS.md +23 -0
  9. data/README.md +261 -0
  10. data/Rakefile +27 -0
  11. data/instagram.gemspec +53 -0
  12. data/lib/faraday/loud_logger.rb +75 -0
  13. data/lib/faraday/oauth2.rb +42 -0
  14. data/lib/faraday/raise_http_exception.rb +59 -0
  15. data/lib/instagram.rb +27 -0
  16. data/lib/instagram/api.rb +31 -0
  17. data/lib/instagram/client.rb +21 -0
  18. data/lib/instagram/client/comments.rb +62 -0
  19. data/lib/instagram/client/embedding.rb +28 -0
  20. data/lib/instagram/client/geographies.rb +29 -0
  21. data/lib/instagram/client/likes.rb +58 -0
  22. data/lib/instagram/client/locations.rb +75 -0
  23. data/lib/instagram/client/media.rb +82 -0
  24. data/lib/instagram/client/subscriptions.rb +211 -0
  25. data/lib/instagram/client/tags.rb +59 -0
  26. data/lib/instagram/client/users.rb +310 -0
  27. data/lib/instagram/client/utils.rb +28 -0
  28. data/lib/instagram/configuration.rb +122 -0
  29. data/lib/instagram/connection.rb +31 -0
  30. data/lib/instagram/error.rb +31 -0
  31. data/lib/instagram/oauth.rb +36 -0
  32. data/lib/instagram/request.rb +82 -0
  33. data/lib/instagram/response.rb +21 -0
  34. data/lib/instagram/version.rb +3 -0
  35. data/spec/faraday/response_spec.rb +86 -0
  36. data/spec/fixtures/access_token.json +9 -0
  37. data/spec/fixtures/approve_user.json +8 -0
  38. data/spec/fixtures/block_user.json +8 -0
  39. data/spec/fixtures/deny_user.json +8 -0
  40. data/spec/fixtures/follow_user.json +8 -0
  41. data/spec/fixtures/followed_by.json +1 -0
  42. data/spec/fixtures/follows.json +1 -0
  43. data/spec/fixtures/geography_recent_media.json +1 -0
  44. data/spec/fixtures/liked_media.json +1 -0
  45. data/spec/fixtures/location.json +1 -0
  46. data/spec/fixtures/location_recent_media.json +1 -0
  47. data/spec/fixtures/location_search.json +1 -0
  48. data/spec/fixtures/location_search_fsq.json +1 -0
  49. data/spec/fixtures/media.json +1 -0
  50. data/spec/fixtures/media_comment.json +1 -0
  51. data/spec/fixtures/media_comment_deleted.json +1 -0
  52. data/spec/fixtures/media_comments.json +1 -0
  53. data/spec/fixtures/media_liked.json +1 -0
  54. data/spec/fixtures/media_likes.json +1 -0
  55. data/spec/fixtures/media_popular.json +1 -0
  56. data/spec/fixtures/media_search.json +1 -0
  57. data/spec/fixtures/media_shortcode.json +1 -0
  58. data/spec/fixtures/media_unliked.json +1 -0
  59. data/spec/fixtures/mikeyk.json +1 -0
  60. data/spec/fixtures/oembed.json +14 -0
  61. data/spec/fixtures/recent_media.json +1 -0
  62. data/spec/fixtures/relationship.json +9 -0
  63. data/spec/fixtures/requested_by.json +12 -0
  64. data/spec/fixtures/shayne.json +1 -0
  65. data/spec/fixtures/subscription.json +12 -0
  66. data/spec/fixtures/subscription_deleted.json +1 -0
  67. data/spec/fixtures/subscription_payload.json +14 -0
  68. data/spec/fixtures/subscriptions.json +22 -0
  69. data/spec/fixtures/tag.json +1 -0
  70. data/spec/fixtures/tag_recent_media.json +1 -0
  71. data/spec/fixtures/tag_search.json +1 -0
  72. data/spec/fixtures/unblock_user.json +8 -0
  73. data/spec/fixtures/unfollow_user.json +8 -0
  74. data/spec/fixtures/user_media_feed.json +1 -0
  75. data/spec/fixtures/user_search.json +1 -0
  76. data/spec/instagram/api_spec.rb +285 -0
  77. data/spec/instagram/client/comments_spec.rb +71 -0
  78. data/spec/instagram/client/embedding_spec.rb +36 -0
  79. data/spec/instagram/client/geography_spec.rb +37 -0
  80. data/spec/instagram/client/likes_spec.rb +66 -0
  81. data/spec/instagram/client/locations_spec.rb +127 -0
  82. data/spec/instagram/client/media_spec.rb +99 -0
  83. data/spec/instagram/client/subscriptions_spec.rb +174 -0
  84. data/spec/instagram/client/tags_spec.rb +79 -0
  85. data/spec/instagram/client/users_spec.rb +424 -0
  86. data/spec/instagram/client/utils_spec.rb +32 -0
  87. data/spec/instagram/client_spec.rb +23 -0
  88. data/spec/instagram/request_spec.rb +56 -0
  89. data/spec/instagram_spec.rb +109 -0
  90. data/spec/spec_helper.rb +71 -0
  91. metadata +328 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c37de6aaac3744e6318806f0a50b89d143173af7
4
+ data.tar.gz: a829ec014869fb786ade07a88938742bd1dad550
5
+ SHA512:
6
+ metadata.gz: 13b6229ad472356ea07ed9e3542ce5c5882de4a701b332e682926f87b4a9f432bf4c64b73db520a0c1e7f1153eb4d6eb6757e0d79169af7ac7cf086782956060
7
+ data.tar.gz: a794ca98c00dd12e67cff6a4b75a014d32643e16bb52d3283675cb913a0f2887bf3b81050892cf61cd0226d36b87c5fffb5b9fc80e8be3e57b35fb2ff21fbd6b
@@ -0,0 +1,14 @@
1
+ *.gem
2
+ *.rbc
3
+ .DS_Store
4
+ .bundle
5
+ .rvmrc
6
+ .ruby-version
7
+ .yardoc
8
+ .rake_tasks~
9
+ Gemfile.lock
10
+ coverage/*
11
+ doc/*
12
+ log/*
13
+ pkg/*
14
+ .idea/*
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --color
2
+ --format=nested
3
+ --backtrace
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3
4
+ - 2.2
5
+ - 2.1
6
+ - 2.0
7
+ - 1.9
@@ -0,0 +1,9 @@
1
+ --no-private
2
+ --protected
3
+ --tag format:"Supported formats"
4
+ --tag authenticated:"Requires Authentication"
5
+ --tag rate_limited:"Rate Limited"
6
+ --markup markdown
7
+ -
8
+ HISTORY.mkd
9
+ LICENSE.mkd
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
@@ -0,0 +1,30 @@
1
+ BSD License
2
+
3
+ For Ruby Instagram Gem software
4
+
5
+ Copyright (c) 2014, Facebook, Inc. All rights reserved.
6
+
7
+ Redistribution and use in source and binary forms, with or without modification,
8
+ are permitted provided that the following conditions are met:
9
+
10
+ * Redistributions of source code must retain the above copyright notice, this
11
+ list of conditions and the following disclaimer.
12
+
13
+ * Redistributions in binary form must reproduce the above copyright notice,
14
+ this list of conditions and the following disclaimer in the documentation
15
+ and/or other materials provided with the distribution.
16
+
17
+ * Neither the name Facebook nor the names of its contributors may be used to
18
+ endorse or promote products derived from this software without specific
19
+ prior written permission.
20
+
21
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
25
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
28
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,23 @@
1
+ Additional Grant of Patent Rights
2
+
3
+ "Software" means the Instagram Ruby Gem software distributed by Facebook, Inc.
4
+
5
+ Facebook hereby grants you a perpetual, worldwide, royalty-free, non-exclusive,
6
+ irrevocable (subject to the termination provision below) license under any
7
+ rights in any patent claims owned by Facebook, to make, have made, use, sell,
8
+ offer to sell, import, and otherwise transfer the Software. For avoidance of
9
+ doubt, no license is granted under Facebook’s rights in any patent claims that
10
+ are infringed by (i) modifications to the Software made by you or a third party,
11
+ or (ii) the Software in combination with any software or other technology
12
+ provided by you or a third party.
13
+
14
+ The license granted hereunder will terminate, automatically and without notice,
15
+ for anyone that makes any claim (including by filing any lawsuit, assertion or
16
+ other action) alleging (a) direct, indirect, or contributory infringement or
17
+ inducement to infringe any patent: (i) by Facebook or any of its subsidiaries or
18
+ affiliates, whether or not such claim is related to the Software, (ii) by any
19
+ party if such claim arises in whole or in part from any software, product or
20
+ service of Facebook or any of its subsidiaries or affiliates, whether or not
21
+ such claim is related to the Software, or (iii) by any party relating to the
22
+ Software; or (b) that any right in any patent claim of Facebook is invalid or
23
+ unenforceable.
@@ -0,0 +1,261 @@
1
+ - - -
2
+
3
+ **_This project is a slight modification of the FB released and no longer maintained version of the gem. This addresses updated dependencies to allow for more recent versions of faraday and faraday middleware_**
4
+
5
+ - - -
6
+
7
+ The Instagram Ruby Gem
8
+ ====================
9
+ A Ruby wrapper for the Instagram REST and Search APIs
10
+
11
+
12
+ Installation
13
+ ------------
14
+ gem install instagram
15
+ gem "instagram", git: 'https://github.com/GenomeUS/instagram-ruby-gem.git'
16
+
17
+ Instagram REST and Search APIs
18
+ ------------------------------
19
+ Our [developer site](http://instagram.com/developer) documents all the Instagram REST and Search APIs.
20
+
21
+
22
+ Blog
23
+ ----------------------------
24
+ The [Developer Blog] features news and important announcements about the Instagram Platform. You will also find tutorials and best practices to help you build great platform integrations. Make sure to subscribe to the RSS feed not to miss out on new posts: [http://developers.instagram.com](http://developers.instagram.com).
25
+
26
+
27
+ Community
28
+ ----------------------
29
+ The [Stack Overflow community](http://stackoverflow.com/questions/tagged/instagram/) is a great place to ask API related questions or if you need help with your code. Make sure to tag your questions with the Instagram tag to get fast answers from other fellow developers and members of the Instagram team.
30
+
31
+
32
+ Does your project or organization use this gem?
33
+ -----------------------------------------------
34
+ Add it to the [apps](http://github.com/Instagram/instagram-ruby-gem/wiki/apps) wiki!
35
+
36
+
37
+ Sample Application
38
+ ------------------
39
+
40
+ ```ruby
41
+ require "sinatra"
42
+ require "instagram"
43
+
44
+ enable :sessions
45
+
46
+ CALLBACK_URL = "http://localhost:4567/oauth/callback"
47
+
48
+ Instagram.configure do |config|
49
+ config.client_id = "YOUR_CLIENT_ID"
50
+ config.client_secret = "YOUR_CLIENT_SECRET"
51
+ # For secured endpoints only
52
+ #config.client_ips = '<Comma separated list of IPs>'
53
+ end
54
+
55
+ get "/" do
56
+ '<a href="/oauth/connect">Connect with Instagram</a>'
57
+ end
58
+
59
+ get "/oauth/connect" do
60
+ redirect Instagram.authorize_url(:redirect_uri => CALLBACK_URL)
61
+ end
62
+
63
+ get "/oauth/callback" do
64
+ response = Instagram.get_access_token(params[:code], :redirect_uri => CALLBACK_URL)
65
+ session[:access_token] = response.access_token
66
+ redirect "/nav"
67
+ end
68
+
69
+ get "/nav" do
70
+ html =
71
+ """
72
+ <h1>Ruby Instagram Gem Sample Application</h1>
73
+ <ol>
74
+ <li><a href='/user_recent_media'>User Recent Media</a> Calls user_recent_media - Get a list of a user's most recent media</li>
75
+ <li><a href='/user_media_feed'>User Media Feed</a> Calls user_media_feed - Get the currently authenticated user's media feed uses pagination</li>
76
+ <li><a href='/location_recent_media'>Location Recent Media</a> Calls location_recent_media - Get a list of recent media at a given location, in this case, the Instagram office</li>
77
+ <li><a href='/media_search'>Media Search</a> Calls media_search - Get a list of media close to a given latitude and longitude</li>
78
+ <li><a href='/media_popular'>Popular Media</a> Calls media_popular - Get a list of the overall most popular media items</li>
79
+ <li><a href='/user_search'>User Search</a> Calls user_search - Search for users on instagram, by name or username</li>
80
+ <li><a href='/location_search'>Location Search</a> Calls location_search - Search for a location by lat/lng</li>
81
+ <li><a href='/location_search_4square'>Location Search - 4Square</a> Calls location_search - Search for a location by Fousquare ID (v2)</li>
82
+ <li><a href='/tags'>Tags</a>Search for tags, view tag info and get media by tag</li>
83
+ <li><a href='/limits'>View Rate Limit and Remaining API calls</a>View remaining and ratelimit info.</li>
84
+ </ol>
85
+ """
86
+ html
87
+ end
88
+
89
+ get "/user_recent_media" do
90
+ client = Instagram.client(:access_token => session[:access_token])
91
+ user = client.user
92
+ html = "<h1>#{user.username}'s recent media</h1>"
93
+ for media_item in client.user_recent_media
94
+ html << "<div style='float:left;'><img src='#{media_item.images.thumbnail.url}'><br/> <a href='/media_like/#{media_item.id}'>Like</a> <a href='/media_unlike/#{media_item.id}'>Un-Like</a> <br/>LikesCount=#{media_item.likes[:count]}</div>"
95
+ end
96
+ html
97
+ end
98
+
99
+ get '/media_like/:id' do
100
+ client = Instagram.client(:access_token => session[:access_token])
101
+ client.like_media("#{params[:id]}")
102
+ redirect "/user_recent_media"
103
+ end
104
+
105
+ get '/media_unlike/:id' do
106
+ client = Instagram.client(:access_token => session[:access_token])
107
+ client.unlike_media("#{params[:id]}")
108
+ redirect "/user_recent_media"
109
+ end
110
+
111
+ get "/user_media_feed" do
112
+ client = Instagram.client(:access_token => session[:access_token])
113
+ user = client.user
114
+ html = "<h1>#{user.username}'s media feed</h1>"
115
+
116
+ page_1 = client.user_media_feed(777)
117
+ page_2_max_id = page_1.pagination.next_max_id
118
+ page_2 = client.user_recent_media(777, :max_id => page_2_max_id ) unless page_2_max_id.nil?
119
+ html << "<h2>Page 1</h2><br/>"
120
+ for media_item in page_1
121
+ html << "<img src='#{media_item.images.thumbnail.url}'>"
122
+ end
123
+ html << "<h2>Page 2</h2><br/>"
124
+ for media_item in page_2
125
+ html << "<img src='#{media_item.images.thumbnail.url}'>"
126
+ end
127
+ html
128
+ end
129
+
130
+ get "/location_recent_media" do
131
+ client = Instagram.client(:access_token => session[:access_token])
132
+ html = "<h1>Media from the Instagram Office</h1>"
133
+ for media_item in client.location_recent_media(514276)
134
+ html << "<img src='#{media_item.images.thumbnail.url}'>"
135
+ end
136
+ html
137
+ end
138
+
139
+ get "/media_search" do
140
+ client = Instagram.client(:access_token => session[:access_token])
141
+ html = "<h1>Get a list of media close to a given latitude and longitude</h1>"
142
+ for media_item in client.media_search("37.7808851","-122.3948632")
143
+ html << "<img src='#{media_item.images.thumbnail.url}'>"
144
+ end
145
+ html
146
+ end
147
+
148
+ get "/media_popular" do
149
+ client = Instagram.client(:access_token => session[:access_token])
150
+ html = "<h1>Get a list of the overall most popular media items</h1>"
151
+ for media_item in client.media_popular
152
+ html << "<img src='#{media_item.images.thumbnail.url}'>"
153
+ end
154
+ html
155
+ end
156
+
157
+ get "/user_search" do
158
+ client = Instagram.client(:access_token => session[:access_token])
159
+ html = "<h1>Search for users on instagram, by name or usernames</h1>"
160
+ for user in client.user_search("instagram")
161
+ html << "<li> <img src='#{user.profile_picture}'> #{user.username} #{user.full_name}</li>"
162
+ end
163
+ html
164
+ end
165
+
166
+ get "/location_search" do
167
+ client = Instagram.client(:access_token => session[:access_token])
168
+ html = "<h1>Search for a location by lat/lng with a radius of 5000m</h1>"
169
+ for location in client.location_search("48.858844","2.294351","5000")
170
+ html << "<li> #{location.name} <a href='https://www.google.com/maps/preview/@#{location.latitude},#{location.longitude},19z'>Map</a></li>"
171
+ end
172
+ html
173
+ end
174
+
175
+ get "/location_search_4square" do
176
+ client = Instagram.client(:access_token => session[:access_token])
177
+ html = "<h1>Search for a location by Fousquare ID (v2)</h1>"
178
+ for location in client.location_search("3fd66200f964a520c5f11ee3")
179
+ html << "<li> #{location.name} <a href='https://www.google.com/maps/preview/@#{location.latitude},#{location.longitude},19z'>Map</a></li>"
180
+ end
181
+ html
182
+ end
183
+
184
+ get "/tags" do
185
+ client = Instagram.client(:access_token => session[:access_token])
186
+ html = "<h1>Search for tags, get tag info and get media by tag</h1>"
187
+ tags = client.tag_search('cat')
188
+ html << "<h2>Tag Name = #{tags[0].name}. Media Count = #{tags[0].media_count}. </h2><br/><br/>"
189
+ for media_item in client.tag_recent_media(tags[0].name)
190
+ html << "<img src='#{media_item.images.thumbnail.url}'>"
191
+ end
192
+ html
193
+ end
194
+
195
+ get "/limits" do
196
+ client = Instagram.client(:access_token => session[:access_token])
197
+ html = "<h1/>View API Rate Limit and calls remaining</h1>"
198
+ response = client.utils_raw_response
199
+ html << "Rate Limit = #{response.headers[:x_ratelimit_limit]}. <br/>Calls Remaining = #{response.headers[:x_ratelimit_remaining]}"
200
+
201
+ html
202
+ end
203
+ ```
204
+
205
+ Contributing
206
+ ------------
207
+ In the spirit of [free software](http://www.fsf.org/licensing/essays/free-sw.html), **everyone** is encouraged to help improve this project.
208
+
209
+ Here are some ways *you* can contribute:
210
+
211
+ * by using alpha, beta, and prerelease versions
212
+ * by reporting bugs
213
+ * by suggesting new features
214
+ * by writing or editing documentation
215
+ * by writing specifications
216
+ * by writing code (**no patch is too small**: fix typos, add comments, clean up inconsistent whitespace)
217
+ * by refactoring code
218
+ * by closing [issues](http://github.com/Instagram/instagram-ruby-gem/issues)
219
+ * by reviewing patches
220
+
221
+
222
+ Submitting an Issue
223
+ -------------------
224
+ We use the [GitHub issue tracker](http://github.com/Instagram/instagram-ruby-gem/issues) to track bugs and
225
+ features. Before submitting a bug report or feature request, check to make sure it hasn't already
226
+ been submitted. You can indicate support for an existing issue by voting it up. When submitting a
227
+ bug report, please include a [Gist](http://gist.github.com/) that includes a stack trace and any
228
+ details that may be necessary to reproduce the bug, including your gem version, Ruby version, and
229
+ operating system. Ideally, a bug report should include a pull request with failing specs.
230
+
231
+ Instagram has a [bounty program](https://www.facebook.com/whitehat/) for the safe
232
+ disclosure of security bugs. In those cases, please go through the process
233
+ outlined on that page and do not file a public issue.
234
+
235
+
236
+ Submitting a Pull Request
237
+ -------------------------
238
+ 1. Fork the project.
239
+ 2. Create a topic branch.
240
+ 3. Implement your feature or bug fix.
241
+ 4. Add documentation for your feature or bug fix.
242
+ 5. Run <tt>rake doc:yard</tt>. If your changes are not 100% documented, go back to step 4.
243
+ 6. Add specs for your feature or bug fix.
244
+ 7. Run <tt>rake spec</tt>. If your changes are not 100% covered, go back to step 6.
245
+ 8. Commit and push your changes.
246
+ 9. Submit a pull request. Please do not include changes to the gemspec, version, or history file. (If you want to create your own version for some reason, please do so in a separate commit.)
247
+ 10. If you haven't already, complete the Contributor License Agreement ("CLA").
248
+
249
+ Contributor License Agreement ("CLA")
250
+ _____________________________________
251
+ In order to accept your pull request, we need you to submit a CLA. You only need
252
+ to do this once to work on any of Instagram's or Facebook's open source projects.
253
+
254
+ Complete your CLA here: [https://code.facebook.com/cla](https://code.facebook.com/cla)
255
+
256
+
257
+ Copyright
258
+ ---------
259
+ Copyright (c) 2014, Facebook, Inc. All rights reserved.
260
+ By contributing to Instagram Ruby Gem, you agree that your contributions will be licensed under its BSD license.
261
+ See [LICENSE](https://github.com/Instagram/instagram-ruby-gem/blob/master/LICENSE.md) for details.
@@ -0,0 +1,27 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ require 'rspec/core/rake_task'
5
+ RSpec::Core::RakeTask.new(:spec)
6
+
7
+ task :default => :spec
8
+
9
+ namespace :doc do
10
+ begin
11
+ require 'yard'
12
+ rescue LoadError
13
+ # ignore
14
+ else
15
+ YARD::Rake::YardocTask.new do |task|
16
+ task.files = ['HISTORY.mkd', 'LICENSE.mkd', 'lib/**/*.rb']
17
+ task.options = [
18
+ '--protected',
19
+ '--output-dir', 'doc/yard',
20
+ '--tag', 'format:Supported formats',
21
+ '--tag', 'authenticated:Requires Authentication',
22
+ '--tag', 'rate_limited:Rate Limited',
23
+ '--markup', 'markdown',
24
+ ]
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,53 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/instagram/version', __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.add_development_dependency('rake', '~> 0.9.2.2')
6
+ s.add_development_dependency('rspec', '~> 2.4')
7
+ s.add_development_dependency('webmock', '~> 1.6')
8
+ s.add_development_dependency('bluecloth', '~> 2.2.0')
9
+ s.add_runtime_dependency('faraday', ['>= 0.7', '< 0.11'])
10
+ s.add_runtime_dependency('faraday_middleware', ['>= 0.8', '< 0.15'])
11
+ s.add_runtime_dependency('multi_json', '>= 1.0.3', '~> 1.0')
12
+ s.add_runtime_dependency('hashie', '>= 0.4.0')
13
+ s.authors = ["Adapted from original author Shayne Sweeney"]
14
+ s.description = %q{A Ruby wrapper for the Instagram REST and Search APIs - Community Maintained}
15
+ s.post_install_message =<<eos
16
+ ********************************************************************************
17
+
18
+ *** This is an 'Unofficial' version of the gem that is a direct clone of the 'official' gem with
19
+ modifications to the dependency version numbers.
20
+
21
+ Instagram REST and Search APIs
22
+ ------------------------------
23
+ Our developer site documents all the Instagram REST and Search APIs.
24
+ (http://instagram.com/developer)
25
+
26
+ Blog
27
+ ----------------------------
28
+ The Developer Blog features news and important announcements about the Instagram Platform.
29
+ You will also find tutorials and best practices to help you build great platform integrations.
30
+ Make sure to subscribe to the RSS feed so you don't miss out on new posts:
31
+ (http://developers.instagram.com).
32
+
33
+ Community
34
+ ----------------------
35
+ The Stack Overflow community is a great place to ask API related questions or if you need help with your code.
36
+ Make sure to tag your questions with the Instagram tag to get fast answers from other fellow developers and members of the Instagram team.
37
+ (http://stackoverflow.com/questions/tagged/instagram/)
38
+
39
+ ********************************************************************************
40
+ eos
41
+ s.email = ['contact@geno.me']
42
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
43
+ s.files = `git ls-files`.split("\n")
44
+ s.homepage = 'https://github.com/GenomeUS/instagram-ruby-gem.git'
45
+ s.name = 'instagram-community-maintained'
46
+ s.platform = Gem::Platform::RUBY
47
+ s.require_paths = ['lib']
48
+ s.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if s.respond_to? :required_rubygems_version=
49
+ s.rubyforge_project = s.name
50
+ s.summary = %q{Ruby wrapper for the Instagram API - Community Maintained}
51
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
52
+ s.version = Instagram::VERSION.dup
53
+ end