settei 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -4
- data/lib/settei/version.rb +1 -1
- data/settei.gemspec +0 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abbe0de5008c70b4b9fb1703ab0edef0d1129df0
|
4
|
+
data.tar.gz: 21645c85ee747b832277be84de6fc8e17ae87ecb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41193aa70e07e00806aa84ea9bb6241472cafb0d6c2c18fa6ca8dc836c8101f0faf0db8782fd037e093b52272c8f3d73137cd1cb1d96b41388dcbac64aa2a20b
|
7
|
+
data.tar.gz: 1ccca5e88917aaedb434a6d7e0afea6b83a264fa688a685d8cb74f68d303bdfae5fa97b0189f307a5844ebb14d39208690b39d364ac31e1a0f9c78f79b1a68d6
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -16,10 +16,11 @@ Config as YAML file yet still being 12-factor compliant...
|
|
16
16
|
|
17
17
|
## Installation
|
18
18
|
|
19
|
-
|
19
|
+
Insert into Gemfile:
|
20
20
|
|
21
21
|
```ruby
|
22
22
|
gem 'settei'
|
23
|
+
# gem 'dig_rb' # for Ruby < 2.3
|
23
24
|
```
|
24
25
|
|
25
26
|
And then execute:
|
@@ -133,9 +134,7 @@ One can start by editing the generated `setting.rb` file. The three parts are `S
|
|
133
134
|
|
134
135
|
You can change `Setting` to other constants or a global variable.
|
135
136
|
|
136
|
-
You can also extend
|
137
|
-
|
138
|
-
**Note** For Ruby < 2.3, `Hash#dig` is not available. What you can do is to replace `Settei::Base` with your own class, or even use `SettingsLogic.new(hash)`.
|
137
|
+
You can also extend `Settei::Base`, or replace it with other classes such as `SettingsLogic.new(hash)`, or you can just use the hash without it.
|
139
138
|
|
140
139
|
### Loader
|
141
140
|
|
data/lib/settei/version.rb
CHANGED
data/settei.gemspec
CHANGED
@@ -20,8 +20,6 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.required_ruby_version = '>= 2.3.0'
|
24
|
-
|
25
23
|
spec.add_development_dependency "bundler", "~> 1.16"
|
26
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
27
25
|
spec.add_development_dependency "rspec", "~> 3.7.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: settei
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lulalala
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -110,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
110
|
requirements:
|
111
111
|
- - ">="
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
113
|
+
version: '0'
|
114
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
116
|
- - ">="
|