dotcfg 0.2.4.1 → 0.2.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +20 -6
  3. data/VERSION +1 -1
  4. data/dotcfg.gemspec +1 -1
  5. data/lib/dotcfg.rb +1 -1
  6. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9b88392f46fcd6f8c4acba37612095e9ef327e5
4
- data.tar.gz: 786ba8222c13199a8c3d8f2a5e3d7eebab7887c2
3
+ metadata.gz: fceaa5b08885b44f7253fcd0ae6c1a0d04341490
4
+ data.tar.gz: a16b4eef3b2ae96a9fa03c909552d97b1a1cfa55
5
5
  SHA512:
6
- metadata.gz: ff1b60caa3b94407922cda464fe8e932031c73a09cc872054c34780b4ccf9f7e804c44d2e0cb6bd93eb1c5859fa0a6cbc02740ba842f0cdecd9ab23f64337500
7
- data.tar.gz: 87626284f04bb0f38dd6c31413d36ed252516beb0dd4805be279f89ae54ebeb58edbb2d7f5a6cb576429173bc4da16e769beccb81b16fef1c53c09c2f2974f71
6
+ metadata.gz: 7fe781e92e9307c2eafc8f8a30c8d531bd91083b76d349f4b080a54e0d977cb0b1cfbb818f4c7f3b5a8abbea61bd2089159537c6771fc0c36983fd754982c13f
7
+ data.tar.gz: 86bfe8acee0d030bfb068ad9ecaa2e5679d2a84568875b5d40fe8de14c551b1a93eb2a1cf56671253ccc77a94845dccd3346402d6573da93ece5a6deae807dbc
data/Rakefile CHANGED
@@ -1,8 +1,22 @@
1
- require 'buildar'
2
- require 'rake/testtask'
1
+ begin
2
+ require 'buildar'
3
3
 
4
- Buildar.new do |b|
5
- b.gemspec_file = 'dotcfg.gemspec'
6
- b.version_file = 'VERSION'
7
- b.use_git = true
4
+ Buildar.new do |b|
5
+ b.gemspec_file = 'dotcfg.gemspec'
6
+ b.version_file = 'VERSION'
7
+ b.use_git = true
8
+ end
9
+ rescue LoadError
10
+ # ok
11
+ end
12
+
13
+ begin
14
+ require 'rake/testtask'
15
+
16
+ Rake::TestTask.new do |t|
17
+ t.test_files = FileList['test/**/*.rb']
18
+ end
19
+ desc "Run tests"
20
+ rescue Exception => e
21
+ warn "rake/testtask error: #{e}"
8
22
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4.1
1
+ 0.2.5.1
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
5
5
  s.homepage = 'https://github.com/rickhull/dotcfg'
6
6
  s.license = 'MIT'
7
7
  s.description = 'JSON and YAML config serialization and persistence'
8
- s.add_runtime_dependency 'json', '>= 1'
8
+ s.add_runtime_dependency 'json', '>= 1.7.7'
9
9
  s.add_development_dependency 'buildar', '~> 2'
10
10
 
11
11
  # set version dynamically from version file contents
@@ -34,7 +34,7 @@ class DotCfg
34
34
  @filename = File.expand_path filename
35
35
  @format = format
36
36
  @cfg = Hash.new
37
- File.exists?(@filename) ? self.try_load : self.reset
37
+ File.exist?(@filename) ? self.try_load : self.reset
38
38
  end
39
39
 
40
40
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotcfg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4.1
4
+ version: 0.2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Hull
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-20 00:00:00.000000000 Z
11
+ date: 2017-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1'
19
+ version: 1.7.7
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1'
26
+ version: 1.7.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: buildar
29
29
  requirement: !ruby/object:Gem::Requirement