effective_products 0.1.1 → 0.1.2

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: b681cf76ca311d502dc874d3b630cbdabe95b9639cb78c0db08690af645caf5c
4
- data.tar.gz: a582bd6f989dd4bc92d652e1879a59f35e8957c39dc0ef1532fe29b9b98c13a3
3
+ metadata.gz: 11a058d2af660cecc167db7c68d34813d400bb65d4fe71c983dd543b77f1bf74
4
+ data.tar.gz: c815c2d731ed89a9700d6f32e694c512af60b7a7404d8fc173cd7c497cf6508d
5
5
  SHA512:
6
- metadata.gz: b484f3e0fe7f2593fa3e8ea8c276d9b7de9c3301499d9d5832d01e379026de71f49f058ef1e2cc950d8eece9a94ce7b5b9b58f917290ae9a34fab2e2f14bdc34
7
- data.tar.gz: '0785f496513f883c981897960a0a7a0a108c60daa3138e02fa5408e01247852066988be3076a8eff595769fd0acda3eb207c00b5dcbefa038a67a1745631137a'
6
+ metadata.gz: 6d80c772b8bf58c9902d551f2d05d13829cb5490e5c1cd584e076466ef699bf1a50b1d2ed75c4584fa5da0bd02d05dea37efccfd986471da465bdea098c4065c
7
+ data.tar.gz: 18d173346225ff749ab36406bb8ad552e2c102fb1d860d4c40ecf91bc974736633f9549fd7a0dfcd8893960ff6c5a570c7f6e32b3b1ce1cdac09c08d58d94f27
@@ -49,10 +49,10 @@ module Effective
49
49
  scope :deep, -> { includes(:owner) }
50
50
 
51
51
  scope :with_approved_applicants, -> { where(applicant_id: EffectiveMemberships.Applicant.approved) }
52
- scope :with_stamp_wizards, -> { where(applicant_id: nil).where.not(stamp_wizard_id: nil) }
52
+ scope :with_stamp_wizards, -> { purchased.where(applicant_id: nil).where.not(stamp_wizard_id: nil) }
53
53
 
54
54
  scope :ready_to_issue, -> {
55
- with_approved_applicants.or(with_stamp_wizards).purchased.where.not(status: :issued)
55
+ with_approved_applicants.or(with_stamp_wizards).where.not(status: :issued)
56
56
  }
57
57
 
58
58
  validates :category, presence: true, inclusion: { in: CATEGORIES }
@@ -1,3 +1,3 @@
1
1
  module EffectiveProducts
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_products
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-05 00:00:00.000000000 Z
11
+ date: 2023-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails