logan 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/logan/todo.rb +5 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1822a39bbf699d36bbcd41d341786a984936358c
4
- data.tar.gz: 74679a3a940ca1e28c870436cd6ea0bbd9a6fbfb
3
+ metadata.gz: acc0f11e9db35c01386da976625fa64fcd781338
4
+ data.tar.gz: 47651ff240e1f0f952ccfd93cfc21a9eab27c567
5
5
  SHA512:
6
- metadata.gz: f601b37125b722a12a36e485ee940916bdd81894448529fca149089909163040e04f03724f86addd4a238de3bb8250f9313a1141e1576ace9d005e240a9a519e
7
- data.tar.gz: 33d7fe47676149b50cac2f465bf20aeb57104f3a45ec3fb28e83ec3440f7520b1785fdb7f5435ee932ec2368bbea178142bf23f47680757cb63a8c627d03394d
6
+ metadata.gz: a5039fb9005dd62bba8eca13dfe424e317290fc577afb281124f2f1f249b2cd5f27b97d766a04dff262e2eba9a4a0e629287e4016228bdce4b70699816761a7e
7
+ data.tar.gz: baee0f266127a3d258aaeea7b26e8b7d4c972ee0b20cf7dd3d71704de38da3882d3cbda2cdbf4ef213959149e3aefa772b7bb6068938fbfdae345e89d1ab344c
data/lib/logan/todo.rb CHANGED
@@ -21,7 +21,11 @@ module Logan
21
21
 
22
22
  def initialize h
23
23
  super
24
- @project_id ||= app_url[/projects\/(\d*)\//, 1].to_i unless app_url.blank?
24
+
25
+ unless app_url.nil? || app_url.blank?
26
+ @project_id ||= app_url[/projects\/(\d*)\//, 1].to_i
27
+ end
28
+
25
29
  self
26
30
  end
27
31
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Birarda