pexels_api_client 0.1.2 → 0.1.4

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: 7c5716d9529fecdda2007e2b10d2df7e7ed7b82a684121a799fdc69de901e378
4
- data.tar.gz: 1dde10f99eac937ca3c13fe6aa5657056ce43fc23438bbb9e9c97aadfd9dc697
3
+ metadata.gz: 5cbd9207fe76696dc9ebd07e2c893daeda0f4eb77b8f89351ba60630ada76994
4
+ data.tar.gz: 0ad22972470b2160e0344f5b5a774af617499591c79c348366909f98d77d8c4a
5
5
  SHA512:
6
- metadata.gz: 4b4e3ab21a72855d4a42575ef7351b67db548a660220023e629ec993b7c82f1e21329f4af5f404f3696a60a87b5acf6c537653499ce848877e6c2f837435b909
7
- data.tar.gz: f3f8f054bfd7eed6bfe650e9cdabe63911127aeb6c830b9879079894eeff2027821e310681cf0e9383f0517dad4766bb7cecd6d59e9fba1ae23c2a0a1d9d14cf
6
+ metadata.gz: 6a388e183cc0f8d0e3ea0213bfa3fd14afab3cbe10b477581c9531db44d5537447fb65b7d6424e98e47fce9fc5a144e612638bd99b5e43ef6d8dea84db9638a1
7
+ data.tar.gz: e47f0739f40502f9365fc8ec5cdddeeaa2ad4b66609aed35289ba264653011849a8f6cbab813e2de103fbf2af276b088f1637e0d49d211ed417cfb1361d9632a
@@ -1,9 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pexels_api_client (0.1.2)
5
- activesupport
6
- api-auth (~> 2.3.1)
4
+ pexels_api_client (0.1.4)
7
5
  flexirest (~> 1.8.6)
8
6
  json (~> 2.2.0)
9
7
  rest-client (~> 2.1.0)
@@ -19,7 +17,6 @@ GEM
19
17
  zeitwerk (~> 2.2)
20
18
  addressable (2.7.0)
21
19
  public_suffix (>= 2.0.2, < 5.0)
22
- api-auth (2.3.1)
23
20
  ast (2.4.0)
24
21
  bump (0.8.0)
25
22
  concurrent-ruby (1.1.5)
@@ -50,15 +47,11 @@ GEM
50
47
  minitest (5.13.0)
51
48
  multi_json (1.14.1)
52
49
  multipart-post (2.1.1)
53
- mustermann (1.0.3)
54
50
  netrc (0.11.0)
55
51
  parallel (1.19.1)
56
52
  parser (2.6.5.0)
57
53
  ast (~> 2.4.0)
58
54
  public_suffix (4.0.1)
59
- rack (2.0.7)
60
- rack-protection (2.0.7)
61
- rack
62
55
  rainbow (3.0.0)
63
56
  rake (10.5.0)
64
57
  rest-client (2.1.0)
@@ -88,13 +81,7 @@ GEM
88
81
  unicode-display_width (>= 1.4.0, < 1.7)
89
82
  ruby-progressbar (1.10.1)
90
83
  safe_yaml (1.0.5)
91
- sinatra (2.0.7)
92
- mustermann (~> 1.0)
93
- rack (~> 2.0)
94
- rack-protection (= 2.0.7)
95
- tilt (~> 2.0)
96
84
  thread_safe (0.3.6)
97
- tilt (2.0.10)
98
85
  tzinfo (1.2.5)
99
86
  thread_safe (~> 0.1)
100
87
  unf (0.1.4)
@@ -118,7 +105,6 @@ DEPENDENCIES
118
105
  rake (~> 10.0)
119
106
  rspec (~> 3.9.0)
120
107
  rubocop (~> 0.77.0)
121
- sinatra (~> 2.0.7)
122
108
  vcr (~> 5.0.0)
123
109
  webmock (~> 3.7.6)
124
110
 
