
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
rbKtoBlzCheck is a small Ruby extension for Linux (written in C) that provides an interface for libktoblzcheck, a library to check German account numbers and bank codes. See http://ktoblzcheck.sourceforge.net for details.
Just install the gem with the following command:
$ gem install ktoblzcheck
ruby extconf.rb fails with "Couldn't find header file..." or "Couldn't find link library..."
=> Make sure the ktoblzcheck library and header files are correctly installed.
=> Consult the file mkmf.log for details of build time checks
=> Hint: If you've build and installed the ktoblzcheck library from source, make sure
the install locations of the library files are listed in /etc/ld.so.conf and you've run
ldconfig
compile errors
Nothing to mention here: the code compiles without warning on Linux 2.6.7, glibc-2.3.2, gcc version 3.3.4 (Debian 1:3.3.4-7) with ruby 1.8.2 (2004-07-29) [i386-linux].
The ktoblzcheck package can be downloaded from http://ktoblzcheck.sourceforge.net/ as source distribution tar-ball or RPM.
Debian has a package named 'libktoblzcheck1-dev' available in testing and unstable, simply apt-get install it.
As I have no suitable non-Linux systems to mess around with, I have no idea whether this Ruby extension compiles and/or runs correctly on other platforms.
I guess, there should be no problems on BSDish systems. While the C-code should be quiet portable, I'm not sure if linking works correctly on Microsoft (R) Windows (R).
Comments on problems with OSes other than Linux are always welcome.
BSD-style, see LICENSE
This project is based on the work of Sascha Loetz (blog.cadego.de, info@cadego(dot)de).
require 'ktoblzcheck'
$bc="20030700" $an="0"
puts "Testing Bank Code: #{$bc} / Account No. #{$an}"
For more code examples refer to the rbkbc program and the test-*.rb files provided with this distribution.
Constructs a new KtoBlzCheck object, returns it or passes it to an optional code block. If no block is provided, the user must call KtoBlzCheck#close to ensure that all resources are freed after usage.
If a parameter is passed to new it is interpreted as the path to the data file to be used by libktoblzcheck. When the parameter is omitted, the default file of libktoblzcheck is used (usually /usr/[local/]share/[lib]ktoblzcheck[*]/bankdata.txt).
Checks if bank_code and account_no form a valid combination. The returned Fixnum indicates the result. The following constants can be used test the result:
KtoBlzCheck::OK -> valid combination of bank code and account number KtoBlzCheck::ERROR -> !OK KtoBlzCheck::UNKNOWN -> no verification possible for unknown reason KtoBlzCheck::BANK_NOT_KNOWN -> bank code not known
Looks up bank name and bank location (city) for the bank identified by bank_code.
FAQs
Unknown package
We found that rbktoblzcheck demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.