sixarm_ruby_fab 2.0.1 → 2.1.0

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: '014901459874372a8eb1cbfacd1597d6aec07114d9b50cdb18bc817525222540'
4
- data.tar.gz: a4116e3eef70c6ca2951aba861b2314fa180feb2eea29fdb0062d87bd06ff9b8
3
+ metadata.gz: 75cc2812246cbd6ea7621271a8f3cd455b324044cb6f31a33941ecab3fe72b3a
4
+ data.tar.gz: 7c480a9b8af6488f1090edc96a0a352da92d68bf3ad46d6f80c26932f68bead3
5
5
  SHA512:
6
- metadata.gz: deae9bb4e427c47f87531560f2714abfc2b24cbdc3d34e5bf56b71a52528ccb2bf3ae425302dd0ed7cd8aaf9d75050366bdac4e83e9f240e5294eb7a7699b45f
7
- data.tar.gz: 5730ee12424969757f80a053d42d4bda05a3a63266a86091378bf09bcd8973f53b8739f513280fb84d364435e96f4d8bd89b1100167a69aab5109be28c250233
6
+ metadata.gz: d4c73785a3e6fc86e9441b9b6199fed2a8031f77805f9b15c2f0a12bc08a387d4a09505c839bd1d63032a62acb764fe11b5361d6e18da57c69730edaffb863c6
7
+ data.tar.gz: 769809562020355a732e2cc7742e80ba1a0f8c3ea31801721ed391302ebc5e0ddbc4911990dcc50596eefa0f25d4236ae3eab07250ad8f0310c2a046564fc8ca
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -31,6 +31,7 @@ end
31
31
  "postal",
32
32
  "text",
33
33
  "time",
34
+ "timezone",
34
35
  "twitter",
35
36
  "username",
36
37
  "uuid"
