bol 0.0.1.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/.gitignore +4 -0
  2. data/CHANGELOG.md +1 -0
  3. data/Gemfile +2 -0
  4. data/Guardfile +7 -0
  5. data/LICENSE.md +19 -0
  6. data/README.md +170 -0
  7. data/Rakefile +6 -0
  8. data/bol.gemspec +25 -0
  9. data/lib/bol.rb +52 -0
  10. data/lib/bol/category.rb +5 -0
  11. data/lib/bol/configuration.rb +55 -0
  12. data/lib/bol/parser.rb +34 -0
  13. data/lib/bol/parsers.rb +7 -0
  14. data/lib/bol/parsers/categories.rb +17 -0
  15. data/lib/bol/parsers/products.rb +34 -0
  16. data/lib/bol/parsers/refinements.rb +24 -0
  17. data/lib/bol/product.rb +51 -0
  18. data/lib/bol/proxy.rb +37 -0
  19. data/lib/bol/query.rb +79 -0
  20. data/lib/bol/refinement.rb +5 -0
  21. data/lib/bol/refinement_group.rb +5 -0
  22. data/lib/bol/request.rb +90 -0
  23. data/lib/bol/requests.rb +7 -0
  24. data/lib/bol/requests/list.rb +26 -0
  25. data/lib/bol/requests/product.rb +16 -0
  26. data/lib/bol/requests/search.rb +11 -0
  27. data/lib/bol/scope.rb +55 -0
  28. data/lib/bol/signature.rb +44 -0
  29. data/lib/bol/version.rb +3 -0
  30. data/spec/bol/configuration_spec.rb +46 -0
  31. data/spec/bol/parsers/products_spec.rb +77 -0
  32. data/spec/bol/product_spec.rb +71 -0
  33. data/spec/bol/proxy_spec.rb +34 -0
  34. data/spec/bol/query_spec.rb +129 -0
  35. data/spec/bol/request_spec.rb +119 -0
  36. data/spec/bol/scope_spec.rb +84 -0
  37. data/spec/bol/signature_spec.rb +27 -0
  38. data/spec/bol_spec.rb +55 -0
  39. data/spec/fixtures/categorylist.xml +232 -0
  40. data/spec/fixtures/productlists.xml +164 -0
  41. data/spec/fixtures/products.xml +72 -0
  42. data/spec/fixtures/searchproducts-music.xml +108 -0
  43. data/spec/fixtures/searchproducts.xml +322 -0
  44. data/spec/spec_helper.rb +16 -0
  45. data/spec/support.rb +6 -0
  46. metadata +177 -0
