clearbooks 0.18.1 → 0.18.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: 1af8b71d438200221b895de81c10918c5117b585
4
- data.tar.gz: b048420193610f53fc13a4a15fb380c001a1fe5f
3
+ metadata.gz: b132005788aba1a6bb12d7dfebe9cc7d4b343101
4
+ data.tar.gz: d9bf7b3eb74626da8b872f1d9053ae1c4421b7c2
5
5
  SHA512:
6
- metadata.gz: eaac89d853482b6ef0ccbf848ec664814e69b87c3ef3d634623acaef5758283978c33ad6520ddeaa6619d2ae6eda690bf003746f2703969434e66cddea2758ab
7
- data.tar.gz: 887c194c5d7ff22c6c35d48c199262685c7c72a0ec11e76bfdd457a70c0c0b28674568ecb941bccc6e14f09e15697649dfdd1f074030ed3cdf96beece20c5b2f
6
+ metadata.gz: 71986345ecca85e5939ab47587e864bf170dcdd7394b90150f024aa18c58676768c0a408af51fb31e813568aace69ba504cb5e155d9cb0f2b98fbba9771fe5eb
7
+ data.tar.gz: 8df901754b591361e8bf1f68b0c7e6628ec699da203b6438f2e707ebbbbc42a5f91e1a7902b125cef788e03b95fb1c92070456b5b4af09cc38af7d30657db75b
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Clearbooks
2
- Version 0.18.1
2
+ Version 0.18.2
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/clearbooks.svg)](http://badge.fury.io/rb/clearbooks)
5
5
  [![License](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://img.shields.io/badge/license-MIT-brightgreen.svg)
@@ -59,7 +59,7 @@ To use the Clearbooks API, you need to get an API key on http://clearbooks.co.uk
59
59
 
60
60
  Login to the site and choose `Settings` > `API`.
61
61
 
62
- Save the API key in `~/.clearbooks/config.yml`.
62
+ Store the API key and configuration options in `config/clearbooks.yml`, `.clearbooks/config.yml`, or `~/.clearbooks/config.yml`.
63
63
 
64
64
 
65
65
  ```sh
@@ -486,7 +486,7 @@ Here is a current listing of all tasks:
486
486
 
487
487
 
488
488
  ```
489
- rake build # Build clearbooks-0.18.1.gem into the pkg directory
489
+ rake build # Build clearbooks-0.18.2.gem into the pkg directory
490
490
  rake cucumber:pretty # Run Cucumber features
491
491
  rake cucumber:progress # Run Cucumber features
492
492
  rake default # Show the default task when executing rake without arguments
@@ -494,8 +494,8 @@ rake docs:generate # Generate Yardoc documentation for this project
494
494
  rake docs:graph # Generate Yard Graphs for this project
495
495
  rake guard:default # Execute Ruby Guard
496
496
  rake help # Shows the usage help screen
497
- rake install # Build and install clearbooks-0.18.1.gem into system gems
498
- rake install:local # Build and install clearbooks-0.18.1.gem into system gems without network access
497
+ rake install # Build and install clearbooks-0.18.2.gem into system gems
498
+ rake install:local # Build and install clearbooks-0.18.2.gem into system gems without network access
499
499
  rake man:build # Build the manual pages
500
500
  rake man:clean # Clean up from the built man pages
501
501
  rake measurement:benchmark # When executing rake tasks measure elapsed time, used with other tasks
@@ -506,7 +506,7 @@ rake readme # Generate proper README file from templates
506
506
  rake readme:all # Generate proper README file from templates
507
507
  rake readme:subdirs # Builds generates readme files in all sub-directories
508
508
  rake readme:topdir # Generate top level README file from template
509
- rake release # Create tag v0.18.1 and build and push clearbooks-0.18.1.gem to Rubygems
509
+ rake release # Create tag v0.18.2 and build and push clearbooks-0.18.2.gem to Rubygems
510
510
  rake spec # RSpec Core Tasks
511
511
  rake todo # Look for TODO and FIXME tags in the code
512
512
  rake version # Git Tag number of this repo
@@ -532,7 +532,7 @@ thor :docs:generate # Generate Yardoc documentation for this project
532
532
  thor :docs:graph # Generate Yard Graphs for this project
533
533
  thor :guard:default # Execute Ruby Guard
534
534
  thor :help # Shows the usage help screen
535
- thor :install # Build and install clearbooks-0.18.1 .gem into system gems
535
+ thor :install # Build and install clearbooks-0.18.2 .gem into system gems
536
536
  thor :man:build # Build the manual pages
537
537
  thor :man:clean # Clean up from the built man pages
538
538
  thor :measurement:benchmark # When executing rake tasks measure elapsed time, used with other tasks
@@ -18,7 +18,8 @@ module Clearbooks
18
18
  # @fn def initialize
19
19
  # @brief Constructor for Clearbooks::Configuration class objects
20
20
  def initialize
21
- defaults = YAML.load_file(DEFAULT_CONFIG) rescue nil
21
+ defaults = YAML.load_file('config/clearbooks.yml') rescue nil
22
+ defaults ||= YAML.load_file(DEFAULT_CONFIG) rescue nil
22
23
  defaults ||= YAML.load_file(File.expand_path("~/#{DEFAULT_CONFIG}")) rescue Hash.new
23
24
 
24
25
  @api_key = ENV['CLEARBOOKS_API_KEY'] || defaults['api_key']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clearbooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1
4
+ version: 0.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bjoern Rennhak