Giter Site home page Giter Site logo

Comments (18)

bethesque avatar bethesque commented on June 16, 2024

Are you on windows?

from pact-mock_service.

mboudreau avatar mboudreau commented on June 16, 2024

I'm not, but other developers are :)

On Wed Jan 07 2015 at 15:23:26 Beth Skurrie [email protected]
wrote:

Are you on windows?


Reply to this email directly or view it on GitHub
#8 (comment)
.

from pact-mock_service.

bethesque avatar bethesque commented on June 16, 2024

json is a dependency in my Gemfile.lock, can you check yours?

    json (1.8.1)
...
    pact-support (0.1.3)
      awesome_print (~> 1.1)
      find_a_port (~> 1.0.1)
      json
      rack-test (~> 0.6.2)
      randexp (~> 0.1.7)
      rspec (>= 2.14)
      term-ansicolor (~> 1.0)
      thor

My workmate mentioned that he'd had problems with JSON on windows, and needed the dev-kit. He was using windows to create a standalone ruby executable for pact, and gave me these instructions to create it:

https://github.com/bethesque/pact-mock_service/wiki/Building-a-Windows-standalone-executable

See if that helps? I've never done Ruby on windows, so I'd just be googling the problem.

from pact-mock_service.

mboudreau avatar mboudreau commented on June 16, 2024

I can see that dependency too, but I think the issue is that it's failing
silently if you don't have the dev kit installed on windows. Either way,
it's a bit confusing and we were scratching our heads as to why it wasn't
working. It would be nice to have windows specific directions in the
readme file or a link to it.

For our purposes, we couldn't get it running on windows using ruby 2.x
without instability. We also had to downgrade ruby gems to 2.0.3 to work
with native extensions, then had to install the dev kit manually to be able
to install json and get it working. Here's part of our README for our
project on how to get it up and running. Just for good measure, I added
the step of manually installing json so it doesn't silently fail.


