openbeautyfacts 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +111 -0
- data/Rakefile +19 -0
- data/lib/openbeautyfacts.rb +60 -0
- data/lib/openbeautyfacts/additive.rb +51 -0
- data/lib/openbeautyfacts/allergen.rb +33 -0
- data/lib/openbeautyfacts/brand.rb +33 -0
- data/lib/openbeautyfacts/category.rb +33 -0
- data/lib/openbeautyfacts/city.rb +33 -0
- data/lib/openbeautyfacts/contributor.rb +33 -0
- data/lib/openbeautyfacts/country.rb +33 -0
- data/lib/openbeautyfacts/faq.rb +50 -0
- data/lib/openbeautyfacts/ingredient_that_may_be_from_palm_oil.rb +33 -0
- data/lib/openbeautyfacts/label.rb +33 -0
- data/lib/openbeautyfacts/locale.rb +30 -0
- data/lib/openbeautyfacts/manufacturing_place.rb +33 -0
- data/lib/openbeautyfacts/origin.rb +33 -0
- data/lib/openbeautyfacts/packager_code.rb +33 -0
- data/lib/openbeautyfacts/packaging.rb +33 -0
- data/lib/openbeautyfacts/press.rb +56 -0
- data/lib/openbeautyfacts/product.rb +185 -0
- data/lib/openbeautyfacts/product_state.rb +33 -0
- data/lib/openbeautyfacts/purchase_place.rb +33 -0
- data/lib/openbeautyfacts/store.rb +33 -0
- data/lib/openbeautyfacts/trace.rb +33 -0
- data/lib/openbeautyfacts/user.rb +41 -0
- data/lib/openbeautyfacts/version.rb +3 -0
- data/test/fixtures/additives.yml +1422 -0
- data/test/fixtures/additives_locale.yml +1422 -0
- data/test/fixtures/brands.yml +2144 -0
- data/test/fixtures/brands_locale.yml +2024 -0
- data/test/fixtures/faq.yml +1031 -0
- data/test/fixtures/fetch_product_3600550362626.yml +104 -0
- data/test/fixtures/index.yml +169 -0
- data/test/fixtures/login_user.yml +40 -0
- data/test/fixtures/press.yml +986 -0
- data/test/fixtures/product_3600550362626.yml +104 -0
- data/test/fixtures/product_states.yml +936 -0
- data/test/fixtures/product_states_locale.yml +976 -0
- data/test/fixtures/products_for_brand.yml +1707 -0
- data/test/fixtures/products_for_state.yml +2260 -0
- data/test/fixtures/products_with_additive.yml +1723 -0
- data/test/fixtures/search_doux.yml +538 -0
- data/test/fixtures/search_doux_1_000_000.yml +257 -0
- data/test/minitest_helper.rb +12 -0
- data/test/test_openbeautyfacts.rb +193 -0
- metadata +188 -0
metadata
ADDED
@@ -0,0 +1,188 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: openbeautyfacts
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nicolas Leger
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-04-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: hashie
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.4'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.4'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nokogiri
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.6'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.6'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.8'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.8'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.4'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '5.8'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '5.8'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: vcr
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: webmock
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.22'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.22'
|
111
|
+
description: Open Beauty Facts API Wrapper, the open database about beauty products.
|
112
|
+
email:
|
113
|
+
- nicolas.leger@nleger.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- LICENSE.txt
|
119
|
+
- README.md
|
120
|
+
- Rakefile
|
121
|
+
- lib/openbeautyfacts.rb
|
122
|
+
- lib/openbeautyfacts/additive.rb
|
123
|
+
- lib/openbeautyfacts/allergen.rb
|
124
|
+
- lib/openbeautyfacts/brand.rb
|
125
|
+
- lib/openbeautyfacts/category.rb
|
126
|
+
- lib/openbeautyfacts/city.rb
|
127
|
+
- lib/openbeautyfacts/contributor.rb
|
128
|
+
- lib/openbeautyfacts/country.rb
|
129
|
+
- lib/openbeautyfacts/faq.rb
|
130
|
+
- lib/openbeautyfacts/ingredient_that_may_be_from_palm_oil.rb
|
131
|
+
- lib/openbeautyfacts/label.rb
|
132
|
+
- lib/openbeautyfacts/locale.rb
|
133
|
+
- lib/openbeautyfacts/manufacturing_place.rb
|
134
|
+
- lib/openbeautyfacts/origin.rb
|
135
|
+
- lib/openbeautyfacts/packager_code.rb
|
136
|
+
- lib/openbeautyfacts/packaging.rb
|
137
|
+
- lib/openbeautyfacts/press.rb
|
138
|
+
- lib/openbeautyfacts/product.rb
|
139
|
+
- lib/openbeautyfacts/product_state.rb
|
140
|
+
- lib/openbeautyfacts/purchase_place.rb
|
141
|
+
- lib/openbeautyfacts/store.rb
|
142
|
+
- lib/openbeautyfacts/trace.rb
|
143
|
+
- lib/openbeautyfacts/user.rb
|
144
|
+
- lib/openbeautyfacts/version.rb
|
145
|
+
- test/fixtures/additives.yml
|
146
|
+
- test/fixtures/additives_locale.yml
|
147
|
+
- test/fixtures/brands.yml
|
148
|
+
- test/fixtures/brands_locale.yml
|
149
|
+
- test/fixtures/faq.yml
|
150
|
+
- test/fixtures/fetch_product_3600550362626.yml
|
151
|
+
- test/fixtures/index.yml
|
152
|
+
- test/fixtures/login_user.yml
|
153
|
+
- test/fixtures/press.yml
|
154
|
+
- test/fixtures/product_3600550362626.yml
|
155
|
+
- test/fixtures/product_states.yml
|
156
|
+
- test/fixtures/product_states_locale.yml
|
157
|
+
- test/fixtures/products_for_brand.yml
|
158
|
+
- test/fixtures/products_for_state.yml
|
159
|
+
- test/fixtures/products_with_additive.yml
|
160
|
+
- test/fixtures/search_doux.yml
|
161
|
+
- test/fixtures/search_doux_1_000_000.yml
|
162
|
+
- test/minitest_helper.rb
|
163
|
+
- test/test_openbeautyfacts.rb
|
164
|
+
homepage: https://github.com/openbeautyfacts/openbeautyfacts-ruby
|
165
|
+
licenses:
|
166
|
+
- MIT
|
167
|
+
metadata: {}
|
168
|
+
post_install_message:
|
169
|
+
rdoc_options: []
|
170
|
+
require_paths:
|
171
|
+
- lib
|
172
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - ">="
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '2.0'
|
177
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
requirements: []
|
183
|
+
rubyforge_project:
|
184
|
+
rubygems_version: 2.6.3
|
185
|
+
signing_key:
|
186
|
+
specification_version: 4
|
187
|
+
summary: Open Beauty Facts API Wrapper
|
188
|
+
test_files: []
|