Skip to content

Commit a4c68b0

Browse files
committed
initial commit
0 parents  commit a4c68b0

21 files changed

Lines changed: 1407 additions & 0 deletions

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
*.gem
2+
/.config
3+
/tmp/
4+
5+
# Used by dotenv library to load environment variables.
6+
.env
7+
.rvmrc
8+
9+
# Because macs
10+
.DS_Store
11+
12+
#RSpec
13+
spec/examples.txt

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--require spec_helper

.rubocop.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
require: 'rubocop-rspec'
2+
3+
AllCops:
4+
TargetRubyVersion: 2.3
5+
6+
Layout/SpaceInsideHashLiteralBraces:
7+
EnforcedStyle: no_space
8+
9+
Metrics/LineLength:
10+
Max: 120
11+
IgnoredPatterns: ['#.*']
12+
Metrics/MethodLength:
13+
Max: 25
14+
15+
Style/Documentation:
16+
Enabled: false
17+
Style/FrozenStringLiteralComment:
18+
Enabled: false
19+
Style/PercentLiteralDelimiters:
20+
PreferredDelimiters:
21+
default: '()' # covers `%q`, `%Q`, `%s`, and `%x`
22+
'%r': '{}'
23+
'%w': '[]'
24+
'%W': '[]'
25+
'%i': '[]'
26+
'%I': '[]'

Gemfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
source 'https://rubygems.org'
2+
3+
group :development, :test do
4+
gem 'guard', '~> 2.14'
5+
gem 'guard-rspec', '~> 4.7'
6+
gem 'guard-rubocop', '~> 1.3'
7+
gem 'pry-byebug', '~> 3.6'
8+
gem 'rspec', '~> 3.7'
9+
gem 'rubocop', '~> 0.58'
10+
gem 'rubocop-rspec', '~> 1.27'
11+
end
12+
13+
gemspec

Gemfile.lock

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
PATH
2+
remote: .
3+
specs:
4+
cacheable (1.0.0)
5+
6+
GEM
7+
remote: https://rubygems.org/
8+
specs:
9+
ast (2.4.0)
10+
byebug (10.0.2)
11+
coderay (1.1.2)
12+
diff-lcs (1.3)
13+
ffi (1.9.25)
14+
formatador (0.2.5)
15+
guard (2.14.2)
16+
formatador (>= 0.2.4)
17+
listen (>= 2.7, < 4.0)
18+
lumberjack (>= 1.0.12, < 2.0)
19+
nenv (~> 0.1)
20+
notiffany (~> 0.0)
21+
pry (>= 0.9.12)
22+
shellany (~> 0.0)
23+
thor (>= 0.18.1)
24+
guard-compat (1.2.1)
25+
guard-rspec (4.7.3)
26+
guard (~> 2.1)
27+
guard-compat (~> 1.1)
28+
rspec (>= 2.99.0, < 4.0)
29+
guard-rubocop (1.3.0)
30+
guard (~> 2.0)
31+
rubocop (~> 0.20)
32+
jaro_winkler (1.5.1)
33+
listen (3.1.5)
34+
rb-fsevent (~> 0.9, >= 0.9.4)
35+
rb-inotify (~> 0.9, >= 0.9.7)
36+
ruby_dep (~> 1.2)
37+
lumberjack (1.0.13)
38+
method_source (0.9.0)
39+
nenv (0.3.0)
40+
notiffany (0.1.1)
41+
nenv (~> 0.1)
42+
shellany (~> 0.0)
43+
parallel (1.12.1)
44+
parser (2.5.1.2)
45+
ast (~> 2.4.0)
46+
powerpack (0.1.2)
47+
pry (0.11.3)
48+
coderay (~> 1.1.0)
49+
method_source (~> 0.9.0)
50+
pry-byebug (3.6.0)
51+
byebug (~> 10.0)
52+
pry (~> 0.10)
53+
rainbow (3.0.0)
54+
rb-fsevent (0.10.3)
55+
rb-inotify (0.9.10)
56+
ffi (>= 0.5.0, < 2)
57+
rspec (3.7.0)
58+
rspec-core (~> 3.7.0)
59+
rspec-expectations (~> 3.7.0)
60+
rspec-mocks (~> 3.7.0)
61+
rspec-core (3.7.1)
62+
rspec-support (~> 3.7.0)
63+
rspec-expectations (3.7.0)
64+
diff-lcs (>= 1.2.0, < 2.0)
65+
rspec-support (~> 3.7.0)
66+
rspec-mocks (3.7.0)
67+
diff-lcs (>= 1.2.0, < 2.0)
68+
rspec-support (~> 3.7.0)
69+
rspec-support (3.7.1)
70+
rubocop (0.58.2)
71+
jaro_winkler (~> 1.5.1)
72+
parallel (~> 1.10)
73+
parser (>= 2.5, != 2.5.1.1)
74+
powerpack (~> 0.1)
75+
rainbow (>= 2.2.2, < 4.0)
76+
ruby-progressbar (~> 1.7)
77+
unicode-display_width (~> 1.0, >= 1.0.1)
78+
rubocop-rspec (1.27.0)
79+
rubocop (>= 0.56.0)
80+
ruby-progressbar (1.9.0)
81+
ruby_dep (1.5.0)
82+
shellany (0.0.1)
83+
thor (0.20.0)
84+
unicode-display_width (1.4.0)
85+
86+
PLATFORMS
87+
ruby
88+
89+
DEPENDENCIES
90+
cacheable!
91+
guard (~> 2.14)
92+
guard-rspec (~> 4.7)
93+
guard-rubocop (~> 1.3)
94+
pry-byebug (~> 3.6)
95+
rspec (~> 3.7)
96+
rubocop (~> 0.58)
97+
rubocop-rspec (~> 1.27)
98+
99+
BUNDLED WITH
100+
1.16.3

