-
Notifications
You must be signed in to change notification settings - Fork 72
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
fixing new elo cards #75
Conversation
@lucianosousa ,what are you trying to do ? |
@Fivell updating the rules for elo bins Elo card now have a lot of bins started with this value. Any suggestion about the code? |
@lucianosousa , you're trying to describe regexp in yaml file for bin, like
I think it can not be supported out of the box, regexp is builded by prefixes here 486329e |
@lucianosousa , also please take a look here https://github.com/Fivell/credit_card_validations/blob/master/lib/credit_card_validations/factory.rb#L23 This means that this gem should be able to generate valid elo number. Also think it expects no regexp in yaml file |
|
@Fivell take a look on my last commit. I already updated these things, just put bin code on yml again |
looks like |
@lucianosousa , it will not work for generating elo numbers |
So, this is the file they gave us:
|
@lucianosousa , see my comment above with example #75 (comment) |
|
@lucianosousa , I have no information that 65003 bin was moved to another brand |
@lucianosousa , however there is a discussion https://gist.github.com/erikhenrique/5931368 |
thanks for the links. I'll take a look on it here |
@Fivell in my list, there are more than 900 bins in ranges, and I really think my list is the most recent one. do you think it's a good idea put all these values at |
@lucianosousa , this is now only way to make work both validation and generation numbers. |
Number generation/validation is already working. the problem with generate numbers is that it will not create a number with the starts in the range, I got it and i'll try improve it |
@lucianosousa , please think about placing all bins to |
@Fivell even if there are plus than 1000 bins? |
@lucianosousa , yes, I think it is bad idea to place bins in both yaml file and ruby code. |
6c1370b
to
67b44f9
Compare
Changes Unknown when pulling 67b44f9 on lucianosousa:new-elo-cards into ** on Fivell:master**. |
Changes Unknown when pulling 67b44f9 on lucianosousa:new-elo-cards into ** on Fivell:master**. |
@Fivell done. also, I can merge all commits only in one if you want |
@lucianosousa , thanks for PR, good job! please squash commits to make it possible to review |
Gemfile.lock
Outdated
@@ -0,0 +1,56 @@ | |||
PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this file
.gitignore
Outdated
@@ -0,0 +1 @@ | |||
coverage/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this from PR please
lib/data/brands.yaml
Outdated
- '506699' | ||
- '5067' | ||
- '506700' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lucianosousa , also I want to ask to make one more improvement might be done
in such cases
' - 506700'
- '506701'
- '506702'
- '506703'
- '506704'
- '506705'
- '506706'
- '506707'
- '506708'
- '506709'
you can just put 1 string
' - 50670'
that will include all the range 50670(0..9)
e2e9c7b
to
4a81140
Compare
Changes Unknown when pulling e2e9c7b on lucianosousa:new-elo-cards into ** on Fivell:master**. |
1 similar comment
Changes Unknown when pulling e2e9c7b on lucianosousa:new-elo-cards into ** on Fivell:master**. |
Changes Unknown when pulling 4a81140 on lucianosousa:new-elo-cards into ** on Fivell:master**. |
done @Fivell |
@lucianosousa , please make optimisations to bins that you want to add. I haven't check all the list, but each bins range that ends in 0..9 can be short-cutted, see my comments above. |
4a81140
to
eadba17
Compare
@Fivell yes, find some data that could be improved |
Changes Unknown when pulling eadba17 on lucianosousa:new-elo-cards into ** on Fivell:master**. |
@lucianosousa , ping me when ready to merge 💳 |
@Fivell sorry, it's done |
@lucianosousa what about '509000'-'509009' |
506730-506739 = 50673 etc |
eadba17
to
04fa4b6
Compare
@Fivell updated. done |
Changes Unknown when pulling 04fa4b6 on lucianosousa:new-elo-cards into ** on Fivell:master**. |
@lucianosousa , thanks |
cheers, bro |
lib/data/brands.yaml
Outdated
- '506717' | ||
- '506718' | ||
- '506720' | ||
- '506721' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
506720
....
506729
can be replaced with single line 50672
lib/data/brands.yaml
Outdated
- '506727' | ||
- '506728' | ||
- '506729' | ||
- '506730' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
506730-506739 = 50673
lib/data/brands.yaml
Outdated
- '509006' | ||
- '509007' | ||
- '509008' | ||
- '509009' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
- '509000'
-
- '509001'
-
- '509002'
-
- '509004'
-
- '509005'
-
- '509006'
-
- '509007'
-
- '509008'
-
- '509009'
can be replaced with single 50900
lib/data/brands.yaml
Outdated
- '509040' | ||
- '509041' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- '509040'
+ - '509041'
- '509042' - '509042'
- '509043' - '509043'
+ - '509044'
- '509045' - '509045'
- '509046' - '509046'
- '509047' - '509047'
- '509048' - '509048'
- '509049' - '509049'
50904
lib/data/brands.yaml
Outdated
- '650046' | ||
- '650047' | ||
- '650048' | ||
- '650049' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
650040 ... 650049 => 65004
lib/data/brands.yaml
Outdated
- '650966' | ||
- '650967' | ||
- '650968' | ||
- '650969' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
650960-650969 => 65096
lib/data/brands.yaml
Outdated
- '650956' | ||
- '650957' | ||
- '650958' | ||
- '650959' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
650950 - 650959 => 65095
3.4.0 🚀 |
No description provided.