yourub 1.0.5 → 1.0.6
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 +4 -4
- data/README.md +18 -8
- data/lib/yourub/client.rb +1 -2
- data/lib/yourub/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e83483d231c996806cbf00c101261934d3f89668
|
|
4
|
+
data.tar.gz: 854811f79167eb1d0479b9e5b37827de374d6f01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae925829dd1a50afa50a827cea56e3b2fcb548eb9080d5db376b4d9a0576b7b6218847907d6b754a123c26719668cd91db58d4fffefcc2c9d05e25b00c0a3d0f
|
|
7
|
+
data.tar.gz: 4876313101e4a232ddcb74a48bda65319a233edd2934f8ae82798508ee618fad431201698f641f32257a8f88bacc1ee73f9f4aaf7c9a77cbe02cbce04784bc84
|
data/README.md
CHANGED
|
@@ -21,14 +21,24 @@ Or install it yourself as:
|
|
|
21
21
|
|
|
22
22
|
Get a developer key as explained [here](http://www.youtube.com/watch?v=Im69kzhpR3I)
|
|
23
23
|
If you are using rails, create a app/config/yourub.yml file as follow:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
```
|
|
25
|
+
yourub_defaults: &yourub_defaults
|
|
26
|
+
developer_key: 'YoUrDevEl0PerKey'
|
|
27
|
+
youtube_api_service_name: 'youtube'
|
|
28
|
+
youtube_api_version: 'v3'
|
|
29
|
+
application_name: "yourub"
|
|
30
|
+
application_version: "0.1"
|
|
31
|
+
log_level: WARN
|
|
32
|
+
|
|
33
|
+
development:
|
|
34
|
+
<<: *yourub_defaults
|
|
35
|
+
|
|
36
|
+
production:
|
|
37
|
+
<<: *yourub_defaults
|
|
38
|
+
|
|
39
|
+
test:
|
|
40
|
+
<<: *yourub_defaults
|
|
41
|
+
```
|
|
32
42
|
|
|
33
43
|
### Available parameters
|
|
34
44
|
`:query` String, example `aliens`
|
data/lib/yourub/client.rb
CHANGED
|
@@ -140,7 +140,6 @@ module Yourub
|
|
|
140
140
|
end
|
|
141
141
|
|
|
142
142
|
def search_list_request(options)
|
|
143
|
-
byebug
|
|
144
143
|
search_response = client.execute!(
|
|
145
144
|
:api_method => youtube.search.list,
|
|
146
145
|
:parameters => options
|
|
@@ -186,4 +185,4 @@ module Yourub
|
|
|
186
185
|
end
|
|
187
186
|
|
|
188
187
|
end
|
|
189
|
-
end
|
|
188
|
+
end
|
data/lib/yourub/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yourub
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Davide Prati
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-05-
|
|
11
|
+
date: 2014-05-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-api-client
|