nested_config 0.6.1 → 0.6.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
- SHA1:
3
- metadata.gz: fdbc3b0adc2e88b922493804893d2cf1bc43aa75
4
- data.tar.gz: c0079c73e27e464f02a3c47316ea11584b2f3c6e
2
+ SHA256:
3
+ metadata.gz: f1e007d4f716e16773e6cca7f4d5a659ccf639ee6c925cc6249899b348bb007d
4
+ data.tar.gz: 61001ad44889926c04dfd18f2a8487b536c2fd79a257d624cee4a5cf889bb779
5
5
  SHA512:
6
- metadata.gz: c50f21ee70824b1c6483c876d30aade676aca18ffa8b1948046e9386bdc96dfa739cc6be98d4c833500cd2e755086ae50108a5b820c59be533d60860d2eef3b9
7
- data.tar.gz: c1700cf301da89024143b26ba1c0e482afcf4edfb9c0e51d52662e7e0c765910c649e2c6c2b98b4ab5285f65d49ab99151d8d1a9189c42dfbae5432a52f80535
6
+ metadata.gz: 5d4a85435302c29806bfcebd31fdb98b0b1ab52dbfc24f7b9ec8b4c4e3e4c7369affb3a1a7f5fb09f7f79c5d9c2b647dbbd52301e8d5b4c4f92ab30a7e4e4c06
7
+ data.tar.gz: c64023cd4291e69aea21431dd2f78bfd2be4be9b966bd24f474c57fb68f7b7dd8eca2dfff56220ec7884b1c53c012407153576978a60fd323d891fdf32df4615
data/.gitignore CHANGED
@@ -3,4 +3,4 @@
3
3
  Gemfile.lock
4
4
  pkg/*
5
5
  rdoc
6
- tmp
6
+ coverage
data/.simplecov CHANGED
@@ -1,9 +1,3 @@
1
- if ENV['COVERAGE']
2
- require 'simplecov-rcov'
3
-
4
- SimpleCov.coverage_dir "tmp/coverage"
5
- SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter if ENV['CI']
6
- SimpleCov.start do
7
- add_filter '/test/'
8
- end
1
+ SimpleCov.start do
2
+ add_filter '/test/'
9
3
  end
@@ -1,25 +1,27 @@
1
1
  language: ruby
2
2
  sudo: false
3
3
  cache: bundler
4
+ after_success:
5
+ - '[ "${TRAVIS_JOB_NUMBER#*.}" = "1" ] && bundle exec codeclimate-test-reporter'
4
6
  rvm:
5
- - ruby-head
7
+ - 2.7
8
+ - 2.4
9
+ - 2.3
6
10
  - 2.2
7
11
  - 2.1
8
12
  - 2.0
9
13
  - 1.9.3
10
- - jruby
11
- - jruby-head
12
- - rbx-2
14
+ - jruby-9.1.8.0
15
+ - ruby-head
13
16
  env:
14
17
  global:
15
18
  - CODECLIMATE_REPO_TOKEN=a682282424953217391072dbe4c6b0f793a6c40312a182bc1eb3e26337dbf0f1
16
19
  - JRUBY_OPTS='--dev -J-Xmx1024M'
20
+ - COVERAGE='true'
17
21
  matrix:
18
22
  fast_finish: true
19
23
  allow_failures:
20
24
  - rvm: ruby-head
21
- - rvm: jruby
22
- - rvm: jruby-head
23
25
  notifications:
24
26
  webhooks:
25
27
  urls:
data/Gemfile CHANGED
@@ -1,14 +1,11 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
5
  if ENV['COVERAGE']
6
6
  group :test do
7
- gem 'simplecov', :require => false
8
- gem 'simplecov-rcov', :require => false
7
+ gem 'simplecov', :require => false
8
+ gem 'simplecov-rcov', :require => false
9
+ gem 'codeclimate-test-reporter', :require => false
9
10
  end
10
11
  end
11
-
12
- if ENV['CODECLIMATE_REPO_TOKEN']
13
- gem "codeclimate-test-reporter", :group => :test, :require => nil
14
- end
@@ -72,9 +72,9 @@ class NestedConfig
72
72
  yield config
73
73
  end
74
74
 
75
- def method_missing(name, *args)
75
+ def method_missing(name, *args, &block)
76
76
  if block_given?
77
- _(name, &Proc.new)
77
+ _(name, &block)
78
78
  else
79
79
  key = name.to_s
80
80
  index = key.rindex('='.freeze)
@@ -1,3 +1,3 @@
1
1
  class NestedConfig
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -1,8 +1,3 @@
1
- if ENV['CODECLIMATE_REPO_TOKEN']
2
- require "codeclimate-test-reporter"
3
- CodeClimate::TestReporter.start
4
- end
5
-
6
1
  require 'simplecov' if ENV['COVERAGE']
7
2
 
8
3
  require 'minitest/spec'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nested_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Suschlik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-17 00:00:00.000000000 Z
11
+ date: 2020-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -92,9 +92,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
- rubyforge_project:
96
- rubygems_version: 2.6.11
95
+ rubygems_version: 3.1.2
97
96
  signing_key:
98
97
  specification_version: 4
99
98
  summary: Simple, static, nested config
100
- test_files: []
99
+ test_files:
100
+ - test/helper.rb
101
+ - test/nested_config/evaluate_once_test.rb
102
+ - test/nested_config/with_config_test.rb
103
+ - test/nested_config_test.rb