Skip to content

Commit

Permalink
fix: remove randexp dependency (pact-foundation#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
naresh-hopin authored Sep 30, 2021
1 parent 431733c commit 794fd4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/pact/reification.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'randexp'
require 'expgen'
require 'pact/term'
require 'pact/something_like'
require 'pact/array_like'
Expand All @@ -13,8 +13,10 @@ module Reification

def self.from_term(term)
case term
when Pact::Term, Regexp, Pact::SomethingLike, Pact::ArrayLike
when Pact::Term, Pact::SomethingLike, Pact::ArrayLike
from_term(term.generate)
when Regexp
from_term(Expgen.gen(term))
when Hash
term.inject({}) do |mem, (key,t)|
mem[key] = from_term(t)
Expand Down
2 changes: 1 addition & 1 deletion pact-support.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ Gem::Specification.new do |spec|
spec.files = `git ls-files lib CHANGELOG.md LICENSE.txt README.md`.split($RS)
spec.require_paths = ["lib"]

spec.add_runtime_dependency "randexp", "~> 0.1.7"
spec.add_runtime_dependency "term-ansicolor", "~> 1.0"
spec.add_runtime_dependency "awesome_print", "~> 1.9"
spec.add_runtime_dependency "diff-lcs", "~> 1.4"

spec.add_development_dependency 'expgen', '~> 0.1.1'
spec.add_development_dependency "rspec", ">= 2.14", "< 4.0"
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "webmock", "~> 3.3"
Expand Down

0 comments on commit 794fd4e

Please sign in to comment.