tamara 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61ed7326a6fecdfbe8f4ec879bf4064b9938daa536a65ff24a5587ba6839fe61
4
- data.tar.gz: 657cda1b6f8c53b7f745dca87f34568cd9c0b0e6cc436bf6657309fa7cc2ff70
3
+ metadata.gz: 98690a89dd1b5601ff9c7c2da0643a0f8e0eb8da5da99b595cf72078f50cf220
4
+ data.tar.gz: 7ae0059eaf3df407a9a3461b96282007d074ffc2c8e20de4d547aee0d17d674d
5
5
  SHA512:
6
- metadata.gz: '015448abe6000bedf98c6ef38c02549c498f04c67e4d2062ab7359e9c2b79e65fa32d78cd368e65cdbed4d50424f5ffbb5ebca991f86aa2979bb54a903549d4d'
7
- data.tar.gz: a26f9e25c4c7d677c34455ea1198a92a0ac16373ff280a821610301e0e1290682415760330a8a4095b2e99fac8aa3640f93d5b2250b9fbb3c296ceea1e73cc9e
6
+ metadata.gz: c9f878121556e2b74a5a8e23951010db0419bb52213cc60bf9be85f0845845ada4e0f6729ce01c8e1a0a0f88eef9c2cf5c59fbaa7a2639c5c87b9d6917cb3c62
7
+ data.tar.gz: e12f3367f44da07961cca5ec2672fefb630ad9ad76272f9f2544c9a5820fff51db723b31ec73cb3a4a48fd995ca171e3d87e146217a1b1a63cafd9fb93c0e6bb
data/.env.example ADDED
@@ -0,0 +1 @@
1
+ TAMARA_API_TOKEN=
data/CHANGELOG.md CHANGED
@@ -2,5 +2,6 @@
2
2
 
3
3
  ## [0.1.0] - 2025-03-12
4
4
  ## [0.1.1] - 2025-03-18
5
+ ## [0.1.2] - 2025-03-26
5
6
 
6
7
  - Initial release
data/Gemfile CHANGED
@@ -5,13 +5,18 @@ gemspec
5
5
 
6
6
  group :development, :test do
7
7
  gem "dotenv-rails"
8
+ gem "bundler-audit"
8
9
  gem "fuubar", "~> 2.5.1"
9
10
  gem "guard-rspec"
10
11
  gem "rake", "~> 13.2"
11
12
  gem "rspec", "~> 3.13"
13
+ gem "rspec_junit_formatter"
12
14
  gem "rubocop", "~> 1.50.2"
13
15
  gem "rubocop-performance", "~> 1.17.1"
14
16
  gem "rubocop-rails", "~> 2.19.1"
17
+ gem "rubocop-rake"
18
+ gem "rubocop-rspec"
19
+ gem "ruby_audit"
15
20
  end
16
21
 
17
22
  group :test do
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tamara (0.1.0)
4
+ tamara (0.1.2)
5
5
  activesupport (>= 5.2, < 7.0)
6
6
  concurrent-ruby (~> 1.2.2)
7
7
  faraday (~> 1.10.3)
@@ -35,6 +35,9 @@ GEM
35
35
  ast (2.4.2)
36
36
  bigdecimal (3.1.9)
37
37
  builder (3.3.0)
38
+ bundler-audit (0.9.2)
39
+ bundler (>= 1.2.0, < 3)
40
+ thor (~> 1.0)
38
41
  coderay (1.1.3)
39
42
  concurrent-ruby (1.2.3)
40
43
  crack (1.0.0)
@@ -118,6 +121,8 @@ GEM
118
121
  nokogiri (1.13.10)
119
122
  mini_portile2 (~> 2.8.0)
120
123
  racc (~> 1.4)
124
+ nokogiri (1.13.10-x86_64-linux)
125
+ racc (~> 1.4)
121
126
  notiffany (0.1.3)
122
127
  nenv (~> 0.1)
123
128
  shellany (~> 0.0)
@@ -166,6 +171,8 @@ GEM
166
171
  diff-lcs (>= 1.2.0, < 2.0)
167
172
  rspec-support (~> 3.13.0)
168
173
  rspec-support (3.13.2)
174
+ rspec_junit_formatter (0.6.0)
175
+ rspec-core (>= 2, < 4, != 2.12.0)
169
176
  rubocop (1.50.2)
