acts_as_living 0.1.7 → 0.1.8

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: 9822b425e62e24627e57fae895b68fff7c1b0472257c20a06207014cb95b38d1
4
- data.tar.gz: f6baf7c93a6ad1ac060aefab50f232d7fe6057df4f4cde1c12dc4cc98294c378
3
+ metadata.gz: 22753ff3ef8b8cea17388e829a27a35d7df50f149d2122e0eb78bb03adfd7268
4
+ data.tar.gz: 88bd7bc883536421e6eb8253f780caa759156015ae5fe077ec366c5708289846
5
5
  SHA512:
6
- metadata.gz: 1aa1299dc9875da2f207389013a46e6924f96dd3366a2415b2100e31018570b52278571c4826192dfd23fd94912849f5af6f6497d2553f9328adf1376faa7ffe
7
- data.tar.gz: 7b441512986cd8436cdf6eeb8d78767b3d8297fb37b2f67b45b96222da50ac4e4da580bcd02d292647676e842eb2486416eed5fda7dbf8aed4684e38e72e6a3f
6
+ metadata.gz: 5bd734f95d3fafce29a5b4b8bffb26a630f77d4b19cecf3dbbb069fc14ec9bff3fbab5a65f0b5ecae26a866baf7c6a6cce7a1531470b5b379ec4989313caab95
7
+ data.tar.gz: 9d61ea225e1626724de291ddd01410e3d07b75df945b73c3b7b176cf4417ff8b743d8e43258056f4a0215ba5886b742a4ea13ab5be52d708faa3eb1c8841c500
@@ -1,10 +1,10 @@
1
1
  module ActsAsLiving::ScopesDefiner
2
2
  def self.call(klass)
3
3
  klass.class_eval do
4
+ byebug
4
5
  stages.each do |stage, _num|
5
6
  scope "past_#{stage}", -> { where('stage >= ?', stages[stage]) }
6
7
  scope "pre_#{stage}", -> { where('stage < ?', stages[stage]) }
7
- scope "not_#{stage}", -> { where.not(stage: stage) }
8
8
  end
9
9
 
10
10
  scope :cancelled, -> { where('stage < 0') }
@@ -1,3 +1,3 @@
1
1
  module ActsAsLiving
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Andrade