Code Monkey home page Code Monkey logo

Comments (5)

aaronklaassen avatar aaronklaassen commented on September 28, 2024

@tineyedev I'm having trouble replicating that problem - it's an easy addition, of course, but I'd like to figure out what's exactly going on. Can you give me an example?

And yeah that'd be great if you could add tinplate to your list.

from tinplate.

tineyedev avatar tineyedev commented on September 28, 2024

Yes, here's the script I ran based on your documentation:

require 'tinplate'

Tinplate.configure do |config|
  config.public_key  = ""
  config.private_key = ""
  config.test        = true
end

tineye = Tinplate::TinEye.new
results = tineye.search(image_url: "https://tineye.com/images/meloncat.jpg")

results.total_results    # => 2
results.total_backlinks  # => 3
results.matches          # => an Array of matched images (see below)

results.matches.each do |match|
    puts match
end

and the output:

$ ruby test_tinplate.rb
/home/dev/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/tinplate-1.0.2/lib/tinplate/request_authenticator.rb:10:in `initialize': uninitialized constant Tinplate::RequestAuthenticator::SecureRandom (NameError)

It works if I add require 'securerandom' and require 'uri' to the script, but I think those should be added to the library. Does Rails import those by default?

from tinplate.

aaronklaassen avatar aaronklaassen commented on September 28, 2024

Ah of course. Yeah I was running this either in Rails or via bundle console, in either case those libraries would be loaded. I'll get a fix out.

from tinplate.

aaronklaassen avatar aaronklaassen commented on September 28, 2024

v1.0.3 is what you're lookin' for.

from tinplate.

tineyedev avatar tineyedev commented on September 28, 2024

Thanks for the quick fix!

from tinplate.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.