@@ -0,0 +1,356 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ class Fab
4
+
5
+ def timezone_database_name
6
+ [
7
+ "Africa/Abidjan",
8
+ "Africa/Accra",
9
+ "Africa/Algiers",
10
+ "Africa/Bissau",
11
+ "Africa/Cairo",
12
+ "Africa/Casablanca",
13
+ "Africa/Ceuta",
14
+ "Africa/El_Aaiun",
15
+ "Africa/Johannesburg",
16
+ "Africa/Juba",
17
+ "Africa/Khartoum",
18
+ "Africa/Lagos",
19
+ "Africa/Maputo",
20
+ "Africa/Monrovia",
21
+ "Africa/Nairobi",
22
+ "Africa/Ndjamena",
23
+ "Africa/Tripoli",
24
+ "Africa/Tunis",
25
+ "Africa/Windhoek",
26
+ "America/Adak",
27
+ "America/Anchorage",
28
+ "America/Araguaina",
29
+ "America/Argentina/Buenos_Aires",
30
+ "America/Argentina/Catamarca",
31
+ "America/Argentina/Cordoba",
32
+ "America/Argentina/Jujuy",
33
+ "America/Argentina/La_Rioja",
34
+ "America/Argentina/Mendoza",
35
+ "America/Argentina/Rio_Gallegos",
36
+ "America/Argentina/Salta",
37
+ "America/Argentina/San_Juan",
38
+ "America/Argentina/San_Luis",
39
+ "America/Argentina/Tucuman",
40
+ "America/Argentina/Ushuaia",
41
+ "America/Asuncion",
42
+ "America/Atikokan",
43
+ "America/Bahia",
44
+ "America/Bahia_Banderas",
45
+ "America/Barbados",
46
+ "America/Belem",
47
+ "America/Belize",
48
+ "America/Blanc-Sablon",
49
+ "America/Boa_Vista",
50
+ "America/Bogota",
51
+ "America/Boise",
52
+ "America/Cambridge_Bay",
53
+ "America/Campo_Grande",
54
+ "America/Cancun",
55
+ "America/Caracas",
56
+ "America/Cayenne",
57
+ "America/Chicago",
58
+ "America/Chihuahua",
59
+ "America/Costa_Rica",
60
+ "America/Creston",
61
+ "America/Cuiaba",
62
+ "America/Curacao",
63
+ "America/Danmarkshavn",
64
+ "America/Dawson",
65
+ "America/Dawson_Creek",
66
+ "America/Denver",
67
+ "America/Detroit",
68
+ "America/Edmonton",
69
+ "America/Eirunepe",
70
+ "America/El_Salvador",
71
+ "America/Fort_Nelson",
72
+ "America/Fortaleza",
73
+ "America/Glace_Bay",
74
+ "America/Godthab",
75
+ "America/Goose_Bay",
76
+ "America/Grand_Turk",
77
+ "America/Guatemala",
78
+ "America/Guayaquil",
79
+ "America/Guyana",
80
+ "America/Halifax",
81
+ "America/Havana",
82
+ "America/Hermosillo",
83
+ "America/Indiana/Indianapolis",
84
+ "America/Indiana/Knox",
85
+ "America/Indiana/Marengo",
86
+ "America/Indiana/Petersburg",
87
+ "America/Indiana/Tell_City",
88
+ "America/Indiana/Vevay",
89
+ "America/Indiana/Vincennes",
90
+ "America/Indiana/Winamac",
91
+ "America/Inuvik",
92
+ "America/Iqaluit",
93
+ "America/Jamaica",
94
+ "America/Juneau",
95
+ "America/Kentucky/Louisville",
96
+ "America/Kentucky/Monticello",
97
+ "America/La_Paz",
98
+ "America/Lima",
99
+ "America/Los_Angeles",
100
+ "America/Maceio",
101
+ "America/Managua",
102
+ "America/Manaus",
103
+ "America/Martinique",
104
+ "America/Matamoros",
105
+ "America/Mazatlan",
106
+ "America/Menominee",
107
+ "America/Merida",
108
+ "America/Metlakatla",
109
+ "America/Mexico_City",
110
+ "America/Miquelon",
111
+ "America/Moncton",
112
+ "America/Monterrey",
113
+ "America/Montevideo",
114
+ "America/Nassau",
115
+ "America/New_York",
116
+ "America/Nipigon",
117
+ "America/Nome",
118
+ "America/Noronha",
119
+ "America/North_Dakota/Beulah",
120
+ "America/North_Dakota/Center",
121
+ "America/North_Dakota/New_Salem",
122
+ "America/Ojinaga",
123
+ "America/Panama",
124
+ "America/Pangnirtung",
125
+ "America/Paramaribo",
126
+ "America/Phoenix",
127
+ "America/Port_of_Spain",
128
+ "America/Port-au-Prince",
129
+ "America/Porto_Velho",
130
+ "America/Puerto_Rico",
131
+ "America/Punta_Arenas",
132
+ "America/Rainy_River",
133
+ "America/Rankin_Inlet",
134
+ "America/Recife",
135
+ "America/Regina",
136
+ "America/Resolute",
137
+ "America/Rio_Branco",
138
+ "America/Santarem",
139
+ "America/Santiago",
140
+ "America/Santo_Domingo",
141
+ "America/Sao_Paulo",
142
+ "America/Scoresbysund",
143
+ "America/Sitka",
144
+ "America/St_Johns",
145
+ "America/Swift_Current",
146
+ "America/Tegucigalpa",
147
+ "America/Thule",
148
+ "America/Thunder_Bay",
149
+ "America/Tijuana",
150
+ "America/Toronto",
151
+ "America/Vancouver",
152
+ "America/Whitehorse",
153
+ "America/Winnipeg",
154
+ "America/Yakutat",
155
+ "America/Yellowknife",
156
+ "Antarctica/Casey",
157
+ "Antarctica/Davis",
158
+ "Antarctica/DumontDUrville",
159
+ "Antarctica/Macquarie",
160
+ "Antarctica/Mawson",
161
+ "Antarctica/Palmer",
162
+ "Antarctica/Rothera",
163
+ "Antarctica/Syowa",
164
+ "Antarctica/Troll",
165
+ "Antarctica/Vostok",
166
+ "Asia/Almaty",
167
+ "Asia/Amman",
168
+ "Asia/Anadyr",
169
+ "Asia/Aqtau",
170
+ "Asia/Aqtobe",
171
+ "Asia/Ashgabat",
172
+ "Asia/Atyrau",
173
+ "Asia/Baghdad",
174
+ "Asia/Baku",
175
+ "Asia/Bangkok",
176
+ "Asia/Barnaul",
177
+ "Asia/Beirut",
178
+ "Asia/Bishkek",
179
+ "Asia/Brunei",
180
+ "Asia/Chita",
181
+ "Asia/Choibalsan",
182
+ "Asia/Colombo",
183
+ "Asia/Damascus",
184
+ "Asia/Dhaka",
185
+ "Asia/Dili",
186
+ "Asia/Dubai",
187
+ "Asia/Dushanbe",
188
+ "Asia/Famagusta",
189
+ "Asia/Gaza",
190
+ "Asia/Hebron",
191
+ "Asia/Ho_Chi_Minh",
192
+ "Asia/Hong_Kong",
193
+ "Asia/Hovd",
194
+ "Asia/Irkutsk",
195
+ "Asia/Jakarta",
196
+ "Asia/Jayapura",
197
+ "Asia/Jerusalem",
198
+ "Asia/Kabul",
199
+ "Asia/Kamchatka",
200
+ "Asia/Karachi",
201
+ "Asia/Kathmandu",
202
+ "Asia/Khandyga",
203
+ "Asia/Kolkata",
204
+ "Asia/Krasnoyarsk",
205
+ "Asia/Kuala_Lumpur",
206
+ "Asia/Kuching",
207
+ "Asia/Macau",
208
+ "Asia/Magadan",
209
+ "Asia/Makassar",
210
+ "Asia/Manila",
211
+ "Asia/Novokuznetsk",
212
+ "Asia/Novosibirsk",
213
+ "Asia/Omsk",
214
+ "Asia/Oral",
215
+ "Asia/Pontianak",
216
+ "Asia/Pyongyang",
217
+ "Asia/Qatar",
218
+ "Asia/Qyzylorda",
219
+ "Asia/Riyadh",
220
+ "Asia/Sakhalin",
221
+ "Asia/Samarkand",
222
+ "Asia/Seoul",
223
+ "Asia/Shanghai",
224
+ "Asia/Singapore",
225
+ "Asia/Srednekolymsk",
226
+ "Asia/Taipei",
227
+ "Asia/Tashkent",
228
+ "Asia/Tbilisi",
229
+ "Asia/Tehran",
230
+ "Asia/Thimphu",
231
+ "Asia/Tokyo",
232
+ "Asia/Tomsk",
233
+ "Asia/Ulaanbaatar",
234
+ "Asia/Urumqi",
235
+ "Asia/Ust-Nera",
236
+ "Asia/Vladivostok",
237
+ "Asia/Yakutsk",
238
+ "Asia/Yangon",
239
+ "Asia/Yekaterinburg",
240
+ "Asia/Yerevan",
241
+ "Atlantic/Azores",
242
+ "Atlantic/Bermuda",
243
+ "Atlantic/Canary",
244
+ "Atlantic/Cape_Verde",
245
+ "Atlantic/Faroe",
246
+ "Atlantic/Madeira",
247
+ "Atlantic/Reykjavik",
248
+ "Atlantic/South_Georgia",
249
+ "Atlantic/Stanley",
250
+ "Australia/Adelaide",
251
+ "Australia/Brisbane",
252
+ "Australia/Broken_Hill",
253
+ "Australia/Currie",
254
+ "Australia/Darwin",
255
+ "Australia/Eucla",
256
+ "Australia/Hobart",
257
+ "Australia/Lindeman",
258
+ "Australia/Lord_Howe",
259
+ "Australia/Melbourne",
260
+ "Australia/Perth",
261
+ "Australia/Sydney",
262
+ "Europe/Amsterdam",
263
+ "Europe/Andorra",
264
+ "Europe/Astrakhan",
265
+ "Europe/Athens",
266
+ "Europe/Belgrade",
267
+ "Europe/Berlin",
268
+ "Europe/Brussels",
269
+ "Europe/Bucharest",
270
+ "Europe/Budapest",
271
+ "Europe/Chisinau",
272
+ "Europe/Copenhagen",
273
+ "Europe/Dublin",
274
+ "Europe/Gibraltar",
275
+ "Europe/Helsinki",
276
+ "Europe/Istanbul",
277
+ "Europe/Kaliningrad",
278
+ "Europe/Kiev",
279
+ "Europe/Kirov",
280
+ "Europe/Lisbon",
281
+ "Europe/London",
282
+ "Europe/Luxembourg",
283
+ "Europe/Madrid",
284
+ "Europe/Malta",
285
+ "Europe/Minsk",
286
+ "Europe/Monaco",
287
+ "Europe/Moscow",
288
+ "Europe/Nicosia",
289
+ "Europe/Oslo",
290
+ "Europe/Paris",
291
+ "Europe/Prague",
292
+ "Europe/Riga",
293
+ "Europe/Rome",
294
+ "Europe/Samara",
295
+ "Europe/Saratov",
296
+ "Europe/Simferopol",
297
+ "Europe/Sofia",
298
+ "Europe/Stockholm",
299
+ "Europe/Tallinn",
300
+ "Europe/Tirane",
301
+ "Europe/Ulyanovsk",
302
+ "Europe/Uzhgorod",
303
+ "Europe/Vienna",
304
+ "Europe/Vilnius",
305
+ "Europe/Volgograd",
306
+ "Europe/Warsaw",
307
+ "Europe/Zaporozhye",
308
+ "Europe/Zurich",
309
+ "Indian/Chagos",
310
+ "Indian/Christmas",
311
+ "Indian/Cocos",
312
+ "Indian/Kerguelen",
313
+ "Indian/Mahe",
314
+ "Indian/Maldives",
315
+ "Indian/Mauritius",
316
+ "Indian/Reunion",
317
+ "Pacific/Apia",
318
+ "Pacific/Auckland",
319
+ "Pacific/Bougainville",
320
+ "Pacific/Chatham",
321
+ "Pacific/Chuuk",
322
+ "Pacific/Easter",
323
+ "Pacific/Efate",
324
+ "Pacific/Enderbury",
325
+ "Pacific/Fakaofo",
326
+ "Pacific/Fiji",
327
+ "Pacific/Funafuti",
328
+ "Pacific/Galapagos",
329
+ "Pacific/Gambier",
330
+ "Pacific/Guadalcanal",
331
+ "Pacific/Guam",
332
+ "Pacific/Honolulu",
333
+ "Pacific/Kiritimati",
334
+ "Pacific/Kosrae",
335
+ "Pacific/Kwajalein",
336
+ "Pacific/Majuro",
337
+ "Pacific/Marquesas",
338
+ "Pacific/Nauru",
339
+ "Pacific/Niue",
340
+ "Pacific/Norfolk",
341
+ "Pacific/Noumea",
342
+ "Pacific/Pago_Pago",
343
+ "Pacific/Palau",
344
+ "Pacific/Pitcairn",
345
+ "Pacific/Pohnpei",
346
+ "Pacific/Port_Moresby",
347
+ "Pacific/Rarotonga",
348
+ "Pacific/Tahiti",
349
+ "Pacific/Tarawa",
350
+ "Pacific/Tongatapu",
351
+ "Pacific/Wake",
352
+ "Pacific/Wallis",
353
+ ].sample
354
+ end
355
+
356
+ end
@@ -0,0 +1,16 @@
1
+ # -*- coding: utf-8 -*-
2
+ require "sixarm_ruby_fab_test"
3
+
4
+ describe Fab do
5
+
6
+ let(:fab){ Fab.new }
7
+
8
+ describe "#timezone_database_name" do
9
+
10
+ it "is a valid name, which is formatted e.g. America/New_York" do
11
+ fab.timezone_database_name.must_match(/^[A-Z]\w+\/[A-Z]\w+$/)
12
+ end
13
+
14
+ end
15
+
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sixarm_ruby_fab
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SixArm
@@ -39,7 +39,7 @@ cert_chain:
39
39
  tzpk/VnZXj7Ek/earx+N/Z+Wtnl2xENm5IF8SFPeI1HFa9NH47pqtxF1YKpNIEVc
