rrandom 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
  SHA256:
3
- metadata.gz: ccdb0e1200a6fb2dbabfbc1936343b257e8ab11651ffb0b86b87d6a2606e5670
4
- data.tar.gz: 708144abc2e4b50f6379d194575a4409b8fa139a915be3148c8e84c66a2ca3e3
3
+ metadata.gz: 1affa54440a0ecba9b1c30f9573200b7e0bcb97d6980d2f78389672d1e9c1952
4
+ data.tar.gz: 3d6354b4356e0df8c368632d62ff82e8284fb1ebea9e067fd7ec9606191ec9d9
5
5
  SHA512:
6
- metadata.gz: 355dd6517dea508487eb60af3da132e334121586d13dcec1164d24cc51edf5810bfba83786cd5f959c95e76007485492e50571d9ddbb98022879b723492e3e05
7
- data.tar.gz: ea6e02bc6378f517b82da7a4c9153507e72516b4ca3a6cbc8c08b2ca97e59f95b0c49f40d77b29250f07afd392a2fd12fc695162a28e15aa7855e62608b37231
6
+ metadata.gz: 0a5130ce23b64bee5257414cfcf4433b0e822aadde3ee44b90b1ed0ea6a5d3eb41efdf8bdd8bdbd99c89583f2ca42afe0944694f12266a3d1b729d0cfe24759c
7
+ data.tar.gz: 94eb2f39b3f86bb4df769ca42d583b303efe51caa42d2af6b0734e25487dbc81a16a5187ffdd10e57749d4e020288ff4e3cbd9f2e7decfe69c250603d71e85a5
@@ -33,12 +33,10 @@ class RRandom
33
33
  attr_accessor :loader
34
34
  end
35
35
 
36
- def initialize(random_domain: false)
37
- @use_random_domain = random_domain
38
- end
39
-
40
- def use_random_domain?
41
- @use_random_domain
36
+ def initialize(**options)
37
+ options.each do |key, value|
38
+ instance_variable_set(:"@#{key}", value)
39
+ end
42
40
  end
43
41
 
44
42
  def gender
@@ -1,3 +1,3 @@
1
1
  class RRandom
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rrandom
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
  - Jonas Nicklas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-16 00:00:00.000000000 Z
11
+ date: 2019-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler