mc-settings 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/ruby.yml +24 -0
- data/.gitignore +45 -0
- data/Gemfile +2 -13
- data/Gemfile.lock +48 -29
- data/LICENSE.txt +4 -17
- data/README.adoc +217 -0
- data/Rakefile +20 -41
- data/codecov.yml +29 -0
- data/lib/mc-settings/version.rb +5 -0
- data/lib/setting.rb +110 -88
- data/mc-settings.gemspec +27 -66
- data/spec/mc_settings_spec.rb +75 -74
- data/spec/spec_helper.rb +24 -6
- data/spec/support/settings_helper.rb +26 -16
- metadata +137 -118
- data/.document +0 -5
- data/README.rdoc +0 -175
- data/VERSION +0 -1
- data/spec/fixtures/joes-colors.yml +0 -9
- data/spec/fixtures/sample.yml +0 -35
- data/spec/fixtures/shipping.yml +0 -36
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.1.6
|
data/spec/fixtures/sample.yml
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
tax:
|
2
|
-
default: 0.0
|
3
|
-
california: 7.5
|
4
|
-
states:
|
5
|
-
default:
|
6
|
-
- 'CA'
|
7
|
-
- 'WA'
|
8
|
-
- 'NY'
|
9
|
-
ship_to:
|
10
|
-
- 'CA'
|
11
|
-
- 'NY'
|
12
|
-
boolean_true:
|
13
|
-
default: 4
|
14
|
-
boolean_false:
|
15
|
-
default: false
|
16
|
-
negated: true
|
17
|
-
color:
|
18
|
-
default:
|
19
|
-
:grey
|
20
|
-
pants:
|
21
|
-
default:
|
22
|
-
:purple
|
23
|
-
favorite:
|
24
|
-
:red
|
25
|
-
school:
|
26
|
-
:blue
|
27
|
-
shorts:
|
28
|
-
default:
|
29
|
-
:plaid
|
30
|
-
favorite:
|
31
|
-
:yellow
|
32
|
-
school:
|
33
|
-
:black
|
34
|
-
|
35
|
-
|
data/spec/fixtures/shipping.yml
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
shipping_config:
|
2
|
-
default: <%= 'Defaulted' %>
|
3
|
-
domestic:
|
4
|
-
service: MyService
|
5
|
-
countries:
|
6
|
-
- "US"
|
7
|
-
non_shippable_regions:
|
8
|
-
- "US-AS"
|
9
|
-
- "US-GU"
|
10
|
-
- "US-MP"
|
11
|
-
- "US-PR"
|
12
|
-
- "US-UM"
|
13
|
-
- "US-VI"
|
14
|
-
- "US-AF"
|
15
|
-
- "US-AA"
|
16
|
-
- "US-AC"
|
17
|
-
- "US-AE"
|
18
|
-
- "US-AM"
|
19
|
-
- "US-AP"
|
20
|
-
- "US-FM"
|
21
|
-
- "US-PW"
|
22
|
-
- "US-MH"
|
23
|
-
international:
|
24
|
-
service: Foo
|
25
|
-
countries:
|
26
|
-
- "GU"
|
27
|
-
- "VI"
|
28
|
-
- "AS"
|
29
|
-
- "MP"
|
30
|
-
- "UM"
|
31
|
-
- "FR"
|
32
|
-
- "GR"
|
33
|
-
- "RU"
|
34
|
-
shipping_carrier: Bar
|
35
|
-
number: <%= 5%>
|
36
|
-
stringified: <%= nil || "stringified"%>
|