solidus_tec_estimator 0.0.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e20f6f24520ff83d576c390de4cca09898690eb3bf43ddeec39621cb397c54bf
|
4
|
+
data.tar.gz: 1adbd0fed447a36308d8904d7721e5a14dc395c13c391083f5f5945941b25f94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10ee9a2204b71663480eb1eff72ab599c9af634f8f3beaa0bcf7d9bfe531e5828d661f66f9f1e3e0b41482b7ca1e5007cf5140299d24aad3b654939f72d7fa50
|
7
|
+
data.tar.gz: 6755ea2795bbccdcbe1dc835ad2c2a988c30b5537587200952907762d672e1fd5ffeef722b3388e56eeedee67a24f7d884d3304a83585d8c8a093e6e23ee4b19
|
data/README.md
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
# Solidus Tec Estimator
|
2
2
|
|
3
|
-
[![CircleCI](https://circleci.com/gh/solidusio-contrib/solidus_tec_estimator.svg?style=shield)](https://circleci.com/gh/solidusio-contrib/solidus_tec_estimator)
|
4
|
-
[![codecov](https://codecov.io/gh/solidusio-contrib/solidus_tec_estimator/branch/main/graph/badge.svg)](https://codecov.io/gh/solidusio-contrib/solidus_tec_estimator)
|
5
|
-
|
6
3
|
<!-- Explain what your extension does. -->
|
7
4
|
|
8
5
|
## Installation
|
@@ -18,56 +15,3 @@ Bundle your dependencies and run the installation generator:
|
|
18
15
|
```shell
|
19
16
|
bin/rails generate solidus_tec_estimator:install
|
20
17
|
```
|
21
|
-
|
22
|
-
## Usage
|
23
|
-
|
24
|
-
<!-- Explain how to use your extension once it's been installed. -->
|
25
|
-
|
26
|
-
## Development
|
27
|
-
|
28
|
-
### Testing the extension
|
29
|
-
|
30
|
-
First bundle your dependencies, then run `bin/rake`. `bin/rake` will default to building the dummy
|
31
|
-
app if it does not exist, then it will run specs. The dummy app can be regenerated by using
|
32
|
-
`bin/rake extension:test_app`.
|
33
|
-
|
34
|
-
```shell
|
35
|
-
bin/rake
|
36
|
-
```
|
37
|
-
|
38
|
-
To run [Rubocop](https://github.com/bbatsov/rubocop) static code analysis run
|
39
|
-
|
40
|
-
```shell
|
41
|
-
bundle exec rubocop
|
42
|
-
```
|
43
|
-
|
44
|
-
When testing your application's integration with this extension you may use its factories.
|
45
|
-
You can load Solidus core factories along with this extension's factories using this statement:
|
46
|
-
|
47
|
-
```ruby
|
48
|
-
SolidusDevSupport::TestingSupport::Factories.load_for(SolidusTecEstimator::Engine)
|
49
|
-
```
|
50
|
-
|
51
|
-
### Running the sandbox
|
52
|
-
|
53
|
-
To run this extension in a sandboxed Solidus application, you can run `bin/sandbox`. The path for
|
54
|
-
the sandbox app is `./sandbox` and `bin/rails` will forward any Rails commands to
|
55
|
-
`sandbox/bin/rails`.
|
56
|
-
|
57
|
-
Here's an example:
|
58
|
-
|
59
|
-
```
|
60
|
-
$ bin/rails server
|
61
|
-
=> Booting Puma
|
62
|
-
=> Rails 6.0.2.1 application starting in development
|
63
|
-
* Listening on tcp://127.0.0.1:3000
|
64
|
-
Use Ctrl-C to stop
|
65
|
-
```
|
66
|
-
|
67
|
-
### Releasing new versions
|
68
|
-
|
69
|
-
Please refer to the [dedicated page](https://github.com/solidusio/solidus/wiki/How-to-release-extensions) in the Solidus wiki.
|
70
|
-
|
71
|
-
## License
|
72
|
-
|
73
|
-
Copyright (c) 2024 ulysses, released under the New BSD License.
|
@@ -52,7 +52,7 @@ module SolidusTecEstimator
|
|
52
52
|
Spree::ShippingRate.new(
|
53
53
|
shipment: package.shipment,
|
54
54
|
shipping_method: shipping_method,
|
55
|
-
cost:
|
55
|
+
cost: shipping_method.calculator.compute(package),
|
56
56
|
min_delivery_time: min_delivery_time,
|
57
57
|
max_delivery_time: max_delivery_time
|
58
58
|
)
|
@@ -10,12 +10,12 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = ''
|
12
12
|
spec.description = ''
|
13
|
-
spec.homepage = 'https://github.com/
|
13
|
+
spec.homepage = 'https://github.com/todasessascoisas/solidus_tec_estimator#readme'
|
14
14
|
spec.license = 'BSD-3-Clause'
|
15
15
|
|
16
16
|
spec.metadata['homepage_uri'] = spec.homepage
|
17
|
-
spec.metadata['source_code_uri'] = 'https://github.com/
|
18
|
-
spec.metadata['changelog_uri'] = 'https://github.com/
|
17
|
+
spec.metadata['source_code_uri'] = 'https://github.com/todasessascoisas/solidus_tec_estimator'
|
18
|
+
spec.metadata['changelog_uri'] = 'https://github.com/todasessascoisas/solidus_tec_estimator/blob/main/CHANGELOG.md'
|
19
19
|
|
20
20
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.5', '< 4')
|
21
21
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_tec_estimator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ulysses
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_core
|
@@ -79,7 +79,6 @@ files:
|
|
79
79
|
- app/models/solidus_tec_estimator/estimator.rb
|
80
80
|
- app/models/solidus_tec_estimator/provider.rb
|
81
81
|
- app/models/solidus_tec_estimator/providers/local_delivery.rb
|
82
|
-
- app/models/solidus_tec_estimator/providers/planilha.rb
|
83
82
|
- app/views/spree/admin/solidus_tec_estimator/providers/_form.html.erb
|
84
83
|
- app/views/spree/admin/solidus_tec_estimator/providers/edit.html.erb
|
85
84
|
- app/views/spree/admin/solidus_tec_estimator/providers/index.html.erb
|
@@ -104,13 +103,13 @@ files:
|
|
104
103
|
- solidus_tec_estimator.gemspec
|
105
104
|
- test/fixtures/solidus_tec_estimator/providers.yml
|
106
105
|
- test/models/solidus_tec_estimator/provider_test.rb
|
107
|
-
homepage: https://github.com/
|
106
|
+
homepage: https://github.com/todasessascoisas/solidus_tec_estimator#readme
|
108
107
|
licenses:
|
109
108
|
- BSD-3-Clause
|
110
109
|
metadata:
|
111
|
-
homepage_uri: https://github.com/
|
112
|
-
source_code_uri: https://github.com/
|
113
|
-
changelog_uri: https://github.com/
|
110
|
+
homepage_uri: https://github.com/todasessascoisas/solidus_tec_estimator#readme
|
111
|
+
source_code_uri: https://github.com/todasessascoisas/solidus_tec_estimator
|
112
|
+
changelog_uri: https://github.com/todasessascoisas/solidus_tec_estimator/blob/main/CHANGELOG.md
|
114
113
|
post_install_message:
|
115
114
|
rdoc_options: []
|
116
115
|
require_paths:
|
File without changes
|