fedux_org-stdlib 0.10.7 → 0.10.8

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: 581b510bdcfc031ca357feb35d1cc3eb7bfb1ce3
4
- data.tar.gz: 83bb71f27a2a1fdaedaa7dce820eb6a28f12abdb
3
+ metadata.gz: 02d85b8d2701c92a7193843b05410e085d0cb353
4
+ data.tar.gz: e9a338e329ea1dfde4f5bf35111afec1bbd92f15
5
5
  SHA512:
6
- metadata.gz: 08a3e1bb4d16d5fb11e834738b725074570c8f3007335c5ef92937aca92173a975dd43d65b0233b120412bd7a4746f6bac007f23843ba031d09c20ab7747310f
7
- data.tar.gz: 0198151c482ece2ab1a45953907a8156e8e6824cb960e0c5faa8b693c06c92b1e93863f9403cf14d67794dd0e39d1452773d5575defa283edbce2c65d5378c4c
6
+ metadata.gz: b54f3924f8eb0e713d7a33c59ed3174426afddd904d3ba71b433a538c6dea089f3ebfa101409a846c948f5256d1d687918f7168f4902ed94ed381fd1e51496d7
7
+ data.tar.gz: 15f9282347bf69285e7e8e07c007608fd89f9e09043d79f102496a07943737d44c3fb1bdd82e3cd584d9a1bc67121965995e63f11ee2e95ababf341f8dc371d5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fedux_org-stdlib (0.10.6)
4
+ fedux_org-stdlib (0.10.7)
5
5
  activesupport
6
6
 
7
7
  PATH
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  # FeduxOrgStdlib
3
3
  module FeduxOrgStdlib
4
- VERSION = '0.10.7'
4
+ VERSION = '0.10.8'
5
5
  end
@@ -25,6 +25,23 @@ RSpec.describe AppConfig do
25
25
  expect(config.opt1).to eq 'blub'
26
26
  end
27
27
 
28
+ it 'returns the same default value everytime' do
29
+ config_klass = Class.new(AppConfig) do
30
+ option :opt1, (1..10_000).to_a.sample
31
+
32
+ def _class_name
33
+ 'TestConfig'
34
+ end
35
+
36
+ def _module_name
37
+ 'MyApplication'
38
+ end
39
+ end
40
+
41
+ config = config_klass.new
42
+ expect(config.opt1).to eq config.opt1
43
+ end
44
+
28
45
  it 'creates readers' do
29
46
  config_klass = Class.new(AppConfig) do
30
47
  option_reader :opt1, nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fedux_org-stdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.7
4
+ version: 0.10.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Meyer