170
177
  json (~> 2.3)
171
178
  parallel (~> 1.10)
@@ -178,6 +185,8 @@ GEM
178
185
  unicode-display_width (>= 2.4.0, < 3.0)
179
186
  rubocop-ast (1.30.0)
180
187
  parser (>= 3.2.1.0)
188
+ rubocop-capybara (2.18.0)
189
+ rubocop (~> 1.41)
181
190
  rubocop-performance (1.17.1)
182
191
  rubocop (>= 1.7.0, < 2.0)
183
192
  rubocop-ast (>= 0.4.0)
@@ -185,8 +194,15 @@ GEM
185
194
  activesupport (>= 4.2.0)
186
195
  rack (>= 1.1)
187
196
  rubocop (>= 1.33.0, < 2.0)
197
+ rubocop-rake (0.6.0)
198
+ rubocop (~> 1.0)
199
+ rubocop-rspec (2.20.0)
200
+ rubocop (~> 1.33)
201
+ rubocop-capybara (~> 2.17)
188
202
  ruby-progressbar (1.13.0)
189
203
  ruby2_keywords (0.0.5)
204
+ ruby_audit (2.3.1)
205
+ bundler-audit (~> 0.9.0)
190
206
  shellany (0.0.1)
191
207
  simplecov (0.22.0)
192
208
  docile (~> 1.1)
@@ -207,17 +223,23 @@ GEM
207
223
 
208
224
  PLATFORMS
209
225
  -darwin-22
226
+ x86_64-linux
210
227
 
211
228
  DEPENDENCIES
229
+ bundler-audit
212
230
  dotenv-rails
213
231
  fuubar (~> 2.5.1)
214
232
  generator_spec
215
233
  guard-rspec
216
234
  rake (~> 13.2)
217
235
  rspec (~> 3.13)
236
+ rspec_junit_formatter
218
237
  rubocop (~> 1.50.2)
219
238
  rubocop-performance (~> 1.17.1)
220
239
  rubocop-rails (~> 2.19.1)
240
+ rubocop-rake
241
+ rubocop-rspec
242
+ ruby_audit
221
243
  simplecov (~> 0.22.0)
222
244
  tamara!
223
245
  vcr
@@ -20,7 +20,7 @@ module Tamara
20
20
  item_url: Types::Url.schema(allows_null: filtered_keys.exclude?("item_url")),
21
21
  image_url: Types::Url.schema(allows_null: filtered_keys.exclude?("image_url")),
22
22
  unit_price: Amount.schema(allows_null: filtered_keys.exclude?("unit_price")),
23
- tax_amount: Amount.schema(allows_null: filtered_keys.exclude?("tax_amount")),
23
+ tax_amount: Amount.schema(allows_null: filtered_keys.exclude?("tax_amount"), min: 0.0),
24
24
  discount_amount: Amount.schema(allows_null: filtered_keys.exclude?("discount_amount")),
25
25
  total_amount: Amount.schema(allows_null: filtered_keys.exclude?("total_amount"))
26
26
  },
@@ -24,7 +24,7 @@ module Tamara
24
24
  description: Types::String.schema(max_length: 256, allows_null: filtered_keys.exclude?("description")),
25
25
  total_amount: Amount.schema(allows_null: filtered_keys.exclude?("total_amount")),
26
26
  shipping_amount: Amount.schema(allows_null: filtered_keys.exclude?("shipping_amount"), min: 0.0),
27
- tax_amount: Amount.schema(allows_null: filtered_keys.exclude?("tax_amount")),
27
+ tax_amount: Amount.schema(allows_null: filtered_keys.exclude?("tax_amount"), min: 0.0),
28
28
  consumer: Consumer.schema(allows_null: filtered_keys.exclude?("consumer")),
29
29
  items: {
30
30
  type: "array",
@@ -1,3 +1,3 @@
1
1
  module Tamara
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tamara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Youssef Ossama
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-23 00:00:00.000000000 Z
11
+ date: 2025-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -93,6 +93,7 @@ executables: []
93
93
  extensions: []
94
94
  extra_rdoc_files: []
95
95
  files:
96
+ - ".env.example"
96
97
  - ".rubocop.yml"
97
98
  - ".rubocop_todo.yml"
98
99
  - ".ruby-version"