Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Elixir/Unix style pipe operations in Ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
shuber committed Dec 9, 2018
0 parents commit f41799f
Show file tree
Hide file tree
Showing 18 changed files with 1,348 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
coverage
doc
pkg
rdoc
3 changes: 3 additions & 0 deletions .rspec
@@ -0,0 +1,3 @@
--color
--format progress
--require spec_helper
116 changes: 116 additions & 0 deletions .rubocop.yml
@@ -0,0 +1,116 @@
AllCops:
DisplayCopNames: true
TargetRubyVersion: 2.5
Exclude:
- "Rakefile"
- "tmp/**/*"

Gemspec/RequiredRubyVersion:
Enabled: false

Layout/AlignHash:
Exclude:
- "spec/**/*"

Layout/EmptyLineAfterGuardClause:
Enabled: false

Layout/SpaceBeforeBlockBraces:
Exclude:
- "spec/**/*"

Layout/SpaceInsideBlockBraces:
Exclude:
- "spec/**/*"

Metrics/AbcSize:
Enabled: false

Metrics/BlockLength:
Enabled: false

Metrics/CyclomaticComplexity:
Enabled: false

Metrics/LineLength:
Enabled: false

Metrics/MethodLength:
Enabled: false

Metrics/PerceivedComplexity:
Exclude:
- "lib/pipe_operator/proxy.rb"
- "lib/pipe_operator/proxy_resolver.rb"

Naming/MemoizedInstanceVariableName:
Exclude:
- "lib/pipe_operator/closure.rb"

Naming/UncommunicativeMethodParamName:
Enabled: false

Style/BlockDelimiters:
Exclude:
- "spec/**/*"

Style/CaseEquality:
Enabled: false

Style/Documentation:
Enabled: false

Style/DoubleNegation:
Enabled: false

Style/FormatString:
Enabled: false

Style/FormatStringToken:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: false

Style/GuardClause:
Enabled: false

Style/LambdaCall:
Exclude:
- "spec/**/*"

Style/MethodMissingSuper:
Exclude:
- "lib/pipe_operator/closure.rb"
- "lib/pipe_operator/pipe.rb"

Style/RedundantBegin:
Exclude:
- "lib/pipe_operator/proxy_resolver.rb"

Style/RescueModifier:
Exclude:
- "lib/pipe_operator/proxy_resolver.rb"

Style/MissingRespondToMissing:
Exclude:
- "lib/pipe_operator/closure.rb"
- "lib/pipe_operator/pipe.rb"

Style/Semicolon:
Exclude:
- "spec/**/*"

Style/SingleLineMethods:
Exclude:
- "spec/**/*"

Style/StringLiterals:
EnforcedStyle: double_quotes

Style/TrailingCommaInHashLiteral:
Exclude:
- "spec/**/*"

Style/WordArray:
Enabled: false
12 changes: 12 additions & 0 deletions Gemfile
@@ -0,0 +1,12 @@
source "https://www.rubygems.org"

gemspec

gem "codeclimate-test-reporter"
gem "fasterer"
gem "pry"
gem "pry-byebug"
gem "rake"
gem "rdoc"
gem "rspec"
gem "rubocop"
83 changes: 83 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,83 @@
PATH
remote: .
specs:
pipe_operator (0.0.1)

GEM
remote: https://www.rubygems.org/
specs:
ast (2.4.0)
byebug (10.0.2)
codeclimate-test-reporter (1.0.9)
simplecov (<= 0.13)
coderay (1.1.2)
colorize (0.8.1)
diff-lcs (1.3)
docile (1.1.5)
fasterer (0.4.1)
colorize (~> 0.7)
ruby_parser (~> 3.11.0)
jaro_winkler (1.5.1)
json (2.1.0)
method_source (0.9.2)
parallel (1.12.1)
parser (2.5.3.0)
ast (~> 2.4.0)
powerpack (0.1.2)
pry (0.12.2)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
pry-byebug (3.6.0)
byebug (~> 10.0)
pry (~> 0.10)
rainbow (3.0.0)
rake (12.3.1)
rdoc (6.0.4)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-core (3.8.0)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-mocks (3.8.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.0)
rubocop (0.60.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.5, != 2.5.1.1)
powerpack (~> 0.1)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.4.0)
ruby-progressbar (1.10.0)
ruby_parser (3.11.0)
sexp_processor (~> 4.9)
sexp_processor (4.11.0)
simplecov (0.13.0)
docile (~> 1.1.0)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
unicode-display_width (1.4.0)

PLATFORMS
ruby

DEPENDENCIES
codeclimate-test-reporter
fasterer
pipe_operator!
pry
pry-byebug
rake
rdoc
rspec
rubocop

BUNDLED WITH
1.17.1
20 changes: 20 additions & 0 deletions LICENSE
@@ -0,0 +1,20 @@
Copyright (c) 2018 LendingHome - engineering@lendinghome.com

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 comments on commit f41799f

Please sign in to comment.