spree_bank_transfer_payment 2.1.2 → 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 +4 -4
- data/LICENSE +21 -0
- data/README.md +12 -29
- data/app/models/spree/payment_method/bank_transfer.rb +4 -0
- data/app/models/spree/payment_method_decorator.rb +2 -2
- data/config/initializers/spree.rb +1 -1
- data/lib/spree_bank_transfer_payment/version.rb +1 -1
- metadata +11 -12
- data/LICENSE.md +0 -15
- data/config/routes.rb +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3aa1be781cd1543d99d423a9651322363f5cfce3777e5a6cddb21c16ce1a310f
|
|
4
|
+
data.tar.gz: 6b3c34645177b6990ef478d0e4807ff8a1adee65802f058384767ef35e2b76f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 02a19d886c19edb8b8b5359daed9c5190e34ba87d8f180d6667923464c6a44be3a1268d02e0b7dbc450108fc73eedbba9a6d55be0d1a44f07ae21f4d8acf99a0
|
|
7
|
+
data.tar.gz: 64436b211e7906c1d6b137f9eae98a9f8d258e2b862a56bd72f1c8d1d71db222f8b8c148b88278bcf0efd5081c1068a8d4b4187541430e802d1061ae7b502fc2
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 OlympusOne
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Spree Bank Transfer Payment
|
|
2
2
|
|
|
3
3
|
This is a Bank Transfer Payment extension for [Spree Commerce](https://spreecommerce.org), an open source e-commerce platform built with Ruby on Rails. Adds Bank Transfer payment method option during checkout.
|
|
4
4
|
|
|
@@ -6,63 +6,46 @@ This is a Bank Transfer Payment extension for [Spree Commerce](https://spreecomm
|
|
|
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_bank_transfer_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_bank_transfer_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_bank_transfer_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
|
|
@@ -78,4 +61,4 @@ If you'd like to contribute, please take a look at the
|
|
|
78
61
|
[instructions](CONTRIBUTING.md) for installing dependencies and crafting a good
|
|
79
62
|
pull request.
|
|
80
63
|
|
|
81
|
-
Copyright (c)
|
|
64
|
+
Copyright (c) 2026 OlympusOne, released under the MIT License.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Rails.application.config.after_initialize do
|
|
2
|
-
|
|
2
|
+
Spree.payment_methods << Spree::PaymentMethod::BankTransfer
|
|
3
3
|
|
|
4
4
|
Spree::PermittedAttributes.payment_method_attributes << :instructions
|
|
5
5
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_bank_transfer_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
|
|
@@ -85,7 +85,7 @@ executables: []
|
|
|
85
85
|
extensions: []
|
|
86
86
|
extra_rdoc_files: []
|
|
87
87
|
files:
|
|
88
|
-
- LICENSE
|
|
88
|
+
- LICENSE
|
|
89
89
|
- README.md
|
|
90
90
|
- Rakefile
|
|
91
91
|
- app/models/spree/payment_method/bank_transfer.rb
|
|
@@ -99,7 +99,6 @@ files:
|
|
|
99
99
|
- config/initializers/spree.rb
|
|
100
100
|
- config/locales/el.yml
|
|
101
101
|
- config/locales/en.yml
|
|
102
|
-
- config/routes.rb
|
|
103
102
|
- db/migrate/20250601215018_add_instructions_to_payment_methods.rb
|
|
104
103
|
- lib/generators/spree_bank_transfer_payment/install/install_generator.rb
|
|
105
104
|
- lib/spree_bank_transfer_payment.rb
|
|
@@ -109,13 +108,13 @@ files:
|
|
|
109
108
|
- lib/spree_bank_transfer_payment/version.rb
|
|
110
109
|
homepage: https://github.com/olympusone/spree_bank_transfer_payment
|
|
111
110
|
licenses:
|
|
112
|
-
-
|
|
111
|
+
- MIT
|
|
113
112
|
metadata:
|
|
114
113
|
bug_tracker_uri: https://github.com/olympusone/spree_bank_transfer_payment/issues
|
|
115
|
-
changelog_uri: https://github.com/olympusone/spree_bank_transfer_payment/releases/tag/v2.1.
|
|
114
|
+
changelog_uri: https://github.com/olympusone/spree_bank_transfer_payment/releases/tag/v2.1.5
|
|
116
115
|
documentation_uri: https://github.com/olympusone/spree_bank_transfer_payment
|
|
117
116
|
homepage_uri: https://github.com/olympusone/spree_bank_transfer_payment
|
|
118
|
-
source_code_uri: https://github.com/olympusone/spree_bank_transfer_payment/tree/v2.1.
|
|
117
|
+
source_code_uri: https://github.com/olympusone/spree_bank_transfer_payment/tree/v2.1.5
|
|
119
118
|
rdoc_options: []
|
|
120
119
|
require_paths:
|
|
121
120
|
- lib
|
data/LICENSE.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# LICENSE
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 OlympusOne. All rights reserved.
|
|
4
|
-
|
|
5
|
-
This program is free software: you can redistribute it and/or modify it under the terms of the
|
|
6
|
-
GNU Affero General Public License as published by the Free Software Foundation, either
|
|
7
|
-
version 3 of the License, or any later version.
|
|
8
|
-
|
|
9
|
-
This program is distributed in the hope that it will be useful,
|
|
10
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
GNU Affero General Public License for more details.
|
|
13
|
-
|
|
14
|
-
You should have received a copy of the GNU Affero General Public License
|
|
15
|
-
along with this program. If not, see [https://www.gnu.org/licenses/](https://www.gnu.org/licenses/).
|
data/config/routes.rb
DELETED