Guardfile

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# frozen_string_literal: true
2+
3+
# A sample Guardfile
4+
# More info at https://github.com/guard/guard#readme
5+
6+
## Uncomment and set this to only include directories you want to watch
7+
# directories %w(app lib config test spec features) \
8+
# .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
9+
10+
## Note: if you are using the `directories` clause above and you are not
11+
## watching the project directory ('.'), then you will want to move
12+
## the Guardfile to a watched dir and symlink it back, e.g.
13+
#
14+
# $ mkdir config
15+
# $ mv Guardfile config/
16+
# $ ln -s config/Guardfile .
17+
#
18+
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
19+
20+
# Note: The cmd option is now required due to the increasing number of ways
21+
# rspec may be run, below are examples of the most common uses.
22+
# * bundler: 'bundle exec rspec'
23+
# * bundler binstubs: 'bin/rspec'
24+
# * spring: 'bin/rspec' (This will use spring if running and you have
25+
# installed the spring binstubs per the docs)
26+
# * zeus: 'zeus rspec' (requires the server to be started separately)
27+
# * 'just' rspec: 'rspec'
28+
29+
guard :rspec, cmd: 'bundle exec rspec' do
30+
require 'guard/rspec/dsl'
31+
dsl = Guard::RSpec::Dsl.new(self)
32+
33+
# Feel free to open issues for suggestions and improvements
34+
35+
# RSpec files
36+
rspec = dsl.rspec
37+
watch(rspec.spec_helper) { rspec.spec_dir }
38+
watch(rspec.spec_support) { rspec.spec_dir }
39+
watch(rspec.spec_files)
40+
41+
# Ruby files
42+
ruby = dsl.ruby
43+
dsl.watch_spec_files_for(ruby.lib_files)
44+
end
45+
46+
guard :rubocop, cli: '-RD' do
47+
watch(/.+\.rb$/)
48+
watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) }
49+
end

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Splitwise
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 all
13+
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 THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)