forgery 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +6 -0
  3. data/.travis.yml +13 -0
  4. data/Gemfile +9 -0
  5. data/Gemfile.lock +27 -0
  6. data/LICENSE +1 -1
  7. data/README.markdown +9 -5
  8. data/Rakefile +9 -1
  9. data/forgery.gemspec +23 -0
  10. data/lib/forgery/dictionaries/company_names +0 -1
  11. data/lib/forgery/dictionaries/currency_descriptions +2 -2
  12. data/lib/forgery/file_reader.rb +1 -0
  13. data/lib/forgery/forgery/geo.rb +54 -0
  14. data/lib/forgery/forgery/internet.rb +7 -0
  15. data/lib/forgery/forgery/russian_tax.rb +57 -0
  16. data/lib/forgery/version.rb +1 -1
  17. data/spec/data/dictionaries/code_names +6 -0
  18. data/spec/data/dictionaries/female_first_names +1 -0
  19. data/spec/data/documents/mock_web_page.html +17 -0
  20. data/spec/data/documents/mock_xml_doc.xml +5 -0
  21. data/spec/dictionaries_spec.rb +35 -0
  22. data/spec/extensions/array_spec.rb +25 -0
  23. data/spec/extensions/range_spec.rb +31 -0
  24. data/spec/extensions/string_spec.rb +29 -0
  25. data/spec/file_reader_spec.rb +32 -0
  26. data/spec/forgery/address_spec.rb +84 -0
  27. data/spec/forgery/basic_spec.rb +179 -0
  28. data/spec/forgery/credit_card_spec.rb +68 -0
  29. data/spec/forgery/currency_spec.rb +15 -0
  30. data/spec/forgery/date_spec.rb +134 -0
  31. data/spec/forgery/internet_spec.rb +62 -0
  32. data/spec/forgery/lorem_ipsum_spec.rb +132 -0
  33. data/spec/forgery/monetary_spec.rb +14 -0
  34. data/spec/forgery/name_spec.rb +11 -0
  35. data/spec/forgery/personal_spec.rb +15 -0
  36. data/spec/forgery/russian_tax_spec.rb +81 -0
  37. data/spec/forgery/time_spec.rb +7 -0
  38. data/spec/forgery_spec.rb +63 -0
  39. data/spec/formats_spec.rb +35 -0
  40. data/spec/spec_helper.rb +39 -0
  41. metadata +101 -64
metadata CHANGED
@@ -1,50 +1,53 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: forgery
3
- version: !ruby/object:Gem::Version
4
- hash: 11
5
- prerelease:
6
- segments:
7
- - 0
8
- - 5
9
- - 0
10
- version: 0.5.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Nathan Sutton
14
8
  - Brandon Arbini
9
+ - Kamil Kieliszczyk
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2011-09-08 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: rspec
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
13
+ date: 2014-04-20 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: bundler
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "~>"
20
+ - !ruby/object:Gem::Version
21
+ version: '1.3'
33
22
  type: :development
34
- version_requirements: *id001
35
- description: Easy and customizable generation of forged data. Can be used as a gem or a rails plugin. Includes rails generators for creating your own forgeries.
36
- email:
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: '1.3'
29
+ description: Easy and customizable generation of forged data. Can be used as a gem
30
+ or a rails plugin. Includes rails generators for creating your own forgeries.
31
+ email:
37
32
  - nate@zencoder.com
38
33
  - brandon@zencoder.com
34
+ - kamil@kieliszczyk.net
39
35
  executables: []
40
-
41
36
  extensions: []
42
-
43
37
  extra_rdoc_files: []
44
-
45
- files:
46
- - generators/forgery/forgery_generator.rb
38
+ files:
39
+ - ".gitignore"
40
+ - ".travis.yml"
41
+ - Gemfile
42
+ - Gemfile.lock
43
+ - LICENSE
44
+ - README.markdown
45
+ - Rakefile
46
+ - forgery.gemspec
47
47
  - generators/forgery/USAGE
48
+ - generators/forgery/forgery_generator.rb
49
+ - lib/forgery.rb
50
+ - lib/forgery/dictionaries.rb
48
51
  - lib/forgery/dictionaries/cities
49
52
  - lib/forgery/dictionaries/colors
50
53
  - lib/forgery/dictionaries/company_names
@@ -76,69 +79,103 @@ files:
76
79
  - lib/forgery/dictionaries/streets
77
80
  - lib/forgery/dictionaries/top_level_domains
78
81
  - lib/forgery/dictionaries/zones
79
- - lib/forgery/dictionaries.rb
80
82
  - lib/forgery/extend.rb
81
83
  - lib/forgery/extensions/array.rb
82
84
  - lib/forgery/extensions/range.rb
83
85
  - lib/forgery/extensions/string.rb
84
86
  - lib/forgery/file_reader.rb
87
+ - lib/forgery/forgery.rb
85
88
  - lib/forgery/forgery/address.rb
86
89
  - lib/forgery/forgery/basic.rb
87
90
  - lib/forgery/forgery/credit_card.rb
88
91
  - lib/forgery/forgery/currency.rb
89
92
  - lib/forgery/forgery/date.rb
90
93
  - lib/forgery/forgery/email.rb
94
+ - lib/forgery/forgery/geo.rb
91
95
  - lib/forgery/forgery/internet.rb
92
96
  - lib/forgery/forgery/lorem_ipsum.rb
93
97
  - lib/forgery/forgery/monetary.rb
94
98
  - lib/forgery/forgery/name.rb
95
99
  - lib/forgery/forgery/personal.rb
100
+ - lib/forgery/forgery/russian_tax.rb
96
101
  - lib/forgery/forgery/time.rb
97
- - lib/forgery/forgery.rb
98
102
  - lib/forgery/forgery_api.rb
99
103
  - lib/forgery/forgery_railtie.rb
104
+ - lib/forgery/formats.rb
100
105
  - lib/forgery/formats/phone
101
106
  - lib/forgery/formats/street_number
102
107
  - lib/forgery/formats/zip
103
- - lib/forgery/formats.rb
104
108
  - lib/forgery/version.rb
105
- - lib/forgery.rb
106
109
  - lib/generators/forgery/forgery_generator.rb
107
- - LICENSE
108
- - README.markdown
109
- - Rakefile
110
+ - spec/data/dictionaries/code_names
111
+ - spec/data/dictionaries/female_first_names
112
+ - spec/data/documents/mock_web_page.html
113
+ - spec/data/documents/mock_xml_doc.xml
114
+ - spec/dictionaries_spec.rb
115
+ - spec/extensions/array_spec.rb
116
+ - spec/extensions/range_spec.rb
117
+ - spec/extensions/string_spec.rb
118
+ - spec/file_reader_spec.rb
119
+ - spec/forgery/address_spec.rb
120
+ - spec/forgery/basic_spec.rb
121
+ - spec/forgery/credit_card_spec.rb
122
+ - spec/forgery/currency_spec.rb
123
+ - spec/forgery/date_spec.rb
124
+ - spec/forgery/internet_spec.rb
125
+ - spec/forgery/lorem_ipsum_spec.rb
126
+ - spec/forgery/monetary_spec.rb
127
+ - spec/forgery/name_spec.rb
128
+ - spec/forgery/personal_spec.rb
129
+ - spec/forgery/russian_tax_spec.rb
130
+ - spec/forgery/time_spec.rb
131
+ - spec/forgery_spec.rb
132
+ - spec/formats_spec.rb
133
+ - spec/spec_helper.rb
110
134
  homepage: http://github.com/sevenwire/forgery
111
135
  licenses: []
112
-
136
+ metadata: {}
113
137
  post_install_message:
114
138
  rdoc_options: []
115
-
116
- require_paths:
139
+ require_paths:
117
140
  - lib
118
- required_ruby_version: !ruby/object:Gem::Requirement
119
- none: false
120
- requirements:
141
+ required_ruby_version: !ruby/object:Gem::Requirement
142
+ requirements:
121
143
  - - ">="
122
- - !ruby/object:Gem::Version
123
- hash: 3
124
- segments:
125
- - 0
126
- version: "0"
127
- required_rubygems_version: !ruby/object:Gem::Requirement
128
- none: false
129
- requirements:
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ required_rubygems_version: !ruby/object:Gem::Requirement
147
+ requirements:
130
148
  - - ">="
131
- - !ruby/object:Gem::Version
132
- hash: 3
133
- segments:
134
- - 0
135
- version: "0"
149
+ - !ruby/object:Gem::Version
150
+ version: 1.3.6
136
151
  requirements: []
137
-
138
152
  rubyforge_project: forgery
139
- rubygems_version: 1.8.7
153
+ rubygems_version: 2.2.2
140
154
  signing_key:
141
- specification_version: 3
155
+ specification_version: 4
142
156
  summary: Easy and customizable generation of forged data.
143
- test_files: []
144
-
157
+ test_files:
158
+ - spec/data/dictionaries/code_names
159
+ - spec/data/dictionaries/female_first_names
160
+ - spec/data/documents/mock_web_page.html
161
+ - spec/data/documents/mock_xml_doc.xml
162
+ - spec/dictionaries_spec.rb
163
+ - spec/extensions/array_spec.rb
164
+ - spec/extensions/range_spec.rb
165
+ - spec/extensions/string_spec.rb
166
+ - spec/file_reader_spec.rb
167
+ - spec/forgery/address_spec.rb
168
+ - spec/forgery/basic_spec.rb
169
+ - spec/forgery/credit_card_spec.rb
170
+ - spec/forgery/currency_spec.rb
171
+ - spec/forgery/date_spec.rb
172
+ - spec/forgery/internet_spec.rb
173
+ - spec/forgery/lorem_ipsum_spec.rb
174
+ - spec/forgery/monetary_spec.rb
175
+ - spec/forgery/name_spec.rb
176
+ - spec/forgery/personal_spec.rb
177
+ - spec/forgery/russian_tax_spec.rb
178
+ - spec/forgery/time_spec.rb
179
+ - spec/forgery_spec.rb
180
+ - spec/formats_spec.rb
181
+ - spec/spec_helper.rb