specstar-support-random 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/specstar/support/random.rb +1 -1
  2. metadata +1 -1
@@ -36,7 +36,7 @@ def random_query
36
36
  end
37
37
 
38
38
  def random_url(options={})
39
- uri = if options.include? :domain
39
+ uri = if options[:domain]
40
40
  URI("#{['http', 'https'].sample}://#{options.delete(:domain)}")
41
41
  else
42
42
  URI(random_domain)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specstar-support-random
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: