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 +4 -4
- data/lib/specstar/support/random.rb +2 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12e55c352bf45e5d9e84a57067c3a7ae30b44a21
|
4
|
+
data.tar.gz: 51c092ba60feb68464566c67293ac59591737c89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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.
|
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:
|
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.
|
40
|
+
rubygems_version: 2.4.6
|
40
41
|
signing_key:
|
41
42
|
specification_version: 4
|
42
43
|
summary: RSpec helpers for generating random entities.
|