estuary 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36472edb102ab6be2048f92890c2f5f549bec920
4
- data.tar.gz: f4f4f0b993c99dc2345833508e0729b303f49e3d
3
+ metadata.gz: 86553c7773b31cb7885ffaabe23173d67d5fce56
4
+ data.tar.gz: 1bb0f62108a1ac9692c1b1d80942819b37ae0e24
5
5
  SHA512:
6
- metadata.gz: 37f107262bff1a035d703a0c3ffb886b5b77962aad6e61ac9ea06142c11ce7dc81a2d4bcf004c034c44af8c4b39c2f9c0862164cdb962c57eede86c926c0955d
7
- data.tar.gz: d4a51250efe5c4febe2e904e7e1e39256836168a1ede42b8190289c04f204a1aeceb4c96622dd2ec8f0c860d23648277c8ebfb4333140b0bdb23497f948144c3
6
+ metadata.gz: 83e50e336b9b9914d9ba1c941ad761c07843cb8f4c6697a8a3a8d3041597964be690251e2b46d752e8945970a1f680dee87e87251b3ab0051d09dc2a007e5c7f
7
+ data.tar.gz: a4b5eddd4f2bd240408fb9d323cc5f0f0067684bcbf240b039319e49845d46bdf8af8dc2bea4decc57e4639ed85b6772c5e67e40f4123f5c7561ffc9d4a67b63
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at jaredcraigclifton@gmail.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Dockerfile CHANGED
@@ -1,13 +1,15 @@
1
1
  FROM ruby:2.3.1
2
2
 
3
3
  RUN apt-get update -qq && apt-get install -y build-essential
4
- RUN gem install bundler
4
+ RUN gem install bundler --no-rdoc --no-ri
5
5
 
6
6
  ENV APP_HOME /estuary
7
- RUN mkdir $APP_HOME
8
- WORKDIR $APP_HOME
9
7
 
10
- ADD Gemfile* $APP_HOME/
8
+ WORKDIR /tmp
9
+ ADD Gemfile Gemfile
10
+ ADD Gemfile.lock Gemfile.lock
11
+ ADD estuary.gemspec estuary.gemspec
11
12
  RUN bundle install
12
13
 
13
14
  ADD . $APP_HOME
