legion-settings 0.2.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +69 -25
- data/.gitignore +0 -1
- data/.rubocop.yml +1 -9
- data/Gemfile +0 -1
- data/Gemfile.lock +78 -0
- data/README.md +0 -6
- data/bitbucket-pipelines.yml +13 -35
- data/legion-settings.gemspec +4 -9
- data/lib/legion/settings.rb +2 -1
- data/lib/legion/settings/loader.rb +25 -35
- data/lib/legion/settings/validator.rb +2 -2
- data/lib/legion/settings/version.rb +1 -1
- data/sonar-project.properties +12 -0
- metadata +29 -21
- data/.idea/.rakeTasks +0 -7
- data/.idea/legion-settings.iml +0 -35
- data/.idea/misc.xml +0 -7
- data/.idea/modules.xml +0 -8
- data/.idea/vagrant.xml +0 -7
- data/.idea/workspace.xml +0 -14
- data/bin/console +0 -14
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 529dce8673be8547c77e62f9d2959758ae68d9a0d8382d874063368623db02dc
|
4
|
+
data.tar.gz: 471de7964faedf593e596303d46cc1cefd4af912881faf088570e2e0487125db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42ae3ce45017c9a25b82455c59511a549d54092b59126abbc9917ec334edbb486b4f7aaa2d2066d14b078a1fb7547b262ce50fe26873c82040a47a8b5a123406
|
7
|
+
data.tar.gz: dae138c40d98e99fcfdc33a38276e35fc9e936dd06c5d5f543dff0e2f158ce892dc5cd6ce9976dd290dab6bf8b0c1abff5d7c1ba4caf8be7b973b87d598e5d85
|
data/.circleci/config.yml
CHANGED
@@ -1,49 +1,90 @@
|
|
1
1
|
version: 2.1
|
2
2
|
orbs:
|
3
|
-
ruby: circleci/ruby@
|
3
|
+
ruby: circleci/ruby@1.1.2
|
4
|
+
sonarcloud: sonarsource/sonarcloud@1.0.2
|
4
5
|
|
5
6
|
jobs:
|
6
7
|
"rubocop":
|
7
8
|
docker:
|
8
|
-
- image:
|
9
|
+
- image: cimg/ruby:2.7
|
9
10
|
steps:
|
10
11
|
- checkout
|
11
|
-
-
|
12
|
-
|
13
|
-
- run:
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
- restore_cache:
|
13
|
+
key: "bundler cache mri"
|
14
|
+
- run: bundle update
|
15
|
+
- run: bundle exec rubocop --format=json --out=rubocop-result.json
|
16
|
+
- store_test_results:
|
17
|
+
path: rubocop-result.json
|
18
|
+
- sonarcloud/scan
|
19
|
+
- run: bundle exec rubocop
|
20
|
+
- save_cache:
|
21
|
+
key: "bundler cache mri"
|
22
|
+
paths:
|
23
|
+
- "/usr/local/bundle"
|
17
24
|
"ruby-two-five":
|
18
25
|
docker:
|
19
|
-
- image:
|
20
|
-
- image: memcached:1.5-alpine
|
26
|
+
- image: cimg/ruby:2.5
|
21
27
|
steps:
|
22
28
|
- checkout
|
23
|
-
-
|
24
|
-
|
25
|
-
-
|
26
|
-
-
|
29
|
+
- restore_cache:
|
30
|
+
key: "bundler cache mri"
|
31
|
+
- run: bundle update
|
32
|
+
- save_cache:
|
33
|
+
key: "bundler cache mri"
|
34
|
+
paths:
|
35
|
+
- "/usr/local/bundle"
|
36
|
+
- run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
|
37
|
+
- store_test_results:
|
38
|
+
path: rspec-results.xml
|
39
|
+
- sonarcloud/scan
|
27
40
|
"ruby-two-six":
|
28
41
|
docker:
|
29
|
-
- image:
|
30
|
-
- image: memcached:1.5-alpine
|
42
|
+
- image: cimg/ruby:2.6
|
31
43
|
steps:
|
32
44
|
- checkout
|
33
|
-
-
|
34
|
-
|
35
|
-
-
|
36
|
-
-
|
45
|
+
- restore_cache:
|
46
|
+
key: "bundler cache mri"
|
47
|
+
- run: bundle update
|
48
|
+
- save_cache:
|
49
|
+
key: "bundler cache mri"
|
50
|
+
paths:
|
51
|
+
- "/usr/local/bundle"
|
52
|
+
- run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
|
53
|
+
- store_test_results:
|
54
|
+
path: rspec-results.xml
|
55
|
+
- sonarcloud/scan
|
37
56
|
"ruby-two-seven":
|
38
57
|
docker:
|
39
58
|
- image: circleci/ruby:2.7
|
40
|
-
- image: memcached:1.5-alpine
|
41
59
|
steps:
|
42
60
|
- checkout
|
43
|
-
-
|
44
|
-
|
45
|
-
-
|
46
|
-
-
|
61
|
+
- restore_cache:
|
62
|
+
key: "bundler cache mri"
|
63
|
+
- run: bundle update
|
64
|
+
- save_cache:
|
65
|
+
key: "bundler cache mri"
|
66
|
+
paths:
|
67
|
+
- "/usr/local/bundle"
|
68
|
+
- run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
|
69
|
+
- store_test_results:
|
70
|
+
path: rspec-results.xml
|
71
|
+
- sonarcloud/scan
|
72
|
+
"ruby-three":
|
73
|
+
docker:
|
74
|
+
- image: circleci/ruby:3
|
75
|
+
steps:
|
76
|
+
- checkout
|
77
|
+
- restore_cache:
|
78
|
+
key: "bundler cache mri"
|
79
|
+
- run: bundle update
|
80
|
+
- save_cache:
|
81
|
+
key: "bundler cache mri"
|
82
|
+
paths:
|
83
|
+
- "/usr/local/bundle"
|
84
|
+
- run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
|
85
|
+
- store_test_results:
|
86
|
+
path: rspec-results.xml
|
87
|
+
- sonarcloud/scan
|
47
88
|
|
48
89
|
workflows:
|
49
90
|
version: 2
|
@@ -57,5 +98,8 @@ workflows:
|
|
57
98
|
requires:
|
58
99
|
- ruby-two-five
|
59
100
|
- ruby-two-seven:
|
101
|
+
requires:
|
102
|
+
- ruby-two-five
|
103
|
+
- ruby-three:
|
60
104
|
requires:
|
61
105
|
- ruby-two-five
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -6,18 +6,10 @@ Metrics/ClassLength:
|
|
6
6
|
Max: 1500
|
7
7
|
Metrics/BlockLength:
|
8
8
|
Max: 50
|
9
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
10
|
-
EnforcedStyle: space
|
11
|
-
Style/SymbolArray:
|
12
|
-
Enabled: true
|
13
|
-
Layout/HashAlignment:
|
14
|
-
EnforcedHashRocketStyle: table
|
15
|
-
EnforcedColonStyle: table
|
16
9
|
Style/Documentation:
|
17
10
|
Enabled: false
|
18
11
|
AllCops:
|
19
12
|
TargetRubyVersion: 2.5
|
13
|
+
NewCops: enable
|
20
14
|
Style/FrozenStringLiteralComment:
|
21
15
|
Enabled: false
|
22
|
-
Naming/FileName:
|
23
|
-
Enabled: false
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
legion-settings (1.1.3)
|
5
|
+
legion-json
|
6
|
+
legion-logging
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
ast (2.4.1)
|
12
|
+
diff-lcs (1.4.4)
|
13
|
+
docile (1.3.4)
|
14
|
+
json (2.5.1)
|
15
|
+
json_pure (2.5.1)
|
16
|
+
legion-exceptions (1.1.5)
|
17
|
+
legion-json (1.1.4)
|
18
|
+
json_pure
|
19
|
+
legion-exceptions (>= 1.1.5)
|
20
|
+
multi_json
|
21
|
+
legion-logging (1.1.3)
|
22
|
+
rainbow (~> 3)
|
23
|
+
multi_json (1.15.0)
|
24
|
+
parallel (1.20.1)
|
25
|
+
parser (3.0.0.0)
|
26
|
+
ast (~> 2.4.1)
|
27
|
+
rainbow (3.0.0)
|
28
|
+
rake (13.0.3)
|
29
|
+
regexp_parser (2.0.3)
|
30
|
+
rexml (3.2.4)
|
31
|
+
rspec (3.10.0)
|
32
|
+
rspec-core (~> 3.10.0)
|
33
|
+
rspec-expectations (~> 3.10.0)
|
34
|
+
rspec-mocks (~> 3.10.0)
|
35
|
+
rspec-core (3.10.1)
|
36
|
+
rspec-support (~> 3.10.0)
|
37
|
+
rspec-expectations (3.10.1)
|
38
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
39
|
+
rspec-support (~> 3.10.0)
|
40
|
+
rspec-mocks (3.10.1)
|
41
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
+
rspec-support (~> 3.10.0)
|
43
|
+
rspec-support (3.10.1)
|
44
|
+
rspec_junit_formatter (0.4.1)
|
45
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
46
|
+
rubocop (1.8.0)
|
47
|
+
parallel (~> 1.10)
|
48
|
+
parser (>= 3.0.0.0)
|
49
|
+
rainbow (>= 2.2.2, < 4.0)
|
50
|
+
regexp_parser (>= 1.8, < 3.0)
|
51
|
+
rexml
|
52
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
53
|
+
ruby-progressbar (~> 1.7)
|
54
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
55
|
+
rubocop-ast (1.4.0)
|
56
|
+
parser (>= 2.7.1.5)
|
57
|
+
ruby-progressbar (1.11.0)
|
58
|
+
simplecov (0.17.1)
|
59
|
+
docile (~> 1.1)
|
60
|
+
json (>= 1.8, < 3)
|
61
|
+
simplecov-html (~> 0.10.0)
|
62
|
+
simplecov-html (0.10.2)
|
63
|
+
unicode-display_width (2.0.0)
|
64
|
+
|
65
|
+
PLATFORMS
|
66
|
+
ruby
|
67
|
+
|
68
|
+
DEPENDENCIES
|
69
|
+
bundler
|
70
|
+
legion-settings!
|
71
|
+
rake
|
72
|
+
rspec
|
73
|
+
rspec_junit_formatter
|
74
|
+
rubocop
|
75
|
+
simplecov (< 0.18.0)
|
76
|
+
|
77
|
+
BUNDLED WITH
|
78
|
+
2.2.4
|
data/README.md
CHANGED
@@ -40,12 +40,6 @@ This library is utilized by Legion to load config files
|
|
40
40
|
|
41
41
|
This gem can be viewed and download from [RubyGems - Legion-Settings](https://rubygems.org/gems/legion-settings)
|
42
42
|
|
43
|
-
## Development
|
44
|
-
|
45
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
46
|
-
|
47
|
-
To install this gem onto your local machine, run `bundle exec install`.
|
48
|
-
|
49
43
|
## Contributing
|
50
44
|
|
51
45
|
Bug reports and pull requests are welcome on GitHub at https://bitbucket.org/legion-io/legion-settings/issues This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
data/bitbucket-pipelines.yml
CHANGED
@@ -1,39 +1,17 @@
|
|
1
|
-
image: ruby:2.
|
1
|
+
image: ruby:2.7
|
2
2
|
|
3
3
|
pipelines:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
name: Deploy to test gem server
|
16
|
-
deployment: test
|
17
|
-
script:
|
18
|
-
- gem install bundle geminabox
|
19
|
-
- bundle install
|
20
|
-
- gem build legion-settings.gemspec
|
21
|
-
- gem inabox legion-settings*.gem -g https://gems.whonodes.org/ -o
|
22
|
-
- step:
|
23
|
-
name: Deploy to RubyGems
|
24
|
-
deployment: production
|
25
|
-
trigger: manual
|
26
|
-
script:
|
27
|
-
- gem build legion-settings.gemspec
|
28
|
-
default:
|
29
|
-
- step:
|
30
|
-
caches:
|
31
|
-
- bundler
|
32
|
-
script:
|
33
|
-
- gem install bundle rubocop
|
34
|
-
- bundle install
|
35
|
-
- rubocop
|
36
|
-
- rake
|
4
|
+
tags:
|
5
|
+
"v*":
|
6
|
+
- step:
|
7
|
+
name: Push to RubyGems
|
8
|
+
deployment: RubyGems
|
9
|
+
script:
|
10
|
+
- gem install gem-release
|
11
|
+
- (umask 077 ; echo $gem_creds | base64 --decode > ~/.gem/credentials)
|
12
|
+
- gem release
|
13
|
+
artifacts:
|
14
|
+
- pkg/**
|
37
15
|
definitions:
|
38
16
|
caches:
|
39
|
-
bundler:
|
17
|
+
bundler: /usr/local/bundle
|
data/legion-settings.gemspec
CHANGED
@@ -12,24 +12,19 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = "Based on Sensu's implementation of settings"
|
13
13
|
spec.homepage = 'https://bitbucket.org/whonodes/legion-settings'
|
14
14
|
spec.license = 'MIT'
|
15
|
+
spec.required_ruby_version = '>= 2.5.0'
|
15
16
|
|
16
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
18
|
f.match(%r{^(test|spec|features)/})
|
18
19
|
end
|
19
|
-
spec.bindir = 'exe'
|
20
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
20
|
spec.require_paths = ['lib']
|
22
21
|
|
23
22
|
spec.add_development_dependency 'bundler'
|
24
|
-
# spec.add_development_dependency 'codecov', '~> 0'
|
25
23
|
spec.add_development_dependency 'rake'
|
26
24
|
spec.add_development_dependency 'rspec'
|
27
25
|
spec.add_development_dependency 'rspec_junit_formatter'
|
28
26
|
spec.add_development_dependency 'rubocop'
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
spec.add_dependency('legion-json', '~> 0.1')
|
33
|
-
end
|
34
|
-
spec.add_dependency 'legion-logging', '~> 0.1'
|
27
|
+
spec.add_development_dependency 'simplecov', '< 0.18.0'
|
28
|
+
spec.add_dependency 'legion-json'
|
29
|
+
spec.add_dependency 'legion-logging'
|
35
30
|
end
|
data/lib/legion/settings.rb
CHANGED
@@ -7,6 +7,7 @@ module Legion
|
|
7
7
|
module Settings
|
8
8
|
class << self
|
9
9
|
attr_accessor :loader
|
10
|
+
|
10
11
|
def load(options = {})
|
11
12
|
@loader = Legion::Settings::Loader.new
|
12
13
|
@loader.load_env
|
@@ -40,7 +41,7 @@ module Legion
|
|
40
41
|
@loader = load if @loader.nil?
|
41
42
|
thing = {}
|
42
43
|
thing[key.to_sym] = hash
|
43
|
-
@loader.
|
44
|
+
@loader.load_module_settings(thing)
|
44
45
|
end
|
45
46
|
end
|
46
47
|
end
|
@@ -4,11 +4,7 @@ module Legion
|
|
4
4
|
module Settings
|
5
5
|
class Loader
|
6
6
|
class Error < RuntimeError; end
|
7
|
-
|
8
|
-
attr_reader :warnings
|
9
|
-
attr_reader :errors
|
10
|
-
attr_reader :loaded_files
|
11
|
-
attr_reader :settings
|
7
|
+
attr_reader :warnings, :errors, :loaded_files, :settings
|
12
8
|
|
13
9
|
def initialize
|
14
10
|
@warnings = []
|
@@ -16,54 +12,45 @@ module Legion
|
|
16
12
|
@settings = default_settings
|
17
13
|
@indifferent_access = false
|
18
14
|
@loaded_files = []
|
19
|
-
self.class.create_category_methods
|
20
15
|
end
|
21
16
|
|
22
17
|
def client_defaults
|
23
18
|
{
|
24
19
|
hostname: system_hostname,
|
25
|
-
address:
|
26
|
-
name:
|
20
|
+
address: system_address,
|
21
|
+
name: "#{::Socket.gethostname.tr('.', '_')}.#{::Process.pid}",
|
22
|
+
ready: false
|
27
23
|
}
|
28
24
|
end
|
29
25
|
|
30
26
|
def default_settings
|
31
27
|
{
|
32
|
-
client:
|
33
|
-
cluster:
|
34
|
-
crypt:
|
35
|
-
cluster_secret:
|
28
|
+
client: client_defaults,
|
29
|
+
cluster: { public_keys: {} },
|
30
|
+
crypt: {
|
31
|
+
cluster_secret: nil,
|
36
32
|
cluster_secret_timeout: 5,
|
37
|
-
vault:
|
33
|
+
vault: { connected: false }
|
38
34
|
},
|
39
|
-
cache:
|
40
|
-
extensions:
|
35
|
+
cache: { enabled: true, connected: false, driver: 'dalli' },
|
36
|
+
extensions: {},
|
37
|
+
reload: false,
|
38
|
+
reloading: false,
|
39
|
+
auto_install_missing_lex: true,
|
41
40
|
default_extension_settings: {
|
42
41
|
logger: { level: 'info', trace: false, extended: false }
|
43
42
|
},
|
44
|
-
logging:
|
45
|
-
level:
|
46
|
-
location:
|
47
|
-
trace:
|
43
|
+
logging: {
|
44
|
+
level: 'info',
|
45
|
+
location: 'stdout',
|
46
|
+
trace: true,
|
48
47
|
backtrace_logging: true
|
49
48
|
},
|
50
|
-
transport:
|
51
|
-
data:
|
49
|
+
transport: { connected: false },
|
50
|
+
data: { connected: false }
|
52
51
|
}
|
53
52
|
end
|
54
53
|
|
55
|
-
def self.create_category_methods
|
56
|
-
# CATEGORIES.each do |category|
|
57
|
-
# define_method(category) do
|
58
|
-
# setting_category(category)
|
59
|
-
# end
|
60
|
-
# method_name = category.to_s.chop + "_exists?"
|
61
|
-
# define_method(method_name.to_sym) do |name|
|
62
|
-
# definition_exists?(category, name)
|
63
|
-
# end
|
64
|
-
# end
|
65
|
-
end
|
66
|
-
|
67
54
|
def to_hash
|
68
55
|
unless @indifferent_access
|
69
56
|
indifferent_access!
|
@@ -96,13 +83,17 @@ module Legion
|
|
96
83
|
load_api_env
|
97
84
|
end
|
98
85
|
|
86
|
+
def load_module_settings(config)
|
87
|
+
@settings = deep_merge(config, @settings)
|
88
|
+
end
|
89
|
+
|
99
90
|
def load_module_default(config)
|
100
91
|
merged = deep_merge(@settings, config)
|
101
92
|
deep_diff(@settings, merged) unless @loaded_files.empty?
|
102
93
|
@settings = merged
|
103
94
|
end
|
104
95
|
|
105
|
-
def load_file(file)
|
96
|
+
def load_file(file)
|
106
97
|
Legion::Logging.debug("Trying to load file #{file}")
|
107
98
|
if File.file?(file) && File.readable?(file)
|
108
99
|
begin
|
@@ -123,7 +114,6 @@ module Legion
|
|
123
114
|
end
|
124
115
|
|
125
116
|
def load_directory(directory)
|
126
|
-
warning('loading config files from directory', directory: directory)
|
127
117
|
path = directory.gsub(/\\(?=\S)/, '/')
|
128
118
|
if File.readable?(path) && File.executable?(path)
|
129
119
|
Dir.glob(File.join(path, '**{,/*/**}/*.json')).uniq.each do |file|
|
@@ -42,7 +42,7 @@ module Legion
|
|
42
42
|
def validate_categories(settings)
|
43
43
|
CATEGORIES.each do |category|
|
44
44
|
if is_a_hash?(settings[category])
|
45
|
-
validate_method =
|
45
|
+
validate_method = "validate_#{category.to_s.chop}".to_sym
|
46
46
|
settings[category].each do |name, details|
|
47
47
|
send(validate_method, details.merge(name: name.to_s))
|
48
48
|
end
|
@@ -54,7 +54,7 @@ module Legion
|
|
54
54
|
|
55
55
|
def invalid(object, message)
|
56
56
|
@failures << {
|
57
|
-
object:
|
57
|
+
object: object,
|
58
58
|
message: message
|
59
59
|
}
|
60
60
|
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
sonar.projectKey=legion-io_legion-settings
|
2
|
+
sonar.organization=legion-io
|
3
|
+
sonar.projectName=Legion::Settings
|
4
|
+
sonar.sources=.
|
5
|
+
sonar.exclusions=vendor/**
|
6
|
+
sonar.coverage.exclusions=spec/**
|
7
|
+
sonar.ruby.coverage.reportPath=coverage/.resultset.json
|
8
|
+
sonar.ruby.file.suffixes=rb,ruby
|
9
|
+
sonar.ruby.coverage.framework=RSpec
|
10
|
+
sonar.ruby.rubocopConfig=.rubocop.yml
|
11
|
+
sonar.ruby.rubocop.reportPath=rubocop-result.json
|
12
|
+
sonar.ruby.rubocop.filePath=.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: legion-settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esity
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,34 +80,48 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simplecov
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "<"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.18.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "<"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.18.0
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: legion-json
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
|
-
- - "
|
101
|
+
- - ">="
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0
|
103
|
+
version: '0'
|
90
104
|
type: :runtime
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
|
-
- - "
|
108
|
+
- - ">="
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0
|
110
|
+
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: legion-logging
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
|
-
- - "
|
115
|
+
- - ">="
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0
|
117
|
+
version: '0'
|
104
118
|
type: :runtime
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
|
-
- - "
|
122
|
+
- - ">="
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0
|
124
|
+
version: '0'
|
111
125
|
description: Based on Sensu's implementation of settings
|
112
126
|
email:
|
113
127
|
- matthewdiverson@gmail.com
|
@@ -117,20 +131,13 @@ extra_rdoc_files: []
|
|
117
131
|
files:
|
118
132
|
- ".circleci/config.yml"
|
119
133
|
- ".gitignore"
|
120
|
-
- ".idea/.rakeTasks"
|
121
|
-
- ".idea/legion-settings.iml"
|
122
|
-
- ".idea/misc.xml"
|
123
|
-
- ".idea/modules.xml"
|
124
|
-
- ".idea/vagrant.xml"
|
125
|
-
- ".idea/workspace.xml"
|
126
134
|
- ".rubocop.yml"
|
127
135
|
- CHANGELOG.md
|
128
136
|
- Gemfile
|
137
|
+
- Gemfile.lock
|
129
138
|
- LICENSE.txt
|
130
139
|
- README.md
|
131
140
|
- Rakefile
|
132
|
-
- bin/console
|
133
|
-
- bin/setup
|
134
141
|
- bitbucket-pipelines.yml
|
135
142
|
- legion-settings.gemspec
|
136
143
|
- lib/legion/settings.rb
|
@@ -141,6 +148,7 @@ files:
|
|
141
148
|
- lib/legion/settings/validators.rb
|
142
149
|
- lib/legion/settings/validators/legion.rb
|
143
150
|
- lib/legion/settings/version.rb
|
151
|
+
- sonar-project.properties
|
144
152
|
homepage: https://bitbucket.org/whonodes/legion-settings
|
145
153
|
licenses:
|
146
154
|
- MIT
|
@@ -153,14 +161,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
153
161
|
requirements:
|
154
162
|
- - ">="
|
155
163
|
- !ruby/object:Gem::Version
|
156
|
-
version:
|
164
|
+
version: 2.5.0
|
157
165
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
158
166
|
requirements:
|
159
167
|
- - ">="
|
160
168
|
- !ruby/object:Gem::Version
|
161
169
|
version: '0'
|
162
170
|
requirements: []
|
163
|
-
rubygems_version: 3.
|
171
|
+
rubygems_version: 3.1.4
|
164
172
|
signing_key:
|
165
173
|
specification_version: 4
|
166
174
|
summary: Used to load the json settings files
|
data/.idea/.rakeTasks
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
-
You are allowed to:
|
4
|
-
1. Remove rake task
|
5
|
-
2. Add existing rake tasks
|
6
|
-
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
-
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build legion-settings-0.2.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install legion-settings-0.2.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install legion-settings-0.2.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.2.0 and build and push legion-settings-0.2.0.gem to rubygems.org" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
|
data/.idea/legion-settings.iml
DELETED
@@ -1,35 +0,0 @@
|
|
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$/spec" isTestSource="true" />
|
9
|
-
</content>
|
10
|
-
<orderEntry type="inheritedJdk" />
|
11
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
12
|
-
<orderEntry type="library" scope="PROVIDED" name="ast (v2.4.0, RVM: ruby-2.6.3) [gem]" level="application" />
|
13
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.1.4, RVM: ruby-2.6.3) [gem]" level="application" />
|
14
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.6.3) [gem]" level="application" />
|
15
|
-
<orderEntry type="library" scope="PROVIDED" name="jaro_winkler (v1.5.4, RVM: ruby-2.6.3) [gem]" level="application" />
|
16
|
-
<orderEntry type="library" scope="PROVIDED" name="json (v2.3.0, RVM: ruby-2.6.3) [gem]" level="application" />
|
17
|
-
<orderEntry type="library" scope="PROVIDED" name="legion-json (v0.1.6, RVM: ruby-2.6.3) [gem]" level="application" />
|
18
|
-
<orderEntry type="library" scope="PROVIDED" name="legion-logging (v0.2.0, RVM: ruby-2.6.3) [gem]" level="application" />
|
19
|
-
<orderEntry type="library" scope="PROVIDED" name="oj (v3.10.5, RVM: ruby-2.6.3) [gem]" level="application" />
|
20
|
-
<orderEntry type="library" scope="PROVIDED" name="parallel (v1.19.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
21
|
-
<orderEntry type="library" scope="PROVIDED" name="parser (v2.7.0.4, RVM: ruby-2.6.3) [gem]" level="application" />
|
22
|
-
<orderEntry type="library" scope="PROVIDED" name="rainbow (v3.0.0, RVM: ruby-2.6.3) [gem]" level="application" />
|
23
|
-
<orderEntry type="library" scope="PROVIDED" name="rake (v13.0.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
24
|
-
<orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.4, RVM: ruby-2.6.3) [gem]" level="application" />
|
25
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.9.0, RVM: ruby-2.6.3) [gem]" level="application" />
|
26
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.9.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
27
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.9.0, RVM: ruby-2.6.3) [gem]" level="application" />
|
28
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.9.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
29
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.9.2, RVM: ruby-2.6.3) [gem]" level="application" />
|
30
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec_junit_formatter (v0.4.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
31
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop (v0.80.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
32
|
-
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.10.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
33
|
-
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v1.6.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
34
|
-
</component>
|
35
|
-
</module>
|
data/.idea/misc.xml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project version="4">
|
3
|
-
<component name="JavaScriptSettings">
|
4
|
-
<option name="languageLevel" value="ES6" />
|
5
|
-
</component>
|
6
|
-
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.6.3" project-jdk-type="RUBY_SDK" />
|
7
|
-
</project>
|
data/.idea/modules.xml
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project version="4">
|
3
|
-
<component name="ProjectModuleManager">
|
4
|
-
<modules>
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/legion-settings.iml" filepath="$PROJECT_DIR$/.idea/legion-settings.iml" />
|
6
|
-
</modules>
|
7
|
-
</component>
|
8
|
-
</project>
|
data/.idea/vagrant.xml
DELETED
data/.idea/workspace.xml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project version="4">
|
3
|
-
<component name="CoverageOptionsProvider">
|
4
|
-
<option name="myAddOrReplace" value="0" />
|
5
|
-
</component>
|
6
|
-
<component name="Git.Settings">
|
7
|
-
<option name="PUSH_AUTO_UPDATE" value="true" />
|
8
|
-
<option name="ROOT_SYNC" value="DONT_SYNC" />
|
9
|
-
</component>
|
10
|
-
<component name="ProjectId" id="1Yl3Ocrmi4zW8q4pNn0hTFZMozm" />
|
11
|
-
<component name="PropertiesComponent">
|
12
|
-
<property name="settings.editor.selected.configurable" value="reference.settingsdialog.project.vagrant" />
|
13
|
-
</component>
|
14
|
-
</project>
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'bundler/setup'
|
4
|
-
require 'legion/settings'
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require 'irb'
|
14
|
-
IRB.start(__FILE__)
|