flickr-objects 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 442add3120c6a46defe96432d84a7ec496a2e574
4
- data.tar.gz: 8fddbf4731a2871b8427669bc85a235328f91b67
3
+ metadata.gz: 5eddb35e7b00db0ce939a684d907c6e71ec85e1d
4
+ data.tar.gz: 00f3435743e09054efcdcdc969248f1137b7f331
5
5
  SHA512:
6
- metadata.gz: 8e23ac266dc1d3d2cf6155433a24e5a46bc7c7ebdde2f010bad05b41a2e410ccc8bab1fe7ca200facfdb6750e2603b9945c4b0eb3c1bb4d5efd7881b6233262e
7
- data.tar.gz: 8f72874f1ace3b9ba50b827b0cba0516f8a0cc78429db37838ae1d0208be65e45ad2150c516ae081e6049739b824ddb6ae427a70678c69a97067ca05f6686dbe
6
+ metadata.gz: b48b1b233e9709a939486a2881eab1a443222d73bb05b0e74c357885224aebf0cf21dcefdc4c71a132bb3b8292af05be9086e7b79429ed28d83055633fa00c99
7
+ data.tar.gz: 3ca786e7aec889e29535d3b4c3a6fcbad440ff94587cfec1f9443bbd8d7ce202dd89ec923265a9e0b4e4af88ffdb22d71111893ffe0ccafa233efd79ef50529c
@@ -14,6 +14,7 @@ module Flickr
14
14
  # @return [String] ID of the uploaded photo (if synchronous)
15
15
  # @return [String] ID of the upload ticket (if asynchronous). See {Flickr::Api::UploadTicket#check}.
16
16
  # @docs [Upload API](http://www.flickr.com/services/api/upload.api.html)
17
+ # @docs [Asynchronous Uploading](https://www.flickr.com/services/api/upload.async.html)
17
18
  #
18
19
  def upload(photo, params = {})
19
20
  response = super params.merge(photo: SanitizedFile.new(photo))
@@ -30,6 +31,7 @@ module Flickr
30
31
  # @return [String] ID of the uploaded photo (if synchronous)
31
32
  # @return [String] ID of the upload ticket (if asynchronous)
32
33
  # @docs [Replace API](http://www.flickr.com/services/api/replace.api.html)
34
+ # @docs [Asynchronous Uploading](https://www.flickr.com/services/api/upload.async.html)
33
35
  #
34
36
  def replace(photo, photo_id, params = {})
35
37
  response = super params.merge(photo: SanitizedFile.new(photo), photo_id: photo_id)
data/lib/flickr/error.rb CHANGED
@@ -38,7 +38,7 @@ module Flickr
38
38
  ##
39
39
  # @private
40
40
  #
41
- def initialize(message, code = nil)
41
+ def initialize(message = nil, code = nil)
42
42
  super(message)
43
43
  @code = code.to_i
44
44
  end
@@ -1,5 +1,5 @@
1
1
  module Flickr
2
2
 
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
 
5
5
  end
data/lib/flickr.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require "flickr/error"
2
+
1
3
  module Flickr
2
4
 
3
5
  ##
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flickr-objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janko Marohnić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-27 00:00:00.000000000 Z
11
+ date: 2014-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday