Comments (18)
Are you on windows?
from pact-mock_service.
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.
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.
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)> 1.0.1)
find_a_port (
json
rack-test (> 0.6.2)> 0.1.7)
randexp (
rspec (>= 2.14)
term-ansicolor (~> 1.0)
thorMy 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.
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.
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.
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.
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.
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.
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.
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.
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.
That's fantastic, I'll put them on the releases page, thanks so much.
from pact-mock_service.
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.
That has been considered often, however, it is a non-trivial amount of work.
from pact-mock_service.
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.
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.
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)
- Feature Request - Log level CLI Option on pact-stub-service HOT 1
- Can't start mock service wrong number of arguments (given 4, expected 2..3) (ArgumentError) HOT 1
- Internal server error when request payload cannot be encoded to UTF-8 HOT 9
- Count the number requests matching an interaction HOT 1
- Request to '/pact' endpoint without body is failing making python-pact verification unusable HOT 1
- Feature Request - support dynamic responses based on ID in request HOT 5
- given pacts dir not used HOT 2
- pactfile_write_mode - "usage" text is missing the option to 'update' HOT 2
- Ruby 2.7 cannot load such file -- thwait HOT 9
- Allow Access-Control-Allow-Credentials to be set for --cors mode HOT 13
- Feature request: json response from /interactions/verification
- Chore: migrate away from TravisCI HOT 1
- iam not able to generate pact files ,just the this infoi iam getting "INFO WEBrick::HTTPServer#start: pid=15660 port=1234" HOT 2
- Return more informative response codes HOT 2
- Feature request - Response based on provider state HOT 1
- Return most specific match when multiple matches are found HOT 4
- Can you please provide me the response model for POST /pact endpoint. HOT 2
- Pact stub service throws error for query values with matching rules HOT 5
- GH repo notifications on release HOT 1
- Update to rack 3
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 pact-mock_service.