kuva 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +2 -2
- data/README.md +13 -3
- data/kuva.gemspec +1 -1
- data/lib/kuva/version.rb +1 -1
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2d3c140fb6e0a41355f6fcb0dc9f4308730f9d5
|
4
|
+
data.tar.gz: ddd841ae71b5361d421f58fac6323a59a66464f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 761a84ff218deb02b5b9747d1657e98d4f506002fd63d7b18f3bc0a54f35e022845518950030e1d9ed28f41f162e0456616f29f9dd91ccb49968a79c6736910a
|
7
|
+
data.tar.gz: 7a8af0df5d71d9a68c2591bd8845c647376a97172ec24108e9c1e2707e52769fb8f4b1e11fe9074950d526626ee26087d7994d51a77490ab31d7ef96634e1a50
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -23,12 +23,22 @@ Or install it yourself:
|
|
23
23
|
|
24
24
|
## Authorize Kuva
|
25
25
|
|
26
|
-
To use Kuva you'll need to authorize the gem with Flickr. In order to do that, you'll need to apply for an API key and shared secret. When that's done, you'll need to run the `kuva:authorize` rake task, but first things first.
|
26
|
+
To use Kuva you'll need to authorize the gem with Flickr. In order to do that, you'll need to apply for an API key and shared secret. When that's done, you'll need to supply those values to the Kuva setup block. Afterwards you need run the `kuva:authorize` rake task, but first things first.
|
27
27
|
|
28
28
|
### Apply for an API key and shared secret
|
29
29
|
|
30
30
|
You can retrieve an API key and shared secret from Flickr by [creating a new application](https://www.flickr.com/services/apps). Just follow the instructions and once you've received the API key and shared secret, move on to the next step.
|
31
31
|
|
32
|
+
### Filling in Kuva's configuration options
|
33
|
+
|
34
|
+
Now that we've got an API key and shared secret, let's put them to use. Configuring Kuva is pretty easy. First run the following:
|
35
|
+
|
36
|
+
rails generate kuva:install
|
37
|
+
|
38
|
+
This will install an initializer called `config/initializer/kuva.rb` in your Rails application. Use the previously acquired variables to fill in the Kuva setup block in that file.
|
39
|
+
|
40
|
+
Hang on, we're almost there.
|
41
|
+
|
32
42
|
### Run the `kuva:authorize` rake task
|
33
43
|
|
34
44
|
rake kuva:authorize
|
@@ -54,11 +64,11 @@ Take note of the variables and save them, since you'll need them to use Kuva.
|
|
54
64
|
|
55
65
|
## Configuration
|
56
66
|
|
57
|
-
|
67
|
+
As described in the previous part we've now got the required variables, so let's put them to use. As mentioned earlier configuring Kuva is as easy as running the following:
|
58
68
|
|
59
69
|
rails generate kuva:install
|
60
70
|
|
61
|
-
|
71
|
+
That installed an initializer called `config/initializer/kuva.rb` in your Rails application. You've already filled in your API key an shared secret in that file, now fill in the missing configuration options with the previously acquired variables.
|
62
72
|
|
63
73
|
Besides the `API key`, `shared secret`, `access token` and `access token secret` you're able to set the `cache expiration` of the Flickr API calls as well.
|
64
74
|
|
data/kuva.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.files = `git ls-files`.split("\n")
|
17
17
|
gem.test_files = `git ls-files -- spec/**/*`.split("\n")
|
18
18
|
|
19
|
-
gem.add_dependency "rails", "~> 4.
|
19
|
+
gem.add_dependency "rails", "~> 4.0", ">= 4.0.0"
|
20
20
|
gem.add_dependency "flickraw"
|
21
21
|
gem.add_dependency "haml"
|
22
22
|
gem.add_dependency "sass-rails", "~> 4.0.0"
|
data/lib/kuva/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kuva
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Tuhumury
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.
|
19
|
+
version: '4.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 4.0.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.
|
29
|
+
version: '4.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 4.0.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: flickraw
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|