lightning-bolt 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +2 -0
- data/bin/lightningbolt +3 -0
- data/lib/lightning/bolt/cli.rb +63 -0
- data/lib/lightning/bolt/codex.rb +308 -0
- data/lib/lightning/bolt/cypher.rb +85 -0
- data/lib/lightning/bolt/encoding.yml +73 -0
- data/lib/lightning/bolt/fuzzer.rb +51 -0
- data/lib/lightning/bolt/keys.yml +18 -0
- data/lib/lightning/bolt/seed.txt +2500 -0
- data/lib/lightning/bolt/templates/codex/en/colors.yml +19 -0
- data/lib/lightning/bolt/templates/codex/en/names.yml +3485 -0
- data/lib/lightning/bolt/templates/codex/en/organizations.yml +1 -0
- data/lib/lightning/bolt/templates/codex/en/us/states.yml +101 -0
- data/lib/lightning/bolt/templates/codex/en/vehicles.yml +193 -0
- data/lib/lightning/bolt/templates/codex/fr/names.yml +630 -0
- data/lib/lightning/bolt/templates/codex/it/names.yml +243 -0
- data/lib/lightning/bolt/templates/payload.yml +67 -0
- data/lib/lightning/bolt/util.rb +4 -0
- data/lib/lightning/bolt/version.rb +5 -0
- data/lib/lightning/bolt.rb +7 -0
- data/lightning-bolt.gemspec +25 -0
- data/specs/baseline.yml +79 -0
- data/specs/checkpoints.rb +22 -0
- data/specs/payload.yml +116 -0
- metadata +115 -0
@@ -0,0 +1,243 @@
|
|
1
|
+
first:
|
2
|
+
- Adriano
|
3
|
+
- Alessandro
|
4
|
+
- Alfredo
|
5
|
+
- Alfonso
|
6
|
+
- Andrea
|
7
|
+
- Antonio
|
8
|
+
- Arturo
|
9
|
+
- Augusto
|
10
|
+
- Agostino
|
11
|
+
- Beniamino
|
12
|
+
- Benedetto
|
13
|
+
- Bernardo
|
14
|
+
- Carlo
|
15
|
+
- Cristoforo
|
16
|
+
- Daniele
|
17
|
+
- Davide
|
18
|
+
- Edoardo
|
19
|
+
- Emilio
|
20
|
+
- Emanuele
|
21
|
+
- Enrico
|
22
|
+
- Eugenio
|
23
|
+
- Francesco
|
24
|
+
- Franco
|
25
|
+
- Federico
|
26
|
+
- Gabriele
|
27
|
+
- Giorgio
|
28
|
+
- Gerardo
|
29
|
+
- Gilberto
|
30
|
+
- Gioacchino
|
31
|
+
- Gregorio
|
32
|
+
- Guglielmo
|
33
|
+
- Onorato
|
34
|
+
- Isacco
|
35
|
+
- Giovanni
|
36
|
+
- Girolamo
|
37
|
+
- Guseppe
|
38
|
+
- Giulio
|
39
|
+
- Guliano
|
40
|
+
- Lorenzo
|
41
|
+
- Leone
|
42
|
+
- Luca
|
43
|
+
- Luigi
|
44
|
+
- Marco
|
45
|
+
- Marcello
|
46
|
+
- Martino
|
47
|
+
- Matteo
|
48
|
+
- Maurizio
|
49
|
+
- Michele
|
50
|
+
- Nicola
|
51
|
+
- Natale
|
52
|
+
- Oliviero
|
53
|
+
- Patrizio
|
54
|
+
- Paolo
|
55
|
+
- Filippo
|
56
|
+
- Pietro
|
57
|
+
- Raimondo
|
58
|
+
- Renato
|
59
|
+
- Riccardo
|
60
|
+
- Roberto
|
61
|
+
- Rolando
|
62
|
+
- Sebastiano
|
63
|
+
- Stefano
|
64
|
+
- Teodoro
|
65
|
+
- Teofilo
|
66
|
+
- Tommaso
|
67
|
+
- Timoteo
|
68
|
+
- Tristano
|
69
|
+
- Ugo
|
70
|
+
- Vittorio
|
71
|
+
- Vincenzo
|
72
|
+
- Ivo
|
73
|
+
- Zaccaria
|
74
|
+
- Adelaide
|
75
|
+
- Adele
|
76
|
+
- Adriena
|
77
|
+
- Agata
|
78
|
+
- Agnese
|
79
|
+
- Amata
|
80
|
+
- Alessandra
|
81
|
+
- Alice
|
82
|
+
- Amelia
|
83
|
+
- Amalia
|
84
|
+
- Anastasia
|
85
|
+
- Anita
|
86
|
+
- Andrea
|
87
|
+
- Anna
|
88
|
+
- Antoinetta
|
89
|
+
- Aurelia
|
90
|
+
- Aurora
|
91
|
+
- Bernadetta
|
92
|
+
- Brigitta
|
93
|
+
- Carolina
|
94
|
+
- Caterina
|
95
|
+
- Cecilia
|
96
|
+
- Clelia
|
97
|
+
- Carlotta
|
98
|
+
- Cristiana
|
99
|
+
- Cristina
|
100
|
+
- Chiara
|
101
|
+
- Claudia
|
102
|
+
- Costanza
|
103
|
+
- Corinna
|
104
|
+
- Daniela
|
105
|
+
- Denise
|
106
|
+
- Diana
|
107
|
+
- Dorotea
|
108
|
+
- Eleonora
|
109
|
+
- Elisabetta
|
110
|
+
- Elisa
|
111
|
+
- Emilia
|
112
|
+
- Emanuela
|
113
|
+
- Francesca
|
114
|
+
- Federica
|
115
|
+
- Gabriella
|
116
|
+
- Genoveffa
|
117
|
+
- Elena
|
118
|
+
- Ortenzia
|
119
|
+
- Inès
|
120
|
+
- Isabella
|
121
|
+
- Giovanna
|
122
|
+
- Giuseppina
|
123
|
+
- Giulia
|
124
|
+
- Giulietta
|
125
|
+
- Laetitia
|
126
|
+
- Letizia
|
127
|
+
- Laura
|
128
|
+
- Lorenza
|
129
|
+
- Luisa
|
130
|
+
- Luce
|
131
|
+
- Lucia
|
132
|
+
- Maddalena
|
133
|
+
- Marcella
|
134
|
+
- Margherita
|
135
|
+
- Margot
|
136
|
+
- Marianna
|
137
|
+
- Maria
|
138
|
+
- Marina
|
139
|
+
- Marta
|
140
|
+
- Martina
|
141
|
+
- Marisa
|
142
|
+
- Matilde
|
143
|
+
- Michela
|
144
|
+
- Michelle
|
145
|
+
- Monica
|
146
|
+
- Natalina
|
147
|
+
- Natalia
|
148
|
+
- Nicoletta
|
149
|
+
- Noemi
|
150
|
+
- Olivia
|
151
|
+
- Patrizia
|
152
|
+
- Paola
|
153
|
+
- Paolina
|
154
|
+
- Penelope
|
155
|
+
- Filippa
|
156
|
+
- Renata
|
157
|
+
- Sabina
|
158
|
+
- Simona
|
159
|
+
- Sophia
|
160
|
+
- Sofia
|
161
|
+
- Stefania
|
162
|
+
- Susanna
|
163
|
+
- Silvia
|
164
|
+
- Teresa
|
165
|
+
- Valentina
|
166
|
+
- Valeria
|
167
|
+
- Veronica
|
168
|
+
- Vittoria
|
169
|
+
- Virginia
|
170
|
+
- Zoe
|
171
|
+
- Camilla
|
172
|
+
- Domenica
|
173
|
+
last:
|
174
|
+
- Rossi
|
175
|
+
- Bianchi
|
176
|
+
- Verdi
|
177
|
+
- Neri
|
178
|
+
- Martini
|
179
|
+
- Tommasi
|
180
|
+
- Piccolo
|
181
|
+
- Riccardi
|
182
|
+
- Taddei
|
183
|
+
- Segoni
|
184
|
+
- Spinosa
|
185
|
+
- Patrizi
|
186
|
+
- Borgogni
|
187
|
+
- Licastro
|
188
|
+
- Pacitto
|
189
|
+
- Longo
|
190
|
+
- Corti
|
191
|
+
- Sangiacomo
|
192
|
+
- Mastrogiacomo
|
193
|
+
- Diotaiuti
|
194
|
+
- Martinez
|
195
|
+
- Fontana
|
196
|
+
- Casà
|
197
|
+
- Bertini
|
198
|
+
- Sabatino
|
199
|
+
- Parente
|
200
|
+
- Esposito
|
201
|
+
- Barbagallo
|
202
|
+
- Adamo
|
203
|
+
- Messineo
|
204
|
+
- Rizzo
|
205
|
+
- Persichetti
|
206
|
+
- Perpiglia
|
207
|
+
- Conchiglia
|
208
|
+
- Finocchiaro
|
209
|
+
- Coppola
|
210
|
+
- Monachello
|
211
|
+
- Messina
|
212
|
+
- Micchichè
|
213
|
+
- Morelli
|
214
|
+
- Manzari
|
215
|
+
- Marinelli
|
216
|
+
- Fumanti
|
217
|
+
- Gattari
|
218
|
+
- Martorano
|
219
|
+
- Cantalamessa
|
220
|
+
- Pecora
|
221
|
+
- Grassini
|
222
|
+
- Lonzi
|
223
|
+
- Cupellaro
|
224
|
+
- Carelli
|
225
|
+
- Lionetti
|
226
|
+
- Pocci
|
227
|
+
- Arrigo
|
228
|
+
- Lolli
|
229
|
+
- Santandrea
|
230
|
+
- Gelsomino
|
231
|
+
- Melegatti
|
232
|
+
- Motta
|
233
|
+
- Alemanga
|
234
|
+
- Olivetti
|
235
|
+
- Ferrari
|
236
|
+
- Ferrero
|
237
|
+
- Piervincenti
|
238
|
+
- Piccolomini
|
239
|
+
- Sangiorgi
|
240
|
+
- Tirinnanzi
|
241
|
+
- Pitruzzella
|
242
|
+
- Bertola
|
243
|
+
- Canella
|
@@ -0,0 +1,67 @@
|
|
1
|
+
---
|
2
|
+
vault: templates/codex
|
3
|
+
records:
|
4
|
+
- en:
|
5
|
+
- us:
|
6
|
+
- states.yml
|
7
|
+
- domains.yml
|
8
|
+
- names.yml
|
9
|
+
- colors.yml
|
10
|
+
- it:
|
11
|
+
- names.yml
|
12
|
+
- fr:
|
13
|
+
- names.yml
|
14
|
+
- currency.yml
|
15
|
+
- characters.yml
|
16
|
+
payload:
|
17
|
+
- name: ""
|
18
|
+
reports:
|
19
|
+
email: ""
|
20
|
+
rules:
|
21
|
+
address: ""
|
22
|
+
- name: ""
|
23
|
+
reports:
|
24
|
+
email: |-
|
25
|
+
Hello #:NAMES/EN/FULL_NAME,
|
26
|
+
News has reached us that on #:DATES/ACCEPTED_DATE,
|
27
|
+
you have received conformation that you will be attending
|
28
|
+
Kettering University. We are equally pleased to hear the news
|
29
|
+
and would like to extend the offer for you to intern with us as a coop.
|
30
|
+
|
31
|
+
Thank you,
|
32
|
+
|
33
|
+
Software Engineer @ #:MISC/COMPANY+company_sig
|
34
|
+
Email: #:MISC/EMAIL
|
35
|
+
Phone Number: #:MISC/PHONE_NUMBER
|
36
|
+
full_name: "#:NAMES/EN/FULL_NAME"
|
37
|
+
goog_email: "#:IT/FIRST_NAME.#:IT/LAST_NAME@COMPANY+goog.[com|org|net]"
|
38
|
+
hw_email: "#:IT/FIRST_NAME.#:IT/LAST_NAME@[helloworld|eprize]+hw.[com|org|net]"
|
39
|
+
test_email: "#:IT/FIRST_NAME.#:IT/LAST_NAME@COMPANY+test.[com|org|net]"
|
40
|
+
|
41
|
+
rules:
|
42
|
+
names:
|
43
|
+
en:
|
44
|
+
full_name: '#:FIRST_NAME #:MIDDLE_INITIAL #:LAST_NAME'
|
45
|
+
first_name: "=:en/us/first_names"
|
46
|
+
middle_initial: "[A-Z]"
|
47
|
+
last_name: "=:en/us/last_names"
|
48
|
+
it:
|
49
|
+
first_name: "=:it/first_names"
|
50
|
+
last_name: "=:it/last_names"
|
51
|
+
dates:
|
52
|
+
birth_date: "#:MONTH #:DAY #:BIRTH_YEAR #:TIME/HOUR #:TIME/MINUTE #:TIME/SECOND"
|
53
|
+
accepted_date: "#:MONTH #:DAY #:RECENT_YEAR #:TIME/HOUR #:TIME/MINUTE #:TIME/SECOND"
|
54
|
+
month: "=:en/months"
|
55
|
+
day: "=:en/days"
|
56
|
+
birth_year: "19[6-9][0-9]"
|
57
|
+
recent_year: "20((0[0-9])|(1[0-6]))"
|
58
|
+
time:
|
59
|
+
hour: "(0[1-9]) | (1[0-2])"
|
60
|
+
minute: "[0-5][0-9]"
|
61
|
+
second: "[0..59]"
|
62
|
+
misc:
|
63
|
+
domains: "=:en/us/domains"
|
64
|
+
area_code: "=:en/us/area_codes"
|
65
|
+
phone_number: " #:AREA_CODE-([0-9]{3:3})-([0-9]{4:4})"
|
66
|
+
email: "#:IT/FIRST_NAME.#:IT/LAST_NAME@COMPANY+company_sig.[com|org|net]"
|
67
|
+
company: "=:en/us/companies"
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'lightning/bolt/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "lightning-bolt"
|
8
|
+
spec.version = Lightning::Bolt::VERSION
|
9
|
+
spec.authors = ["Austin Vecchio"]
|
10
|
+
spec.email = ["au.vecchio@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Data Generator}
|
13
|
+
spec.description = %q{A configurable web safe data generator}
|
14
|
+
spec.homepage = "https://github.com/avecchio/lightning-bolt"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_dependency "thor", "~> 0.19"
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
24
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
25
|
+
end
|
data/specs/baseline.yml
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
baselines:
|
2
|
+
- theorem: "birth_date"
|
3
|
+
regex: ""
|
4
|
+
- theorem: "birth_date_range"
|
5
|
+
regex: ""
|
6
|
+
- theorem: "birth_date_month"
|
7
|
+
regex: ""
|
8
|
+
- theorem: "birth_date_feburary"
|
9
|
+
regex: ""
|
10
|
+
- theorem: "birth_date_days_thirty_even"
|
11
|
+
regex: ""
|
12
|
+
- theorem: "birth_date_days_thirty_odd"
|
13
|
+
regex: ""
|
14
|
+
- theorem: "birth_date_norange"
|
15
|
+
regex: ""
|
16
|
+
- theorem: "birth_date_delimiter"
|
17
|
+
regex: ""
|
18
|
+
- theorem: "birth_year"
|
19
|
+
regex: ""
|
20
|
+
- theorem: "time_year"
|
21
|
+
regex: ""
|
22
|
+
- theorem: "us_dollar"
|
23
|
+
regex: ""
|
24
|
+
- theorem: "time_month_numeric"
|
25
|
+
regex: ""
|
26
|
+
- theorem: "time_day_numeric"
|
27
|
+
regex: ""
|
28
|
+
- theorem: "states"
|
29
|
+
regex: ""
|
30
|
+
- theorem: "email"
|
31
|
+
regex: ""
|
32
|
+
- theorem: "website"
|
33
|
+
regex: ""
|
34
|
+
- theorem: "website_domain"
|
35
|
+
regex: ""
|
36
|
+
- theorem: "dot_name"
|
37
|
+
regex: ""
|
38
|
+
- theorem: "dash_name"
|
39
|
+
regex: ""
|
40
|
+
- theorem: "full_name"
|
41
|
+
regex: ""
|
42
|
+
- theorem: "english_first_name"
|
43
|
+
regex: ""
|
44
|
+
- theorem: "english_last_name"
|
45
|
+
regex: ""
|
46
|
+
- theorem: "french_first_name"
|
47
|
+
regex: ""
|
48
|
+
- theorem: "french_last_name"
|
49
|
+
regex: ""
|
50
|
+
- theorem: "italian_first_name"
|
51
|
+
regex: ""
|
52
|
+
- theorem: "italian_last_name"
|
53
|
+
regex: ""
|
54
|
+
- theorem: "hexadecimal"
|
55
|
+
regex: ""
|
56
|
+
- theorem: "ipv4"
|
57
|
+
regex: ""
|
58
|
+
- theorem: "ipv6"
|
59
|
+
regex: ""
|
60
|
+
- theorem: "social_security_number"
|
61
|
+
regex: ""
|
62
|
+
- theorem: "geolocation_latitude"
|
63
|
+
regex: ""
|
64
|
+
- theorem: "geolocation_longitude"
|
65
|
+
regex: ""
|
66
|
+
- theorem: "numeric_float_signed"
|
67
|
+
regex: ""
|
68
|
+
- theorem: "us_address"
|
69
|
+
regex: ""
|
70
|
+
- theorem: "us_city"
|
71
|
+
regex: ""
|
72
|
+
- theorem: "us_state"
|
73
|
+
regex: ""
|
74
|
+
- theorem: "us_zipcode"
|
75
|
+
regex: ""
|
76
|
+
- theorem: "us_phone_number"
|
77
|
+
regex: ""
|
78
|
+
- theorem: "international_phone_number"
|
79
|
+
regex: ""
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require_relative "../lib/lightning/bolt/codex"
|
2
|
+
require 'yaml'
|
3
|
+
|
4
|
+
baseline_theorems = YAML.load_file("./baseline.yml")["baselines"] | []
|
5
|
+
|
6
|
+
bookstore = "#{Dir.pwd}/../lib/lightning/bolt/templates/codex/"
|
7
|
+
payload = YAML.load_file("./payload.yml")
|
8
|
+
memory = []
|
9
|
+
|
10
|
+
codex = Lightning::Bolt::Codex.new(bookstore, payload["theorems"], payload["reports"], memory)
|
11
|
+
(0..0).each do | iteration |
|
12
|
+
baseline_theorems.each do | theorem |
|
13
|
+
puts "theorem: #{theorem["theorem"]}"
|
14
|
+
passable_theorem = codex.signal(true, false, theorem["theorem"])
|
15
|
+
#nonpassable_theorem = codex.signal(false, false, theorem["theorem"])
|
16
|
+
puts "passable"
|
17
|
+
puts passable_theorem#.scan(Regexp.new(theorem["regex"]))
|
18
|
+
# puts "nonpassable"
|
19
|
+
# puts nonpassable_theorem#.scan(Regexp.new(theorem["regex"]))
|
20
|
+
puts "------------"
|
21
|
+
end
|
22
|
+
end
|
data/specs/payload.yml
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
---
|
2
|
+
theorems:
|
3
|
+
- name: "birth_date"
|
4
|
+
path: "#:identification-birth-date"
|
5
|
+
path: "#:identification-birth-date-range|#:identification-birth-date-norange"
|
6
|
+
- name: "birth_date_range"
|
7
|
+
path: "#:identification-birth-date-range"
|
8
|
+
rule: "#:birth-date-month&#:identification-birth-date-delimiter&#:identification-birth-year"
|
9
|
+
- name: "birth_date_month"
|
10
|
+
path: "#:birth-date-month"
|
11
|
+
rule: "(#:birth-date-feburary|#:birth-date-days-thirty-even|#:birth-date-days-thirty-odd)"
|
12
|
+
- name: "birth_date_feburary"
|
13
|
+
path: "#:birth-date-feburary"
|
14
|
+
rule: "(2#:identification-birth-date-delimiter[0..29])"
|
15
|
+
- name: "birth_date_days_thirty_even"
|
16
|
+
path: "#:birth-date-days-thirty-even"
|
17
|
+
rule: "((4|6|9|11)#:identification-birth-date-delimiter[0..30])"
|
18
|
+
- name: "birth_date_days_thirty_odd"
|
19
|
+
path: "#:birth-date-days-thirty-odd"
|
20
|
+
rule: "((1|3|5|7|8|10|12)#:identification-birth-date-delimiter[0..31])"
|
21
|
+
- name: "birth_date_norange"
|
22
|
+
path: "#:identification-birth-date-norange"
|
23
|
+
rule: "((2(([0-1][0-9])|(2[0-9])))|((1|3|5|7|8|10|12)&(([0-2])|([0-2][0-9])))|((4|6|9|11)[0..30]))"
|
24
|
+
- name: "birth_date_delimiter"
|
25
|
+
path: "#:identification-birth-date-delimiter"
|
26
|
+
rule: "/"
|
27
|
+
- name: "birth_year"
|
28
|
+
path: "#:identification-birth-year"
|
29
|
+
rule: "(19[0-9][0-9])|(20[0-1][0-9])|(20[0-1][6])"
|
30
|
+
- name: "time_year"
|
31
|
+
path: "#:time-year"
|
32
|
+
rule: "[0-9]{4:4}"
|
33
|
+
- name: "us_dollar"
|
34
|
+
path: "#:en-us-dollar"
|
35
|
+
rule: "$([0-9]{0:2}),([1-9]{3:3})\\.[0-9][0-9]"
|
36
|
+
- name: "time_month_numeric"
|
37
|
+
path: "#:time-month-numeric"
|
38
|
+
rule: "([1..12])|((0[0-9])|1(0-2))"
|
39
|
+
- name: "time_day_numeric"
|
40
|
+
path: "#:time-day-numeric"
|
41
|
+
rule: "([1..31])|(([0-2][0-9])|(3[01]))"
|
42
|
+
- name: "identification-email"
|
43
|
+
path: "#:profile-email"
|
44
|
+
rule: "#:name-dot@#:organization-website"
|
45
|
+
- name: "identification-website"
|
46
|
+
path: "#:organization-website"
|
47
|
+
rule: "@:en-organizations\\.#:names-domain"
|
48
|
+
- name: "website_domain"
|
49
|
+
path: "#:names-domain"
|
50
|
+
rule: "(org|com|net|)"
|
51
|
+
- name: "dot_name"
|
52
|
+
path: "#:name-dot"
|
53
|
+
rule: "((#:en-first-name)&(\\.)&(#:en-last-name)|(#:fr-first-name)&(\\.)&(#:fr-last-name)|(#:it-first-name)&(\\.)&(#:it-last-name))"
|
54
|
+
- name: "dash_name"
|
55
|
+
path: "#:name-dash"
|
56
|
+
rule: "((#:en-first-name\\-#:en-last-name)|(#:fr-first-name\\-#:fr-last-name)|(#:it-first-name\\-#:it-last-name))"
|
57
|
+
- name: "full_name"
|
58
|
+
path: "#:name-full"
|
59
|
+
rule: "((#:en-first-name #:en-last-name)|(#:fr-first-name #:fr-last-name)|(#:it-first-name #:it-last-name))"
|
60
|
+
- name: "english_first_name"
|
61
|
+
path: "#:en-first-name"
|
62
|
+
rule: "@:en-names-first"
|
63
|
+
- name: "english_last_name"
|
64
|
+
path: "#:en-last-name"
|
65
|
+
rule: "@:en-names-last"
|
66
|
+
- name: "french_first_name"
|
67
|
+
path: "#:fr-first-name"
|
68
|
+
rule: "@:fr-names-first"
|
69
|
+
- name: "french_last_name"
|
70
|
+
path: "#:fr-last-name"
|
71
|
+
rule: "@:fr-names-last"
|
72
|
+
- name: "italian_first_name"
|
73
|
+
path: "#:it-first-name"
|
74
|
+
rule: "@:it-names-first"
|
75
|
+
- name: "italian_last_name"
|
76
|
+
path: "#:it-last-name"
|
77
|
+
rule: "@:it-names-last"
|
78
|
+
- name: "hexadecimal"
|
79
|
+
path: "#:numeric-base-sixteen"
|
80
|
+
rule: "[0-9a-f]"
|
81
|
+
- name: "ipv4"
|
82
|
+
path: "#:technology-internet-ipv4"
|
83
|
+
rule: "(((([0-1][0-9][0-9])|(2([0-4][0-9]|5[0-5])))|(2[0..55]))\\.{3:3})&((([0-1][0-9][0-9])|(2([0-4][0-9]|5[0-5])))|(2[0..55]))"
|
84
|
+
- name: "ipv6"
|
85
|
+
path: "#:technology-internet-ipv6"
|
86
|
+
rule: "((#:numeric-base-sixteen{4:4}):{7:7})(#:numeric-base-sixteen{4:4})"
|
87
|
+
- name: "social_security_number"
|
88
|
+
path: "#:identification-socialsecuritynumber"
|
89
|
+
rule: "([0-9]{3:3})\\-([0-9]{2:2})\\-([0-9]{4:4})"
|
90
|
+
- name: "geolocation_latitude"
|
91
|
+
path: "#:geolocation-latitude"
|
92
|
+
rule: "#:numeric-float-signed"
|
93
|
+
- name: "geolocation_longitude"
|
94
|
+
path: "#:geolocation-longitude"
|
95
|
+
rule: "#:numeric-float-signed"
|
96
|
+
- name: "numeric_float_signed"
|
97
|
+
path: "#:numeric-float-signed"
|
98
|
+
rule: "(\\+|\\-)[0..65536]\\.[0..65536]"
|
99
|
+
- name: "us_address"
|
100
|
+
path: "#:identification-us-address"
|
101
|
+
rule: "[0..99999] @:"
|
102
|
+
- name: "us_city"
|
103
|
+
path: "#:identification-us-city"
|
104
|
+
rule: "@:en-us-cities"
|
105
|
+
- name: "us_state"
|
106
|
+
path: "#:identification-us-state"
|
107
|
+
rule: "@:en-us-states"
|
108
|
+
- name: "us_zipcode"
|
109
|
+
path: "#:identification-us-zipcode"
|
110
|
+
rule: "[0-9]{5:5}"
|
111
|
+
- name: "us_phone_number"
|
112
|
+
path: "#:identification-us-phonenumber"
|
113
|
+
rule: "[1-9][1-9][1-9]\\-[1-9][1-9][1-9]\\-[1-9][1-9][1-9][1-9]"
|
114
|
+
- name: "international_phone_number"
|
115
|
+
path: "#:identification-international-phonenumber"
|
116
|
+
rule: "hi"
|
metadata
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lightning-bolt
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Austin Vecchio
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-04-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.19'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.19'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.11'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.11'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
description: A configurable web safe data generator
|
56
|
+
email:
|
57
|
+
- au.vecchio@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- CODE_OF_CONDUCT.md
|
64
|
+
- Gemfile
|
65
|
+
- LICENSE.txt
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- bin/lightningbolt
|
69
|
+
- lib/lightning/bolt.rb
|
70
|
+
- lib/lightning/bolt/cli.rb
|
71
|
+
- lib/lightning/bolt/codex.rb
|
72
|
+
- lib/lightning/bolt/cypher.rb
|
73
|
+
- lib/lightning/bolt/encoding.yml
|
74
|
+
- lib/lightning/bolt/fuzzer.rb
|
75
|
+
- lib/lightning/bolt/keys.yml
|
76
|
+
- lib/lightning/bolt/seed.txt
|
77
|
+
- lib/lightning/bolt/templates/codex/en/colors.yml
|
78
|
+
- lib/lightning/bolt/templates/codex/en/names.yml
|
79
|
+
- lib/lightning/bolt/templates/codex/en/organizations.yml
|
80
|
+
- lib/lightning/bolt/templates/codex/en/us/states.yml
|
81
|
+
- lib/lightning/bolt/templates/codex/en/vehicles.yml
|
82
|
+
- lib/lightning/bolt/templates/codex/fr/names.yml
|
83
|
+
- lib/lightning/bolt/templates/codex/it/names.yml
|
84
|
+
- lib/lightning/bolt/templates/payload.yml
|
85
|
+
- lib/lightning/bolt/util.rb
|
86
|
+
- lib/lightning/bolt/version.rb
|
87
|
+
- lightning-bolt.gemspec
|
88
|
+
- specs/baseline.yml
|
89
|
+
- specs/checkpoints.rb
|
90
|
+
- specs/payload.yml
|
91
|
+
homepage: https://github.com/avecchio/lightning-bolt
|
92
|
+
licenses:
|
93
|
+
- MIT
|
94
|
+
metadata: {}
|
95
|
+
post_install_message:
|
96
|
+
rdoc_options: []
|
97
|
+
require_paths:
|
98
|
+
- lib
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
requirements: []
|
110
|
+
rubyforge_project:
|
111
|
+
rubygems_version: 2.5.1
|
112
|
+
signing_key:
|
113
|
+
specification_version: 4
|
114
|
+
summary: Data Generator
|
115
|
+
test_files: []
|