Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/add delete method #982

Open
wants to merge 92 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
cda41e9
Create class files and test files
bensjsilverstein Jun 1, 2022
bf2cfdd
Merge pull request #1 from Ethan-t-n/main
Ethan-t-n Jun 1, 2022
33c3324
Inital commit
sdecesari Jun 1, 2022
029b0c8
Merge branch 'master' of github.com:Ethan-t-n/black_thursday
sdecesari Jun 1, 2022
e7a402d
initial commit
Ethan-t-n Jun 1, 2022
74c7434
test 2
Ethan-t-n Jun 1, 2022
2e49e40
Feat - Add 'exists' test
bensjsilverstein Jun 1, 2022
60132a6
Feat - Create Merchant class
bensjsilverstein Jun 1, 2022
29adaf8
Feat - Add id and name test
bensjsilverstein Jun 1, 2022
071c6a1
Feat - Add id and name methods
bensjsilverstein Jun 1, 2022
6a18dd7
Feat - Add 'exists' test
bensjsilverstein Jun 1, 2022
3add087
Feat - Add MerchantRepository class
bensjsilverstein Jun 1, 2022
e7b7710
Feat - Add test for 'all' method
bensjsilverstein Jun 1, 2022
78f3104
Feat - Add 'all' method
bensjsilverstein Jun 1, 2022
b4e493e
Fix -
bensjsilverstein Jun 1, 2022
05198a5
Feat - Add 'find_by_id' test
bensjsilverstein Jun 1, 2022
cc806c1
Fix -
bensjsilverstein Jun 1, 2022
8bd70d5
Feat - Add 'find_by_name' test
bensjsilverstein Jun 1, 2022
92684cc
Feat - Add 'find_by_name' method
bensjsilverstein Jun 1, 2022
2a8c97f
Feat - Add 'find_all_by_name' test
bensjsilverstein Jun 1, 2022
b9677a6
Feat - Add 'find_all_by_name' method
bensjsilverstein Jun 1, 2022
6250075
Feat - Add 'create' test
bensjsilverstein Jun 1, 2022
4850cad
Fix - remove 'create' from expect statements
bensjsilverstein Jun 2, 2022
82ee722
Fix - adjust 'create' test spacing
bensjsilverstein Jun 2, 2022
ebf0b70
Feat - Add MerchantRepository 'update' test
bensjsilverstein Jun 2, 2022
d0df47c
Feat - Add MerchantRepository 'update' method
bensjsilverstein Jun 2, 2022
848f221
Fix - Adjust expect statement (remove .all)
bensjsilverstein Jun 2, 2022
f88d7b7
Merge pull request #2 from Ethan-t-n/merchant_test_bjs
Ethan-t-n Jun 2, 2022
ebb0cb4
Merge branch 'master' of github.com:Ethan-t-n/black_thursday
Ethan-t-n Jun 2, 2022
79a0df2
Feat - Add MerchantRepository 'delete' test
bensjsilverstein Jun 2, 2022
47c9135
Feat - Add MerchantRepositroy 'delete' method
bensjsilverstein Jun 2, 2022
19fcdef
Merge pull request #3 from Ethan-t-n/add_merchantrepo_methods_and_tes…
sdecesari Jun 2, 2022
4e16cba
Merge branch 'master' of github.com:Ethan-t-n/black_thursday
Ethan-t-n Jun 2, 2022
ce83b14
add test for item
Ethan-t-n Jun 2, 2022
34a1d73
add class for items
Ethan-t-n Jun 2, 2022
cad6c3d
add unit_price_to_dollars
Ethan-t-n Jun 2, 2022
9830779
add_price_to_dollar
Ethan-t-n Jun 2, 2022
3ac8f34
add item repository initial test
Ethan-t-n Jun 2, 2022
5cf51a2
add class and inital spec test for item repository
Ethan-t-n Jun 2, 2022
044cf02
add .all method and .all test
Ethan-t-n Jun 2, 2022
1fabddf
add can find id
Ethan-t-n Jun 2, 2022
486b0a8
refactor merchant repository
Ethan-t-n Jun 2, 2022
978bddd
add test for find by id and find by name
Ethan-t-n Jun 2, 2022
42c3864
add test for find_all_with_description
Ethan-t-n Jun 2, 2022
77fc04f
add test for find item by price
Ethan-t-n Jun 2, 2022
94644c0
refactor finds item by price
Ethan-t-n Jun 2, 2022
a28d33d
add test for find by merchant id
Ethan-t-n Jun 2, 2022
9ee2ab3
add test for create attributes
Ethan-t-n Jun 2, 2022
f3ae5ea
refactor merchant repository and add add method for item repo
Ethan-t-n Jun 2, 2022
4af5e6a
add test for update
Ethan-t-n Jun 2, 2022
3f388a9
add test for time in update test
Ethan-t-n Jun 2, 2022
73ae959
fix name for update test
Ethan-t-n Jun 2, 2022
d545a25
add test for delete
Ethan-t-n Jun 2, 2022
914cd6f
add method for delete
Ethan-t-n Jun 2, 2022
ad35682
Merge pull request #4 from Ethan-t-n/add_item_tests_methods_en
brycesimonds Jun 3, 2022
cf4dd71
Coverage file
sdecesari Jun 3, 2022
449dfb7
File coverage
sdecesari Jun 3, 2022
911b3db
Test: Added it exists test
brycesimonds Jun 3, 2022
a1a5fbb
Test: Added require CSV
brycesimonds Jun 3, 2022
f3c147a
Feat: SalesEngine does exit
brycesimonds Jun 3, 2022
ace4221
Test: can return an array of all items
brycesimonds Jun 3, 2022
695d9fb
Test: can return an array of all merchants
brycesimonds Jun 3, 2022
f0adf87
Merge pull request #5 from Ethan-t-n/feat/add_sales_engine_and_tests
sdecesari Jun 3, 2022
6fb7fbb
Merge branch 'master' of github.com:Ethan-t-n/black_thursday
sdecesari Jun 3, 2022
ce2eaa5
Simplecov update
sdecesari Jun 3, 2022
e5d0742
Merge pull request #6 from Ethan-t-n/feat/simplecov-sd
bensjsilverstein Jun 3, 2022
3ba7a90
Add exists test
sdecesari Jun 3, 2022
a0cbb4c
Add analyst method
sdecesari Jun 3, 2022
2a7f70d
Add non-working initialize
sdecesari Jun 3, 2022
3065773
Merge pull request #7 from Ethan-t-n/feat/iteration1-sd
Ethan-t-n Jun 3, 2022
2c1c2c1
Add 'entry.rb' file to track require statements for class files
bensjsilverstein Jun 3, 2022
5728d09
Fix - spacing adjusted
bensjsilverstein Jun 3, 2022
4428c3b
Test - add 'exists' and 'average_items' test for SalesAnalyst
bensjsilverstein Jun 3, 2022
e60ad0b
Feat - add 'average_items_per_merchant' method
bensjsilverstein Jun 3, 2022
7931d9b
Fix - Adjust require statement, adjust SalesAnalys argument
bensjsilverstein Jun 3, 2022
9813775
add initial test and code for invoice repo
Ethan-t-n Jun 4, 2022
933436e
add initial test for invoice
Ethan-t-n Jun 4, 2022
dd0d0f6
add invoice class
Ethan-t-n Jun 4, 2022
1e022e3
fix require
Ethan-t-n Jun 6, 2022
a212f10
add test for returning array and find by id
Ethan-t-n Jun 6, 2022
a9adbb0
add find_by_id method
Ethan-t-n Jun 6, 2022
c542793
add test for find all by customer id
Ethan-t-n Jun 6, 2022
5632c92
add test for find all by merchant id
Ethan-t-n Jun 6, 2022
ac6ec20
add method for find all by merchant id an refactor test
Ethan-t-n Jun 6, 2022
f13eb14
add test for find all by status
Ethan-t-n Jun 6, 2022
a07ea4e
add method for find all by status
Ethan-t-n Jun 6, 2022
00f57a8
add initial test for create
Ethan-t-n Jun 6, 2022
914cfae
add method for create
Ethan-t-n Jun 6, 2022
f2c31c0
add test for update
Ethan-t-n Jun 6, 2022
ce21731
add method for update and refactor tests
Ethan-t-n Jun 6, 2022
16432fa
add delete test for invoice repo
Ethan-t-n Jun 6, 2022
9bea140
add delete method
Ethan-t-n Jun 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
gem 'simplecov', require: false, group: :test
source 'https://rubygems.org'

