nne_client 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/.gitignore +19 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +22 -0
  4. data/README.md +92 -0
  5. data/Rakefile +2 -0
  6. data/lib/nne_client/fetch.rb +22 -0
  7. data/lib/nne_client/query.rb +35 -0
  8. data/lib/nne_client/question.rb +36 -0
  9. data/lib/nne_client/record_types/finance.rb +43 -0
  10. data/lib/nne_client/record_types/ownership.rb +25 -0
  11. data/lib/nne_client/record_types/subsidiary.rb +25 -0
  12. data/lib/nne_client/record_types/trade.rb +21 -0
  13. data/lib/nne_client/request.rb +56 -0
  14. data/lib/nne_client/result.rb +171 -0
  15. data/lib/nne_client/result_attributes.rb +37 -0
  16. data/lib/nne_client/result_set.rb +43 -0
  17. data/lib/nne_client/search.rb +15 -0
  18. data/lib/nne_client/version.rb +3 -0
  19. data/lib/nne_client.rb +43 -0
  20. data/nne_client.gemspec +24 -0
  21. data/spec/finance_spec.rb +79 -0
  22. data/spec/ownership_spec.rb +34 -0
  23. data/spec/result_spec.rb +284 -0
  24. data/spec/search_spec.rb +78 -0
  25. data/spec/spec_helper.rb +29 -0
  26. data/spec/subsidiary_spec.rb +36 -0
  27. data/spec/trade_spec.rb +21 -0
  28. data/spec/vcr_cassettes/result_additional_names_single.yml +706 -0
  29. data/spec/vcr_cassettes/result_extended_info.yml +705 -0
  30. data/spec/vcr_cassettes/result_extended_info_with_access_key.yml +705 -0
  31. data/spec/vcr_cassettes/result_fetching_basic_attributes.yml +705 -0
  32. data/spec/vcr_cassettes/result_fetching_ext_attributes_email_hash.yml +1407 -0
  33. data/spec/vcr_cassettes/result_fetching_missing_company.yml +706 -0
  34. data/spec/vcr_cassettes/result_multiple_finances.yml +1408 -0
  35. data/spec/vcr_cassettes/result_multiple_ownerships.yml +1409 -0
  36. data/spec/vcr_cassettes/result_multiple_trades.yml +1407 -0
  37. data/spec/vcr_cassettes/result_names.yml +705 -0
  38. data/spec/vcr_cassettes/result_names_empty.yml +706 -0
  39. data/spec/vcr_cassettes/result_no_finance.yml +1408 -0
  40. data/spec/vcr_cassettes/result_no_ownerships.yml +706 -0
  41. data/spec/vcr_cassettes/result_no_subsidiaries.yml +1409 -0
  42. data/spec/vcr_cassettes/result_single_finance.yml +1409 -0
  43. data/spec/vcr_cassettes/result_single_ownership.yml +1408 -0
  44. data/spec/vcr_cassettes/result_single_subsidiary.yml +1408 -0
  45. data/spec/vcr_cassettes/result_trades.yml +705 -0
  46. data/spec/vcr_cassettes/search_for_noise.yml +706 -0
  47. data/spec/vcr_cassettes/search_lokale.yml +705 -0
  48. data/spec/vcr_cassettes/search_lokale_100.yml +705 -0
  49. data/spec/vcr_cassettes/search_lokalebasen.yml +706 -0
  50. data/spec/vcr_cassettes/search_lokalebasen_with_access_key.yml +706 -0
  51. metadata +234 -0
