attributor-flatpack 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: dc8bedaf5f09ed13a4b6bac5ac5b7bdb0f8c634c
4
+ data.tar.gz: dd820df64508af2d10f7a114175691409e8759c6
5
+ SHA512:
6
+ metadata.gz: d7c3e4cba1a21f388e8dc4ddb15a3e806b5737f0ef70bb0afccbd414ab71589b5bd67722a72f850e104a3d74b92c9b3619089818cc77b448c784d3b1fe547cf2
7
+ data.tar.gz: ab0426155b984d93f8fb7017210543defc88d765cba7b3a34b0e36f61278ecb6a23245e24b96b98f6d314383b8db1f304c39c7406b7f9ec016b6fad12d5f07e0
data/.codeclimate.yml ADDED
@@ -0,0 +1,16 @@
1
+ ---
2
+ engines:
3
+ duplication:
4
+ enabled: true
5
+ config:
6
+ languages:
7
+ - ruby
8
+ fixme:
9
+ enabled: true
10
+ rubocop:
11
+ enabled: true
12
+ ratings:
13
+ paths:
14
+ - "**.rb"
15
+ exclude_paths:
16
+ - spec/
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format Fuubar
2
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,18 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.2
3
+ Style/Documentation:
4
+ Enabled: false
5
+ Exclude:
6
+ - lib/attributor/flatpack/version.rb
7
+ - lib/attributor/flatpack.rb
8
+ - lib/attributor/flatpack/config.rb
9
+ - lib/attributor/flatpack/config_dsl_compiler.rb
10
+ - lib/attributor/flatpack/undefined_key.rb
11
+ Metrics/MethodLength:
12
+ Enabled: false
13
+ Metrics/ClassLength:
14
+ Enabled: false
15
+ Style/RedundantSelf:
16
+ Enabled: false
17
+ Style/DoubleNegation:
18
+ Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.2.3
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ before_install: gem install bundler -v 1.11.2
3
+ script:
4
+ - bundle exec rspec --format documentation --color
5
+ - bundle exec rubocop --format=clang
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in attributor-flatpack.gemspec
4
+ gemspec
data/Guardfile ADDED
@@ -0,0 +1,49 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ ## Uncomment and set this to only include directories you want to watch
5
+ # directories %w(app lib config test spec features) \
6
+ # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
+
8
+ ## Note: if you are using the `directories` clause above and you are not
9
+ ## watching the project directory ('.'), then you will want to move
10
+ ## the Guardfile to a watched dir and symlink it back, e.g.
11
+ #
12
+ # $ mkdir config
13
+ # $ mv Guardfile config/
14
+ # $ ln -s config/Guardfile .
15
+ #
16
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
+
18
+ # Note: The cmd option is now required due to the increasing number of ways
19
+ # rspec may be run, below are examples of the most common uses.
20
+ # * bundler: 'bundle exec rspec'
21
+ # * bundler binstubs: 'bin/rspec'
22
+ # * spring: 'bin/rspec' (This will use spring if running and you have
23
+ # installed the spring binstubs per the docs)
24
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
25
+ # * 'just' rspec: 'rspec'
26
+
27
+ group :red_green_refactor, halt_on_fail: true do
28
+ guard :rspec, cmd: 'bundle exec rspec' do
29
+ require 'guard/rspec/dsl'
30
+ dsl = Guard::RSpec::Dsl.new(self)
31
+
32
+ # Feel free to open issues for suggestions and improvements
33
+
34
+ # RSpec files
35
+ rspec = dsl.rspec
36
+ watch(rspec.spec_helper) { rspec.spec_dir }
37
+ watch(rspec.spec_support) { rspec.spec_dir }
38
+ watch(rspec.spec_files)
39
+
40
+ # Ruby files
41
+ ruby = dsl.ruby
42
+ dsl.watch_spec_files_for(ruby.lib_files)
43
+ end
44
+
45
+ guard :rubocop do
46
+ watch(/.+\.rb$/)
47
+ watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
48
+ end
49
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Dane Jensen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # Attributor::Flatpack
2
+ [![Build Status](https://travis-ci.org/careo/attributor-flatpack.svg?branch=master)](https://travis-ci.org/careo/attributor-flatpack)
3
+ [![Code Climate](https://codeclimate.com/github/careo/attributor-flatpack/badges/gpa.svg)](https://codeclimate.com/github/careo/attributor-flatpack)
4
+ [![Test Coverage](https://codeclimate.com/github/careo/attributor-flatpack/badges/coverage.svg)](https://codeclimate.com/github/careo/attributor-flatpack/coverage)
5
+
6
+ This library provides an Attributor type, Attributor::Flatpack::Config, for loading messy data from sources like the ENV hash. Based on the Go [flatpack](https://github.com/xeger/flatpack) library.
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'attributor-flatpack'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install attributor-flatpack
23
+
24
+ ## Usage
25
+
26
+ Define your config type, similarly to an `Attributor::Hash`:
27
+
28
+ ```ruby
29
+ class SampleConfig < Attributor::Flatpack::Config
30
+ keys do
31
+ key :rack_env, String
32
+ key :database do
33
+ key :host, String
34
+ key :username, String
35
+ key :password, String
36
+ end
37
+ key :web do
38
+ key :maxconn, Integer
39
+ key :workers, Integer
40
+ end
41
+ end
42
+ end
43
+ ```
44
+
45
+ Create an instance of it from a given input hash:
46
+ ```ruby
47
+ config = SimpleConfig.load(ENV)
48
+ ```
49
+
50
+ And then simply use the attributes defined to retrieve values:
51
+ ```ruby
52
+ config.rack_env
53
+ # => development
54
+ config.database.host
55
+ # => localhost:9160
56
+ ```
57
+
58
+ ## Development
59
+
60
+ 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.
61
+
62
+ 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`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
63
+
64
+ ## Contributing
65
+
66
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/attributor-flatpack.
67
+
68
+
69
+ ## License
70
+
71
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'attributor/flatpack/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'attributor-flatpack'
8
+ spec.version = Attributor::Flatpack::VERSION
9
+ spec.authors = ['Dane Jensen']
10
+ spec.email = ['dane.jensen@gmail.com']
11
+
12
+ spec.summary = 'Attributor type for loading configuration data'
13
+ spec.homepage = 'https://github.com/careo/attributor-flatpack'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files -z`
17
+ .split("\x0")
18
+ .reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ spec.bindir = 'exe'
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ['lib']
22
+
23
+ spec.add_dependency 'attributor', '>= 5'
24
+ spec.add_development_dependency 'bundler', '~> 1.11'
25
+ spec.add_development_dependency 'rake', '~> 10.0'
26
+ spec.add_development_dependency 'rspec', '~> 3.0'
27
+ spec.add_development_dependency 'rspec-its'
28
+ spec.add_development_dependency 'fuubar', '~> 2'
29
+ spec.add_development_dependency 'guard'
30
+ spec.add_development_dependency 'guard-rspec'
31
+ spec.add_development_dependency 'guard-rubocop'
32
+ spec.add_development_dependency 'pry'
33
+ spec.add_development_dependency 'pry-byebug'
34
+ spec.add_development_dependency 'codeclimate-test-reporter'
35
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'attributor/flatpack'
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,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,56 @@
1
+ require 'pp'
2
+ require 'bundler/setup'
3
+ require 'pry'
4
+ require 'pry-byebug'
5
+
6
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
7
+ require 'attributor/flatpack'
8
+
9
+ class SampleConfig < Attributor::Flatpack::Config
10
+ keys do
11
+ key :rack_env, String
12
+ key :database do
13
+ key :host, String
14
+ key :username, String
15
+ key :password, String
16
+ end
17
+ key :web do
18
+ key :maxconn, Integer
19
+ key :workers, Integer
20
+ end
21
+ key :world_domination, Attributor::Boolean, default: true
22
+ end
23
+ end
24
+
25
+ # a sample ENV
26
+ env = {
27
+ 'RACK_ENV' => 'sekrit-lair',
28
+ 'DATABASE_HOST' => 'postgres://localhost/operation_doomsday',
29
+ 'DATABASE_USERNAME' => 'postgres',
30
+ 'DATABASE_PASSWORD' => '123',
31
+ 'WEB' => JSON.dump(maxconn: 10, workers: 1000)
32
+ }
33
+
34
+ config = SampleConfig.load(env)
35
+ puts "errors: #{config.validate}"
36
+ # => errors: []
37
+
38
+ puts config.pretty_print
39
+ # =>
40
+ # rack_env="sekrit-lair"
41
+ # database.host="postgres://localhost/operation_doomsday"
42
+ # database.username="postgres"
43
+ # database.password="123"
44
+ # web.maxconn=10
45
+ # web.workers=1000
46
+ # world_domination=true
47
+
48
+ pp config.dump
49
+ # =>
50
+ # {:rack_env=>"sekrit-lair",
51
+ # :database=>
52
+ # {:host=>"postgres://localhost/operation_doomsday",
53
+ # :username=>"postgres",
54
+ # :password=>"123"},
55
+ # :web=>{:maxconn=>10, :workers=>1000},
56
+ # :world_domination=>true}
@@ -0,0 +1,12 @@
1
+ require 'attributor'
2
+
3
+ require 'attributor/flatpack/version'
4
+ require 'attributor/flatpack/config_dsl_compiler'
5
+
6
+ require 'attributor/flatpack/config'
7
+ require 'attributor/flatpack/undefined_key'
8
+
9
+ module Attributor
10
+ module Flatpack
11
+ end
12
+ end
@@ -0,0 +1,161 @@
1
+ module Attributor
2
+ module Flatpack
3
+ class Config < Attributor::Hash
4
+ @key_type = Symbol
5
+
6
+ def self.inherited(klass)
7
+ super
8
+ klass.options[:dsl_compiler] = ConfigDSLCompiler
9
+ end
10
+
11
+ def self.from_hash(object, _context, **_opts)
12
+ config = new(object)
13
+ config
14
+ end
15
+
16
+ def initialize(data = nil)
17
+ @raw = data
18
+ @contents = {}
19
+
20
+ self.class.keys.each do |k, _v|
21
+ self.define_accessors(k)
22
+ end
23
+ end
24
+
25
+ def define_accessors(name)
26
+ define_reader(name)
27
+ define_writer(name)
28
+ end
29
+
30
+ def define_reader(name)
31
+ define_singleton_method(name) do
32
+ get(name)
33
+ end
34
+
35
+ attribute = self.class.keys[name]
36
+ if attribute.type == Attributor::Boolean
37
+ define_singleton_method(name.to_s + '?') do
38
+ !!get(name)
39
+ end
40
+ end
41
+ end
42
+
43
+ def define_writer(name)
44
+ context = ['assignment', "of(#{name})"].freeze
45
+ define_singleton_method(name.to_s + '=') do |value|
46
+ set(name, value, context: context)
47
+ end
48
+ end
49
+
50
+ def default_context(key)
51
+ generate_subcontext(Attributor::DEFAULT_ROOT_CONTEXT, key)
52
+ end
53
+
54
+ def get(key, context: default_context(key))
55
+ unless (attribute = self.class.keys[key])
56
+ raise UndefinedKey.new(key, context)
57
+ end
58
+
59
+ @contents[key] ||= _get(key, attribute: attribute, context: context)
60
+ end
61
+
62
+ def _get(key, attribute:, context:)
63
+ if attribute.type < Attributor::Flatpack::Config
64
+ top = fetch(key) do
65
+ {}
66
+ end
67
+ attribute.load(top, context).merge!(subselect(key))
68
+ else
69
+ value = fetch(key) do
70
+ # raise "couldn't find #{key.inspect} anywhere"
71
+ nil
72
+ end
73
+ attribute.load(value, context)
74
+ end
75
+ end
76
+
77
+ def set(key, value, context: default_context(key))
78
+ attribute = self.class.keys.fetch key do
79
+ raise UndefinedKey.new(key, [key])
80
+ end
81
+
82
+ loaded = attribute.load(value, context)
83
+ @contents[key] = loaded
84
+ @raw[key] = loaded
85
+ end
86
+
87
+ # search @raw for key
88
+ def fetch(key)
89
+ return @raw[key] if @raw.key?(key)
90
+
91
+ _found_key, found_value = @raw.find do |(k, _v)|
92
+ k.to_s.casecmp(key.to_s) == 0
93
+ end
94
+
95
+ return found_value if found_value
96
+
97
+ yield if block_given?
98
+ end
99
+
100
+ def subselect(prefix)
101
+ prefix_match = /^#{prefix.to_s}_?(.*)/i
102
+
103
+ selected = @raw.collect do |(k, v)|
104
+ if (match = prefix_match.match(k))
105
+ [match[1], v]
106
+ end
107
+ end.compact
108
+ ::Hash[selected]
109
+ end
110
+
111
+ def [](k)
112
+ get k
113
+ end
114
+
115
+ def []=(k, v)
116
+ set k, v
117
+ end
118
+
119
+ def merge!(other)
120
+ # Not sure if we need to nuke the memozied set of loaded stuff here
121
+ # or not... but it sounds like a good idea.
122
+ @contents = {}
123
+ @raw.merge!(other)
124
+
125
+ self
126
+ end
127
+
128
+ # shamelessly copied from Attributor::Model's #validate :(
129
+ def validate(context = Attributor::DEFAULT_ROOT_CONTEXT)
130
+ self.validate_attributes(context) +
131
+ self.validate_requirements(context)
132
+ end
133
+
134
+ def validate_attributes(context)
135
+ self.class.attributes.each_with_object([]) do |(name, attr), errors|
136
+ sub_context = self.generate_subcontext(context, name)
137
+ value = self.get(name)
138
+ errors.push(*attr.validate(value, sub_context))
139
+ end
140
+ end
141
+
142
+ def validate_requirements(context)
143
+ self.class.requirements.each_with_object([]) do |req, errors|
144
+ errors.push(req.validate(@contents, context))
145
+ end
146
+ end
147
+
148
+ def pretty_print(context: [])
149
+ self.collect do |k, v|
150
+ sub_context = context + [k]
151
+ case v
152
+ when Attributor::Flatpack::Config
153
+ v.pretty_print(context: context | [k])
154
+ else
155
+ "#{sub_context.join('.')}=#{v.inspect}"
156
+ end
157
+ end.flatten
158
+ end
159
+ end
160
+ end
161
+ end
@@ -0,0 +1,15 @@
1
+ module Attributor
2
+ module Flatpack
3
+ class ConfigDSLCompiler < Attributor::HashDSLCompiler
4
+ def key(name, attr_type = nil, **opts, &block)
5
+ native_key = options.fetch(:key_type, Attributor::Object).native_type
6
+ unless name.is_a?(native_key)
7
+ raise ArgumentError, "Invalid key: #{name.inspect}, " \
8
+ "must be instance of #{native_key}"
9
+ end
10
+ attr_type = Attributor::Flatpack::Config if attr_type.nil? && block
11
+ target.keys[name] = define(name, attr_type, **opts, &block)
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,10 @@
1
+ module Attributor
2
+ module Flatpack
3
+ class UndefinedKey < Attributor::LoadError
4
+ def initialize(key, context)
5
+ ctx = Attributor.humanize_context(context)
6
+ super "Undefined key received: #{key.inspect} for #{ctx}"
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,5 @@
1
+ module Attributor
2
+ module Flatpack
3
+ VERSION = '1.0.0'.freeze
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,233 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: attributor-flatpack
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Dane Jensen
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-03-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: attributor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '5'
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.11'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.11'
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: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-its
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: fuubar
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2'
97
+ - !ruby/object:Gem::Dependency
98
+ name: guard
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: guard-rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: guard-rubocop
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: pry
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: pry-byebug
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: codeclimate-test-reporter
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ description:
182
+ email:
183
+ - dane.jensen@gmail.com
184
+ executables: []
185
+ extensions: []
186
+ extra_rdoc_files: []
187
+ files:
188
+ - ".codeclimate.yml"
189
+ - ".gitignore"
190
+ - ".rspec"
191
+ - ".rubocop.yml"
192
+ - ".ruby-version"
193
+ - ".travis.yml"
194
+ - Gemfile
195
+ - Guardfile
196
+ - LICENSE.txt
197
+ - README.md
198
+ - Rakefile
199
+ - attributor-flatpack.gemspec
200
+ - bin/console
201
+ - bin/setup
202
+ - examples/sample_config.rb
203
+ - lib/attributor/flatpack.rb
204
+ - lib/attributor/flatpack/config.rb
205
+ - lib/attributor/flatpack/config_dsl_compiler.rb
206
+ - lib/attributor/flatpack/undefined_key.rb
207
+ - lib/attributor/flatpack/version.rb
208
+ homepage: https://github.com/careo/attributor-flatpack
209
+ licenses:
210
+ - MIT
211
+ metadata: {}
212
+ post_install_message:
213
+ rdoc_options: []
214
+ require_paths:
215
+ - lib
216
+ required_ruby_version: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - ">="
219
+ - !ruby/object:Gem::Version
220
+ version: '0'
221
+ required_rubygems_version: !ruby/object:Gem::Requirement
222
+ requirements:
223
+ - - ">="
224
+ - !ruby/object:Gem::Version
225
+ version: '0'
226
+ requirements: []
227
+ rubyforge_project:
228
+ rubygems_version: 2.4.5.1
229
+ signing_key:
230
+ specification_version: 4
231
+ summary: Attributor type for loading configuration data
232
+ test_files: []
233
+ has_rdoc: