confoog 0.4.3 → 0.4.5

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: 9422eaf268b310c4933473e850ae17b7cb2af2fe
4
- data.tar.gz: f19cf7d265b7d48023c3246c3ff33e9c25c7e4d1
3
+ metadata.gz: 81ec77ff9a1cd8a233bb54f1efdfc75c71c71484
4
+ data.tar.gz: 8bcdc84ef266ce9f9bd7cece30d98626ef8a6c34
5
5
  SHA512:
6
- metadata.gz: 95a01b11a275022152f9de1b8cd0b1711f3fcfd78db7b21a96e77af83a32e705bacb12c0f10cd0d3c79b2ddccebfb573b6da8fb9b4eb735955064089de40292a
7
- data.tar.gz: 455181a8fc2b81bff5ab62a7dbad00c10e72141b3c28e13d67fe8520d6aefad5c1c19b62c45fd99b3d36c48ded2e0bae165f7d4e42ffc60a3b9e3ca63cb2fa7c
6
+ metadata.gz: f1b469e7ab0fd62f7ef2b1c64371bacd282ce63ea88eb3e7cba171be0b34326390dcd4c1b8986ee1071e43e7d252abddb54971bbbc3385558f4d1c507ad32c14
7
+ data.tar.gz: a7bb409ec43d023304c765ae9f069c36e4908bfbaad553a2857ff3bf72c0d4774cfcdee1c30b1f0404783c3e8412d3ccf5d94e14b5e3fc68ab282f56570a9c77
data/README.md CHANGED
@@ -1,6 +1,5 @@
1
- # Confoog
2
- [![Gem Version](https://badge.fury.io/rb/confoog.svg)](http://badge.fury.io/rb/confoog)
3
- [![Build Status](https://travis-ci.org/seapagan/confoog.svg)](https://travis-ci.org/seapagan/confoog)
1
+ # Confoog [![Gem Version](https://badge.fury.io/rb/confoog.svg)](http://badge.fury.io/rb/confoog) [![Build Status](https://travis-ci.org/seapagan/confoog.svg)](https://travis-ci.org/seapagan/confoog)
2
+
4
3
  [![Dependency Status](https://gemnasium.com/seapagan/confoog.svg)](https://gemnasium.com/seapagan/confoog)
5
4
  [![Coverage Status](https://coveralls.io/repos/seapagan/confoog/badge.svg?branch=master&service=github)](https://coveralls.io/github/seapagan/confoog?branch=master)
6
5
  [![Code Climate](https://codeclimate.com/github/seapagan/confoog/badges/gpa.svg)](https://codeclimate.com/github/seapagan/confoog)
@@ -129,6 +128,9 @@ Thoughts in no particular order.
129
128
  - Restrict configuration variables to a specified subset, or to only those that already exist in the YAML file.
130
129
  - A better way of dealing with multi-level variables - i.e. nested arrays, hashes etc.
131
130
  - Write standalone tests for the 'Status' class - right now it is tested at 100% by the application tests though would probably be good to have dedicated tests too
131
+ - Check Windows compatibility, certainly at least the tests will fail since there are issue with FakeFS on Window. Should be ok as a production Gem though (TBC)
132
+ - Add other file formats for storing config - XML? (Yuk!)
133
+ - Document properly on a dedicated website with full example usage and help.
132
134
 
133
135
  ## Development
134
136
 
@@ -136,7 +138,7 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
136
138
 
137
139
  To install this gem onto your local machine, run `bundle exec rake install`.
138
140
 
139
- Run `rake` to run the RSpec tests, which also runs `RuboCop` and `inch --pedantic` too.
141
+ Run `rake` to run the RSpec tests, which also runs `RuboCop`, `Reek` and `inch --pedantic` too.
140
142
 
141
143
  ## Contributing
142
144
 
@@ -146,10 +148,11 @@ Run `rake` to run the RSpec tests, which also runs `RuboCop` and `inch --pedanti
146
148
  4. Push to the branch (`git push origin my-new-feature`)
147
149
  5. Create new Pull Request
148
150
 
149
- Please note - This Gem currently passes 100% on both [RuboCop][rubocop] and [Inch-CI][inch] (on pedantic mode), so all pull requests should do likewise.
150
- Running `rake` will automatically test both these along with the RSpec tests.
151
+ Please note - This Gem currently passes 100% on [RuboCop][rubocop], [Reek][reek] and [Inch-CI][inch] (on pedantic mode), so all pull requests should do likewise. Ask for guidance if needed.
152
+ Running `rake` will automatically test all 3 of those along with the RSpec tests. Note that Failures of Rubocop will cause the CI (Travis) to fail, however 'Reek' failures will not.
151
153
 
152
154
  [rubocop]: https://github.com/bbatsov/rubocop
155
+ [reek]: https://github.com/troessner/reek
153
156
  [inch]: https://inch-ci.org
154
157
 
155
158
  ## Versioning
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
3
  require 'rubocop/rake_task'
4
- require 'reek/rake/task'
4
+
5
5
  require 'inch/rake'
6
6
 
7
7
  RSpec::Core::RakeTask.new(:spec)
@@ -14,10 +14,18 @@ Inch::Rake::Suggest.new do |suggest|
14
14
  suggest.args << '--pedantic'
15
15
  end
16
16
 
17
- Reek::Rake::Task.new do |t|
18
- t.fail_on_error = false
19
- t.verbose = true
20
- t.reek_opts = '-U'
17
+ # reek is not comp[atible with Ruby < 2.0]
18
+ if RUBY_VERSION > '2.0'
19
+ require 'reek/rake/task'
20
+ Reek::Rake::Task.new do |t|
21
+ t.fail_on_error = false
22
+ t.verbose = true
23
+ t.reek_opts = '-U'
24
+ end
25
+ else
26
+ task :reek do
27
+ # Empty task
28
+ end
21
29
  end
22
30
 
23
31
  task default: [:rubocop, :inch, :reek, :spec]
data/confoog.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
 
14
14
  spec.summary = 'This will add a class that takes care of all your configuration needs for Ruby scripts and Gems. Simple and basic'
15
15
  spec.description = 'A simple Gem to add YAML configuration files to your Ruby script or Gem'
16
- spec.homepage = 'https://github.com/seapagan/confoog'
16
+ spec.homepage = 'http://confoog.seapagan.net'
17
17
  spec.license = 'MIT'
18
18
 
19
19
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -31,5 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency 'inch'
32
32
  spec.add_development_dependency 'simplecov', '~> 0.10'
33
33
  spec.add_development_dependency 'pullreview-coverage'
34
- spec.add_development_dependency 'reek', '~> 3.3'
34
+
35
+ # Depend on Ruby version
36
+ spec.add_development_dependency 'reek', '~> 3.3' if RUBY_VERSION > '2.0'
35
37
  end
@@ -1,5 +1,5 @@
1
1
  # Define the Gem version string
2
2
  module Confoog
3
3
  # http://semver.org/
4
- VERSION = '0.4.3'
4
+ VERSION = '0.4.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: confoog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seapagan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-16 00:00:00.000000000 Z
11
+ date: 2015-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -185,7 +185,7 @@ files:
185
185
  - lib/confoog.rb
186
186
  - lib/confoog/status.rb
187
187
  - lib/confoog/version.rb
188
- homepage: https://github.com/seapagan/confoog
188
+ homepage: http://confoog.seapagan.net
189
189
  licenses:
190
190
  - MIT
191
191
  metadata: {}