gem 'cane'
Expand Down
66 changes: 66 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
cane (3.0.0)
parallel
diff-lcs (1.5.0)
docile (1.4.0)
kwalify (0.7.2)
parallel (1.22.1)
parser (3.1.2.0)
ast (~> 2.4.1)
rainbow (3.1.1)
rake (13.0.6)
reek (6.1.1)
kwalify (~> 0.7.0)
parser (~> 3.1.0)
rainbow (>= 2.0, < 4.0)
rspec (3.11.0)
rspec-core (~> 3.11.0)
rspec-expectations (~> 3.11.0)
rspec-mocks (~> 3.11.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-support (3.11.0)
simplecov (0.21.2)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)

PLATFORMS
<<<<<<< HEAD
x86_64-darwin-21
=======
<<<<<<< HEAD
x86_64-darwin-21
=======
ruby
>>>>>>> bf2cfddce747bbe338c6a0aa8afcc9c6936b3f00
>>>>>>> 029b0c856a5eb0b5a21251223a7264044a54d449

DEPENDENCIES
cane
rake
reek
rspec
simplecov

BUNDLED WITH
<<<<<<< HEAD
2.3.13
=======
<<<<<<< HEAD
2.3.11
=======
2.1.4
>>>>>>> bf2cfddce747bbe338c6a0aa8afcc9c6936b3f00
>>>>>>> 029b0c856a5eb0b5a21251223a7264044a54d449
5 changes: 5 additions & 0 deletions coverage/.last_run.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"result": {
"line": 100.0
}
}
Loading