{"id":18605361,"url":"https://github.com/fny/csv_importable","last_synced_at":"2025-05-17T09:41:30.383Z","repository":{"id":16504383,"uuid":"19257292","full_name":"fny/csv_importable","owner":"fny","description":null,"archived":false,"fork":false,"pushed_at":"2014-07-29T03:46:31.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T00:02:22.778Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-28T23:22:07.000Z","updated_at":"2014-07-29T03:45:45.000Z","dependencies_parsed_at":"2022-08-25T15:02:39.591Z","dependency_job_id":null,"html_url":"https://github.com/fny/csv_importable","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fcsv_importable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fcsv_importable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fcsv_importable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fny%2Fcsv_importable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fny","download_url":"https://codeload.github.com/fny/csv_importable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254595073,"owners_count":22097477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T02:21:07.933Z","updated_at":"2025-05-17T09:41:30.318Z","avatar_url":"https://github.com/fny.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CsvImportable\n\nImport CSVs with ActiveModel goodness.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'csv_importable'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install csv_importable\n\n## Usage\n\n```ruby\nclass Student \u003c ActiveRecord::Base\n  include CsvImportable\nend\n\nStudent.import_csv('filename') # Defaults to using a transaction\nStudent.import_csv('filename', transaction: false) # Much slower\n\nrequire 'active-import'\nStudent.import_csv('filename') # Uses ActiveImport by default if you're using it\n\ncsv_import = Student.import_csv('path/to/file')\ncsv_import.errors # =\u003e Gives you an ActiveModel::Errors object\n\n# You can also create play with your own imports without saving:\nimport = CsvImportable::CsvImport.new(Student, 'path/to/file')\nimport.valid? # =\u003e true\nimport.executed? # =\u003e false\nimport.save # =\u003e true\n\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffny%2Fcsv_importable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffny%2Fcsv_importable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffny%2Fcsv_importable/lists"}