@@ -0,0 +1,16 @@
1
+ require 'rspec'
2
+ require 'fakeweb'
3
+ require 'bol'
4
+ require 'support'
5
+
6
+ RSpec.configure do |config|
7
+ config.before(:suite) do
8
+ FakeWeb.allow_net_connect = false
9
+ end
10
+
11
+ config.after(:each) do
12
+ Bol.reset_configuration
13
+ end
14
+
15
+ config.include SpecHelpers
16
+ end
@@ -0,0 +1,6 @@
1
+ module SpecHelpers
2
+ def fixture(name)
3
+ File.read(File.expand_path(File.join('..', 'fixtures', name), __FILE__))
4
+ end
5
+ end
6
+
metadata ADDED
@@ -0,0 +1,177 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bol
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.beta
5
+ prerelease: 6
6
+ platform: ruby
7
+ authors:
8
+ - Arjan van der Gaag
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-01-30 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: &70205372705380 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *70205372705380
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &70205372704880 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70205372704880
36
+ - !ruby/object:Gem::Dependency
37
+ name: guard-rspec
38
+ requirement: &70205372704280 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70205372704280
47
+ - !ruby/object:Gem::Dependency
48
+ name: rb-fsevent
49
+ requirement: &70205372703520 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70205372703520
58
+ - !ruby/object:Gem::Dependency
59
+ name: growl
60
+ requirement: &70205372702540 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *70205372702540
69
+ - !ruby/object:Gem::Dependency
70
+ name: fakeweb
71
+ requirement: &70205372702080 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *70205372702080
80
+ description: Access the bol.com product catalog from a Ruby project. You can search
81
+ products, list top selling products and find product information for individual
82
+ catalog items.
83
+ email:
84
+ - arjan@arjanvandergaag.nl
85
+ executables: []
86
+ extensions: []
87
+ extra_rdoc_files: []
88
+ files:
89
+ - .gitignore
90
+ - CHANGELOG.md
91
+ - Gemfile
92
+ - Guardfile
93
+ - LICENSE.md
94
+ - README.md
95
+ - Rakefile
96
+ - bol.gemspec
97
+ - lib/bol.rb
98
+ - lib/bol/category.rb
99
+ - lib/bol/configuration.rb
100
+ - lib/bol/parser.rb
101
+ - lib/bol/parsers.rb
102
+ - lib/bol/parsers/categories.rb
103
+ - lib/bol/parsers/products.rb
104
+ - lib/bol/parsers/refinements.rb
105
+ - lib/bol/product.rb
106
+ - lib/bol/proxy.rb
107
+ - lib/bol/query.rb
108
+ - lib/bol/refinement.rb
109
+ - lib/bol/refinement_group.rb
110
+ - lib/bol/request.rb
111
+ - lib/bol/requests.rb
112
+ - lib/bol/requests/list.rb
113
+ - lib/bol/requests/product.rb
114
+ - lib/bol/requests/search.rb
115
+ - lib/bol/scope.rb
116
+ - lib/bol/signature.rb
117
+ - lib/bol/version.rb
118
+ - spec/bol/configuration_spec.rb
119
+ - spec/bol/parsers/products_spec.rb
120
+ - spec/bol/product_spec.rb
121
+ - spec/bol/proxy_spec.rb
122
+ - spec/bol/query_spec.rb
123
+ - spec/bol/request_spec.rb
124
+ - spec/bol/scope_spec.rb
125
+ - spec/bol/signature_spec.rb
126
+ - spec/bol_spec.rb
127
+ - spec/fixtures/categorylist.xml
128
+ - spec/fixtures/productlists.xml
129
+ - spec/fixtures/products.xml
130
+ - spec/fixtures/searchproducts-music.xml
131
+ - spec/fixtures/searchproducts.xml
132
+ - spec/spec_helper.rb
133
+ - spec/support.rb
134
+ homepage: https://github.com/avdgaag/bol
135
+ licenses: []
136
+ post_install_message:
137
+ rdoc_options: []
138
+ require_paths:
139
+ - lib
140
+ required_ruby_version: !ruby/object:Gem::Requirement
141
+ none: false
142
+ requirements:
143
+ - - ! '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ segments:
147
+ - 0
148
+ hash: -4339813933888908964
149
+ required_rubygems_version: !ruby/object:Gem::Requirement
150
+ none: false
151
+ requirements:
152
+ - - ! '>'
153
+ - !ruby/object:Gem::Version
154
+ version: 1.3.1
155
+ requirements: []
156
+ rubyforge_project:
157
+ rubygems_version: 1.8.15
158
+ signing_key:
159
+ specification_version: 3
160
+ summary: Simple Ruby wrapper around the bol.com developer API
161
+ test_files:
162
+ - spec/bol/configuration_spec.rb
163
+ - spec/bol/parsers/products_spec.rb
164
+ - spec/bol/product_spec.rb
165
+ - spec/bol/proxy_spec.rb
166
+ - spec/bol/query_spec.rb
167
+ - spec/bol/request_spec.rb
168
+ - spec/bol/scope_spec.rb
169
+ - spec/bol/signature_spec.rb
170
+ - spec/bol_spec.rb
171
+ - spec/fixtures/categorylist.xml
172
+ - spec/fixtures/productlists.xml
173
+ - spec/fixtures/products.xml
174
+ - spec/fixtures/searchproducts-music.xml
175
+ - spec/fixtures/searchproducts.xml
176
+ - spec/spec_helper.rb
177
+ - spec/support.rb