specstar-support-random 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fcb6fc7fd605ecdc054f02b725821dbe4987e05
4
- data.tar.gz: 71f4688b40678ded92c889e88a50802e9d822e94
3
+ metadata.gz: 12e55c352bf45e5d9e84a57067c3a7ae30b44a21
4
+ data.tar.gz: 51c092ba60feb68464566c67293ac59591737c89
5
5
  SHA512:
6
- metadata.gz: 58f569f508e9e4b19c88f05f6c43a1ed39cc58d98c53fabd048619d4796db24f17f35b8aad08ff7140c774cb3a3e8f4fca2b5ee24784219a9ce1bd41a941e66a
7
- data.tar.gz: 1ea7d5ba81fc5c645a2e8e123121f2564e3ee1a34c36e9e9d471a49233ad916ddc9530997cd09bcd00e6258435fb33e88a5600cdd285af0795de599bc6f73033
6
+ metadata.gz: f2238cf3e80ca3a1f63141eddf333c8ce7c13d05ed8d372986bf8b8f3d0637e2d7ddcf4168ea7426aa139177c8f3540e41f4f835e58a519d1502cee6ef765136
7
+ data.tar.gz: 9b99172bfa76f7b2a6b59de940ed96338f6b086c09a1120764d0a7eaafad1d370a5b0d4151e6540b88f60548e7da311d2f3ec304ad597e8b7e7d39e77d01743d
@@ -63,10 +63,11 @@ def random_url(options={})
63
63
  domain = options.include?(:domain) ? options[:domain] : random_domain
64
64
  scheme = options.include?(:scheme) ? options[:scheme] : ['http', 'https'].sample
65
65
  fragment = options.include?(:fragment) ? options[:fragment] : random_text
66
+ query = options.include?(:query)? options[:query] : random_query
66
67
 
67
68
  uri = URI("#{scheme}://#{domain}")
68
69
  uri.path = "/#{random_text.downcase}"
69
- uri.query = random_query
70
+ uri.query = query
70
71
  uri.fragment = fragment
71
72
 
72
73
  uri.to_s
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specstar-support-random
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sujoy Gupta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-01 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: sujoyg@gmail.com
@@ -18,7 +18,8 @@ extra_rdoc_files: []
18
18
  files:
19
19
  - lib/specstar/support/random.rb
20
20
  homepage: http://github.com/sujoyg/specstar-support-random
21
- licenses: []
21
+ licenses:
22
+ - MIT
22
23
  metadata: {}
23
24
  post_install_message:
24
25
  rdoc_options: []
@@ -26,17 +27,17 @@ require_paths:
26
27
  - lib
27
28
  required_ruby_version: !ruby/object:Gem::Requirement
28
29
  requirements:
29
- - - '>='
30
+ - - ">="
30
31
  - !ruby/object:Gem::Version
31
32
  version: '0'
32
33
  required_rubygems_version: !ruby/object:Gem::Requirement
33
34
  requirements:
34
- - - '>='
35
+ - - ">="
35
36
  - !ruby/object:Gem::Version
36
37
  version: '0'
37
38
  requirements: []
38
39
  rubyforge_project:
39
- rubygems_version: 2.1.4
40
+ rubygems_version: 2.4.6
40
41
  signing_key:
41
42
  specification_version: 4
42
43
  summary: RSpec helpers for generating random entities.