15
+ WORKDIR $APP_HOME
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source 'https://rubygems.org'
2
+
3
+ ruby '2.3.1'
4
+
5
+ gem 'pry'
6
+
7
+ group :test do
8
+ gem 'codeclimate-test-reporter', '0.5.0'
9
+ gem 'rspec', '3.4.0'
10
+ end
11
+
12
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,59 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ estuary (0.1.0)
5
+ puma (= 3.4.0)
6
+ rake (= 11.1.2)
7
+ thor (= 0.19.1)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ codeclimate-test-reporter (0.5.0)
13
+ simplecov (>= 0.7.1, < 1.0.0)
14
+ coderay (1.1.1)
15
+ diff-lcs (1.2.5)
16
+ docile (1.1.5)
17
+ json (1.8.3)
18
+ method_source (0.8.2)
19
+ pry (0.10.3)
20
+ coderay (~> 1.1.0)
21
+ method_source (~> 0.8.1)
22
+ slop (~> 3.4)
23
+ puma (3.4.0)
24
+ rake (11.1.2)
25
+ rspec (3.4.0)
26
+ rspec-core (~> 3.4.0)
27
+ rspec-expectations (~> 3.4.0)
28
+ rspec-mocks (~> 3.4.0)
29
+ rspec-core (3.4.4)
30
+ rspec-support (~> 3.4.0)
31
+ rspec-expectations (3.4.0)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.4.0)
34
+ rspec-mocks (3.4.1)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.4.0)
37
+ rspec-support (3.4.1)
38
+ simplecov (0.11.2)
39
+ docile (~> 1.1.0)
40
+ json (~> 1.8)
41
+ simplecov-html (~> 0.10.0)
42
+ simplecov-html (0.10.0)
43
+ slop (3.6.0)
44
+ thor (0.19.1)
45
+
46
+ PLATFORMS
47
+ ruby
48
+
49
+ DEPENDENCIES
50
+ codeclimate-test-reporter (= 0.5.0)
51
+ estuary!
52
+ pry
53
+ rspec (= 3.4.0)
54
+
55
+ RUBY VERSION
56
+ ruby 2.3.1p112
57
+
58
+ BUNDLED WITH
59
+ 1.12.5
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Jared Clifton
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,39 @@
1
+ # Estuary
2
+
3
+ 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/estuary`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'estuary'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install estuary
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ 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).
30
+
31
+ ## Contributing
32
+
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/estuary/estuary. 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.
34
+
35
+
36
+ ## License
37
+
38
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
39
+
data/Rakefile ADDED
@@ -0,0 +1,15 @@
1
+ require 'rspec'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:doc_spec) do |t|
5
+ t.fail_on_error = false
6
+ t.rspec_opts = ['--format documentation', '--color', '--order=default']
7
+ t.pattern = ARGV[1] || 'spec/**/*_spec.rb'
8
+ end
9
+
10
+ RSpec::Core::RakeTask.new(:spec) do |t|
11
+ t.fail_on_error = true
12
+ t.pattern = ARGV[1] || 'spec/**/*_spec.rb'
13
+ end
14
+
15
+ task default: :spec
data/bin/estuary ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require_relative '../lib/estuary'
4
+
5
+ Estuary::CLI.start(ARGV)
data/docker-compose.yml CHANGED
@@ -12,7 +12,6 @@ services:
12
12
  - "3000:3000"
13
13
  links:
14
14
  - redis
15
- - emitter
16
15
  volumes:
17
16
  - .:/estuary
18
17
 
data/estuary.gemspec ADDED
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ $LOAD_PATH.push File.expand_path('../lib', __FILE__)
3
+
4
+ Gem::Specification.new do |spec|
5
+ spec.name = 'estuary'
6
+ spec.version = '0.1.1'
7
+ spec.authors = ['Jared Clifton']
8
+ spec.email = ['jaredcraigclifton@gmail.com']
9
+
10
+ spec.summary = 'Delegates HTTP requests to a rate limited service'
11
+ spec.description = 'Delegates HTTP requests to a rate limited service to ensure minimal 429'
12
+ spec.homepage = 'https://github.com/jclif/estuary'
13
+ spec.license = 'MIT'
14
+
15
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
16
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
17
+ if spec.respond_to?(:metadata)
18
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
19
+ else
20
+ raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
21
+ end
22
+
23
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24
+ spec.bindir = 'bin'
25
+ spec.require_paths = ["lib"]
26
+
27
+ spec.add_dependency 'rake', '11.1.2'
28
+ spec.add_dependency 'puma', '3.4.0'
29
+ spec.add_dependency 'thor', '0.19.1'
30
+ end
@@ -0,0 +1,13 @@
1
+ module Estuary
2
+ class CLI < ::Thor
3
+ desc 'server', 'Starts a server'
4
+ def server
5
+ Estuary.server
6
+ end
7
+
8
+ desc 'emitter', 'Starts an emitter'
9
+ def emitter
10
+ Estuary.emitter
11
+ end
12
+ end
13
+ end
data/lib/estuary.rb ADDED
@@ -0,0 +1,12 @@
1
+ require 'thor'
2
+ require 'estuary'
3
+
4
+ module Estuary
5
+ def self.server
6
+ puts 'start that server yo'
7
+ end
8
+
9
+ def self.emitter
10
+ puts 'start that emitter yo'
11
+ end
12
+ end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: estuary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared Clifton
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2016-06-06 00:00:00.000000000 Z
12
12
  dependencies:
@@ -60,8 +60,18 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - ".gitignore"
63
+ - CODE_OF_CONDUCT.md
63
64
  - Dockerfile
65
+ - Gemfile
66
+ - Gemfile.lock
67
+ - LICENSE.txt
68
+ - README.md
69
+ - Rakefile
70
+ - bin/estuary
64
71
  - docker-compose.yml
72
+ - estuary.gemspec
73
+ - lib/estuary.rb
74
+ - lib/estuary/cli.rb
65
75
  homepage: https://github.com/jclif/estuary
66
76
  licenses:
67
77
  - MIT