unsplash 2.0.0 → 2.0.1

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
  SHA256:
3
- metadata.gz: d581307faeeb1e5d04567b3f78448e7cb78d461a0f1a5d5fc4df9b1fcb956fbb
4
- data.tar.gz: e1f9433a95e64812f5f987e826a3e590a66c16f89932ccb4f2c1c4b31465fbc0
3
+ metadata.gz: a89f4db0c073875c05c83221e2ff912ff8b414c316b55e6166fb33fb552b84da
4
+ data.tar.gz: cf552d1afd53ff88378bbdacdfc4ec58af9fb006587360c2f02e759408393660
5
5
  SHA512:
6
- metadata.gz: df3a61dfe8ce5343708ec01727ba70270e3795aa61465a93b56e4a75f0ef2c44800c8ac32f2c9ec255a4a7f5e825c597f1528f47f1a976c91d264f60f69cd5f5
7
- data.tar.gz: 1da020da45c5f45baf522da57fa6cb2ed2a7d36ab32e436f0ab3ab1d2f26f5ddbd5ca2edbc8aca660f099ee319d3ee53b9143b993eddf71d3d117a5ddca18677
6
+ metadata.gz: dea3bf58a7a162fe55b1fb169da19c3efc365ca1f0eff1157589f0e3a63cf28c4240fb83ab2e0734d598c6d76abb2fd045bf6f65a9cd9b4d70391347d8432380
7
+ data.tar.gz: 602969d85b3584fc6fc0b9422b8e7240665c71cd2cddeaaa566015a6faf13d2909d0070e6dc470ae1f17b22468d0ec3da776c350e60d95470fee81407c91b891
data/README.md CHANGED
@@ -90,6 +90,15 @@ Hotlinking the [Unsplash image files is required](https://help.unsplash.com/api-
90
90
 
91
91
  Unlike most APIs, Unsplash requires for the image URLs returned by the API to be directly used or embedded in your applications (generally referred to as hotlinking). By using the CDN and embedding the photo URLs in your application, Unsplash can better track photo views and pass those stats on to the photographer, providing them with context for how popular their photo is and how it's being used.
92
92
 
93
+ ### Track Download
94
+
95
+ Do you want to trigger [track download](https://help.unsplash.com/api-guidelines/more-on-each-guideline/guideline-triggering-a-download) attribution on a photo ?
96
+
97
+ ```ruby
98
+ photo = Unsplash::Photo.find("tAKXap853rY")
99
+ photo.track_download
100
+ ```
101
+
93
102
  ## Development
94
103
 
95
104
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,4 +1,4 @@
1
1
  module Unsplash # :nodoc:
2
2
  # :nodoc:
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
data/unsplash.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.required_ruby_version = ">= 2.3.0"
22
22
 
23
- spec.add_dependency "httparty", "~> 0.16.4"
23
+ spec.add_dependency "httparty", "~> 0.16"
24
24
  spec.add_dependency "oauth2", "~> 1"
25
25
 
26
26
  spec.add_development_dependency "rake", "~> 12.3.2"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unsplash
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Klaassen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-21 00:00:00.000000000 Z
11
+ date: 2019-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.16.4
19
+ version: '0.16'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.16.4
26
+ version: '0.16'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: oauth2
29
29
  requirement: !ruby/object:Gem::Requirement