acts_as_living 0.1.6 → 0.1.7

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: 1886e30cb7c12fb80faac2bb6268651d19770843f332ad8daa8c0283d4654ecb
4
- data.tar.gz: 344f2f3cb2dd39378f757440e812eb192d818352776a044e3e684835d54ef1a0
3
+ metadata.gz: 9822b425e62e24627e57fae895b68fff7c1b0472257c20a06207014cb95b38d1
4
+ data.tar.gz: f6baf7c93a6ad1ac060aefab50f232d7fe6057df4f4cde1c12dc4cc98294c378
5
5
  SHA512:
6
- metadata.gz: ce3a6411127363f0635cc966dca7b04de9d5e504189c3bc1aa2a9d774ae7e12c66b2a771493c3260568b2673916af48633271f5fce44af3e53e74d3b2ba36381
7
- data.tar.gz: cb8b39466ae50ddc3735101587c540e03d7369b89d7d36026dbf5f3888df78c7e655bc3f4c7abf9fa9f762041a595dd7930de72ae17f8be5414652972445eabe
6
+ metadata.gz: 1aa1299dc9875da2f207389013a46e6924f96dd3366a2415b2100e31018570b52278571c4826192dfd23fd94912849f5af6f6497d2553f9328adf1376faa7ffe
7
+ data.tar.gz: 7b441512986cd8436cdf6eeb8d78767b3d8297fb37b2f67b45b96222da50ac4e4da580bcd02d292647676e842eb2486416eed5fda7dbf8aed4684e38e72e6a3f
data/Changelog.md CHANGED
@@ -9,3 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
  ## [0.1.3] - 2020-07-12
10
10
  ### Added
11
11
  - Fixed namespacing of the api endpoint
12
+
13
+ ## [0.1.7] - 2020-07-13
14
+ ### Fixed
15
+ - Stage Scopes
@@ -10,13 +10,9 @@ module ActsAsLiving::ScopesDefiner
10
10
  scope :cancelled, -> { where('stage < 0') }
11
11
 
12
12
  @phases.each do |phase, delimiters|
13
- if delimiters.length == 1
14
- scope phase, -> { where(stage: delimiters.first) }
15
- else
16
- scope phase, lambda {
17
- where('stage >= ? AND stage <= ?', stages[delimiters.first], stages[delimiters.second])
18
- }
19
- end
13
+ scope phase, lambda {
14
+ where(stage: delimiters)
15
+ }
20
16
  end
21
17
  end
22
18
  end
@@ -1,3 +1,3 @@
1
1
  module ActsAsLiving
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_living
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Andrade