Open stevesparks opened 9 years ago
Oh geez, my bad. Fixing now.
:+1:
okay, pushed 0.1.2 that removes calls to blank?
I saw that. And then like an idiot I ran gem update
instead of gem update logan
. Going for a coffee, will let you know. >.<
Yep, nailed it!! Thanks!
Geez, now it tells me that empty?
is missing:
NoMethodError: undefined method `empty?' for #<Logan::Person:0x007fa466c4de18>
from /Users/barbecuesteve/.gem/ruby/2.1.1/gems/logan-0.1.2/lib/logan/todo.rb:22:in `post_json'
from /Users/barbecuesteve/.gem/ruby/2.1.1/gems/logan-0.1.2/lib/logan/todolist.rb:92:in `create_todo'
from maker.rb:126:in `copy_todo_to_list'
...
Taking a look - seems odd since I thought the whole point was that blank was rails specific but empty is not.
Oh, duh. Pushing a fix now
Okay - 0.1.3 is pushed that fixes this. Let me know if still busted!
this is back in 0.2.2, see line 25 of logan/todo.rb
My mistake, I looked again and saw that you didn't remove the call to blank in 2ebd2fb but just removed it from the default code path. Somehow my code just triggered it at line 25 though.
@bdunlap thanks for highlighting that - was reintroduced with a PR from a contributor.
I'll re-open to fix this.
great thanks!
@birarda any word on a fix for this?
I have some code that creates a Logan client, and inserts some todos. If I do not need Rails, then when I go to create my todo, I get the following:
I find that I can make this error go away by either requiring
rails
, or by simply adding that method from the source:Please address.