flickr_fu 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3f9a976220b9c4cec434446fa987008f4975c4a3
4
+ data.tar.gz: 0387cd3a86b07e00d1c20c73599bdaa03cab51ff
5
+ SHA512:
6
+ metadata.gz: 1a3808b673c01136375d64d6cb48cdb9b8f89df24131a16070f72d9932cd263ade127e45f9e4e4d5656944decd14535b9e995a5f31438d2a2baee6b32d3c48fd
7
+ data.tar.gz: 33aeac8d11b8b1f5daf98e58230ff9774a3504a3f765e36302aa939e6fd97d0cef1279a836df8e547c4f955da8be34c61f40f10c80e8334c084a9322db0397d5
data/Gemfile CHANGED
@@ -8,7 +8,7 @@ source "http://rubygems.org"
8
8
  group :development do
9
9
  # gem "shoulda", ">= 0"
10
10
  gem "bundler", "~> 1"
11
- gem "jeweler", "~> 1.6.4"
11
+ gem "jeweler", "~> 2"
12
12
  gem "rspec"
13
13
  gem "rdoc"
14
14
  # gem "rcov", ">= 0"
data/Gemfile.lock CHANGED
@@ -1,15 +1,50 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ addressable (2.3.7)
5
+ builder (3.2.2)
6
+ descendants_tracker (0.0.4)
7
+ thread_safe (~> 0.3, >= 0.3.1)
4
8
  diff-lcs (1.1.3)
9
+ faraday (0.9.1)
10
+ multipart-post (>= 1.2, < 3)
5
11
  git (1.2.5)
6
- jeweler (1.6.4)
7
- bundler (~> 1.0)
12
+ github_api (0.12.3)
13
+ addressable (~> 2.3)
14
+ descendants_tracker (~> 0.0.4)
15
+ faraday (~> 0.8, < 0.10)
16
+ hashie (>= 3.3)
17
+ multi_json (>= 1.7.5, < 2.0)
18
+ nokogiri (~> 1.6.3)
19
+ oauth2
20
+ hashie (3.4.0)
21
+ highline (1.6.21)
22
+ jeweler (2.0.1)
23
+ builder
24
+ bundler (>= 1.0)
8
25
  git (>= 1.2.5)
26
+ github_api
27
+ highline (>= 1.6.15)
28
+ nokogiri (>= 1.5.10)
9
29
  rake
30
+ rdoc
10
31
  json (1.6.5)
32
+ jwt (1.2.1)
11
33
  mime-types (1.17.2)
12
- rake (0.9.2.2)
34
+ mini_portile (0.6.2)
35
+ multi_json (1.10.1)
36
+ multi_xml (0.5.5)
37
+ multipart-post (2.0.0)
38
+ nokogiri (1.6.6.2)
39
+ mini_portile (~> 0.6.0)
40
+ oauth2 (1.0.0)
41
+ faraday (>= 0.8, < 0.10)
42
+ jwt (~> 1.0)
43
+ multi_json (~> 1.3)
44
+ multi_xml (~> 0.5)
45
+ rack (~> 1.2)
46
+ rack (1.5.2)
47
+ rake (10.1.0)
13
48
  rdoc (3.12)
14
49
  json (~> 1.4)
15
50
  rspec (2.8.0)
@@ -20,6 +55,7 @@ GEM
20
55
  rspec-expectations (2.8.0)
21
56
  diff-lcs (~> 1.1.2)
22
57
  rspec-mocks (2.8.0)
58
+ thread_safe (0.3.4)
23
59
  xml-magic (0.1.1)
24
60
 
25
61
  PLATFORMS
@@ -27,7 +63,7 @@ PLATFORMS
27
63
 
28
64
  DEPENDENCIES
29
65
  bundler (~> 1)
30
- jeweler (~> 1.6.4)
66
+ jeweler (~> 2)
31
67
  mime-types
32
68
  rdoc
33
69
  rspec
data/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  ## Installation
17
17
 
18
- <code>sudo gem install flickr-fu</code>
18
+ <code>sudo gem install flickr_fu</code>
19
19
 
20
20
  ## Documentation
21
21
 
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 3
4
- :patch: 2
4
+ :patch: 3
5
5
  :build:
data/flickr_fu.gemspec CHANGED
@@ -2,14 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: flickr_fu 0.3.3 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "flickr_fu"
8
- s.version = "0.3.2"
9
+ s.version = "0.3.3"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Ben Wyrosdick", "Maciej Bilas"]
12
- s.date = "2012-08-11"
14
+ s.date = "2015-02-19"
13
15
  s.description = "Provides a ruby interface to flickr via the REST api"
14
16
  s.email = "ben@commonthread.com"
15
17
  s.files = [
@@ -85,25 +87,24 @@ Gem::Specification.new do |s|
85
87
  ]
86
88
  s.homepage = "http://github.com/commonthread/flickr_fu"
87
89
  s.rdoc_options = ["--main", "README"]
88
- s.require_paths = ["lib"]
89
- s.rubygems_version = "1.8.24"
90
+ s.rubygems_version = "2.2.2"
90
91
  s.summary = "Provides a ruby interface to flickr via the REST api"
91
92
 
92
93
  if s.respond_to? :specification_version then
93
- s.specification_version = 3
94
+ s.specification_version = 4
94
95
 
95
96
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
96
97
  s.add_runtime_dependency(%q<mime-types>, [">= 0"])
97
98
  s.add_runtime_dependency(%q<xml-magic>, [">= 0"])
98
99
  s.add_development_dependency(%q<bundler>, ["~> 1"])
99
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
100
+ s.add_development_dependency(%q<jeweler>, ["~> 2"])
100
101
  s.add_development_dependency(%q<rspec>, [">= 0"])
