patodo 0.1.0 → 0.1.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/bin/patodo +16 -8
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9025f0c204fbf30133a69955c9b7bd56ed1b8970
4
- data.tar.gz: bc41b73c3d8478c326a322ae51b02a86632d2add
3
+ metadata.gz: 8b054754c2def42837c5d655637bf111b36a3b67
4
+ data.tar.gz: d87c2ca175f10aa9f71aeab956da40488204c3fe
5
5
  SHA512:
6
- metadata.gz: 4deafa6bb0dfacca59af74b6f16eb4ef27951376b9afc4c9375c373dfbb182c53164cdf0a1bde77c17a3c951afb1d6609ec712441d7834044d14b34c7ab62d49
7
- data.tar.gz: 3d1252787007a3a2f096b581387ba78fe7fb884928005de84fc2c46d844f7bec74eb739b62e3a6a81b9fc3cf95b464b67fa5cba0109d68bc41002c0a3e08b46a
6
+ metadata.gz: d043d2f5bafc0b1a7f3f7e5292f8c5083f2e880cd8eec6a8e1f5144ea181f6e3c564c7705016296e75f64923aa117257c26dd30fcc0677d0cd91b96fc51cb7dd
7
+ data.tar.gz: d880aee7e939af536c6db38253bf3be36b84fc0db5ad2256065b63fa62144b649a542be9dc8c6871659d3818f3b1d1abe8e55b7d241a7829ea7a2080f7637bf6
data/bin/patodo CHANGED
@@ -33,9 +33,14 @@ class Patodo
33
33
  end
34
34
 
35
35
  program :name, 'Pato Manager'
36
- program :version, '0.1.0'
37
- program :description, 'A terminal application to keep tracking of your todo lists.'
36
+ program :version, '0.1.1'
38
37
  program :help, 'Author', 'Costantini Leandro <costantinileandro1@gmail.com'
38
+ program :description, "A terminal application to keep tracking of your todo lists.
39
+
40
+ USAGE:
41
+ To start you need to run the command TOKEN or MANUALLY this create a token for
42
+ your GitHub account that only gets your email to create of find an account.
43
+ When you have your token you are ready to start using Pato."
39
44
 
40
45
  default_command :todo
41
46
 
@@ -140,21 +145,24 @@ end
140
145
 
141
146
  command :token do |c|
142
147
  c.syntax = 'token \'string\''
143
- c.description = <<-README
148
+ c.description = 'Create a token for your GitHub account to register in Pato.'
149
+ c.action do |args|
150
+ puts <<-README
144
151
  HOW IT WORKS:
145
152
  To know the user that is using the app or create a new one,
146
153
  Pato Manager needs to know your GitHub email[*], for that,
147
- the script ask your GitHub username and try to create or read
148
- a public token .- **only gets your public profile details** -.
154
+ the command ask your GitHub username and try to create or read
155
+ a public token .- **only gets your email** -.
149
156
 
150
- The GitHub API ask for your password, then the script capture
157
+ The GitHub API ask for your password, then the command capture
151
158
  the response from the API and save in pato-manager file.
152
159
  You can see your token in $HOME/.pato-manager
153
160
  and in GitHub https://github.com/settings/tokens.
154
161
 
155
162
  [*]: Because it's easier than having to remember another login account.
156
- README
157
- c.action do |args|
163
+
164
+ README
165
+
158
166
  username = args.first || ask('GitHub username: ')
159
167
  response = `curl "https://api.github.com/authorizations" -u #{ username } --data '{"scopes": ["user:email"], "note": "pato-manager"}'`
160
168
  puts
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patodo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Costantini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-06 00:00:00.000000000 Z
11
+ date: 2015-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty