strada 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/.idea/.gitignore +8 -0
- data/.idea/dictionaries +6 -0
- data/.idea/misc.xml +7 -0
- data/.idea/modules.xml +8 -0
- data/.idea/strada.iml +42 -0
- data/.idea/vagrant.xml +7 -0
- data/.idea/vcs.xml +6 -0
- data/lib/strada/version.rb +1 -1
- data/lib/strada.rb +3 -3
- data/strada.gemspec +1 -1
- metadata +9 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a981211dee0078b5673c81a679e548935bc96a89b5a276ad929a4f9f78fec62
|
|
4
|
+
data.tar.gz: 2a2b608ebbbe7278cd8c15e5e595d6e3c8ac1084700b163a3a7d919c234a49fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd490ff66da8df469d1c68d81a089af33f4bea7710c204800b2afc896629902554f8a1fd7aba7b81f350c5927527e4dc9a70aa9f0bd14db2a0ecb4d0dea9c716
|
|
7
|
+
data.tar.gz: 645f418feeef553fab68563d2490aa122dd170bcb275231efead05e485cb7dae05861001de383d804b612777059c605dc364b145b8454aaceeefbf23c3c1d934
|
data/.idea/.gitignore
ADDED
data/.idea/dictionaries
ADDED
data/.idea/misc.xml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="MarkdownSettingsMigration">
|
|
4
|
+
<option name="stateVersion" value="1" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-3.1.0" project-jdk-type="RUBY_SDK" />
|
|
7
|
+
</project>
|
data/.idea/modules.xml
ADDED
data/.idea/strada.iml
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
|
3
|
+
<component name="ModuleRunConfigurationManager">
|
|
4
|
+
<shared />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="NewModuleRootManager">
|
|
7
|
+
<content url="file://$MODULE_DIR$">
|
|
8
|
+
<sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
|
|
9
|
+
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
|
|
10
|
+
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
|
11
|
+
</content>
|
|
12
|
+
<orderEntry type="inheritedJdk" />
|
|
13
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="activesupport (v7.0.2.3, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.3.7, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.1.10, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="i18n (v1.10.0, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
19
|
+
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.15.0, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
20
|
+
<orderEntry type="library" scope="PROVIDED" name="parallel (v1.22.1, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
21
|
+
<orderEntry type="library" scope="PROVIDED" name="parser (v3.1.2.0, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
22
|
+
<orderEntry type="library" scope="PROVIDED" name="rack (v2.2.3, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
23
|
+
<orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
24
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
25
|
+
<orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.3.0, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
26
|
+
<orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.5, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
27
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop (v1.27.0, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
28
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.17.0, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
29
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop-minitest (v0.19.1, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
30
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop-packaging (v0.5.1, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
31
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop-performance (v1.13.3, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
32
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop-rails (v2.14.2, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
33
|
+
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.11.0, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
34
|
+
<orderEntry type="library" scope="PROVIDED" name="tzinfo (v2.0.4, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
35
|
+
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.1.0, RVM: ruby-3.1.0) [gem]" level="application" />
|
|
36
|
+
</component>
|
|
37
|
+
<component name="RakeTasksCache">
|
|
38
|
+
<option name="myRootTask">
|
|
39
|
+
<RakeTaskImpl id="rake" />
|
|
40
|
+
</option>
|
|
41
|
+
</component>
|
|
42
|
+
</module>
|
data/.idea/vagrant.xml
ADDED
data/.idea/vcs.xml
ADDED
data/lib/strada/version.rb
CHANGED
data/lib/strada.rb
CHANGED
|
@@ -6,11 +6,11 @@ require_relative "strada/adapter/json"
|
|
|
6
6
|
require_relative "strada/adapter/toml"
|
|
7
7
|
require "fileutils"
|
|
8
8
|
|
|
9
|
-
class
|
|
9
|
+
class StradaError < StandardError; end
|
|
10
10
|
|
|
11
|
-
class NoName <
|
|
11
|
+
class NoName < StradaError; end
|
|
12
12
|
|
|
13
|
-
class UnknownOption <
|
|
13
|
+
class UnknownOption < StradaError; end
|
|
14
14
|
|
|
15
15
|
# @example common use case
|
|
16
16
|
# CFGS = Strada.new :name=>'my_sweet_program' :load=>false # do not load config from filesystem
|
data/strada.gemspec
CHANGED
|
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
|
7
7
|
s.licenses = ["MIT"]
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
|
9
9
|
s.authors = ["WENWU.YAN"]
|
|
10
|
-
s.email =
|
|
10
|
+
s.email = "968826@gmail.com"
|
|
11
11
|
s.homepage = "http://github.com/ciscolive/strada"
|
|
12
12
|
s.summary = "configuration library"
|
|
13
13
|
s.description = "configuration library with object access to YAML/JSON/TOML backends"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: strada
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- WENWU.YAN
|
|
@@ -11,13 +11,19 @@ cert_chain: []
|
|
|
11
11
|
date: 2022-04-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: configuration library with object access to YAML/JSON/TOML backends
|
|
14
|
-
email:
|
|
15
|
-
- 968826@gmail.com
|
|
14
|
+
email: 968826@gmail.com
|
|
16
15
|
executables: []
|
|
17
16
|
extensions: []
|
|
18
17
|
extra_rdoc_files: []
|
|
19
18
|
files:
|
|
20
19
|
- ".gitignore"
|
|
20
|
+
- ".idea/.gitignore"
|
|
21
|
+
- ".idea/dictionaries"
|
|
22
|
+
- ".idea/misc.xml"
|
|
23
|
+
- ".idea/modules.xml"
|
|
24
|
+
- ".idea/strada.iml"
|
|
25
|
+
- ".idea/vagrant.xml"
|
|
26
|
+
- ".idea/vcs.xml"
|
|
21
27
|
- ".rubocop.yml"
|
|
22
28
|
- Gemfile
|
|
23
29
|
- README.md
|