You will also need to install Ruby 1.9.x ([windows install](
http://rubyinstaller.org/downloads/) with the appropriate Dev Kit (windows
only, on the same page as the ruby download) or `apt-get install
ruby1.9.3`) and [RubyGems](https://rubygems.org/pages/download).  After
Ruby has been installed, you must setup the DevKit; run the install package
and extract it wherever is needed, then run:

ruby dk.rb init
ruby dk.rb install

After the install of RubyGems, it must be downgraded to a previous version
for compatibility reasons (don't ask):

gem update --system 2.0.3
Finally, you can install the mock service for pact.  Run the following
command to install it globally:

gem i json pact-mock_service

Hope this helps.

On Wed Jan 07 2015 at 15:33:16 Beth Skurrie [email protected]
wrote:

json is a dependency in my Gemfile.lock, can you check yours?

json (1.8.1)

...
pact-support (0.1.3)
awesome_print (> 1.1)
find_a_port (
> 1.0.1)
json
rack-test (> 0.6.2)
randexp (
> 0.1.7)
rspec (>= 2.14)
term-ansicolor (~> 1.0)
thor

My workmate mentioned that he'd had problems with JSON on windows, and
needed the dev-kit. He was using windows to create a standalone ruby
executable for pact, and gave me these instructions to create it:

https://github.com/bethesque/pact-mock_service/wiki/Building-a-Windows-standalone-executable

See if that helps? I've never done Ruby on windows, so I'd just be
googling the problem.


Reply to this email directly or view it on GitHub
#8 (comment)
.

from pact-mock_service.

bethesque avatar bethesque commented on June 16, 2024

Good work. Sorry I couldn't be more help. You're probably the first people to run it on windows! Seeing as the wiki is open to everyone, would you like to add a wiki page called "Installing the pact-mock_service gem on Windows"?

from pact-mock_service.

mboudreau avatar mboudreau commented on June 16, 2024

Sure thing.

On Wed Jan 07 2015 at 15:47:21 Beth Skurrie [email protected]
wrote:

Good work. Sorry I couldn't be more help. You're probably the first people
to run it on windows! Seeing as the wiki is open to everyone, would you
like to add a wiki page called "Installing the pact-mock_service gem on
Windows"?


Reply to this email directly or view it on GitHub
#8 (comment)
.

from pact-mock_service.

bethesque avatar bethesque commented on June 16, 2024

Btw, are you interested in building executable, as per those instructions? If you send it to me, I can upload it to the releases page, and it should mean you don't have to do the whole Ruby setup again.

from pact-mock_service.

mboudreau avatar mboudreau commented on June 16, 2024

I'm sorry, I'm new to Ruby; does the gem automatically build the executable
for us? Would it just be in the gems directory?

On Wed Jan 07 2015 at 15:49:53 Beth Skurrie [email protected]
wrote:

Btw, are you interested in building executable, as per those instructions?
If you send it to me, I can upload it to the releases page, and it should
mean you don't have to do the whole Ruby setup again.


Reply to this email directly or view it on GitHub
#8 (comment)
.

from pact-mock_service.

mboudreau avatar mboudreau commented on June 16, 2024

Wiki page added. I recommend you add a link to it from the README:
https://github.com/bethesque/pact-mock_service/wiki/Installing-the-pact-mock_service-gem-on-Windows

On Wed Jan 07 2015 at 15:51:47 Michel Boudreau [email protected]
wrote:

I'm sorry, I'm new to Ruby; does the gem automatically build the
executable for us? Would it just be in the gems directory?

On Wed Jan 07 2015 at 15:49:53 Beth Skurrie [email protected]
wrote:

Btw, are you interested in building executable, as per those
instructions? If you send it to me, I can upload it to the releases page,
and it should mean you don't have to do the whole Ruby setup again.


Reply to this email directly or view it on GitHub
#8 (comment)
.

from pact-mock_service.

bethesque avatar bethesque commented on June 16, 2024

Thank you! Done.

The gem does not automatically build an executable. The instructions I sent were how to build the executable, so that it packages Ruby and all the gems, and you don't have to install Ruby separately. One of my workmates did it, but I've lost the package, and I don't have a windows machine.

from pact-mock_service.

mboudreau avatar mboudreau commented on June 16, 2024

Gotcha. Gimme a moment to do that and I'll send you the package.

On Wed, Jan 7, 2015, 4:03 PM Beth Skurrie [email protected] wrote:

Thank you! Done.

The gem does not automatically build an executable. The instructions I
sent were how to build the executable, so that it packages Ruby and all the
gems, and you don't have to install Ruby separately. One of my workmates
did it, but I've lost the package, and I don't have a windows machine.


Reply to this email directly or view it on GitHub
#8 (comment)
.

from pact-mock_service.

mboudreau avatar mboudreau commented on June 16, 2024

Alright, it's been packaged. You can find pact.exe and pact-mock-service.exe on my google drive:

pact: https://drive.google.com/file/d/0B5HCBC5lmHhzc1BVbkYwZHM2UmM/view?usp=sharing
pact-mock-service: https://drive.google.com/file/d/0B5HCBC5lmHhzVGtLOUNpeUNCbVE/view?usp=sharing

Cheers and thanks for all the help.

from pact-mock_service.

bethesque avatar bethesque commented on June 16, 2024

That's fantastic, I'll put them on the releases page, thanks so much.

from pact-mock_service.

mboudreau avatar mboudreau commented on June 16, 2024

No problem. Thanks for the work on pact :)

I actually got pact running from within grunt for our e2e testing process.
I'll create another wiki page to explain the process. Ruby has given us a
lot of issues with node though and I was thinking of maybe spending some
time creating a node version of the mock server to easier integration :)

On Fri Jan 09 2015 at 10:36:43 Beth Skurrie [email protected]
wrote:

That's fantastic, I'll put them on the releases page, thanks so much.


Reply to this email directly or view it on GitHub
#8 (comment)
.

from pact-mock_service.

bethesque avatar bethesque commented on June 16, 2024

That has been considered often, however, it is a non-trivial amount of work.

from pact-mock_service.

mboudreau avatar mboudreau commented on June 16, 2024

I know, but I'm hoping that it would popularize pact even more :)

On Fri Jan 09 2015 at 11:25:08 Beth Skurrie [email protected]
wrote:

That has been considered often, however, it is a non-trivial amount of
work.


Reply to this email directly or view it on GitHub
#8 (comment)
.

from pact-mock_service.

bethesque avatar bethesque commented on June 16, 2024

Well, hope on the pact-dev channel and have a chat about it if you want to give it a go, and I'll point you to the specs and test cases.

from pact-mock_service.

mboudreau avatar mboudreau commented on June 16, 2024

Will do when I'm ready :)

On Fri Jan 09 2015 at 11:35:11 Beth Skurrie [email protected]
wrote:

Well, hope on the pact-dev channel and have a chat about it if you want to
give it a go, and I'll point you to the specs and test cases.


Reply to this email directly or view it on GitHub
#8 (comment)
.

from pact-mock_service.

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.