specstar-support-random 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/specstar/support/random.rb +3 -5
  2. metadata +1 -1
@@ -36,11 +36,9 @@ def random_query
36
36
  end
37
37
 
38
38
  def random_url(options={})
39
- uri = if options[:domain]
40
- URI("#{['http', 'https'].sample}://#{options.delete(:domain)}")
41
- else
42
- URI(random_domain)
43
- end
39
+ domain = options.delete(:domain) || random_domain
40
+
41
+ uri = URI("#{['http', 'https'].sample}://#{domain}")
44
42
  uri.path = "/#{random_text.downcase}"
45
43
  uri.query = random_query
46
44
 
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.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: