logan 0.1.1 → 0.1.2

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 +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05015b291771bbd80b24f983b5be2fdec425e493
4
- data.tar.gz: 032cc9d655804a86b9e3af51bf5eab067047f975
3
+ metadata.gz: 9fbe1ec0fc4570290c65cfed24ba7a00a6280906
4
+ data.tar.gz: 15f53b38e1120c7a67c6658f25d183246831355a
5
5
  SHA512:
6
- metadata.gz: ec36f3e5c27b7c9359f7f7c2e69ab77097dd47e87a54f6c303daac5fd6c6955d514183d516c19ed44604e8fb19e69f30096fcc10e33d5402eec4bfa3353ebe0f
7
- data.tar.gz: 6579040e6c532aecb3c3505957cc409ff55820fe45761c224fddbac5ab79cd4936a7dc88bd4503c7762781de7dbd0fd339ea2d9f2b98c2dec21d486ed94c34a7
6
+ metadata.gz: 606e9f961184b95804dfbd9c4e40d95081c3aec652b0b32ae9f3773bcc7befe609c019cd2d8920b97ad0a069286cbeda062c53cafe8ee8a87e6460f63b33e90f
7
+ data.tar.gz: 128f99f2c14b503f766c69a9736a2ca1dfa27bf9743bb070f055995259ff4bafd04d2b16755b61168475676d6b389b4219c468c4c340dd438d6461ebf1cf64b1
@@ -19,7 +19,7 @@ module Logan
19
19
  {
20
20
  :content => @content,
21
21
  :due_at => @due_at,
22
- :assignee => @assignee.blank? ? nil : @assignee.to_hash
22
+ :assignee => (@assignee.nil? || @assignee.empty?) ? nil : @assignee.to_hash
23
23
  }.to_json
24
24
  end
25
25
 
@@ -27,8 +27,8 @@ module Logan
27
27
  {
28
28
  :content => @content,
29
29
  :due_at => @due_at,
30
- :assignee => @assignee.blank? ? nil : @assignee.to_hash,
31
- :position => @position.blank? ? 99 : @position,
30
+ :assignee => (@assignee.nil? || @assignee.empty?) ? nil : @assignee.to_hash,
31
+ :position => (@position.nil? || @position.empty?) ? 99 : @position,
32
32
  :completed => @completed
33
33
  }.to_json
34
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Birarda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-20 00:00:00.000000000 Z
11
+ date: 2014-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty