boa_vista 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +1 -0
  3. data/lib/boa_vista/configuration.rb +5 -0
  4. data/lib/boa_vista/field/reader.rb +10 -0
  5. data/lib/boa_vista/field/writer.rb +20 -0
  6. data/lib/boa_vista/field.rb +15 -0
  7. data/lib/boa_vista/line.rb +64 -0
  8. data/lib/boa_vista/request/default.rb +33 -0
  9. data/lib/boa_vista/request/factory.rb +30 -0
  10. data/lib/boa_vista/request/layout/cnpj.rb +13 -0
  11. data/lib/boa_vista/request/layout/cpf.rb +11 -0
  12. data/lib/boa_vista/request/layout.rb +24 -0
  13. data/lib/boa_vista/request.rb +31 -0
  14. data/lib/boa_vista/response/layout/layout_138.rb +21 -0
  15. data/lib/boa_vista/response/layout/layout_221.rb +18 -0
  16. data/lib/boa_vista/response/layout/layout_249.rb +22 -0
  17. data/lib/boa_vista/response/layout/layout_282.rb +17 -0
  18. data/lib/boa_vista/response/layout/layout_283.rb +23 -0
  19. data/lib/boa_vista/response/layout/layout_285.rb +15 -0
  20. data/lib/boa_vista/response/layout/layout_353.rb +34 -0
  21. data/lib/boa_vista/response/layout/layout_354.rb +22 -0
  22. data/lib/boa_vista/response/layout/layout_901.rb +15 -0
  23. data/lib/boa_vista/response/layout/layout_999.rb +13 -0
  24. data/lib/boa_vista/response/layout.rb +29 -0
  25. data/lib/boa_vista/response.rb +21 -0
  26. data/lib/boa_vista/version.rb +3 -0
  27. data/lib/boa_vista.rb +47 -0
  28. data/spec/fixtures/base.txt +1 -0
  29. data/spec/fixtures/layout_138.txt +1 -0
  30. data/spec/fixtures/layout_221.txt +1 -0
  31. data/spec/fixtures/layout_249.txt +1 -0
  32. data/spec/fixtures/layout_282.txt +1 -0
  33. data/spec/fixtures/layout_283.txt +1 -0
  34. data/spec/fixtures/layout_285.txt +1 -0
  35. data/spec/fixtures/layout_353.txt +1 -0
  36. data/spec/fixtures/layout_354.txt +1 -0
  37. data/spec/fixtures/layout_901.txt +1 -0
  38. data/spec/fixtures/layout_999.txt +1 -0
  39. data/spec/fixtures/layout_cpf.txt +1 -0
  40. data/spec/lib/boa_vista/configuration_spec.rb +6 -0
  41. data/spec/lib/boa_vista/field/writer_spec.rb +22 -0
  42. data/spec/lib/boa_vista/field_spec.rb +2 -0
  43. data/spec/lib/boa_vista/line_spec.rb +58 -0
  44. data/spec/lib/boa_vista/request/default_spec.rb +40 -0
  45. data/spec/lib/boa_vista/request/factory_spec.rb +18 -0
  46. data/spec/lib/boa_vista/request/layout/cnpj_spec.rb +31 -0
  47. data/spec/lib/boa_vista/request/layout/cpf_spec.rb +28 -0
  48. data/spec/lib/boa_vista/request/layout_spec.rb +18 -0
  49. data/spec/lib/boa_vista/request_spec.rb +43 -0
  50. data/spec/lib/boa_vista/response/layout/layout_138_spec.rb +16 -0
  51. data/spec/lib/boa_vista/response/layout/layout_221_spec.rb +17 -0
  52. data/spec/lib/boa_vista/response/layout/layout_249_spec.rb +21 -0
  53. data/spec/lib/boa_vista/response/layout/layout_282_spec.rb +16 -0
  54. data/spec/lib/boa_vista/response/layout/layout_283_spec.rb +22 -0
  55. data/spec/lib/boa_vista/response/layout/layout_285_spec.rb +14 -0
  56. data/spec/lib/boa_vista/response/layout/layout_353_spec.rb +32 -0
  57. data/spec/lib/boa_vista/response/layout/layout_354_spec.rb +21 -0
  58. data/spec/lib/boa_vista/response/layout/layout_901_spec.rb +14 -0
  59. data/spec/lib/boa_vista/response/layout/layout_999_spec.rb +12 -0
  60. data/spec/lib/boa_vista/response/layout_spec.rb +2 -0
  61. data/spec/lib/boa_vista/response_spec.rb +18 -0
  62. data/spec/lib/boa_vista/version_spec.rb +3 -0
  63. data/spec/spec_helper.rb +16 -0
  64. metadata +200 -0
metadata ADDED
@@ -0,0 +1,200 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: boa_vista
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Gabriel Souza
8
+ - Kleber Shimabuku
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2016-02-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 3.0.0
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 3.0.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: rspec-its
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: shoulda-matchers
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rake
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ description: Client for Boa Vista
71
+ email:
72
+ - gabriel07malakias@gmail.com
73
+ - klebershimabuku@gmail.com
74
+ executables: []
75
+ extensions: []
76
+ extra_rdoc_files: []
77
+ files:
78
+ - README.md
79
+ - lib/boa_vista.rb
80
+ - lib/boa_vista/configuration.rb
81
+ - lib/boa_vista/field.rb
82
+ - lib/boa_vista/field/reader.rb
83
+ - lib/boa_vista/field/writer.rb
84
+ - lib/boa_vista/line.rb
85
+ - lib/boa_vista/request.rb
86
+ - lib/boa_vista/request/default.rb
87
+ - lib/boa_vista/request/factory.rb
88
+ - lib/boa_vista/request/layout.rb
89
+ - lib/boa_vista/request/layout/cnpj.rb
90
+ - lib/boa_vista/request/layout/cpf.rb
91
+ - lib/boa_vista/response.rb
92
+ - lib/boa_vista/response/layout.rb
93
+ - lib/boa_vista/response/layout/layout_138.rb
94
+ - lib/boa_vista/response/layout/layout_221.rb
95
+ - lib/boa_vista/response/layout/layout_249.rb
96
+ - lib/boa_vista/response/layout/layout_282.rb
97
+ - lib/boa_vista/response/layout/layout_283.rb
98
+ - lib/boa_vista/response/layout/layout_285.rb
99
+ - lib/boa_vista/response/layout/layout_353.rb
100
+ - lib/boa_vista/response/layout/layout_354.rb
101
+ - lib/boa_vista/response/layout/layout_901.rb
102
+ - lib/boa_vista/response/layout/layout_999.rb
103
+ - lib/boa_vista/version.rb
104
+ - spec/fixtures/base.txt
105
+ - spec/fixtures/layout_138.txt
106
+ - spec/fixtures/layout_221.txt
107
+ - spec/fixtures/layout_249.txt
108
+ - spec/fixtures/layout_282.txt
109
+ - spec/fixtures/layout_283.txt
110
+ - spec/fixtures/layout_285.txt
111
+ - spec/fixtures/layout_353.txt
112
+ - spec/fixtures/layout_354.txt
113
+ - spec/fixtures/layout_901.txt
114
+ - spec/fixtures/layout_999.txt
115
+ - spec/fixtures/layout_cpf.txt
116
+ - spec/lib/boa_vista/configuration_spec.rb
117
+ - spec/lib/boa_vista/field/writer_spec.rb
118
+ - spec/lib/boa_vista/field_spec.rb
119
+ - spec/lib/boa_vista/line_spec.rb
120
+ - spec/lib/boa_vista/request/default_spec.rb
121
+ - spec/lib/boa_vista/request/factory_spec.rb
122
+ - spec/lib/boa_vista/request/layout/cnpj_spec.rb
123
+ - spec/lib/boa_vista/request/layout/cpf_spec.rb
124
+ - spec/lib/boa_vista/request/layout_spec.rb
125
+ - spec/lib/boa_vista/request_spec.rb
126
+ - spec/lib/boa_vista/response/layout/layout_138_spec.rb
127
+ - spec/lib/boa_vista/response/layout/layout_221_spec.rb
128
+ - spec/lib/boa_vista/response/layout/layout_249_spec.rb
129
+ - spec/lib/boa_vista/response/layout/layout_282_spec.rb
130
+ - spec/lib/boa_vista/response/layout/layout_283_spec.rb
131
+ - spec/lib/boa_vista/response/layout/layout_285_spec.rb
132
+ - spec/lib/boa_vista/response/layout/layout_353_spec.rb
133
+ - spec/lib/boa_vista/response/layout/layout_354_spec.rb
134
+ - spec/lib/boa_vista/response/layout/layout_901_spec.rb
135
+ - spec/lib/boa_vista/response/layout/layout_999_spec.rb
136
+ - spec/lib/boa_vista/response/layout_spec.rb
137
+ - spec/lib/boa_vista/response_spec.rb
138
+ - spec/lib/boa_vista/version_spec.rb
139
+ - spec/spec_helper.rb
140
+ homepage: ''
141
+ licenses: []
142
+ metadata: {}
143
+ post_install_message:
144
+ rdoc_options: []
145
+ require_paths:
146
+ - lib
147
+ required_ruby_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ required_rubygems_version: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: '0'
157
+ requirements: []
158
+ rubyforge_project:
159
+ rubygems_version: 2.4.6
160
+ signing_key:
161
+ specification_version: 4
162
+ summary: Client for Boa Vista
163
+ test_files:
164
+ - spec/fixtures/base.txt
165
+ - spec/fixtures/layout_138.txt
166
+ - spec/fixtures/layout_221.txt
167
+ - spec/fixtures/layout_249.txt
168
+ - spec/fixtures/layout_282.txt
169
+ - spec/fixtures/layout_283.txt
170
+ - spec/fixtures/layout_285.txt
171
+ - spec/fixtures/layout_353.txt
172
+ - spec/fixtures/layout_354.txt
173
+ - spec/fixtures/layout_901.txt
174
+ - spec/fixtures/layout_999.txt
175
+ - spec/fixtures/layout_cpf.txt
176
+ - spec/lib/boa_vista/configuration_spec.rb
177
+ - spec/lib/boa_vista/field/writer_spec.rb
178
+ - spec/lib/boa_vista/field_spec.rb
179
+ - spec/lib/boa_vista/line_spec.rb
180
+ - spec/lib/boa_vista/request/default_spec.rb
181
+ - spec/lib/boa_vista/request/factory_spec.rb
182
+ - spec/lib/boa_vista/request/layout/cnpj_spec.rb
183
+ - spec/lib/boa_vista/request/layout/cpf_spec.rb
184
+ - spec/lib/boa_vista/request/layout_spec.rb
185
+ - spec/lib/boa_vista/request_spec.rb
186
+ - spec/lib/boa_vista/response/layout/layout_138_spec.rb
187
+ - spec/lib/boa_vista/response/layout/layout_221_spec.rb
188
+ - spec/lib/boa_vista/response/layout/layout_249_spec.rb
189
+ - spec/lib/boa_vista/response/layout/layout_282_spec.rb
190
+ - spec/lib/boa_vista/response/layout/layout_283_spec.rb
191
+ - spec/lib/boa_vista/response/layout/layout_285_spec.rb
192
+ - spec/lib/boa_vista/response/layout/layout_353_spec.rb
193
+ - spec/lib/boa_vista/response/layout/layout_354_spec.rb
194
+ - spec/lib/boa_vista/response/layout/layout_901_spec.rb
195
+ - spec/lib/boa_vista/response/layout/layout_999_spec.rb
196
+ - spec/lib/boa_vista/response/layout_spec.rb
197
+ - spec/lib/boa_vista/response_spec.rb
198
+ - spec/lib/boa_vista/version_spec.rb
199
+ - spec/spec_helper.rb
200
+ has_rdoc: