semanticdreamer / mite-api-csv-import Goto Github PK
View Code? Open in Web Editor NEWImport time entries to mite. from CSV file.
Import time entries to mite. from CSV file.
I'm new to Ruby, so please bear with me.
When I try to import my CSV file, the first row imports successfully. On the second row (regardless of the content of that second row, import fails and generates the following errors in Terminal:
-------------------------------------------
mite. API CSV Import
-------------------------------------------
- import to account 'papercut'.
/Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/mite-rb-0.4.4/lib/mite/time_entry.rb:40:in `load': wrong number of arguments (2 for 1) (ArgumentError)
from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:1370:in `load_attributes_from_response'
from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:1362:in `block in create'
from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:1360:in `tap'
from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:1360:in `create'
from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/observing.rb:19:in `create_with_notifications'
from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:1155:in `save'
from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/validations.rb:79:in `save_with_validation'
from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/observing.rb:19:in `save_with_notifications'
from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:746:in `block in create'
from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:746:in `tap'
from /Users/shankie/.rvm/gems/ruby-1.9.2-p320/gems/activeresource-3.2.8/lib/active_resource/base.rb:746:in `create'
from importer.rb:90:in `block in <main>'
from /Users/shankie/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/csv.rb:1768:in `each'
from /Users/shankie/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/csv.rb:1202:in `block in foreach'
from /Users/shankie/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/csv.rb:1340:in `open'
from /Users/shankie/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/csv.rb:1201:in `foreach'
from importer.rb:40:in `<main>'
I'm not sure if this is a genuine issue or me being a newbie. Any thoughts, anyone? Thanks in advance
Mac OS X 10.8.2, Ruby 1.9.2
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.