101
102
  s.add_development_dependency(%q<rdoc>, [">= 0"])
102
103
  else
103
104
  s.add_dependency(%q<mime-types>, [">= 0"])
104
105
  s.add_dependency(%q<xml-magic>, [">= 0"])
105
106
  s.add_dependency(%q<bundler>, ["~> 1"])
106
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
107
+ s.add_dependency(%q<jeweler>, ["~> 2"])
107
108
  s.add_dependency(%q<rspec>, [">= 0"])
108
109
  s.add_dependency(%q<rdoc>, [">= 0"])
109
110
  end
@@ -111,7 +112,7 @@ Gem::Specification.new do |s|
111
112
  s.add_dependency(%q<mime-types>, [">= 0"])
112
113
  s.add_dependency(%q<xml-magic>, [">= 0"])
113
114
  s.add_dependency(%q<bundler>, ["~> 1"])
114
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
115
+ s.add_dependency(%q<jeweler>, ["~> 2"])
115
116
  s.add_dependency(%q<rspec>, [">= 0"])
116
117
  s.add_dependency(%q<rdoc>, [">= 0"])
117
118
  end
data/lib/flickr/base.rb CHANGED
@@ -6,9 +6,9 @@ module Flickr
6
6
  class Base
7
7
  attr_reader :api_key, :api_secret, :token_cache, :token
8
8
 
9
- REST_ENDPOINT = 'http://api.flickr.com/services/rest/'
10
- AUTH_ENDPOINT = 'http://flickr.com/services/auth/'
11
- UPLOAD_ENDPOINT = 'http://api.flickr.com/services/upload/'
9
+ REST_ENDPOINT = 'https://api.flickr.com/services/rest/'
10
+ AUTH_ENDPOINT = 'https://flickr.com/services/auth/'
11
+ UPLOAD_ENDPOINT = 'https://up.flickr.com/services/upload/'
12
12
 
13
13
  # create a new flickr object
14
14
  #
@@ -141,7 +141,7 @@ module Flickr
141
141
  def request_over_http(options, http_method, endpoint)
142
142
  if http_method == :get
143
143
  api_call = endpoint + "?" + options.collect{|k,v| "#{k}=#{CGI.escape(v.to_s)}"}.join('&')
144
- Net::HTTP.get(URI.parse(api_call))
144
+ URI.parse(api_call).read
145
145
  else
146
146
  Net::HTTP.post_form(URI.parse(endpoint), options).body
147
147
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flickr_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
5
- prerelease:
4
+ version: 0.3.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ben Wyrosdick
@@ -10,102 +9,90 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2012-08-11 00:00:00.000000000 Z
12
+ date: 2015-02-19 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: mime-types
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - ">="
21
19
  - !ruby/object:Gem::Version
22
20
  version: '0'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: '0'
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: xml-magic
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - ">="
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - ">="
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: bundler
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ~>
46
+ - - "~>"
53
47
  - !ruby/object:Gem::Version
54
48
  version: '1'
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ~>
53
+ - - "~>"
61
54
  - !ruby/object:Gem::Version
62
55
  version: '1'
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: jeweler
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
- - - ~>
60
+ - - "~>"
69
61
  - !ruby/object:Gem::Version
70
- version: 1.6.4
62
+ version: '2'
71
63
  type: :development
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
- - - ~>
67
+ - - "~>"
77
68
  - !ruby/object:Gem::Version
78
- version: 1.6.4
69
+ version: '2'
79
70
  - !ruby/object:Gem::Dependency
80
71
  name: rspec
81
72
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
73
  requirements:
84
- - - ! '>='
74
+ - - ">="
85
75
  - !ruby/object:Gem::Version
86
76
  version: '0'
87
77
  type: :development
88
78
  prerelease: false
89
79
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
80
  requirements:
92
- - - ! '>='
81
+ - - ">="
93
82
  - !ruby/object:Gem::Version
94
83
  version: '0'
95
84
  - !ruby/object:Gem::Dependency
96
85
  name: rdoc
97
86
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
87
  requirements:
100
- - - ! '>='
88
+ - - ">="
101
89
  - !ruby/object:Gem::Version
102
90
  version: '0'
103
91
  type: :development
104
92
  prerelease: false
105
93
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
94
  requirements:
108
- - - ! '>='
95
+ - - ">="
109
96
  - !ruby/object:Gem::Version
110
97
  version: '0'
111
98
  description: Provides a ruby interface to flickr via the REST api
@@ -185,31 +172,27 @@ files:
185
172
  - spec/spec_helper.rb
186
173
  homepage: http://github.com/commonthread/flickr_fu
187
174
  licenses: []
175
+ metadata: {}
188
176
  post_install_message:
189
177
  rdoc_options:
190
- - --main
178
+ - "--main"
191
179
  - README
192
180
  require_paths:
193
181
  - lib
194
182
  required_ruby_version: !ruby/object:Gem::Requirement
195
- none: false
196
183
  requirements:
197
- - - ! '>='
184
+ - - ">="
198
185
  - !ruby/object:Gem::Version
199
186
  version: '0'
200
- segments:
201
- - 0
202
- hash: 2842306328355594278
203
187
  required_rubygems_version: !ruby/object:Gem::Requirement
204
- none: false
205
188
  requirements:
206
- - - ! '>='
189
+ - - ">="
207
190
  - !ruby/object:Gem::Version
208
191
  version: '0'
209
192
  requirements: []
210
193
  rubyforge_project:
211
- rubygems_version: 1.8.24
194
+ rubygems_version: 2.2.2
212
195
  signing_key:
213
- specification_version: 3
196
+ specification_version: 4
214
197
  summary: Provides a ruby interface to flickr via the REST api
215
198
  test_files: []