forgery 0.3.3 → 0.3.4
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.
- data/README.markdown +2 -0
- data/lib/forgery/dictionaries/zones +142 -0
- data/lib/forgery/forgery/basic.rb +1 -1
- data/lib/forgery/forgery/internet.rb +5 -0
- data/lib/forgery/forgery/time.rb +12 -0
- data/lib/forgery/version.rb +1 -1
- metadata +4 -2
data/README.markdown
CHANGED
@@ -0,0 +1,142 @@
|
|
1
|
+
International Date Line West
|
2
|
+
Midway Island
|
3
|
+
Samoa
|
4
|
+
Hawaii
|
5
|
+
Alaska
|
6
|
+
Pacific Time (US & Canada)
|
7
|
+
Tijuana
|
8
|
+
Arizona
|
9
|
+
Chihuahua
|
10
|
+
Mazatlan
|
11
|
+
Mountain Time (US & Canada)
|
12
|
+
Central America
|
13
|
+
Central Time (US & Canada)
|
14
|
+
Guadalajara
|
15
|
+
Mexico City
|
16
|
+
Monterrey
|
17
|
+
Saskatchewan
|
18
|
+
Bogota
|
19
|
+
Eastern Time (US & Canada)
|
20
|
+
Indiana (East)
|
21
|
+
Lima
|
22
|
+
Quito
|
23
|
+
Caracas
|
24
|
+
Atlantic Time (Canada)
|
25
|
+
La Paz
|
26
|
+
Santiago
|
27
|
+
Newfoundland
|
28
|
+
Brasilia
|
29
|
+
Buenos Aires
|
30
|
+
Georgetown
|
31
|
+
Greenland
|
32
|
+
Mid-Atlantic
|
33
|
+
Azores
|
34
|
+
Cape Verde Is.
|
35
|
+
Casablanca
|
36
|
+
Dublin
|
37
|
+
Edinburgh
|
38
|
+
Lisbon
|
39
|
+
London
|
40
|
+
Monrovia
|
41
|
+
UTC
|
42
|
+
Amsterdam
|
43
|
+
Belgrade
|
44
|
+
Berlin
|
45
|
+
Bern
|
46
|
+
Bratislava
|
47
|
+
Brussels
|
48
|
+
Budapest
|
49
|
+
Copenhagen
|
50
|
+
Ljubljana
|
51
|
+
Madrid
|
52
|
+
Paris
|
53
|
+
Prague
|
54
|
+
Rome
|
55
|
+
Sarajevo
|
56
|
+
Skopje
|
57
|
+
Stockholm
|
58
|
+
Vienna
|
59
|
+
Warsaw
|
60
|
+
West Central Africa
|
61
|
+
Zagreb
|
62
|
+
Athens
|
63
|
+
Bucharest
|
64
|
+
Cairo
|
65
|
+
Harare
|
66
|
+
Helsinki
|
67
|
+
Istanbul
|
68
|
+
Jerusalem
|
69
|
+
Kyev
|
70
|
+
Minsk
|
71
|
+
Pretoria
|
72
|
+
Riga
|
73
|
+
Sofia
|
74
|
+
Tallinn
|
75
|
+
Vilnius
|
76
|
+
Baghdad
|
77
|
+
Kuwait
|
78
|
+
Moscow
|
79
|
+
Nairobi
|
80
|
+
Riyadh
|
81
|
+
St. Petersburg
|
82
|
+
Volgograd
|
83
|
+
Tehran
|
84
|
+
Abu Dhabi
|
85
|
+
Baku
|
86
|
+
Muscat
|
87
|
+
Tbilisi
|
88
|
+
Yerevan
|
89
|
+
Kabul
|
90
|
+
Ekaterinburg
|
91
|
+
Islamabad
|
92
|
+
Karachi
|
93
|
+
Tashkent
|
94
|
+
Chennai
|
95
|
+
Kolkata
|
96
|
+
Mumbai
|
97
|
+
New Delhi
|
98
|
+
Sri Jayawardenepura
|
99
|
+
Kathmandu
|
100
|
+
Almaty
|
101
|
+
Astana
|
102
|
+
Dhaka
|
103
|
+
Novosibirsk
|
104
|
+
Rangoon
|
105
|
+
Bangkok
|
106
|
+
Hanoi
|
107
|
+
Jakarta
|
108
|
+
Krasnoyarsk
|
109
|
+
Beijing
|
110
|
+
Chongqing
|
111
|
+
Hong Kong
|
112
|
+
Irkutsk
|
113
|
+
Kuala Lumpur
|
114
|
+
Perth
|
115
|
+
Singapore
|
116
|
+
Taipei
|
117
|
+
Ulaan Bataar
|
118
|
+
Urumqi
|
119
|
+
Osaka
|
120
|
+
Sapporo
|
121
|
+
Seoul
|
122
|
+
Tokyo
|
123
|
+
Yakutsk
|
124
|
+
Adelaide
|
125
|
+
Darwin
|
126
|
+
Brisbane
|
127
|
+
Canberra
|
128
|
+
Guam
|
129
|
+
Hobart
|
130
|
+
Melbourne
|
131
|
+
Port Moresby
|
132
|
+
Sydney
|
133
|
+
Vladivostok
|
134
|
+
Magadan
|
135
|
+
New Caledonia
|
136
|
+
Solomon Is.
|
137
|
+
Auckland
|
138
|
+
Fiji
|
139
|
+
Kamchatka
|
140
|
+
Marshall Is.
|
141
|
+
Wellington
|
142
|
+
Nuku'alofa
|
@@ -50,7 +50,7 @@ class Forgery::Basic < Forgery
|
|
50
50
|
#
|
51
51
|
# Forgery(:basic).encrypt('your-password', Time.utc(2009))
|
52
52
|
# # => "4b157c2fbf430b962842d21926eaa887c3a12f81"
|
53
|
-
def self.encrypt(password="password", salt
|
53
|
+
def self.encrypt(password="password", salt=::Time.now.to_s)
|
54
54
|
Digest::SHA1.hexdigest("--#{salt}--#{password}--")
|
55
55
|
end
|
56
56
|
|
data/lib/forgery/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 4
|
9
|
+
version: 0.3.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Nathan Sutton
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- lib/forgery/dictionaries/street_suffixes
|
66
66
|
- lib/forgery/dictionaries/streets
|
67
67
|
- lib/forgery/dictionaries/top_level_domains
|
68
|
+
- lib/forgery/dictionaries/zones
|
68
69
|
- lib/forgery/dictionaries.rb
|
69
70
|
- lib/forgery/extensions/array.rb
|
70
71
|
- lib/forgery/extensions/hash.rb
|
@@ -78,6 +79,7 @@ files:
|
|
78
79
|
- lib/forgery/forgery/monetary.rb
|
79
80
|
- lib/forgery/forgery/name.rb
|
80
81
|
- lib/forgery/forgery/personal.rb
|
82
|
+
- lib/forgery/forgery/time.rb
|
81
83
|
- lib/forgery/forgery.rb
|
82
84
|
- lib/forgery/forgery_api.rb
|
83
85
|
- lib/forgery/formats/phone
|