Comments (5)
@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.
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.
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.
v1.0.3 is what you're lookin' for.
from tinplate.
Thanks for the quick fix!
from tinplate.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinplate.