ankane / barkick Goto Github PK
View Code? Open in Web Editor NEWBarcodes made easy
License: MIT License
Barcodes made easy
License: MIT License
Would something like https://www.scaleprogrammers.com/pdf/GS1%20Barcode%20Breakdown.pdf be something barkick can/should support?
Hi! Thanks for a very useful gem :)
Would you consider adding an #invalid?
method that returns the inverse of #valid?
, similarly to ActiveModel?
This would make things clearer in some cases:
- return nil if @isbn.blank? || !Barkick::GTIN.new(@isbn, type: :isbn13).valid?
+ return nil if @isbn.blank? || Barkick::GTIN.new(@isbn, type: :isbn13).invalid?
I can dedicate some time to a PR.
Let me know.
00985234 is a valid UPC-E barcode but the current GTIN library skips it because the 2nd digit is a 0.
Do you know why for the detection you ignored codes where the 2nd digit is a 0? I searched but couldn't find anything saying this was a valid way to differentiate the codes.
I'm happy to work on a fix, but would want to learn more about why the detection works the way it does today.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.