solidus_simple_sale_price 0.0.3 → 0.0.4

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: 84541d7f1d7db807a44aa29c56bbfb2de83bfc44d33ca45d5fd2703b654057d5
4
- data.tar.gz: 36cba969da30635ce99f0676329cfbc134d402b3058745363397cf6726eeb0d0
3
+ metadata.gz: 1890c3963e1dacd955f8fc96a40e4da8434ff9d65c92fed1dcae087720cad857
4
+ data.tar.gz: 28dabfee8eddb42c863c00dd7dd529419f260d6d8b2f47e5f55c64865d28d810
5
5
  SHA512:
6
- metadata.gz: accdb3070796b5bb23ec1129956361ff65de588787b373991e674205ba358fdd944fb06a4037a3f07981511870f10a891abafd582ab46715b45db8a9ae69f293
7
- data.tar.gz: 2a07c39b99ea19f18deea8c0648bf0c306c114368c38cb5768cb6908bd94bda84fa986fdb790f4aad4727cd22410a6b57a574cbc18b813f2b3e4b5f50146dcb4
6
+ metadata.gz: 46c60de6bf15ee8fd9a1a5324a988b4ba27759400d70393009034e35e2d8904e45860b583fc29a0685db6650ba84438d4d2aa087bb5a4d0cc79be80c29e105cc
7
+ data.tar.gz: 6bb613db938ab0201e476ffecf6670e460699cfb6901880d098d6428e81e44311cbc39a109c374bb47955f6a00611e4b178f9fd3202fbfab47f32985989ce81c
@@ -2,7 +2,7 @@ Spree::Variant.class_eval do
2
2
  delegate :on_sale?, :discount_percent, to: :default_price
3
3
 
4
4
  def on_sale_in?(currency)
5
- price_in_currency(currency).on_sale?
5
+ !!price_in_currency(currency)&.on_sale?
6
6
  end
7
7
 
8
8
  def sale_price
@@ -1,3 +1,3 @@
1
1
  module SolidusSimpleSalePrice
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_simple_sale_price
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josua Schmid
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-27 00:00:00.000000000 Z
11
+ date: 2022-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -212,7 +212,7 @@ homepage: http://github.com/renuo/solidus_simple_sale_price
212
212
  licenses:
213
213
  - BSD-3-Clause
214
214
  metadata: {}
215
- post_install_message:
215
+ post_install_message:
216
216
  rdoc_options: []
217
217
  require_paths:
218
218
  - lib
@@ -227,8 +227,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  - !ruby/object:Gem::Version
228
228
  version: '0'
229
229
  requirements: []
230
- rubygems_version: 3.0.3
231
- signing_key:
230
+ rubygems_version: 3.3.10
231
+ signing_key:
232
232
  specification_version: 4
233
233
  summary: Adds sale price functionality to Solidus
234
234
  test_files: []