GithubHelp home page GithubHelp logo

Comments (10)

johnhamelink avatar johnhamelink commented on May 29, 2024

Hey @thedebugger thanks for this! I will look into it on the weekend and see why the tests aren't failing before we try and fix this.

from diplomat.

johnhamelink avatar johnhamelink commented on May 29, 2024

@thedebugger it's strange that I'm not getting any error when I'm running the specs, and both the code and the specs use openstruct quite regularly.

I also tried querying for a service from irb:

    consul agent -bootstrap -server -data-dir=/tmp
    irb
    require_relative 'lib/diplomat.rb'
    Diplomat::Service.get 'consul'
    => #<OpenStruct Node="Johns-MacBook-Pro-3.local", Address="10.133.10.100", ServiceID="consul", ServiceName="consul", ServiceTags=[], ServicePort=8300>

from diplomat.

thedebugger avatar thedebugger commented on May 29, 2024

@johnhamelink, rspecs works fine. And, what gems did you load in 'irb'? I think you will be able to replicate the problem when the application (and it dependencies) doesn't require 'ostruct'. To workaround, I added require 'ostruct' in my application and calls work fine then.

from diplomat.

johnhamelink avatar johnhamelink commented on May 29, 2024

@thedebugger other than cd'ing into the diplomat source, I'm not doing anything other than what I described in the comment above... I will explicitly include ostruct if this solves your issue, but I'm still not 100% on why its not happening for anyone else...

from diplomat.

thedebugger avatar thedebugger commented on May 29, 2024

hmm..let me see if I can replicate it.

from diplomat.

johnhamelink avatar johnhamelink commented on May 29, 2024

Thanks @thedebugger :)

from diplomat.

johnhamelink avatar johnhamelink commented on May 29, 2024

How did you get on @thedebugger ?

from diplomat.

thedebugger avatar thedebugger commented on May 29, 2024

Didn't get a chance to reproduce it, yet.


Sent from Mailbox

On Thu, May 7, 2015 at 9:23 PM, John Hamelink [email protected]
wrote:

How did you get on @thedebugger ?

Reply to this email directly or view it on GitHub:
#26 (comment)

from diplomat.

johnhamelink avatar johnhamelink commented on May 29, 2024

Cool, let us know when you get round to it 👍

from diplomat.

johnhamelink avatar johnhamelink commented on May 29, 2024

@thedebugger I'm going to close this issue for now until you can get back to us! Thanks 😄

from diplomat.

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.