This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundle exec rake gb:isbn RAILS_ENV='gardners_staging' | |
updating isbn data | |
rake aborted! | |
undefined method `id' for nil:NilClass | |
/var/www/Konga-Staging/releases/20130502095740/lib/spree_gardners_books/lib/tasks/gb.rake:304:in `block (2 levels) in <top (required)>' | |
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `call' | |
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute' | |
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `each' | |
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute' | |
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
updated product: | |
#<Spree::Product id: nil, name: "He Bear She Bear", description: nil, available_on: nil, deleted_at: nil, permalink: nil, meta_description: "He Bear She Bear", meta_keywords: "He Bear She Bear", tax_category_id: nil, shipping_category_id: nil, created_at: nil, updated_at: nil, count_on_hand: 0, featured: false, taxon_keywords: nil, status: true, delta: true, install: false, heavy_item: false, approved_reviews_count: 0, store_id: nil, from_gardners: true, sync_gardners: true, is_dropship: true, bin_location: nil, row: nil, shelf: nil, column: nil, bin: nil> | |
rake aborted! | |
Mysql2::Error: Duplicate entry '646-630' for key 'PRIMARY': INSERT INTO `spree_products_taxons` (`product_id`, `taxon_id`) VALUES (646, 630) | |
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query' | |
/var/www/Konga-Staging/shared/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule PingPong do | |
import :timer | |
@timer 500 | |
def ping(x) do | |
receive do | |
{pong_pid, n} when n <= x -> IO.puts ("Ping #{n}") | |
send pong_pid, { self, (n) } | |
sleep @timer | |
ping(x) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Power do | |
defmacro raise_n(x) do | |
method_name = :"raise_#{x}" | |
quote do | |
def unquote(method_name)(val) do | |
:math.pow(val, unquote(x) ) | |
end | |
end | |
end | |
end |
OlderNewer