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 +4 -4
- data/.env.example +1 -0
- data/CHANGELOG.md +1 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +23 -1
- data/lib/tamara/json_schemas/item.rb +1 -1
- data/lib/tamara/json_schemas/orders/create.rb +1 -1
- data/lib/tamara/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98690a89dd1b5601ff9c7c2da0643a0f8e0eb8da5da99b595cf72078f50cf220
|
4
|
+
data.tar.gz: 7ae0059eaf3df407a9a3461b96282007d074ffc2c8e20de4d547aee0d17d674d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9f878121556e2b74a5a8e23951010db0419bb52213cc60bf9be85f0845845ada4e0f6729ce01c8e1a0a0f88eef9c2cf5c59fbaa7a2639c5c87b9d6917cb3c62
|
7
|
+
data.tar.gz: e12f3367f44da07961cca5ec2672fefb630ad9ad76272f9f2544c9a5820fff51db723b31ec73cb3a4a48fd995ca171e3d87e146217a1b1a63cafd9fb93c0e6bb
|
data/.env.example
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
TAMARA_API_TOKEN=
|
data/CHANGELOG.md
CHANGED
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.
|
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",
|
data/lib/tamara/version.rb
CHANGED
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.
|
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-
|
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"
|