examples_sem4r/example_helper.rb in sem4r-0.1.1 vs examples_sem4r/example_helper.rb in sem4r-0.1.2
- old
+ new
@@ -21,17 +21,13 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# -------------------------------------------------------------------
require 'rubygems'
-begin
- require 'sem4r'
-rescue LoadError
- cwd = File.expand_path( File.join( File.dirname(__FILE__), "..", "lib" ) )
- $:.unshift(cwd) unless $:.include?(cwd)
- require 'sem4r'
-end
+cwd = File.expand_path( File.join( File.dirname(__FILE__), "..", "lib" ) )
+$:.unshift(cwd) unless $:.include?(cwd)
+require 'sem4r'
include Sem4r
def tmp_dirname
d = File.join( File.dirname(__FILE__), "..", "tmp" )
return d if File.directory?(d)
@@ -92,12 +88,12 @@
# }
# adwords = Adwords.sandbox(config)
adwords = Adwords.sandbox # search credentials into ~/.sem4r file
adwords.dump_soap_options( example_soap_dump_options(file) )
- adwords.logger = Logger.new(STDOUT)
- # adwords.logger = example_logger(file)
+ # adwords.logger = Logger.new(STDOUT)
+ adwords.logger = example_logger(file)
#
# example body
#
@@ -110,6 +106,5 @@
end
puts "---------------------------------------------------------------------"
end
-