paid_up 0.11.1 → 0.11.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8acc775ee5e082dafa137d9297aeab7aeca1ead
4
- data.tar.gz: 1235246d424b153a58f21e373872aa20ad90fdb6
3
+ metadata.gz: abd557c70b1d7b9f8fee5a7cc7d7cbdf94bd0fae
4
+ data.tar.gz: e6866e40fc101aab977c48b02e3223d8d27a0094
5
5
  SHA512:
6
- metadata.gz: be11068537eb355fc6a9ff2bac5ea53eba45a0dfa57289ea33e2638ba3bd628352e9f74ed8545c25fe528e15c9a5024fb3aed540e7a07652bd680ca62833777c
7
- data.tar.gz: 7431accbf6773f0fd7c9d5df5f831c3a953772ccb06d17a25d4bb78c2a530847d9eb1416ab5a727065ce0e21e42587c73f25e40ebb6560d5ea9e39e8d6b202e7
6
+ metadata.gz: a66dd679a1eae721bb55cf217385c500f1d5369d4d83ae10d0816b5c6993a7533c49fafe99f966bc68375b4b8b821eeb69c6f380d72b74867f7320643dd56f9a
7
+ data.tar.gz: cf876b3ffa897bcd7fc20e3d5848460fd77cbd6652442a12905fa518094949fad967038a2dc7fdb7b9b48f4a7326f58d77e959e3917e06b1ce780481408e6be0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.11.1
1
+ 0.11.2
@@ -561,6 +561,8 @@
561
561
  1,
562
562
  1,
563
563
  1,
564
+ null,
565
+ 1,
564
566
  1,
565
567
  51,
566
568
  null,
@@ -1683,7 +1685,7 @@
1683
1685
  1090,
1684
1686
  null,
1685
1687
  null,
1686
- 700,
1688
+ 625,
1687
1689
  null,
1688
1690
  null,
1689
1691
  null,
@@ -2565,6 +2567,6 @@
2565
2567
  null
2566
2568
  ]
2567
2569
  },
2568
- "timestamp": 1487605943
2570
+ "timestamp": 1487606390
2569
2571
  }
2570
2572
  }
@@ -3,17 +3,19 @@ module PaidUp
3
3
  # PaidFor Mixin
4
4
  module PaidFor
5
5
  extend ActiveSupport::Concern
6
+ @@scope = {}
7
+
6
8
  class_methods do
7
9
  def feature
8
10
  PaidUp::Feature.find_by_slug(table_name)
9
11
  end
10
12
 
11
13
  def paid_for_scope
12
- send(@scope)
14
+ send(@@scope[table_name.to_sym])
13
15
  end
14
16
 
15
17
  def paid_for(options = {})
16
- @scope = options[:scope] || :all
18
+ @@scope[table_name.to_sym] = options[:scope] || :all
17
19
  feature.nil? && raise(
18
20
  :feature_not_found_feature.l(feature: table_name)
19
21
  )
data/paid_up.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: paid_up 0.11.1 ruby lib
5
+ # stub: paid_up 0.11.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "paid_up"
9
- s.version = "0.11.1"
9
+ s.version = "0.11.2"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paid_up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Lundgren