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
# encoding=UTF-8 | |
require 'rubygems' | |
require 'faraday' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'yaml' | |
require 'ostruct' | |
# rake task to |
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
#!/usr/bin/env ruby | |
# Details refer to the blog post http://www.zingtech.co.nz/blog/spree_ck_editor_pages | |
require 'rubygems' | |
require 'faraday' | |
$base_url = 'http://0.0.0.0:4000' | |
puts "Enter ID that you want to test removal? " | |
id = gets.chomp | |
@conn = Faraday.new(:url => $base_url) do |faraday| | |
faraday.response :logger # log requests to STDOUT | |
faraday.request :url_encoded # form-encode POST params |