utsup 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data.tar.gz.sig +5 -0
  2. data/Rakefile +1 -1
  3. data/lib/sup.rb +18 -4
  4. metadata +24 -3
  5. metadata.gz.sig +0 -0
data.tar.gz.sig ADDED
@@ -0,0 +1,4 @@
1
+ >
2
+ 2`�`�Ay��o�f�sF?��Y��H� ����r��_����K�.y<T����?ջ��uO-�'��F��}�����=������)�-�`���:ۍn_8
3
+ �E*$����Zb"5�O�#�
4
+ �{��'��Y|َ�UC����(�%�K���5� �x,�]`�������#Ŭu�S�5�t�>�<�
5
+ !n���߅�3Y)i�iW(^�`"Ǒ�Y R�������h�&�R�BkC=���A4t����P��0o
data/Rakefile CHANGED
@@ -23,4 +23,4 @@ Dir['tasks/**/*.rake'].each { |t| load t }
23
23
 
24
24
  # TODO - want other tests/tasks run by default? Add them to the list
25
25
  # remove_task :default
26
- # task :default => [:spec, :features]
26
+ # task :default => [:spec, :features]
data/lib/sup.rb CHANGED
@@ -6,7 +6,7 @@ require 'yaml'
6
6
  require 'git'
7
7
 
8
8
  module Sup
9
- VERSION = '0.0.1'
9
+ VERSION = '0.0.3'
10
10
  GIT_HOOKS = %w(post-commit post-receive post-merge post-checkout) #TODO: post-rebase?
11
11
 
12
12
  GLOBAL_CONFIG_PATH = '~/.utsup'
@@ -187,8 +187,11 @@ eos
187
187
  # Get Statuses
188
188
  # ===========================
189
189
 
190
- def get_statuses(name=nil)
191
- statuses = Api::Status.find :all, :params => {:name => name}
190
+ def get_statuses(opts={})
191
+ statuses = Api::Status.find :all, :params => {
192
+ :name => opts[:name],
193
+ :today => opts[:today]
194
+ }
192
195
 
193
196
  puts "----------------------------------------------------------------------------------"
194
197
  puts "This is UtSup#{" with #{name}" if name}:\n"
@@ -258,6 +261,9 @@ eos
258
261
 
259
262
  when "help":
260
263
  puts HELP_TEXT
264
+
265
+ when "version":
266
+ puts VERSION
261
267
 
262
268
  when "init":
263
269
  Sup::init args.first
@@ -285,9 +291,17 @@ eos
285
291
  when "users":
286
292
  Sup::get_users
287
293
 
294
+ when "all":
295
+ # TODO: show all today
296
+ Sup::get_statuses :today => true
297
+
298
+ when "search":
299
+ # TODO: search
300
+
288
301
  when /.+/:
289
302
  if Api::User.check_name(command)
290
- return Sup::get_statuses(command)
303
+ Sup::get_statuses :name => command, :today => true
304
+ return
291
305
  end
292
306
 
293
307
  # implicit text update: sup "chillin"
metadata CHANGED
@@ -1,16 +1,37 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utsup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Merwin
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDNDCCAhygAwIBAgIBADANBgkqhkiG9w0BAQUFADBAMQ0wCwYDVQQDDARuaWNr
14
+ MRowGAYKCZImiZPyLGQBGRYKbGVtdXJoZWF2eTETMBEGCgmSJomT8ixkARkWA2Nv
15
+ bTAeFw0wOTA5MjkyMzEzMDVaFw0xMDA5MjkyMzEzMDVaMEAxDTALBgNVBAMMBG5p
16
+ Y2sxGjAYBgoJkiaJk/IsZAEZFgpsZW11cmhlYXZ5MRMwEQYKCZImiZPyLGQBGRYD
17
+ Y29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3uflg3FiN5qVj79C
18
+ hL+IdQJI+t1bGLrcx38cgFk9wzsBWb4OuGJdfRfUputDQ1f0q+tmRO834YuiEzq9
19
+ Ekhv8GMQ4KepU6E6d1mbBVSovuDljxpprGDP1Aj/ahiG4vU26gE9IjNFxwlkRPov
20
+ jVgUNVU2iXtd7pAM3EeEIzSFXfoTOGl1sk6UXMlMRyD6rkuIHiM08+7Q6UMdkO49
21
+ fMqF49DeMrlJfY4HBbegAF4dpWNY3SPhFWtOcdtCRF0AplB7HtR5laBsAdHjz3gM
22
+ klk+KNM5vptxWJPIqvXWS4pPudBCwz40gXRGR+BpU0UQiTqp1FiKCgL7DI4/Tm62
23
+ CHNMvwIDAQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU
24
+ DtwNA5H16pAiznZOti8bEjba8tUwDQYJKoZIhvcNAQEFBQADggEBALYguz5G0/OJ
25
+ xT+pCJlgQuU5XbKPx9dibev3ixqDaXz6F3rofNyskUGuCz80pIxwuVjsf7SC/l6x
26
+ iSqV4RZvqrQvgMa2VIQrbIfVya59CyFl+nlENev58nSZHo/3+AOK/rCLrvyRbv+y
27
+ NZocOuJdRiSWjnnRga8ccYA/Hu5OQsqUi3zWcZJx9Pf1yik/TGQBB5fVCg3wc/tT
28
+ 86mx1YMM5+6jp62bpABA/ztg5a1AwPjLztZO+kdsa5JPAe8kEORjgFUQd0bgoG1k
29
+ CGOLg0n36R4a1G+c6Meu9GeNGECbxY/1lzZOU9gfTqKd3DB+14BvAyvc5dTbR/RX
30
+ DrswbWvrKlA=
31
+ -----END CERTIFICATE-----
11
32
 
12
33
  date: 2009-09-29 00:00:00 -07:00
13
- default_executable: sup
34
+ default_executable:
14
35
  dependencies:
15
36
  - !ruby/object:Gem::Dependency
16
37
  name: schacon-git
metadata.gz.sig ADDED
Binary file