Coder Social home page Coder Social logo

Comments (3)

hanklords avatar hanklords commented on July 30, 2024

Flickraw is not usable if it does not fetch the methods. If you do not use it in your test environment, do not require it. (You may have a particulare use case)

I believe the logic for this should be outside the library:

if environment != 'TEST'
  require 'flickraw'
end

from flickraw.

hanklords avatar hanklords commented on July 30, 2024

If it doesn't fetch the methods in require 'flickraw', then the library is in an unifinished state, ie you can't use ruby introspection methods or flickraw's flickr_methods, flickr_objects, etc...
Additionally if the methods are fetched on first call, this first call has a different behavior than the following call, like longer delay and the modification of internal objects.

That said, I pushed some code and it is now easier to switch to this behavior, you can see f4b281d4479bbb49b3e1f1d16fd802aebd7ecf85.

You can fork the branch noload and activate github gem building option if you want a gem.

from flickraw.

hanklords avatar hanklords commented on July 30, 2024

I have added options support to flickraw. Now you can do that:

FlickrawOptions = {:lazyload => true}
require 'flickraw'

from flickraw.

Related Issues (20)

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.