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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7560a03d6b2c0c357e7eb7b4818988e1644380c
4
- data.tar.gz: 5f4773c026dbf788be51acf460496b2bc9573d2f
3
+ metadata.gz: e2d3c140fb6e0a41355f6fcb0dc9f4308730f9d5
4
+ data.tar.gz: ddd841ae71b5361d421f58fac6323a59a66464f1
5
5
  SHA512:
6
- metadata.gz: c2fb4f53b5aed2f2034ecf7d9fc211805a7de4da2dee3d73c724e6a700e7566f214149ec6e36339750da9a0a351bb87aefb39ec923ebbc2b40883ab591d548f4
7
- data.tar.gz: 732202b071e1e4a38b8199a0870359ded6bc1ac0f0bcc4b630395cc84c41ae589384ede3fcb1006077d3c9c063e9f4dcbc2a7274000e8ed39925af543727b258
6
+ metadata.gz: 761a84ff218deb02b5b9747d1657e98d4f506002fd63d7b18f3bc0a54f35e022845518950030e1d9ed28f41f162e0456616f29f9dd91ccb49968a79c6736910a
7
+ data.tar.gz: 7a8af0df5d71d9a68c2591bd8845c647376a97172ec24108e9c1e2707e52769fb8f4b1e11fe9074950d526626ee26087d7994d51a77490ab31d7ef96634e1a50
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
 
4
4
  .env
5
5
  .bundle/
6
+ *.gem
6
7
  log/*.log
7
8
  pkg/
8
9
  spec/dummy/db/*.sqlite3
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kuva (0.0.1)
4
+ kuva (0.0.2)
5
5
  coffee-rails (~> 4.0.0)
6
6
  compass-rails
7
7
  flickraw
8
8
  haml
9
- rails (~> 4.1.0)
9
+ rails (~> 4.0, >= 4.0.0)
10
10
  sass-rails (~> 4.0.0)
11
11
 
12
12
  GEM
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
- Now that we've got the required variables, let's put them to use. Configuring Kuva is pretty easy. First run the following:
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
- 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.
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.1.0"
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
@@ -1,3 +1,3 @@
1
1
  module Kuva
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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.1.0
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.1.0
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