velveteen 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +6 -0
- data/CODE_OF_CONDUCT.md +6 -0
- data/CONTRIBUTING.md +64 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +34 -0
- data/LICENSE +21 -0
- data/README.md +52 -0
- data/Rakefile +6 -0
- data/TODO.md +17 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/velveteen.rb +6 -0
- data/lib/velveteen/version.rb +3 -0
- data/velveteen.gemspec +23 -0
- metadata +65 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 408e0f3dba3d7597f07155b06acb53adc7f8c69c77b2d517fa49f1b467e7be55
|
4
|
+
data.tar.gz: 9774712799336be8c8fba5096bb40b174d7169af8bd7cfec478bdc9589e652a4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f9381a94b46b4fb25fa2acb46d28ddea78a6fe18df13edf6dd85182d921def80b3ff69979a0419dbe9a63a9750ae2631539cc7075f1b363711a6710204873c0a
|
7
|
+
data.tar.gz: eac0c341c821576752314f0e253e5a79982835e3284f55ef54b8c707d0327b5516c83e6a9d46392040811b2cea25ed8d80ca88a954d896143327fddd65bbd7ba
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# Contributing to Velveteen
|
2
|
+
|
3
|
+
We love pull requests from everyone. By participating in this project, you
|
4
|
+
agree to abide by the thoughtbot [code of conduct].
|
5
|
+
|
6
|
+
[code of conduct]: https://thoughtbot.com/open-source-code-of-conduct
|
7
|
+
|
8
|
+
Here are some ways *you* can contribute:
|
9
|
+
|
10
|
+
* by using alpha, beta, and pre-release versions
|
11
|
+
* by reporting bugs
|
12
|
+
* by suggesting new features
|
13
|
+
* by writing or editing documentation
|
14
|
+
* by writing specifications
|
15
|
+
* by writing code ( **no patch is too small** : fix typos, add comments, clean
|
16
|
+
up inconsistent whitespace )
|
17
|
+
* by refactoring code
|
18
|
+
* by closing [issues][]
|
19
|
+
* by reviewing patches
|
20
|
+
|
21
|
+
[issues]: https://github.com/thoughtbot/velveteen/issues
|
22
|
+
|
23
|
+
## Submitting an issue
|
24
|
+
|
25
|
+
* We use the [GitHub issue tracker][issues] to track bugs and features.
|
26
|
+
* Before submitting a bug report or feature request, check to make sure it
|
27
|
+
hasn't already been submitted.
|
28
|
+
* When submitting a bug report, please include a [Gist][] that includes a stack
|
29
|
+
trace and any details that may be necessary to reproduce the bug, including
|
30
|
+
your gem version, Ruby version, and operating system. Ideally, a bug report
|
31
|
+
should include a pull request with failing specs.
|
32
|
+
|
33
|
+
[Gist]: https://gist.github.com/
|
34
|
+
|
35
|
+
## Cleaning up issues
|
36
|
+
|
37
|
+
* Issues that have no response from the submitter will be closed after 30 days.
|
38
|
+
* Issues will be closed once they're assumed to be fixed or answered. If the
|
39
|
+
maintainer is wrong, it can be opened again.
|
40
|
+
* If your issue is closed by mistake, please understand and explain the issue.
|
41
|
+
We will happily reopen the issue.
|
42
|
+
|
43
|
+
## Submitting a pull request
|
44
|
+
|
45
|
+
1. [Fork][fork] the [official repository][repo]
|
46
|
+
2. [Create a topic branch][branch]
|
47
|
+
3. Implement your feature or bug fix
|
48
|
+
4. Add, commit, and push your changes
|
49
|
+
5. [Submit a pull request][pr]
|
50
|
+
|
51
|
+
## Notes
|
52
|
+
|
53
|
+
* Please add tests if you changed code. Contributions without tests won't be
|
54
|
+
accepted.
|
55
|
+
* If you don't know how to add tests, please put in a PR and leave a comment
|
56
|
+
asking for help. We love helping!
|
57
|
+
* Please don't update the Gem version.
|
58
|
+
|
59
|
+
[repo]: https://github.com/thoughtbot/velveteen/tree/master
|
60
|
+
[fork]: https://help.github.com/articles/fork-a-repo/
|
61
|
+
[branch]: https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/
|
62
|
+
[pr]: https://help.github.com/articles/using-pull-requests/
|
63
|
+
|
64
|
+
Inspired by https://github.com/middleman/middleman-heroku/blob/master/CONTRIBUTING.md
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
velveteen (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
diff-lcs (1.3)
|
10
|
+
rake (12.3.3)
|
11
|
+
rspec (3.9.0)
|
12
|
+
rspec-core (~> 3.9.0)
|
13
|
+
rspec-expectations (~> 3.9.0)
|
14
|
+
rspec-mocks (~> 3.9.0)
|
15
|
+
rspec-core (3.9.1)
|
16
|
+
rspec-support (~> 3.9.1)
|
17
|
+
rspec-expectations (3.9.0)
|
18
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
+
rspec-support (~> 3.9.0)
|
20
|
+
rspec-mocks (3.9.1)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.9.0)
|
23
|
+
rspec-support (3.9.2)
|
24
|
+
|
25
|
+
PLATFORMS
|
26
|
+
ruby
|
27
|
+
|
28
|
+
DEPENDENCIES
|
29
|
+
rake (~> 12.0)
|
30
|
+
rspec (~> 3.0)
|
31
|
+
velveteen!
|
32
|
+
|
33
|
+
BUNDLED WITH
|
34
|
+
2.1.4
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 thoughtbot, inc.
|
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,52 @@
|
|
1
|
+
# Velveteen
|
2
|
+
|
3
|
+
🚧 A work in-progress 🚧
|
4
|
+
|
5
|
+
Transform your background jobs into a real data pipeline with Velveteen.
|
6
|
+
|
7
|
+
## Install
|
8
|
+
|
9
|
+
Add the following line to Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem "velveteen"
|
13
|
+
```
|
14
|
+
|
15
|
+
and run `bundle install` from your shell.
|
16
|
+
|
17
|
+
To install the gem manually from your shell, run:
|
18
|
+
|
19
|
+
```shell
|
20
|
+
gem install velveteen
|
21
|
+
```
|
22
|
+
|
23
|
+
## Supported Ruby versions
|
24
|
+
|
25
|
+
TODO: Figure this out
|
26
|
+
|
27
|
+
## Contributing
|
28
|
+
|
29
|
+
Please see [CONTRIBUTING.md](CONTRIBUTING.md).
|
30
|
+
|
31
|
+
## License
|
32
|
+
|
33
|
+
Velveteen is Copyright © 2020 thoughtbot. It is free software, and may be
|
34
|
+
redistributed under the terms specified in the [LICENSE] file.
|
35
|
+
|
36
|
+
[LICENSE]: LICENSE
|
37
|
+
|
38
|
+
|
39
|
+
About thoughtbot
|
40
|
+
----------------
|
41
|
+
|
42
|
+
![thoughtbot](https://thoughtbot.com/brand_assets/93:44.svg)
|
43
|
+
|
44
|
+
Velveteen is maintained and funded by thoughtbot, inc.
|
45
|
+
The names and logos for thoughtbot are trademarks of thoughtbot, inc.
|
46
|
+
|
47
|
+
We love open source software!
|
48
|
+
See [our other projects][community] or
|
49
|
+
[hire us][hire] to design, develop, and grow your product.
|
50
|
+
|
51
|
+
[community]: https://thoughtbot.com/community?utm_source=github
|
52
|
+
[hire]: https://thoughtbot.com/hire-us?utm_source=github
|
data/Rakefile
ADDED
data/TODO.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
TODO:
|
2
|
+
|
3
|
+
* rate limiting
|
4
|
+
* error handling, exponential backoff
|
5
|
+
* message structure validation
|
6
|
+
* connection failures
|
7
|
+
* forward rabbit metadata to produced messages
|
8
|
+
* environments - e.g. debugging tools, dev console output/logging, test helpers
|
9
|
+
* support for tracing tools? (do those exist?)
|
10
|
+
* research options to Bunny classes/methods
|
11
|
+
* what Ruby versions to support?
|
12
|
+
* set up Travis
|
13
|
+
|
14
|
+
Concerns:
|
15
|
+
|
16
|
+
* procfile entry per worker might encourage doing too much in the workers
|
17
|
+
* include ideas in the readme for how to Do More
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "velveteen"
|
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__)
|
data/bin/setup
ADDED
data/lib/velveteen.rb
ADDED
data/velveteen.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require_relative 'lib/velveteen/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "velveteen"
|
5
|
+
spec.version = Velveteen::VERSION
|
6
|
+
spec.authors = ["Chris Thorn", "May Miller-Ricci"]
|
7
|
+
spec.email = ["thorn@thoughtbot.com", "may@thoughtbot.com"]
|
8
|
+
|
9
|
+
spec.summary = "Transform your background jobs into a real data pipeline with Velveteen."
|
10
|
+
spec.description = "Velveteen provides a lightweight, opinionated framework for setting up a RabbitMQ data pipeline in Ruby."
|
11
|
+
spec.homepage = "https://github.com/thoughtbot/velveteen"
|
12
|
+
spec.license = "MIT"
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
14
|
+
|
15
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
16
|
+
|
17
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
18
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
|
+
end
|
20
|
+
spec.bindir = "bin"
|
21
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: velveteen
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Chris Thorn
|
8
|
+
- May Miller-Ricci
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2020-02-12 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: Velveteen provides a lightweight, opinionated framework for setting up
|
15
|
+
a RabbitMQ data pipeline in Ruby.
|
16
|
+
email:
|
17
|
+
- thorn@thoughtbot.com
|
18
|
+
- may@thoughtbot.com
|
19
|
+
executables:
|
20
|
+
- console
|
21
|
+
- setup
|
22
|
+
extensions: []
|
23
|
+
extra_rdoc_files: []
|
24
|
+
files:
|
25
|
+
- ".gitignore"
|
26
|
+
- ".rspec"
|
27
|
+
- ".travis.yml"
|
28
|
+
- CODE_OF_CONDUCT.md
|
29
|
+
- CONTRIBUTING.md
|
30
|
+
- Gemfile
|
31
|
+
- Gemfile.lock
|
32
|
+
- LICENSE
|
33
|
+
- README.md
|
34
|
+
- Rakefile
|
35
|
+
- TODO.md
|
36
|
+
- bin/console
|
37
|
+
- bin/setup
|
38
|
+
- lib/velveteen.rb
|
39
|
+
- lib/velveteen/version.rb
|
40
|
+
- velveteen.gemspec
|
41
|
+
homepage: https://github.com/thoughtbot/velveteen
|
42
|
+
licenses:
|
43
|
+
- MIT
|
44
|
+
metadata:
|
45
|
+
homepage_uri: https://github.com/thoughtbot/velveteen
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options: []
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.3.0
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
requirements: []
|
61
|
+
rubygems_version: 3.1.2
|
62
|
+
signing_key:
|
63
|
+
specification_version: 4
|
64
|
+
summary: Transform your background jobs into a real data pipeline with Velveteen.
|
65
|
+
test_files: []
|