data/README.md CHANGED
@@ -43,14 +43,14 @@ photo.photographer # => John Doe
43
43
 
44
44
  * **Curated**: Get a Curated list of trending photos.
45
45
 
46
- | **options** | |
47
- | ------ | ------ |
48
- | per_page | Defines the number of results per page. (optional, default: 15, max: 80) |
49
- | page | Defines the number of the page. (optional, default: 1) |
46
+ | **Param** | **Description** |
47
+ | ------ | ------ |
48
+ | **per_page** | Defines the number of results per page. (optional, default: 15, max: 80) |
49
+ | **page** | Defines the number of the page. (optional, default: 1) |
50
50
 
51
51
  ```ruby
52
52
  curated_photos = PexelsApiClient::Photo.curated # => Fallback to default options
53
- -- or --
53
+ -- or --
54
54
  curated_photos = PexelsApiClient::Photo.curated(per_page: 5, page: 2) # => With custom options
55
55
 
56
56
  curated_photos.photos # => [photo1, photo2,etc]
@@ -70,17 +70,17 @@ random_photo.photos.first.photographer # => John Doe
70
70
 
71
71
  * **Search**: Search for photos related to a query
72
72
 
73
- | **options** | |
74
- | ------ | ------ |
75
- | query | Get photos related to this query. (required) |
76
- | per_page | Defines the number of results per page. (optional, default: 15, max: 80) |
77
- | page | Defines the number of the page. (optional, default: 1) |
73
+ | **Param** | **Description** |
74
+ | ------ | ------ |
75
+ | **query** | Get photos related to this query. (required) |
76
+ | **per_page** | Defines the number of results per page. (optional, default: 15, max: 80) |
77
+ | **page** | Defines the number of the page. (optional, default: 1) |
78
78
 
79
79
  ```ruby
80
80
  search_photos = PexelsApiClient::Photo.search(per_page: 5, page: 2, query: 'people')
81
81
 
82
- curated_photos.photos # => [photo1, photo2,etc]
83
- curated_photos.photos.first.photographer # => John Doe
82
+ search_photos.photos # => [photo1, photo2,etc]
83
+ search_photos.photos.first.photographer # => John Doe
84
84
  # ...
85
85
  ```
86
86
 
@@ -97,18 +97,18 @@ video.user.name # => John Doe
97
97
 
98
98
  * **Popular**: Get a list of popular videos.
99
99
 
100
- | **options** | |
101
- | ------ | ------ |
102
- | per_page | Defines the number of results per page. (optional, default: 15, max: 80) |
103
- | page | Defines the number of the page. (optional, default: 1) |
104
- | min_width | The minimum width in pixels of the returned videos. (optional, default: "") |
105
- | max_width | The maximum width in pixels of the returned videos. (optional, default: "") |
106
- | min_duration | The minimum duration in seconds of the returned videos. (optional, default: "")|
107
- | max_duration | The maximum duration in seconds of the returned videos. (optional, default: "") |
100
+ | **Param** | **Description** |
101
+ | ------ | ------ |
102
+ | **per_page** | Defines the number of results per page. (optional, default: 15, max: 80) |
103
+ | **page** | Defines the number of the page. (optional, default: 1) |
104
+ | **min_width** | The minimum width in pixels of the returned videos. (optional, default: "") |
105
+ | **max_width** | The maximum width in pixels of the returned videos. (optional, default: "") |
106
+ | **min_duration** | The minimum duration in seconds of the returned videos. (optional, default: "")|
107
+ | **max_duration** | The maximum duration in seconds of the returned videos. (optional, default: "") |
108
108
 
109
109
  ```ruby
110
110
  popular_videos = PexelsApiClient::Video.popular # => Fallback to default options
111
- -- or --
111
+ -- or --
112
112
  popular_videos = PexelsApiClient::Video.popular(per_page: 5, page: 2) # => With custom options
113
113
 
114
114
  popular_videos.videos # => [video1, video2, etc]
