pact-cli 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 53f11d9dcd4f8f72b6d2652ddc0e85a0400a00de
4
+ data.tar.gz: 82e2a66997c63d5fa3dab4a02955596514399192
5
+ SHA512:
6
+ metadata.gz: 68949cf3390e5ee90cf13abd457a14449f70ab4ba420edc5310dd4461ce3d1fea97a140995606a63192c27b30e31d2f61ed2003f6a762f7ed3423249f9be02c7
7
+ data.tar.gz: 459d2d216b527c1e878e68d5c78dfabaa053b41c2f1cbe23aaf22c2252421230c18cb3a639cbd7dbdafcb4c27b5da94bf9e7c62a63796fec853986c1ef5c725e
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.1
5
+ before_install: gem install bundler -v 1.16.2
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in pact-cli.gemspec
6
+ gemspec
@@ -0,0 +1,105 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ pact-cli (0.1.0)
5
+ pact-mock_service
6
+ pact-provider-verifier
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ awesome_print (1.8.0)
12
+ diff-lcs (1.3)
13
+ faraday (0.15.2)
14
+ multipart-post (>= 1.2, < 3)
15
+ faraday_middleware (0.12.2)
16
+ faraday (>= 0.7.4, < 1.0)
17
+ filelock (1.1.1)
18
+ find_a_port (1.0.1)
19
+ json (2.1.0)
20
+ multipart-post (2.0.0)
21
+ pact (1.33.0)
22
+ json (> 1.8.5)
23
+ pact-mock_service (~> 2.10.0)
24
+ pact-support (~> 1.7)
25
+ rack-test (~> 0.6, >= 0.6.3)
26
+ randexp (~> 0.1.7)
27
+ rspec (>= 2.14)
28
+ term-ansicolor (~> 1.0)
29
+ thor
30
+ webrick
31
+ pact-message (0.4.5)
32
+ pact-mock_service (~> 2.6)
33
+ pact-support (~> 1.6)
34
+ thor (~> 0.20)
35
+ pact-mock_service (2.10.0)
36
+ filelock (~> 1.1)
37
+ find_a_port (~> 1.0.1)
38
+ json
39
+ pact-support (~> 1.2, >= 1.2.1)
40
+ rack (~> 2.0)
41
+ rspec (>= 2.14)
42
+ term-ansicolor (~> 1.0)
43
+ thor (~> 0.19)
44
+ webrick (~> 1.3)
45
+ pact-provider-verifier (1.15.0)
46
+ faraday (~> 0.9, >= 0.9.0)
47
+ faraday_middleware (~> 0.10)
48
+ json (> 1.8)
49
+ pact (~> 1.17)
50
+ pact-message (~> 0.4, >= 0.4.1)
51
+ rack (~> 2.0)
52
+ rack-reverse-proxy
53
+ rake (~> 10.4, >= 10.4.2)
54
+ rspec (~> 3.5)
55
+ rspec_junit_formatter (~> 0.3)
56
+ pact-support (1.7.2)
57
+ awesome_print (~> 1.1)
58
+ find_a_port (~> 1.0.1)
59
+ json
60
+ randexp (~> 0.1.7)
61
+ rspec (>= 2.14)
62
+ term-ansicolor (~> 1.0)
63
+ thor
64
+ rack (2.0.5)
65
+ rack-proxy (0.6.4)
66
+ rack
67
+ rack-reverse-proxy (0.12.0)
68
+ rack (>= 1.0.0)
69
+ rack-proxy (~> 0.6, >= 0.6.1)
70
+ rack-test (0.8.3)
71
+ rack (>= 1.0, < 3)
72
+ rake (10.5.0)
73
+ randexp (0.1.7)
74
+ rspec (3.8.0)
75
+ rspec-core (~> 3.8.0)
76
+ rspec-expectations (~> 3.8.0)
77
+ rspec-mocks (~> 3.8.0)
78
+ rspec-core (3.8.0)
79
+ rspec-support (~> 3.8.0)
80
+ rspec-expectations (3.8.1)
81
+ diff-lcs (>= 1.2.0, < 2.0)
82
+ rspec-support (~> 3.8.0)
83
+ rspec-mocks (3.8.0)
84
+ diff-lcs (>= 1.2.0, < 2.0)
85
+ rspec-support (~> 3.8.0)
86
+ rspec-support (3.8.0)
87
+ rspec_junit_formatter (0.4.1)
88
+ rspec-core (>= 2, < 4, != 2.12.0)
89
+ term-ansicolor (1.6.0)
90
+ tins (~> 1.0)
91
+ thor (0.20.0)
92
+ tins (1.16.3)
93
+ webrick (1.4.2)
94
+
95
+ PLATFORMS
96
+ ruby
97
+
98
+ DEPENDENCIES
99
+ bundler (~> 1.16)
100
+ pact-cli!
101
+ rake (~> 10.0)
102
+ rspec (~> 3.0)
103
+
104
+ BUNDLED WITH
105
+ 1.16.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Beth Skurrie
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,39 @@
1
+ # Pact::Cli
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/pact/cli`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'pact-cli'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install pact-cli
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pact-cli.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ puts ARGV
4
+
5
+ subcommand = ARGV.first
6
+
7
+ case subcommand
8
+ when 'verify'
9
+ require 'pact/provider_verifier/cli/verify'
10
+ Pact::ProviderVerifier::CLI::Verify.start(ARGV[1..-1])
11
+ when 'mock-service'
12
+ require 'pact/mock_service/cli'
13
+ Pact::MockService::CLI.start(ARGV[1..-1])
14
+ else 'help'
15
+ puts "Options are verify and mock-service"
16
+ end
@@ -0,0 +1,7 @@
1
+ require "pact/cli/version"
2
+
3
+ module Pact
4
+ module Cli
5
+ # Your code goes here...
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module Pact
2
+ module Cli
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,31 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "pact/cli/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "pact-cli"
8
+ spec.version = Pact::Cli::VERSION
9
+ spec.authors = ["Beth Skurrie"]
10
+ spec.email = ["beth@bethesque.com"]
11
+
12
+ spec.summary = %q{Amalgamated pact CLI}
13
+ spec.homepage = "https://pact.io"
14
+ spec.license = "MIT"
15
+
16
+ # Specify which files should be added to the gem when it is released.
17
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ end
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_dependency "pact-mock_service"
26
+ spec.add_dependency "pact-provider-verifier"
27
+
28
+ spec.add_development_dependency "bundler", "~> 1.16"
29
+ spec.add_development_dependency "rake", "~> 10.0"
30
+ spec.add_development_dependency "rspec", "~> 3.0"
31
+ end
metadata ADDED
@@ -0,0 +1,126 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pact-cli
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Beth Skurrie
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-08-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: pact-mock_service
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pact-provider-verifier
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.16'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.16'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ description:
84
+ email:
85
+ - beth@bethesque.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - ".travis.yml"
93
+ - Gemfile
94
+ - Gemfile.lock
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
98
+ - bin/pact
99
+ - lib/pact/cli.rb
100
+ - lib/pact/cli/version.rb
101
+ - pact-cli.gemspec
102
+ homepage: https://pact.io
103
+ licenses:
104
+ - MIT
105
+ metadata: {}
106
+ post_install_message:
107
+ rdoc_options: []
108
+ require_paths:
109
+ - lib
110
+ required_ruby_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ requirements: []
121
+ rubyforge_project:
122
+ rubygems_version: 2.6.11
123
+ signing_key:
124
+ specification_version: 4
125
+ summary: Amalgamated pact CLI
126
+ test_files: []