spree_store_pickup 1.0.1 → 1.1.3
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.md +11 -17
- data/README.md +25 -13
- data/app/models/spree/payment_method/store_pickup.rb +4 -0
- data/config/initializers/spree.rb +1 -0
- data/lib/spree_store_pickup/configuration.rb +13 -0
- data/lib/spree_store_pickup/engine.rb +4 -0
- data/lib/spree_store_pickup/version.rb +1 -1
- data/lib/spree_store_pickup.rb +1 -0
- metadata +11 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8123b82bfe668da85ebfd3fedf96d394332317975903b566996d2c22916dff10
|
|
4
|
+
data.tar.gz: 43cbc7a531929c19a19e0ef232aba5b9d637a04ac906aa14af7255e0cdc16d23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec09f349f886fd0c7cf82ecc097608693148b973432a2e161afe6727f767e17208b29c1b4c4efa0f6f802385c731751a2928204b339776af8ad6c11800a85287
|
|
7
|
+
data.tar.gz: ebac7312474fbec9f4aaf27f0670dd51580e7fe445d8979e6b6ddbf516afa515174bdd9b723885f05852cbfaf940110c49b52a71269f9ebabdae848d9eb960c4
|
data/LICENSE.md
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# LICENSE
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025 OlympusOne
|
|
3
|
+
Copyright (c) 2025 OlympusOne. All rights reserved.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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:
|
|
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.
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
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.
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
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.
|
|
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/README.md
CHANGED
|
@@ -6,54 +6,66 @@ This is a Store Pickup extension for [Spree Commerce](https://spreecommerce.org)
|
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
1. Add this extension to your Gemfile
|
|
9
|
+
1. Add this extension to your Gemfile:
|
|
10
10
|
|
|
11
|
-
```
|
|
11
|
+
```bash
|
|
12
12
|
bundle add spree_store_pickup
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
2. Install the migrations:
|
|
16
16
|
|
|
17
|
-
```
|
|
17
|
+
```bash
|
|
18
18
|
bundle exec rake railties:install:migrations FROM=spree_store_pickup
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
3. Run the migrations:
|
|
22
22
|
|
|
23
|
-
```
|
|
23
|
+
```bash
|
|
24
24
|
bundle exec rails db:migrate
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
4. Restart your server
|
|
28
28
|
|
|
29
|
-
If your server was running, restart it so that it can find the assets properly.
|
|
30
|
-
|
|
31
29
|
## Developing
|
|
32
30
|
|
|
33
|
-
1. Create a dummy app
|
|
31
|
+
1. Create a dummy app:
|
|
34
32
|
|
|
35
33
|
```bash
|
|
36
34
|
bundle update
|
|
37
35
|
bundle exec rake test_app
|
|
38
36
|
```
|
|
39
37
|
|
|
40
|
-
2. Add
|
|
41
|
-
|
|
38
|
+
2. Add code.
|
|
39
|
+
|
|
40
|
+
3. Run tests:
|
|
42
41
|
|
|
43
42
|
```bash
|
|
44
43
|
bundle exec rspec
|
|
45
44
|
```
|
|
46
45
|
|
|
47
|
-
When testing your
|
|
48
|
-
Simply add this require statement to your spec_helper:
|
|
46
|
+
When testing your application's integration you may use its factories:
|
|
49
47
|
|
|
50
48
|
```ruby
|
|
51
49
|
require 'spree_store_pickup/factories'
|
|
52
50
|
```
|
|
53
51
|
|
|
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
|
+
|
|
54
66
|
## Releasing a new version
|
|
55
67
|
|
|
56
|
-
```
|
|
68
|
+
```bash
|
|
57
69
|
bundle exec gem bump -p -t
|
|
58
70
|
bundle exec gem release
|
|
59
71
|
```
|
|
@@ -66,4 +78,4 @@ If you'd like to contribute, please take a look at the
|
|
|
66
78
|
[instructions](CONTRIBUTING.md) for installing dependencies and crafting a good
|
|
67
79
|
pull request.
|
|
68
80
|
|
|
69
|
-
Copyright (c) 2025 OlympusOne, released under the
|
|
81
|
+
Copyright (c) 2025 OlympusOne, released under the AGPL-3.0 or later.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
Rails.application.config.after_initialize do
|
|
2
2
|
Rails.application.config.spree.payment_methods << Spree::PaymentMethod::StorePickup
|
|
3
3
|
|
|
4
|
+
# Admin partials
|
|
4
5
|
Rails.application.config.spree_admin.shipping_method_form_partials << 'spree/admin/shipping_methods/store_pickup_form'
|
|
5
6
|
|
|
6
7
|
Spree::PermittedAttributes.shipping_method_attributes << :store_pickup
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module SpreeStorePickup
|
|
2
|
+
class Configuration < Spree::Preferences::Configuration
|
|
3
|
+
|
|
4
|
+
# Some example preferences are shown below, for more information visit:
|
|
5
|
+
# https://docs.spreecommerce.org/developer/contributing/creating-an-extension
|
|
6
|
+
|
|
7
|
+
# preference :enabled, :boolean, default: true
|
|
8
|
+
# preference :dark_chocolate, :boolean, default: true
|
|
9
|
+
# preference :color, :string, default: 'Red'
|
|
10
|
+
# preference :favorite_number, :integer
|
|
11
|
+
# preference :supported_locales, :array, default: [:en]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -9,6 +9,10 @@ module SpreeStorePickup
|
|
|
9
9
|
g.test_framework :rspec
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
+
initializer 'spree_store_pickup.environment', before: :load_config_initializers do |_app|
|
|
13
|
+
SpreeStorePickup::Config = SpreeStorePickup::Configuration.new
|
|
14
|
+
end
|
|
15
|
+
|
|
12
16
|
def self.activate
|
|
13
17
|
Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
|
|
14
18
|
Rails.configuration.cache_classes ? require(c) : load(c)
|
data/lib/spree_store_pickup.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_store_pickup
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.3
|
|
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.1.8
|
|
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.1.8
|
|
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.1.8
|
|
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.1.8
|
|
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.1.8
|
|
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.1.8
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: spree_extension
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -104,18 +104,19 @@ files:
|
|
|
104
104
|
- db/migrate/20250601165042_add_store_pickup_to_shipping_methods.rb
|
|
105
105
|
- lib/generators/spree_store_pickup/install/install_generator.rb
|
|
106
106
|
- lib/spree_store_pickup.rb
|
|
107
|
+
- lib/spree_store_pickup/configuration.rb
|
|
107
108
|
- lib/spree_store_pickup/engine.rb
|
|
108
109
|
- lib/spree_store_pickup/factories.rb
|
|
109
110
|
- lib/spree_store_pickup/version.rb
|
|
110
111
|
homepage: https://github.com/olympusone/spree_store_pickup
|
|
111
112
|
licenses:
|
|
112
|
-
-
|
|
113
|
+
- AGPL-3.0-or-later
|
|
113
114
|
metadata:
|
|
114
115
|
bug_tracker_uri: https://github.com/olympusone/spree_store_pickup/issues
|
|
115
|
-
changelog_uri: https://github.com/olympusone/spree_store_pickup/releases/tag/v1.
|
|
116
|
+
changelog_uri: https://github.com/olympusone/spree_store_pickup/releases/tag/v1.1.3
|
|
116
117
|
documentation_uri: https://github.com/olympusone/spree_store_pickup
|
|
117
118
|
homepage_uri: https://github.com/olympusone/spree_store_pickup
|
|
118
|
-
source_code_uri: https://github.com/olympusone/spree_store_pickup/tree/v1.
|
|
119
|
+
source_code_uri: https://github.com/olympusone/spree_store_pickup/tree/v1.1.3
|
|
119
120
|
rdoc_options: []
|
|
120
121
|
require_paths:
|
|
121
122
|
- lib
|