40
40
  2xa2BNHSePe7tys/2hbmZuyMu8X5ERmovsabSXB3a+YwtJh5c2jhA21wF7986s0q
41
41
  -----END CERTIFICATE-----
42
- date: 2019-01-28 00:00:00.000000000 Z
42
+ date: 2019-05-01 00:00:00.000000000 Z
43
43
  dependencies:
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: forgery
@@ -268,6 +268,7 @@ files:
268
268
  - lib/sixarm_ruby_fab/postal.rb
269
269
  - lib/sixarm_ruby_fab/text.rb
270
270
  - lib/sixarm_ruby_fab/time.rb
271
+ - lib/sixarm_ruby_fab/timezone.rb
271
272
  - lib/sixarm_ruby_fab/twitter.rb
272
273
  - lib/sixarm_ruby_fab/username.rb
273
274
  - lib/sixarm_ruby_fab/uuid.rb
@@ -291,6 +292,7 @@ files:
291
292
  - test/sixarm_ruby_fab_test/postal_test.rb
292
293
  - test/sixarm_ruby_fab_test/text_test.rb
293
294
  - test/sixarm_ruby_fab_test/time_test.rb
295
+ - test/sixarm_ruby_fab_test/timezone_test.rb
294
296
  - test/sixarm_ruby_fab_test/twitter_test.rb
295
297
  - test/sixarm_ruby_fab_test/username_test.rb
296
298
  - test/sixarm_ruby_fab_test/uuid_test.rb
@@ -318,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
318
320
  - !ruby/object:Gem::Version
319
321
  version: '0'
320
322
  requirements: []
321
- rubygems_version: 3.0.2
323
+ rubygems_version: 3.0.3
322
324
  signing_key:
323
325
  specification_version: 4
324
326
  summary: SixArm.com → Ruby → Fab gem to fabricate sample data for testing
@@ -342,6 +344,7 @@ test_files:
342
344
  - test/sixarm_ruby_fab_test/postal_test.rb
343
345
  - test/sixarm_ruby_fab_test/text_test.rb
344
346
  - test/sixarm_ruby_fab_test/time_test.rb
347
+ - test/sixarm_ruby_fab_test/timezone_test.rb
345
348
  - test/sixarm_ruby_fab_test/twitter_test.rb
346
349
  - test/sixarm_ruby_fab_test/username_test.rb
347
350
  - test/sixarm_ruby_fab_test/uuid_test.rb
metadata.gz.sig CHANGED
Binary file