prettyusers 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/prettyusers/version.rb +1 -1
- data/lib/prettyusers.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbec417623fb18a6f0c54933b884f58a7cf079a9
|
4
|
+
data.tar.gz: a32fe0013679eda80818be79b66ba2f91c58ab88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ead5735fd449f87068041b83278101fedd1aa8a6e62e33e01efca087afc8bfd9aac3a8cbf6ef3ff6e704c9ee24b5e13e5819ebee9a5017fa21c2ac10ae970a1c
|
7
|
+
data.tar.gz: c699b6558981bc52e8f791d35afbe34e1c088ac32bb0955bd69b77d311cc9b5740f489cf13f4b981b2bc4b63b6c4f0b1ebbbb2cb1ac31c1f795d6b57af6e79bd
|
data/README.md
CHANGED
@@ -47,7 +47,7 @@ user = Prettyusers.random.email
|
|
47
47
|
users = Prettyusers.generate(:count => 2).first.email
|
48
48
|
```
|
49
49
|
|
50
|
-
`name[:firtname]`, `name[:lastname]`,`picture`,`location[:street]`,`location[:city]`,`location[:zip]`,`location[:state]`, `gender`, `email`, `password`, `md5_password`, `sha1_hash`,`phone`,`cell`,`SSN`
|
50
|
+
`name[:firtname]`, `name[:lastname]`,`username`,`picture`,`location[:street]`,`location[:city]`,`location[:zip]`,`location[:state]`, `gender`, `email`, `password`, `md5_password`, `sha1_hash`,`phone`,`cell`,`SSN`
|
51
51
|
|
52
52
|
|
53
53
|
## Contributing
|
data/lib/prettyusers/version.rb
CHANGED
data/lib/prettyusers.rb
CHANGED
@@ -6,6 +6,7 @@ module Prettyusers
|
|
6
6
|
class User
|
7
7
|
@@fields = [
|
8
8
|
:gender,
|
9
|
+
:username,
|
9
10
|
:title,
|
10
11
|
:name,
|
11
12
|
:location,
|
@@ -72,7 +73,7 @@ module Prettyusers
|
|
72
73
|
name = {:title =>r[:title], :firstname => r[:name][:first], :lastname => r[:name][:last]}
|
73
74
|
location = {:street => r[:location][:street], :city =>r[:location][:city], :state => r[:location][:state], :zip => r[:location][:zip]}
|
74
75
|
|
75
|
-
u = User.new({:name => name,:picture=>r[:picture],:gender => r[:gender],:location => location,:email => r[:email],:password =>r[:password], :md5_password =>r[:md5], :sha1_hash => r[:sha1], :phone => r[:phone], :cell => r[:cell], :SSN => r[:SSN]})
|
76
|
+
u = User.new({:name => name,:username =>r[:username], :picture=>r[:picture],:gender => r[:gender],:location => location,:email => r[:email],:password =>r[:password], :md5_password =>r[:md5], :sha1_hash => r[:sha1], :phone => r[:phone], :cell => r[:cell], :SSN => r[:SSN]})
|
76
77
|
users.push(u)
|
77
78
|
|
78
79
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prettyusers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- El Mehdi Sakout
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|