@@ -128,15 +128,16 @@ random_video.videos.first.user.name # => John Doe
128
128
 
129
129
  * **Search**: Search for videos related to a query
130
130
 
131
- | **options** | |
132
- | ------ | ------ |
133
- | query | Get videos related to this query. (required) |
134
- | per_page | Defines the number of results per page. (optional, default: 15, max: 80) |
135
- | page | Defines the number of the page. (optional, default: 1) |
136
- | min_width | The minimum width in pixels of the returned videos. (optional, default: "") |
137
- | max_width | The maximum width in pixels of the returned videos. (optional, default: "") |
138
- | min_duration | The minimum duration in seconds of the returned videos. (optional, default: "")|
139
- | max_duration | The maximum duration in seconds of the returned videos. (optional, default: "") |
131
+
132
+ | **Param** | **Description** |
133
+ | ------ | ------ |
134
+ | **query** | Get videos related to this query. (required) |
135
+ | **per_page** | Defines the number of results per page. (optional, default: 15, max: 80) |
136
+ | **page** | Defines the number of the page. (optional, default: 1) |
137
+ | **min_width** | The minimum width in pixels of the returned videos. (optional, default: "") |
138
+ | **max_width** | The maximum width in pixels of the returned videos. (optional, default: "") |
139
+ | **min_duration** | The minimum duration in seconds of the returned videos. (optional, default: "")|
140
+ | **max_duration** | The maximum duration in seconds of the returned videos. (optional, default: "") |
140
141
 
141
142
  ```ruby
142
143
  search_videos = PexelsApiClient::Video.search(per_page: 5, page: 2, query: 'people')
@@ -148,7 +149,7 @@ search_videos.videos.first.user.name # => John Doe
148
149
 
149
150
  ## Development
150
151
 
151
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
152
+ After checking out the repo, run `bundle install` to install dependencies. Then, run `rspec spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
152
153
 
153
154
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
154
155
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PexelsApiClient
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.4'
5
5
  end
@@ -30,8 +30,6 @@ Gem::Specification.new do |spec|
30
30
  spec.require_paths = ['lib']
31
31
  spec.required_ruby_version = '~> 2.6.3'
32
32
 
33
- spec.add_runtime_dependency 'activesupport'
34
- spec.add_runtime_dependency 'api-auth', '~> 2.3.1'
35
33
  spec.add_runtime_dependency 'flexirest', '~> 1.8.6'
36
34
  spec.add_runtime_dependency 'json', '~> 2.2.0'
37
35
  spec.add_runtime_dependency 'rest-client', '~> 2.1.0'
@@ -41,7 +39,6 @@ Gem::Specification.new do |spec|
41
39
  spec.add_development_dependency 'rake', '~> 10.0'
42
40
  spec.add_development_dependency 'rspec', '~> 3.9.0'
43
41
  spec.add_development_dependency 'rubocop', '~> 0.77.0'
44
- spec.add_development_dependency 'sinatra', '~> 2.0.7'
45
42
  spec.add_development_dependency 'vcr', '~> 5.0.0'
46
43
  spec.add_development_dependency 'webmock', '~> 3.7.6'
47
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pexels_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nora Gabriela Alvarado
@@ -10,34 +10,6 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2019-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: activesupport
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: api-auth
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 2.3.1
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 2.3.1
41
13
  - !ruby/object:Gem::Dependency
42
14
  name: flexirest
43
15
  requirement: !ruby/object:Gem::Requirement
@@ -150,20 +122,6 @@ dependencies:
150
122
  - - "~>"
151
123
  - !ruby/object:Gem::Version
152
124
  version: 0.77.0
153
- - !ruby/object:Gem::Dependency
154
- name: sinatra
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: 2.0.7
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: 2.0.7
167
125
  - !ruby/object:Gem::Dependency
168
126
  name: vcr
169
127
  requirement: !ruby/object:Gem::Requirement