spree_cod_payment 2.1.4 → 2.1.5
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d063f48be7a6803ed931ed50a143d272736dfbdd3082fad142e273c8cf70a9b7
|
|
4
|
+
data.tar.gz: 20d10617f77391e562268160675c580e5410bca41d4c0c8b50d2feaf2bc14536
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ba8e4266f52fb259b79dfc60b2430206bc3b6d6709759a42359af7bdc0edfab00dd2c224618308a85a08250de7f0bb387465fc8654ac84e8988b086b67a067b2
|
|
7
|
+
data.tar.gz: 4be69c7ecaaf5030ec0caa6db062faa07a36d4e33b7ce5068e3471ddfe7f409802122147542043c4a23032704378df8fe05db8c008a14bc69913b31fc0c80f8e
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Spree COD Payment
|
|
2
2
|
|
|
3
3
|
This is a Cash On Delivery Payment extension for [Spree Commerce](https://spreecommerce.org), an open source e-commerce platform built with Ruby on Rails. Adds Cash on Delivery (COD) payment method option during checkout.
|
|
4
4
|
|
|
@@ -6,63 +6,46 @@ This is a Cash On Delivery Payment extension for [Spree Commerce](https://spreec
|
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
1. Add this extension to your Gemfile:
|
|
9
|
+
1. Add this extension to your Gemfile with this line:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
bundle add spree_cod_payment
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
2.
|
|
15
|
+
2. Run the install generator
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
bundle exec
|
|
18
|
+
bundle exec rails g spree_cod_payment:install
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
3.
|
|
21
|
+
3. Restart your server
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
bundle exec rails db:migrate
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
4. Restart your server
|
|
23
|
+
If your server was running, restart it so that it can find the assets properly.
|
|
28
24
|
|
|
29
25
|
## Developing
|
|
30
26
|
|
|
31
|
-
1. Create a dummy app
|
|
27
|
+
1. Create a dummy app
|
|
32
28
|
|
|
33
29
|
```bash
|
|
34
30
|
bundle update
|
|
35
31
|
bundle exec rake test_app
|
|
36
32
|
```
|
|
37
33
|
|
|
38
|
-
2. Add code
|
|
34
|
+
2. Add your new code
|
|
39
35
|
|
|
40
|
-
3. Run tests
|
|
36
|
+
3. Run tests
|
|
41
37
|
|
|
42
38
|
```bash
|
|
43
39
|
bundle exec rspec
|
|
44
40
|
```
|
|
45
41
|
|
|
46
|
-
When testing your
|
|
42
|
+
When testing your applications integration with this extension you may use it's factories.
|
|
43
|
+
Simply add this require statement to your spec_helper:
|
|
47
44
|
|
|
48
45
|
```ruby
|
|
49
46
|
require 'spree_cod_payment/factories'
|
|
50
47
|
```
|
|
51
48
|
|
|
52
|
-
## Testing
|
|
53
|
-
|
|
54
|
-
Generate the test app:
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
bundle exec rake test_app
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Then run:
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
bundle exec rspec
|
|
64
|
-
```
|
|
65
|
-
|
|
66
49
|
## Releasing a new version
|
|
67
50
|
|
|
68
51
|
```bash
|
|
@@ -5,10 +5,6 @@
|
|
|
5
5
|
</h5>
|
|
6
6
|
</div>
|
|
7
7
|
<div class="card-body">
|
|
8
|
-
|
|
9
|
-
<%= f.check_box :cod, class: 'custom-control-input' %>
|
|
10
|
-
<%= f.label :cod, class: 'custom-control-label font-weight-semibold' %>
|
|
11
|
-
<%= f.error_message_on :cod %>
|
|
12
|
-
</div>
|
|
8
|
+
<%= f.spree_check_box :cod %>
|
|
13
9
|
</div>
|
|
14
10
|
</div>
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
Rails.application.config.after_initialize do
|
|
2
|
-
|
|
2
|
+
Spree.payment_methods << Spree::PaymentMethod::CodPayment
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
Rails.application.config.spree_admin.shipping_method_form_partials << 'spree/admin/shipping_methods/cod_form'
|
|
4
|
+
Spree.admin.partials.shipping_method_form << 'spree/admin/shipping_methods/cod_form'
|
|
6
5
|
|
|
7
6
|
Spree::PermittedAttributes.shipping_method_attributes << :cod
|
|
8
7
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_cod_payment
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OlympusOne
|
|
@@ -15,42 +15,42 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 5.
|
|
18
|
+
version: 5.2.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - ">="
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 5.
|
|
25
|
+
version: 5.2.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: spree_storefront
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 5.
|
|
32
|
+
version: 5.2.0
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - ">="
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 5.
|
|
39
|
+
version: 5.2.0
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: spree_admin
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - ">="
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 5.
|
|
46
|
+
version: 5.2.0
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - ">="
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 5.
|
|
53
|
+
version: 5.2.0
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: spree_extension
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -112,10 +112,10 @@ licenses:
|
|
|
112
112
|
- AGPL-3.0-or-later
|
|
113
113
|
metadata:
|
|
114
114
|
bug_tracker_uri: https://github.com/olympusone/spree_cod_payment/issues
|
|
115
|
-
changelog_uri: https://github.com/olympusone/spree_cod_payment/releases/tag/v2.1.
|
|
115
|
+
changelog_uri: https://github.com/olympusone/spree_cod_payment/releases/tag/v2.1.5
|
|
116
116
|
documentation_uri: https://github.com/olympusone/spree_cod_payment
|
|
117
117
|
homepage_uri: https://github.com/olympusone/spree_cod_payment
|
|
118
|
-
source_code_uri: https://github.com/olympusone/spree_cod_payment/tree/v2.1.
|
|
118
|
+
source_code_uri: https://github.com/olympusone/spree_cod_payment/tree/v2.1.5
|
|
119
119
|
rdoc_options: []
|
|
120
120
|
require_paths:
|
|
121
121
|
- lib
|