Sha256: 4453264f772be16a86aa7ed391bbeb949e9f19f7629e0d54c0cf16aac3183232

Contents?: true

Size: 391 Bytes

Versions: 19

Compression:

Stored size: 391 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift(File.expand_path('../../lib', __FILE__))
%w{embedly embedly/command_line json optparse ostruct}.each {|l| require l}

api = Embedly::CommandLine.run!(:objectify, ARGV)

begin
  data = api.flatten.collect { |o| o.marshal_dump }
  puts JSON.pretty_generate(data)
rescue Embedly::BadResponseException => e
  puts "#{e.response.code} :: #{e.response.message}"
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
embedly-1.9.1 bin/embedly_objectify
embedly-1.9.0 bin/embedly_objectify
embedly-1.8.0 bin/embedly_objectify
embedly-1.7.1 bin/embedly_objectify
embedly-1.7.0 bin/embedly_objectify
embedly-1.6.0 bin/embedly_objectify
embedly-1.5.6 bin/embedly_objectify
embedly-1.5.5 bin/embedly_objectify
embedly-1.5.4 bin/embedly_objectify
embedly-1.5.3 bin/embedly_objectify
embedly-1.5.2 bin/embedly_objectify
embedly-1.5.1 bin/embedly_objectify
embedly-1.5.0 bin/embedly_objectify
embedly-1.4.1 bin/embedly_objectify
embedly-1.4.0 bin/embedly_objectify
anideo-embedly-1.3.0 bin/embedly_objectify
embedly-1.3.0 bin/embedly_objectify
embedly-1.2.0 bin/embedly_objectify
embedly-1.1.0 bin/embedly_objectify