todo_api_cli 0.0.4 → 0.0.5

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
  SHA256:
3
- metadata.gz: bed1ce52acc5561850698b869b92f34da86fdf82a6c62745659dfe9e84af594f
4
- data.tar.gz: 9aaf0c6bda9f6b9e348be1072ec3cd6d7e2bf1fcb8fbf70a50fcbf4d308a6484
3
+ metadata.gz: b6b92b4506a882354d4608d94216881d64d1a02434bb342d1cbbfef6c3966ab9
4
+ data.tar.gz: b4aa68fcecef7e6161c22d86f72801d908ed3dbc969aed7549594f90ead2b548
5
5
  SHA512:
6
- metadata.gz: c4a22a2f46ed0ed51a95e97a7fd0aa11f0a2a9faf63e1fc623b0ec26797317dc0bd39fd7babf6c2615f9f88abf73dcd57a350b219fcbf168dd212c5c3614602b
7
- data.tar.gz: 94d64236a5dfdc7eab9dc76b73a477f8de01b898c917c6ee8ddcf9e61dbd32a257b0f794988482411c9e831d5cc10212314fb0a68a90bc67cb6e0dd602d0922c
6
+ metadata.gz: c7997e9610132b487cf9c8a26f59b921482cee87ee54235ef9e7c04117d9c6bf4e4b311e3cdb281e0aa93ae335d4b5e68cf41f9062489bcf275e3802c00ef065
7
+ data.tar.gz: 41caa90f510ab5e4a291926f703e36a96357bb0474460e4996a99f2ccacce618359b623494ed7e987d462a83d447fa271814e375c691507446521bd5cfc0e21e
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ require 'keychain'
2
3
 
3
4
  item = Keychain.generic_passwords.where(service: 'todo-api').first
4
5
 
@@ -38,7 +38,7 @@ module TodoApi
38
38
  client.post do |req|
39
39
  req.url '/lists'
40
40
  req.body = { name: name }.to_json
41
- req.headers['Authorization'] = Keychain.generic_passwords.where(:service =>'todo-api').first.password
41
+ req.headers['Authorization'] = Keychain.generic_passwords.where(:service =>'todo-api').first&.password
42
42
  end
43
43
  end
44
44
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: todo_api_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Poleo