metadata ADDED
@@ -0,0 +1,234 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nne_client
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Jacob Atzen
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-05-15 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: savon
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ hash: 49
29
+ segments:
30
+ - 0
31
+ - 9
32
+ - 5
33
+ version: 0.9.5
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: config_newton
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ hash: 25
45
+ segments:
46
+ - 0
47
+ - 1
48
+ - 1
49
+ version: 0.1.1
50
+ type: :runtime
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: vcr
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
63
+ version: "0"
64
+ type: :development
65
+ version_requirements: *id003
66
+ - !ruby/object:Gem::Dependency
67
+ name: fakeweb
68
+ prerelease: false
69
+ requirement: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 0
77
+ version: "0"
78
+ type: :development
79
+ version_requirements: *id004
80
+ - !ruby/object:Gem::Dependency
81
+ name: rspec
82
+ prerelease: false
83
+ requirement: &id005 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ hash: 3
89
+ segments:
90
+ - 0
91
+ version: "0"
92
+ type: :development
93
+ version_requirements: *id005
94
+ - !ruby/object:Gem::Dependency
95
+ name: equivalent-xml
96
+ prerelease: false
97
+ requirement: &id006 !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ~>
101
+ - !ruby/object:Gem::Version
102
+ hash: 5
103
+ segments:
104
+ - 0
105
+ - 2
106
+ - 9
107
+ version: 0.2.9
108
+ type: :development
109
+ version_requirements: *id006
110
+ description: Client library for the Navne & Numre Erhverv SOAP service
111
+ email:
112
+ - jacob@incremental.dk
113
+ executables: []
114
+
115
+ extensions: []
116
+
117
+ extra_rdoc_files: []
118
+
119
+ files:
120
+ - .gitignore
121
+ - Gemfile
122
+ - LICENSE
123
+ - README.md
124
+ - Rakefile
125
+ - lib/nne_client.rb
126
+ - lib/nne_client/fetch.rb
127
+ - lib/nne_client/query.rb
128
+ - lib/nne_client/question.rb
129
+ - lib/nne_client/record_types/finance.rb
130
+ - lib/nne_client/record_types/ownership.rb
131
+ - lib/nne_client/record_types/subsidiary.rb
132
+ - lib/nne_client/record_types/trade.rb
133
+ - lib/nne_client/request.rb
134
+ - lib/nne_client/result.rb
135
+ - lib/nne_client/result_attributes.rb
136
+ - lib/nne_client/result_set.rb
137
+ - lib/nne_client/search.rb
138
+ - lib/nne_client/version.rb
139
+ - nne_client.gemspec
140
+ - spec/finance_spec.rb
141
+ - spec/ownership_spec.rb
142
+ - spec/result_spec.rb
143
+ - spec/search_spec.rb
144
+ - spec/spec_helper.rb
145
+ - spec/subsidiary_spec.rb
146
+ - spec/trade_spec.rb
147
+ - spec/vcr_cassettes/result_additional_names_single.yml
148
+ - spec/vcr_cassettes/result_extended_info.yml
149
+ - spec/vcr_cassettes/result_extended_info_with_access_key.yml
150
+ - spec/vcr_cassettes/result_fetching_basic_attributes.yml
151
+ - spec/vcr_cassettes/result_fetching_ext_attributes_email_hash.yml
152
+ - spec/vcr_cassettes/result_fetching_missing_company.yml
153
+ - spec/vcr_cassettes/result_multiple_finances.yml
154
+ - spec/vcr_cassettes/result_multiple_ownerships.yml
155
+ - spec/vcr_cassettes/result_multiple_trades.yml
156
+ - spec/vcr_cassettes/result_names.yml
157
+ - spec/vcr_cassettes/result_names_empty.yml
158
+ - spec/vcr_cassettes/result_no_finance.yml
159
+ - spec/vcr_cassettes/result_no_ownerships.yml
160
+ - spec/vcr_cassettes/result_no_subsidiaries.yml
161
+ - spec/vcr_cassettes/result_single_finance.yml
162
+ - spec/vcr_cassettes/result_single_ownership.yml
163
+ - spec/vcr_cassettes/result_single_subsidiary.yml
164
+ - spec/vcr_cassettes/result_trades.yml
165
+ - spec/vcr_cassettes/search_for_noise.yml
166
+ - spec/vcr_cassettes/search_lokale.yml
167
+ - spec/vcr_cassettes/search_lokale_100.yml
168
+ - spec/vcr_cassettes/search_lokalebasen.yml
169
+ - spec/vcr_cassettes/search_lokalebasen_with_access_key.yml
170
+ homepage: ""
171
+ licenses: []
172
+
173
+ post_install_message:
174
+ rdoc_options: []
175
+
176
+ require_paths:
177
+ - lib
178
+ required_ruby_version: !ruby/object:Gem::Requirement
179
+ none: false
180
+ requirements:
181
+ - - ">="
182
+ - !ruby/object:Gem::Version
183
+ hash: 3
184
+ segments:
185
+ - 0
186
+ version: "0"
187
+ required_rubygems_version: !ruby/object:Gem::Requirement
188
+ none: false
189
+ requirements:
190
+ - - ">="
191
+ - !ruby/object:Gem::Version
192
+ hash: 3
193
+ segments:
194
+ - 0
195
+ version: "0"
196
+ requirements: []
197
+
198
+ rubyforge_project:
199
+ rubygems_version: 1.8.17
200
+ signing_key:
201
+ specification_version: 3
202
+ summary: A small library easing integration with NNE
203
+ test_files:
204
+ - spec/finance_spec.rb
205
+ - spec/ownership_spec.rb
206
+ - spec/result_spec.rb
207
+ - spec/search_spec.rb
208
+ - spec/spec_helper.rb
209
+ - spec/subsidiary_spec.rb
210
+ - spec/trade_spec.rb
211
+ - spec/vcr_cassettes/result_additional_names_single.yml
212
+ - spec/vcr_cassettes/result_extended_info.yml
213
+ - spec/vcr_cassettes/result_extended_info_with_access_key.yml
214
+ - spec/vcr_cassettes/result_fetching_basic_attributes.yml
215
+ - spec/vcr_cassettes/result_fetching_ext_attributes_email_hash.yml
216
+ - spec/vcr_cassettes/result_fetching_missing_company.yml
217
+ - spec/vcr_cassettes/result_multiple_finances.yml
218
+ - spec/vcr_cassettes/result_multiple_ownerships.yml
219
+ - spec/vcr_cassettes/result_multiple_trades.yml
220
+ - spec/vcr_cassettes/result_names.yml
221
+ - spec/vcr_cassettes/result_names_empty.yml
222
+ - spec/vcr_cassettes/result_no_finance.yml
223
+ - spec/vcr_cassettes/result_no_ownerships.yml
224
+ - spec/vcr_cassettes/result_no_subsidiaries.yml
225
+ - spec/vcr_cassettes/result_single_finance.yml
226
+ - spec/vcr_cassettes/result_single_ownership.yml
227
+ - spec/vcr_cassettes/result_single_subsidiary.yml
228
+ - spec/vcr_cassettes/result_trades.yml
229
+ - spec/vcr_cassettes/search_for_noise.yml
230
+ - spec/vcr_cassettes/search_lokale.yml
231
+ - spec/vcr_cassettes/search_lokale_100.yml
232
+ - spec/vcr_cassettes/search_lokalebasen.yml
233
+ - spec/vcr_cassettes/search_lokalebasen_with_access_key.yml
234
+ has_rdoc: