ultra_config 0.4.0 → 0.5.0

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: 7fe814320bd63df05e458ca40594c0924825cd32
4
- data.tar.gz: 6df1c641ed3ec366186d49ffeaedf36642f360b7
3
+ metadata.gz: 9fa818185065c8251f2fb7b02815a5cf96691f74
4
+ data.tar.gz: 0fb56fa72a0fff8e895e73dea0752ea141b40150
5
5
  SHA512:
6
- metadata.gz: 3ff2629253dbdc620322059e94fe436ddff426a01d07882ad8f148f0637557c38dbd0b3275796b9b37f0be786b6b4a342968004f799422fe413d7b69085b4d39
7
- data.tar.gz: bb46e4c2058e26aa23288937b712b3999b8a33528baacf690c3015c37fbaa2af137ed4573008755ee795e87d43100fb5eba1ab841bb6f883bb447d616a2bd65b
6
+ metadata.gz: 0fbe008c5845958e36690b5f2357a4ab2ab6dae633319700426e7fee4a2d710c78c313757e57b4fcb426908cadd1bc35101ae734ced31973186426fad2ec6098
7
+ data.tar.gz: a0601ed89d21d3bbca8d730b2908727309717ee2c48cf9bfef06270cf456ec28307e71070c54b9811bcde9a6e0b0ed7af7e39561e251bdd13f82431325fdd4c4
@@ -19,5 +19,9 @@ module UltraConfig
19
19
  def validate(new_value)
20
20
  Validator.validate(@value, new_value, &@validation)
21
21
  end
22
+
23
+ def to_s
24
+ "\"#{@value.to_s}\""
25
+ end
22
26
  end
23
27
  end
@@ -31,5 +31,14 @@ module UltraConfig
31
31
  @objects = {}
32
32
  self.instance_eval(&@configuration)
33
33
  end
34
+
35
+ def to_s
36
+ objs = []
37
+
38
+ output = '{ '
39
+ @objects.each { |name, object| objs << "#{name}: #{object.to_s}" }
40
+ output << objs.join(', ')
41
+ output << ' }'
42
+ end
34
43
  end
35
44
  end
data/ultra_config.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'ultra_config'
7
- spec.version = '0.4.0'
7
+ spec.version = '0.5.0'
8
8
  spec.authors = ['Gregory Kuruc']
9
9
  spec.email = ['gjk910327@gmail.com']
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultra_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Kuruc
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-29 00:00:00.000000000 Z
11
+ date: 2018-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler