rails_config_validator 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.rubocop.yml +1 -0
- data/.rubocop_u2i.yml +56 -0
- data/.travis.yml +6 -0
- data/Gemfile +4 -0
- data/Guardfile +24 -0
- data/README.md +44 -0
- data/Rakefile +23 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/rails_config_validator/errors.rb +7 -0
- data/lib/rails_config_validator/railtie.rb +18 -0
- data/lib/rails_config_validator/rake_task.rb +25 -0
- data/lib/rails_config_validator/validator.rb +83 -0
- data/lib/rails_config_validator/version.rb +3 -0
- data/lib/rails_config_validator.rb +6 -0
- data/rails_config_validator.gemspec +45 -0
- metadata +260 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: bbb9506342925e85eeca4059dee9057bc2cf7d95
|
4
|
+
data.tar.gz: 724b787b2b6096b52493765d389ddd22a06b38d3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 288657094f81e9571fa8d81c1ece0c27b91d64121ccdfe11dde7c2db0056aeddcdc27ff772a412a431629ed404c927c086bff80b271862e0de64b5f01bd8888b
|
7
|
+
data.tar.gz: 6ba09385a82eda2c0767635ef515a292229b79a6bd57a04dbd4088344c87d83de2ef2c1f1c1841702a4c6989f23d4b2f3b7218929062be0177dd876cc375b2db
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
inherit_from: .rubocop_u2i.yml
|
data/.rubocop_u2i.yml
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
require: rubocop-rspec
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
RunRailsCops: true
|
5
|
+
Include:
|
6
|
+
- '**/Rakefile'
|
7
|
+
- config.ru
|
8
|
+
Exclude:
|
9
|
+
- bin/**/*
|
10
|
+
- db/**/*
|
11
|
+
- config/**/*
|
12
|
+
- script/**/*
|
13
|
+
- db/schema.rb
|
14
|
+
|
15
|
+
Style/MultilineOperationIndentation:
|
16
|
+
EnforcedStyle: indented
|
17
|
+
|
18
|
+
Style/Documentation:
|
19
|
+
Enabled: false
|
20
|
+
|
21
|
+
Style/WhileUntilModifier:
|
22
|
+
MaxLineLength: 120
|
23
|
+
Exclude:
|
24
|
+
- spec/**/*
|
25
|
+
|
26
|
+
Style/SpaceInsideHashLiteralBraces:
|
27
|
+
EnforcedStyle: no_space
|
28
|
+
EnforcedStyleForEmptyBraces: no_space
|
29
|
+
|
30
|
+
Style/MultilineBlockChain:
|
31
|
+
Enabled: true
|
32
|
+
|
33
|
+
Style/DotPosition:
|
34
|
+
EnforcedStyle: trailing
|
35
|
+
Enabled: true
|
36
|
+
|
37
|
+
Style/SingleLineMethods:
|
38
|
+
AllowIfMethodIsEmpty: false
|
39
|
+
|
40
|
+
Style/NumericLiterals:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
#Style/TrailingComma:
|
44
|
+
# # If EnforcedStyleForMultiline is comma, the cop allows a comma after the
|
45
|
+
# # last item of a list, but only for lists where each item is on its own line.
|
46
|
+
# EnforcedStyleForMultiline: comma
|
47
|
+
|
48
|
+
Metrics/LineLength:
|
49
|
+
Max: 120
|
50
|
+
Enabled: true
|
51
|
+
Exclude:
|
52
|
+
- spec/**/*
|
53
|
+
|
54
|
+
Metrics/MethodLength:
|
55
|
+
CountComments: false # count full line comments?
|
56
|
+
Max: 30
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# This group allows to skip running RuboCop if RSpec.
|
2
|
+
group :red_green_refactor, halt_on_fail: true do
|
3
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
4
|
+
require 'guard/rspec/dsl'
|
5
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
6
|
+
|
7
|
+
# RSpec files
|
8
|
+
rspec = dsl.rspec
|
9
|
+
|
10
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
11
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
12
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
13
|
+
watch(rspec.spec_files)
|
14
|
+
|
15
|
+
# Ruby files
|
16
|
+
ruby = dsl.ruby
|
17
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
18
|
+
end
|
19
|
+
|
20
|
+
guard :rubocop, all_on_start: false, cli: %w(--format fuubar) do
|
21
|
+
watch(%r{.+\.rb$})
|
22
|
+
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
23
|
+
end
|
24
|
+
end
|
data/README.md
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# RailsConfigValidator
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/u2i/rails_config_validator.svg)](https://travis-ci.org/u2i/rails_config_validator)
|
4
|
+
[![Dependency Status](https://gemnasium.com/u2i/rails_config_validator.svg)](https://gemnasium.com/u2i/rails_config_validator)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/u2i/rails_config_validator/badges/gpa.svg)](https://codeclimate.com/github/u2i/rails_config_validator)
|
6
|
+
[![Test Coverage](https://codeclimate.com/github/u2i/rails_config_validator/badges/coverage.svg)](https://codeclimate.com/github/u2i/rails_config_validator/coverage)
|
7
|
+
|
8
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rails_config_validator`. To experiment with that code, run `bin/console` for an interactive prompt.
|
9
|
+
|
10
|
+
TODO: Delete this and the text above, and describe your gem
|
11
|
+
|
12
|
+
## Installation
|
13
|
+
|
14
|
+
Add this line to your application's Gemfile:
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
gem 'rails_config_validator'
|
18
|
+
```
|
19
|
+
|
20
|
+
And then execute:
|
21
|
+
|
22
|
+
$ bundle
|
23
|
+
|
24
|
+
Or install it yourself as:
|
25
|
+
|
26
|
+
$ gem install rails_config_validator
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
|
30
|
+
TODO: Write usage instructions here
|
31
|
+
|
32
|
+
## Development
|
33
|
+
|
34
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
35
|
+
|
36
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
37
|
+
|
38
|
+
## Contributing
|
39
|
+
|
40
|
+
1. Fork it ( https://github.com/[my-github-username]/rails_config_validator/fork )
|
41
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
42
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
43
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
44
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
|
3
|
+
begin
|
4
|
+
require 'rspec/core/rake_task'
|
5
|
+
RSpec::Core::RakeTask.new(:spec)
|
6
|
+
rescue LoadError => e
|
7
|
+
puts e
|
8
|
+
end
|
9
|
+
|
10
|
+
begin
|
11
|
+
require 'rubocop/rake_task'
|
12
|
+
RuboCop::RakeTask.new(:rubocop)
|
13
|
+
rescue LoadError => e
|
14
|
+
puts e
|
15
|
+
end
|
16
|
+
|
17
|
+
begin
|
18
|
+
require 'ci/reporter/rake/rspec'
|
19
|
+
rescue LoadError => e
|
20
|
+
puts e
|
21
|
+
end
|
22
|
+
|
23
|
+
task default: [:spec, :rubocop]
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'rails_config_validator'
|
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
|
data/bin/setup
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
module RailsConfigValidator
|
2
|
+
class Railtie < Rails::Railtie
|
3
|
+
config.before_configuration do
|
4
|
+
config.config_validator = ActiveSupport::OrderedOptions.new
|
5
|
+
config.config_validator.files %w(database.yml)
|
6
|
+
end
|
7
|
+
|
8
|
+
initializer 'config_validator.configure' do
|
9
|
+
config_paths = config.config_validator.files.map { |c| File.join(Rails.root, 'config', c) }
|
10
|
+
|
11
|
+
validators = config_paths.map do |config|
|
12
|
+
RailsConfigValidator::Validator.new(config, Rails.env)
|
13
|
+
end
|
14
|
+
|
15
|
+
validators.each(&:valid!)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/tasklib'
|
3
|
+
|
4
|
+
module RailsConfigValidator
|
5
|
+
class RakeTask < ::Rake::TaskLib
|
6
|
+
include ::Rake::DSL if defined?(::Rake::DSL)
|
7
|
+
|
8
|
+
def initialize
|
9
|
+
require 'rails_config_validator/validator'
|
10
|
+
|
11
|
+
desc 'Validates Rails config file against YML schema'
|
12
|
+
namespace :config_validator do
|
13
|
+
task :validate, [:config, :schema, :env] do |_, args|
|
14
|
+
config = args[:config]
|
15
|
+
schema = args[:schema]
|
16
|
+
env = args[:env] || Rails.env
|
17
|
+
fail 'Missing parameter :config' if args[:config].nil?
|
18
|
+
|
19
|
+
v = RailsConfigValidator::Validator.new(config, env, schema_path: schema)
|
20
|
+
v.valid!
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
require 'kwalify'
|
2
|
+
require 'yaml'
|
3
|
+
require 'rails_config_validator/errors'
|
4
|
+
|
5
|
+
module RailsConfigValidator
|
6
|
+
class Validator
|
7
|
+
def initialize(config_path, env, schema_path: nil)
|
8
|
+
@config_path = config_path
|
9
|
+
@schema_path = schema_path || config_to_schema_path(config_path)
|
10
|
+
@env = env
|
11
|
+
end
|
12
|
+
|
13
|
+
def valid?
|
14
|
+
meta_validate.empty? && validate.empty?
|
15
|
+
rescue
|
16
|
+
# ignored
|
17
|
+
false
|
18
|
+
end
|
19
|
+
|
20
|
+
def valid!
|
21
|
+
mv = meta_validate
|
22
|
+
fail InvalidSchemaError,
|
23
|
+
"Incorrect schema #{schema_path}; errors: #{mv}" unless mv.empty?
|
24
|
+
v = validate
|
25
|
+
fail InvalidConfigurationError,
|
26
|
+
"Incorrect config #{config_path}; errors: #{v}" unless v.empty?
|
27
|
+
end
|
28
|
+
|
29
|
+
def meta_validate
|
30
|
+
meta_validator = Kwalify::MetaValidator.instance
|
31
|
+
errors = meta_validator.validate(schema)
|
32
|
+
errors.map do |error|
|
33
|
+
"[#{error.path}](#{error.error_symbol}) #{error.message}"
|
34
|
+
end
|
35
|
+
rescue Errno::ENOENT => e
|
36
|
+
raise InvalidSchemaError, e
|
37
|
+
end
|
38
|
+
|
39
|
+
def validate
|
40
|
+
validator = kwalify_validator
|
41
|
+
env_settings = env_config
|
42
|
+
errors = validator.validate(env_settings)
|
43
|
+
errors.map do |error|
|
44
|
+
"[#{error.path}](#{error.error_symbol}) #{error.message}"
|
45
|
+
end
|
46
|
+
rescue InvalidConfigurationError => e
|
47
|
+
[e.message]
|
48
|
+
rescue Errno::ENOENT => e
|
49
|
+
raise InvalidConfigurationError, e
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
attr_reader :config_path, :schema_path
|
55
|
+
|
56
|
+
def kwalify_validator
|
57
|
+
Kwalify::Validator.new(schema)
|
58
|
+
rescue Errno::ENOENT => e
|
59
|
+
raise InvalidSchemaError, e
|
60
|
+
end
|
61
|
+
|
62
|
+
def schema
|
63
|
+
YAML.load_file(schema_path)
|
64
|
+
end
|
65
|
+
|
66
|
+
def config
|
67
|
+
YAML.load_file(config_path)
|
68
|
+
end
|
69
|
+
|
70
|
+
def env_config
|
71
|
+
document = config
|
72
|
+
fail InvalidConfigurationError,
|
73
|
+
"config file #{config_path} is empty" unless document
|
74
|
+
fail InvalidConfigurationError,
|
75
|
+
"missing configuration for env #{@env} in #{config_path}" unless document.key?(@env)
|
76
|
+
document[@env]
|
77
|
+
end
|
78
|
+
|
79
|
+
def config_to_schema_path(yml)
|
80
|
+
yml.sub(/\.yml$/, '.schema.yml')
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'rails_config_validator/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'rails_config_validator'
|
8
|
+
spec.version = RailsConfigValidator::VERSION
|
9
|
+
spec.authors = ['Michał Knapik']
|
10
|
+
spec.email = ['michal.knapik@u2i.com']
|
11
|
+
|
12
|
+
spec.summary = %q{Gem for validating Rails YAML configuration files.}
|
13
|
+
spec.description = %q{The gem uses Kwalify schema validator to check Rails configuration files syntax.}
|
14
|
+
spec.homepage = 'https://github.com/u2i/rails_config_validator'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = 'exe'
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ['lib']
|
21
|
+
|
22
|
+
if spec.respond_to?(:metadata)
|
23
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
24
|
+
end
|
25
|
+
|
26
|
+
spec.add_dependency 'kwalify', '~> 0.7.2'
|
27
|
+
# spec.add_dependency 'rails'
|
28
|
+
|
29
|
+
spec.add_development_dependency 'bundler', '~> 1.7'
|
30
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
31
|
+
|
32
|
+
spec.add_development_dependency 'guard-rubocop', '~> 1.2'
|
33
|
+
spec.add_development_dependency 'guard-rspec', '~> 4.5'
|
34
|
+
spec.add_development_dependency 'rubocop', '~> 0.31'
|
35
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 1.3'
|
36
|
+
spec.add_development_dependency 'rubocop-checkstyle_formatter', '~> 0.2'
|
37
|
+
|
38
|
+
spec.add_development_dependency 'ci_reporter', '~> 2.0'
|
39
|
+
spec.add_development_dependency 'ci_reporter_rspec', '~> 1.0'
|
40
|
+
|
41
|
+
spec.add_development_dependency 'simplecov', '~> 0.10'
|
42
|
+
spec.add_development_dependency 'simplecov-rcov', '~> 0.2'
|
43
|
+
spec.add_development_dependency 'simplecov-rcov-text', '~> 0.0.3'
|
44
|
+
spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
|
45
|
+
end
|
metadata
ADDED
@@ -0,0 +1,260 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails_config_validator
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michał Knapik
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: kwalify
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.7.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.7.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.7'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.7'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: guard-rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: guard-rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '4.5'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '4.5'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.31'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.31'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop-rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.3'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.3'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-checkstyle_formatter
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.2'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.2'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: ci_reporter
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '2.0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '2.0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: ci_reporter_rspec
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '1.0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '1.0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: simplecov
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0.10'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0.10'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: simplecov-rcov
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0.2'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0.2'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: simplecov-rcov-text
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 0.0.3
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 0.0.3
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: codeclimate-test-reporter
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0.4'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0.4'
|
209
|
+
description: The gem uses Kwalify schema validator to check Rails configuration files
|
210
|
+
syntax.
|
211
|
+
email:
|
212
|
+
- michal.knapik@u2i.com
|
213
|
+
executables: []
|
214
|
+
extensions: []
|
215
|
+
extra_rdoc_files: []
|
216
|
+
files:
|
217
|
+
- ".gitignore"
|
218
|
+
- ".rspec"
|
219
|
+
- ".rubocop.yml"
|
220
|
+
- ".rubocop_u2i.yml"
|
221
|
+
- ".travis.yml"
|
222
|
+
- Gemfile
|
223
|
+
- Guardfile
|
224
|
+
- README.md
|
225
|
+
- Rakefile
|
226
|
+
- bin/console
|
227
|
+
- bin/setup
|
228
|
+
- lib/rails_config_validator.rb
|
229
|
+
- lib/rails_config_validator/errors.rb
|
230
|
+
- lib/rails_config_validator/railtie.rb
|
231
|
+
- lib/rails_config_validator/rake_task.rb
|
232
|
+
- lib/rails_config_validator/validator.rb
|
233
|
+
- lib/rails_config_validator/version.rb
|
234
|
+
- rails_config_validator.gemspec
|
235
|
+
homepage: https://github.com/u2i/rails_config_validator
|
236
|
+
licenses:
|
237
|
+
- MIT
|
238
|
+
metadata:
|
239
|
+
allowed_push_host: https://rubygems.org
|
240
|
+
post_install_message:
|
241
|
+
rdoc_options: []
|
242
|
+
require_paths:
|
243
|
+
- lib
|
244
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
245
|
+
requirements:
|
246
|
+
- - ">="
|
247
|
+
- !ruby/object:Gem::Version
|
248
|
+
version: '0'
|
249
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
250
|
+
requirements:
|
251
|
+
- - ">="
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: '0'
|
254
|
+
requirements: []
|
255
|
+
rubyforge_project:
|
256
|
+
rubygems_version: 2.4.6
|
257
|
+
signing_key:
|
258
|
+
specification_version: 4
|
259
|
+
summary: Gem for validating Rails YAML configuration files.
|
260
|
+
test_files: []
|