s3_config 0.1.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: 734b33901f2445ab19eb93ff9b4f0a2d239e7943
4
+ data.tar.gz: 02ba0c8af0aa15bc60e6ae6762cea54a20f1c27b
5
+ SHA512:
6
+ metadata.gz: 2d89be2db1e4c40ad3fedebcf733023d17d62c232f6a6477fc6b269bb96beadeeb9151574d55dc4a096349489efe49f11234c2bef93f8e1aece09c74c08b7152
7
+ data.tar.gz: dc2fabcaa2ed139e7f249856e1862bd9619241f46c33d14b0d467824ed862a0fecd250cb18573935810889d62313d0fb1cdc4030b7149c8c5addf1eeb27bba35
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ .rbenv-vars
@@ -0,0 +1,3 @@
1
+ AWS_ACCESS_KEY_ID=FILL_ME_IN
2
+ AWS_ACCESS_KEY_SECRET=FILL_ME_IN
3
+ S3_CONFIG_BUCKET=FILL_ME_IN
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ rails2017_s3_config
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.3.1
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.2
4
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in s3_config.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Zane Shannon
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,66 @@
1
+ # S3Config
2
+
3
+ S3Config adopts Heroku-style config management for any Rails application using AWS S3 to store, and Rack middleware to inject environment variables.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 's3_config'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install s3_config
20
+
21
+ ## Setup
22
+
23
+ `AWS_ACCESS_KEY_ID`, `AWS_ACCESS_KEY_SECRET`, and `S3_CONFIG_BUCKET` must be defined in your ENV.
24
+
25
+ ## Usage
26
+
27
+ ### In Rails
28
+
29
+ S3Config adds a railtie callback `before_configuration` that pulls stored configuration variables from S3 just before the Rails application is configured (eg. `config/application.rb` executes).
30
+
31
+ We're using the same commands as the Heroku CLI. More here: [Heroku Config Vars](https://devcenter.heroku.com/articles/config-vars).
32
+
33
+ ### List Environments
34
+
35
+ `config environments`
36
+
37
+ ### List Environment Variables (aka `heroku config`)
38
+
39
+ `config list ENVIRONMENT`
40
+
41
+ ### Write Environment Variable (aka `heroku config:set`)
42
+
43
+ `config set ENVIRONMENT FOO=BAR`
44
+
45
+ ### Read Environment Variable (aka `heroku config:get`)
46
+
47
+ `config get ENVIRONMENT FOO`
48
+
49
+ ### Delete Environment Variable (aka `heroku config:unset`)
50
+
51
+ `config unset ENVIRONMENT FOO`
52
+
53
+ ## Development
54
+
55
+ 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.
56
+
57
+ 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).
58
+
59
+ ## Contributing
60
+
61
+ Bug reports and pull requests are welcome on GitHub at https://github.com/rails2017/s3_config. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
62
+
63
+
64
+ ## License
65
+
66
+ 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
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "s3_config"
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,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
data/exe/config ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "s3_config"
4
+ require "s3_config/cli"
5
+
6
+ S3Config::CLI.start
@@ -0,0 +1,144 @@
1
+ require "aws-sdk"
2
+ require "erb"
3
+ require "yaml"
4
+
5
+ module S3Config
6
+ class Application
7
+
8
+ include Enumerable
9
+
10
+ def initialize(options = {})
11
+ @options = options.inject({}) { |m, (k, v)| m[k.to_sym] = v; m }
12
+ end
13
+
14
+ def environments
15
+ bucket.objects.map(&:key).map{|key| key.split('/').first }.uniq
16
+ end
17
+
18
+ def environment
19
+ environment = @options.fetch(:environment) { default_environment }
20
+ environment.nil? ? nil : environment.to_s
21
+ end
22
+
23
+ def environment=(environment)
24
+ @options[:environment] = environment
25
+ end
26
+
27
+ def version
28
+ version = @options.fetch(:version) { default_version }
29
+ version
30
+ end
31
+
32
+ def version=(version)
33
+ @options[:version] = version
34
+ end
35
+
36
+ def configuration
37
+ @configuration ||= read_configuration
38
+ end
39
+
40
+ def load
41
+ each do |key, value|
42
+ skip?(key) ? key_skipped!(key) : graduate_to_env(key, value)
43
+ end
44
+ end
45
+
46
+ def each(&block)
47
+ configuration.each(&block)
48
+ end
49
+
50
+ def valid?
51
+ !client.nil? and !bucket.nil?
52
+ end
53
+
54
+ def latest_version
55
+ [(bucket.objects({prefix: "#{environment}/"}).count - 1), 0].max
56
+ end
57
+
58
+ def read(key)
59
+ config = read_configuration
60
+ config[key]
61
+ end
62
+
63
+ def write(key, value)
64
+ config = read_configuration
65
+ unless config[key] == value
66
+ config[key] = value
67
+ write_configuration config
68
+ end
69
+ end
70
+
71
+ def delete(key)
72
+ config = read_configuration
73
+ unless config[key].nil?
74
+ config.delete key
75
+ write_configuration config
76
+ end
77
+ end
78
+
79
+ private
80
+
81
+ def client
82
+ @s3 ||= Aws::S3::Client.new(access_key_id: ::ENV.fetch("AWS_ACCESS_KEY_ID"), secret_access_key: ::ENV.fetch("AWS_ACCESS_KEY_SECRET"), region: ::ENV.fetch("AWS_REGION", "us-east-1"))
83
+ end
84
+
85
+ def bucket
86
+ @bucket ||= Aws::S3::Bucket.new(::ENV.fetch("S3_CONFIG_BUCKET"), client: client)
87
+ end
88
+
89
+ def default_environment
90
+ nil
91
+ end
92
+
93
+ def default_version
94
+ @default_version ||= ::ENV.fetch("S3_CONFIG_REVISION"){ latest_version }
95
+ end
96
+
97
+ def read_configuration
98
+ if e = environment and v = version
99
+ begin
100
+ serialized_config = bucket.object("#{e}/#{v}.yml").get.body
101
+ config = YAML.load serialized_config
102
+ return config
103
+ rescue Aws::S3::Errors::NoSuchKey
104
+ raise ConfigNotDefinedError.new(e, v)
105
+ end
106
+ else
107
+ throw NotImplementedError
108
+ end
109
+ {}
110
+ end
111
+
112
+ def write_configuration(config)
113
+ if e = environment and next_version = (latest_version + 1)
114
+ serialized_config = YAML.dump(config)
115
+ bucket.put_object({
116
+ body: serialized_config,
117
+ key: "#{e}/#{next_version}.yml",
118
+ server_side_encryption: "AES256"
119
+ })
120
+ else
121
+ throw NotImplementedError
122
+ end
123
+ end
124
+
125
+ def graduate_to_env(key, value)
126
+ non_string_configuration!(key) unless key.is_a?(String)
127
+ non_string_configuration!(value) unless value.is_a?(String) || value.nil?
128
+
129
+ ::ENV[key.to_s] = value.nil? ? nil : value.to_s
130
+ end
131
+
132
+ def skip?(key)
133
+ ::ENV.key?(key.to_s)
134
+ end
135
+
136
+ def non_string_configuration!(value)
137
+ warn "WARNING: Use strings for S3Config configuration. #{value.inspect} was converted to #{value.to_s.inspect}."
138
+ end
139
+
140
+ def key_skipped!(key)
141
+ warn "WARNING: Skipping key #{key.inspect}. Already set in ENV."
142
+ end
143
+ end
144
+ end
@@ -0,0 +1,88 @@
1
+ require "aws-sdk"
2
+ require "thor"
3
+ require "yaml"
4
+
5
+ module S3Config
6
+ class CLI < Thor
7
+
8
+ no_commands {
9
+ def validate_installed!
10
+ unless S3Config.adapter.new.valid?
11
+ error "Not installed!"
12
+ error "`AWS_ACCESS_KEY_ID`, `AWS_ACCESS_KEY_SECRET`, and `S3_CONFIG_BUCKET` must be defined in your ENV."
13
+ false
14
+ else
15
+ true
16
+ end
17
+ end
18
+ }
19
+
20
+ desc "list", "List S3Config variables for environment. eg: config list production"
21
+ def list(environment=nil)
22
+ return unless validate_installed!
23
+ return error "Environment required. eg: config list production" if environment.nil?
24
+ @application = S3Config.adapter.new environment: environment
25
+ version = @application.latest_version
26
+ say "#{environment} (v#{version})"
27
+ say "====="
28
+ @application.each do |k,v|
29
+ say "#{k}=#{v}"
30
+ end
31
+ end
32
+
33
+ desc "set", "Set S3Config variable for environment. eg: config set production KEY=value"
34
+ def set(environment=nil, key_value="")
35
+ return unless validate_installed!
36
+ return error "Environment required. eg: config set production KEY=value" if environment.nil?
37
+ key, value = key_value.split '='
38
+ return error "Key required. eg: config set production KEY=value" if key.nil?
39
+ key.upcase!
40
+ if value.nil?
41
+ error "Value required. eg: config set production KEY=value"
42
+ say "Use `config unset` to delete a key"
43
+ return
44
+ end
45
+ @application = S3Config.adapter.new environment: environment
46
+ @application.write key, value
47
+ say "Set #{key}=#{value} (#{environment})"
48
+ say "====="
49
+ say "Use version: v#{@application.latest_version}"
50
+ end
51
+
52
+ desc "get", "Get S3Config variable for environment. eg: config get production KEY"
53
+ def get(environment=nil, key=nil)
54
+ return unless validate_installed!
55
+ return error "Environment required. eg: config get production KEY" if environment.nil?
56
+ return error "Key required. eg: config get production KEY" if key.nil?
57
+ key = key.upcase
58
+ @application = S3Config.adapter.new environment: environment
59
+ value = @application.read key
60
+ say "#{key} (#{environment})"
61
+ say "====="
62
+ say value
63
+ end
64
+
65
+ desc "unset", "Remove S3Config variable for environment. eg: config unset production KEY"
66
+ def unset(environment=nil, key=nil)
67
+ return unless validate_installed!
68
+ return error "Environment required. eg: config unset production KEY" if environment.nil?
69
+ return error "Key required. eg: config unset production KEY" if key.nil?
70
+ key = key.upcase
71
+ @application = S3Config.adapter.new environment: environment
72
+ @application.delete key
73
+ say "Removed #{key} (#{environment})"
74
+ say "====="
75
+ say "Use version: v#{@application.latest_version}"
76
+ end
77
+
78
+ desc "environments", "List S3Config environments. eg: config environments"
79
+ def environments
80
+ return unless validate_installed!
81
+ @application = S3Config.adapter.new
82
+ say "Configured Environments"
83
+ say "====="
84
+ @application.environments.each{ |e| puts "- #{e}" }
85
+ end
86
+
87
+ end
88
+ end
@@ -0,0 +1,45 @@
1
+ module S3Config
2
+ module ENV
3
+ extend self
4
+
5
+ def respond_to?(method, *)
6
+ key, punctuation = extract_key_from_method(method)
7
+
8
+ case punctuation
9
+ when "!" then has_key?(key) || super
10
+ when "?", nil then true
11
+ else super
12
+ end
13
+ end
14
+
15
+ private
16
+
17
+ def method_missing(method, *)
18
+ key, punctuation = extract_key_from_method(method)
19
+
20
+ case punctuation
21
+ when "!" then send(key) || missing_key!(key)
22
+ when "?" then !!send(key)
23
+ when nil then get_value(key)
24
+ else super
25
+ end
26
+ end
27
+
28
+ def extract_key_from_method(method)
29
+ method.to_s.downcase.match(/^(.+?)([!?=])?$/).captures
30
+ end
31
+
32
+ def has_key?(key)
33
+ ::ENV.any? { |k, _| k.downcase == key }
34
+ end
35
+
36
+ def missing_key!(key)
37
+ raise MissingKey.new(key)
38
+ end
39
+
40
+ def get_value(key)
41
+ _, value = ::ENV.detect { |k, _| k.downcase == key }
42
+ value
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,23 @@
1
+ module S3Config
2
+ class Error < StandardError; end
3
+
4
+ class RailsNotInitialized < Error; end
5
+
6
+ class MissingKey < Error
7
+ def initialize(key)
8
+ super("Missing required configuration key: #{key.inspect}")
9
+ end
10
+ end
11
+
12
+ class MissingKeys < Error
13
+ def initialize(keys)
14
+ super("Missing required configuration keys: #{keys.inspect}")
15
+ end
16
+ end
17
+
18
+ class ConfigNotDefinedError < Error
19
+ def initialize(environment, version)
20
+ super("No version '#{version}' defined for environment '#{environment}'!")
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,15 @@
1
+ module S3Config
2
+ module Rails
3
+ class Application < S3Config::Application
4
+ private
5
+
6
+ def default_environment
7
+ ::Rails.env
8
+ end
9
+
10
+ def rails_not_initialized!
11
+ raise RailsNotInitialized
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,17 @@
1
+ module S3Config
2
+ module Rails
3
+ class Railtie < ::Rails::Railtie
4
+ config.before_configuration do
5
+ begin
6
+ S3Config.load
7
+ rescue S3Config::ConfigNotDefinedError => e
8
+ if ::Rails.env.development?
9
+ warn "S3Config not defined. Ignoring for development environment."
10
+ else
11
+ raise e
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,9 @@
1
+ begin
2
+ require "rails"
3
+ rescue LoadError
4
+ else
5
+ require "s3_config/rails/application"
6
+ require "s3_config/rails/railtie"
7
+
8
+ S3Config.adapter = S3Config::Rails::Application
9
+ end
@@ -0,0 +1,3 @@
1
+ module S3Config
2
+ VERSION = "0.1.0"
3
+ end
data/lib/s3_config.rb ADDED
@@ -0,0 +1,33 @@
1
+ require "s3_config/version"
2
+ require "s3_config/error"
3
+ require "s3_config/env"
4
+ require "s3_config/application"
5
+
6
+ module S3Config
7
+ extend self
8
+
9
+ attr_writer :adapter, :application
10
+
11
+ def env
12
+ S3Config::ENV
13
+ end
14
+
15
+ def adapter
16
+ @adapter ||= S3Config::Application
17
+ end
18
+
19
+ def application
20
+ @application ||= adapter.new
21
+ end
22
+
23
+ def load
24
+ application.load
25
+ end
26
+
27
+ def require_keys(*keys)
28
+ missing_keys = keys.flatten - ::ENV.keys
29
+ raise MissingKeys.new(missing_keys) if missing_keys.any?
30
+ end
31
+ end
32
+
33
+ require "s3_config/rails"
data/s3_config.gemspec ADDED
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 's3_config/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "s3_config"
8
+ spec.version = S3Config::VERSION
9
+ spec.authors = ["Zane Shannon"]
10
+ spec.email = ["zcs@smileslaughs.com"]
11
+
12
+ spec.summary = %q{S3Config uses AWS S3 to configure a Rails application.}
13
+ spec.description = %q{S3Config adopts Heroku-style config management for any Rails application using AWS S3 to store, and Rack middleware to inject environment variables.}
14
+ spec.homepage = "https://github.com/rails2017/s3_config"
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
+ spec.add_dependency "aws-sdk", "~> 2"
23
+ spec.add_dependency "thor", "~> 0.14"
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.10"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rspec"
28
+
29
+ spec.executables << "config"
30
+ end
metadata ADDED
@@ -0,0 +1,140 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: s3_config
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Zane Shannon
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-09-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: aws-sdk
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: thor
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.14'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.14'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.10'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
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
+ description: S3Config adopts Heroku-style config management for any Rails application
84
+ using AWS S3 to store, and Rack middleware to inject environment variables.
85
+ email:
86
+ - zcs@smileslaughs.com
87
+ executables:
88
+ - config
89
+ extensions: []
90
+ extra_rdoc_files: []
91
+ files:
92
+ - ".gitignore"
93
+ - ".rbenv-vars.example"
94
+ - ".rspec"
95
+ - ".ruby-gemset"
96
+ - ".ruby-version"
97
+ - ".travis.yml"
98
+ - CODE_OF_CONDUCT.md
99
+ - Gemfile
100
+ - LICENSE.txt
101
+ - README.md
102
+ - Rakefile
103
+ - bin/console
104
+ - bin/setup
105
+ - exe/config
106
+ - lib/s3_config.rb
107
+ - lib/s3_config/application.rb
108
+ - lib/s3_config/cli.rb
109
+ - lib/s3_config/env.rb
110
+ - lib/s3_config/error.rb
111
+ - lib/s3_config/rails.rb
112
+ - lib/s3_config/rails/application.rb
113
+ - lib/s3_config/rails/railtie.rb
114
+ - lib/s3_config/version.rb
115
+ - s3_config.gemspec
116
+ homepage: https://github.com/rails2017/s3_config
117
+ licenses:
118
+ - MIT
119
+ metadata: {}
120
+ post_install_message:
121
+ rdoc_options: []
122
+ require_paths:
123
+ - lib
124
+ required_ruby_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ requirements: []
135
+ rubyforge_project:
136
+ rubygems_version: 2.5.1
137
+ signing_key:
138
+ specification_version: 4
139
+ summary: S3Config uses AWS S3 to configure a Rails application.
140
+ test_files: []