nub 0.0.33 → 0.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nub/config.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1da6279157321d7fc37b92e29dbb5b6aadc736f773b1bb70ffa3b93a2c31edda
4
- data.tar.gz: 8ba135845e4a368c3bbf738f01684d3ff91079d840f1d9f19f74265d88b30a42
3
+ metadata.gz: 0cf925a7cd5d2cf8c28a7c30cd254aba66e956717bea8adaaaa3587f494bd170
4
+ data.tar.gz: 6d544b6ecf927a507816ff25540d52a2ecb4dfa92f04692aa9aee192cdf4dead
5
5
  SHA512:
6
- metadata.gz: 7dbaab1dd5eab84e2f68b74f9174c7e5d94c0d451af66a8299bb5d19312727f65d328537f9fe62dbba543e80184581107fe92e202ac31315bee0a296c0a64c8f
7
- data.tar.gz: 4ff7dde360e8f1af8892d8853bd26f1808fc540d57134aa68b6547807091eda2016c500ca116dfd30968afedc9dcec73dfcea912ec166c6ce7bb9b39bcc529f5
6
+ metadata.gz: 5724872db7f4aad0d12bb8f93f0566bb7d847da0bd9f844006ea25bd19b3641bade73e0b33e03f372d6b8b1097edfb8ff191694143e2a9c63c279657fb48e6c2
7
+ data.tar.gz: a872d28e8f0fc5d670bb80692f00d84b85e83fa15e1f233e3668b23e5219d2772b6896cc97b596fac583b6a40daea17d06b5deadf999cca3dd48ced09b3fa108
data/lib/nub/config.rb CHANGED
@@ -53,7 +53,7 @@ module Config
53
53
  end
54
54
 
55
55
  # Simple bool whether the config exists or not on disk
56
- def exists?
56
+ def self.exists?
57
57
  return File.exists?(@path)
58
58
  end
59
59
 
@@ -69,7 +69,7 @@ module Config
69
69
 
70
70
  # Save the config file
71
71
  def self.save
72
- File.open(@path, 'w'){|f| f << @@_yml.to_yaml } if @@_yml
72
+ File.write(@path, @@_yml.to_yaml) if @@_yml
73
73
  end
74
74
  end
75
75
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33
4
+ version: 0.0.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Crummett