prettyusers 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2ebf969fa50ea1a07a1b82b8abf21ce1edd80c6
4
- data.tar.gz: 89efdec0658b3c7d1aed63215152a8a992f6b879
3
+ metadata.gz: bbec417623fb18a6f0c54933b884f58a7cf079a9
4
+ data.tar.gz: a32fe0013679eda80818be79b66ba2f91c58ab88
5
5
  SHA512:
6
- metadata.gz: ce1c710009bbd62901e74a08c7d2b5df3b5a42a6a817bb03ce1b14f21b4b04e9f8b099c461deaa80f73d160a6c6857c52b2791b0360d53f9da9338522acd66b1
7
- data.tar.gz: a8bdf032c0ad44ee8468199f5f6c35062d0fc1e9b8941426709e630173b2860ee07bcd3f2a7f77f41f9783d99785e5afd1c92c8e8f7fbfdfd46ca25efca0bf76
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
@@ -1,3 +1,3 @@
1
1
  module Prettyusers
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-21 00:00:00.000000000 Z
11
+ date: 2015-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler