kevintyll / ofac Goto Github PK
View Code? Open in Web Editor NEWTODO
License: MIT License
TODO
License: MIT License
Forgive me for my newbness.
I'm trying to use your OFAC gem (v 1.2.3) in rails 3. The README tells me to do scripts/generate ofac_migration which I've determined changed in rails 3 to something like rails generate ofac_migration. When I tried that rails reported "Could not find generator ofac_migration."
Is it possible to use this gem in rails 3? If you can toss me some quick commands I'll be glad to format that into a pull request for inclusion in the readme.
Thank you!
Hi Kevin,
Thank you for providing ofac gem for community. I have noticed issue with loading data into MySQL 5.0.27 on Windows. At the moment when I run ofac:update_data task it loads 11476 records into MySQL table. It is exactly half of records loaded into Postgre on heroku (22952 records). Is it known issue? Maybe it is related to some issues on my machine, I'm not sure.
Best regards, Alexander
After installing (v3.0.0), generating and running migrations, I get this when trying to update the data:
pry(main)> OfacSdnIndividualLoader.load_current_sdn_file
Not using mysql, will use active record to load data
Reloading OFAC sdn data
Downloading OFAC data from http://www.treas.gov/offices/enforcement/ofac/sdn
Trouble downloading file. The url may have changed.
Any ideas or suggestions are appreciated.
The CreateOfacSdnIndividuals
is not reversible as the change
method calls OfacSdnIndividualLoader.load_current_sdn_file
regardless of direction. This puts the database in an inconsistent state if you try and revert this migration.
LOAD DATA LOCAL
has security issues associated with it that are beyond the comfort scope of most Rails developers http://dev.mysql.com/doc/refman/5.7/en/load-data-local.html.
This was originally reported in #2 (comment) with this work around suggested afterward.
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.