wbase 0.3.13 → 0.3.14

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: 70d9b9db6e2391b12cfebc13784e01f1499fd35e
4
- data.tar.gz: 1f1f93e3b2b2caeafc2451b0ec9525e79a7ded77
3
+ metadata.gz: 296371b46e9b705a4a71da3e1b4b5f0277064579
4
+ data.tar.gz: 24b72dd4dbd4c143e0727cfac6abd50f1647758c
5
5
  SHA512:
6
- metadata.gz: e15ac63816fa0cc21493bf6e740d77184a1f85bfcb4ce0a46a833c09b96b291b218b128b5c466c8c1334f5da6cb418944cae4b842ae2b41d8cfe4ec71d2508f2
7
- data.tar.gz: 115e9e59d3c903f7ed6417e1b32a929fca74a69ad26e0c4f55d3662f1088ed45911058f05b18b9407fe9dc5d874b9c2a4564efad9cd312a57764b4cddf8b4e51
6
+ metadata.gz: 1470c7fd16ccc3d7447ee1b9b6c6eb190c63975b35646d57b7d02cd203e57d5ea0084fd7fc3341c966bf616940f99c4931712c9beab8473bc6c440a6e2e8b50e
7
+ data.tar.gz: 3112823a35b72586bacb941ccb9b3b724e64815987860b393477f0735d814a33a6efd4b5c290b103352435a6440901f5c8cb0cff60eabf369c57ab95031450cb
@@ -49,9 +49,11 @@ module Wbase
49
49
  end
50
50
 
51
51
  def update_paid_thru!
52
- remote_paid_thru = Time.at(stripe_customer.subscriptions.first.try(:current_period_end))
53
- if remote_paid_thru > paid_thru
54
- return self.update(paid_thru: remote_paid_thru)
52
+ if stripe_customer.subscriptions.first
53
+ remote_paid_thru = Time.at(stripe_customer.subscriptions.first.try(:current_period_end))
54
+ if remote_paid_thru > paid_thru
55
+ return self.update(paid_thru: remote_paid_thru)
56
+ end
55
57
  end
56
58
  false
57
59
  end
data/lib/wbase/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Wbase
2
- VERSION = "0.3.13"
2
+ VERSION = "0.3.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.13
4
+ version: 0.3.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - CJ Avilla
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-01 00:00:00.000000000 Z
11
+ date: 2017-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails