zooline 0.0.2 → 0.0.3

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.
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- j؄{�N[�z���2[��ȿ��Si�`�PIF
2
- �Cu��޿�P��S�t�������y=/C�!�}רEx��0y�m�f>��!��o��$�ؘ�#��
1
+ � �m]-������������wz|2;��`��.�����xs��!�7Q b50�<Y6�QPJ� �9�vvQ�l�'1�����d��+e�*�<��2�t\�3�O��.��ռY!�up�o�e�8r9����A���/�auWܓT\��y�;S��)p~�z�0�bؒ. Sk�Nˏ��1�Ю�P��������qlw�D��ղ�wL>��D�k�ǫ���[�F��b@��� lʄԭL̺� aWL~�K�ݽ�
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('zooline', '0.0.2') do |p|
5
+ Echoe.new('zooline', '0.0.3') do |p|
6
6
  p.description = "Command line tool for zootool"
7
7
  p.url = "http://github.com/clodeindustrie/zooline"
8
8
  p.author = "Jeremy speissegger"
@@ -9,7 +9,7 @@ end
9
9
  require "patron"
10
10
  require 'digest/sha1'
11
11
  require 'yajl'
12
- re2uire "fileutils"
12
+ require "fileutils"
13
13
  require "rainbow"
14
14
  require "terminal-table/import"
15
15
 
@@ -23,7 +23,7 @@ require "zooline/output"
23
23
 
24
24
 
25
25
  module Zooline
26
- VERSION = '0.0.2'
26
+ VERSION = '0.0.3'
27
27
 
28
28
  def self.storage
29
29
  @storage ||= Zooline::Storage.new
@@ -36,7 +36,8 @@ module Zooline
36
36
  # Returns output based on method calls.
37
37
  def delegate(command, params)
38
38
  if command != 'set' && !Credentials.check?
39
- Output::displayMessage 'You need to set up your credentials!'
39
+ Output::displayMessage 'You need to set up your credentials!
40
+ $ zooline set <username> <password>'
40
41
  return
41
42
  end
42
43
 
@@ -58,6 +59,11 @@ module Zooline
58
59
  return help
59
60
  end
60
61
 
62
+ def wipeout
63
+ Credentials::wipeout!
64
+ Output::displayMessage "Credentials deleted !"
65
+ end
66
+
61
67
  #
62
68
  # Private: Set the credentials
63
69
  #
@@ -167,10 +173,16 @@ module Zooline
167
173
  text = %{
168
174
  - Zooline: help ---------------------------------------------------
169
175
 
170
- zooline Returns the last bookmark added
176
+ zooline this help text
171
177
  zooline help this help text
172
178
 
173
- zooline list Returns a list of bookmark
179
+ zooline set <user> <pass> Set up your credentials
180
+ zooline sync Sync bookmarks
181
+ zooline wipout Purge your credentials
182
+ zooline list <n> Returns a list of bookmark limited by n
183
+ -t Order by title
184
+ -i Order by uuid
185
+ -d Order by date
174
186
  zooline get show items for a list
175
187
  }.gsub(/^ {8}/, '') # strip the first eight spaces of every line
176
188
 
@@ -27,7 +27,7 @@ class Credentials
27
27
  end
28
28
  end
29
29
 
30
- def wipeout!
30
+ def self.wipeout!
31
31
  FileUtils.rm CRED_FILE
32
32
  end
33
33
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{zooline}
5
- s.version = "0.0.2"
5
+ s.version = "0.0.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jeremy speissegger"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zooline
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeremy speissegger
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- �9͵�qD���#��W�;���;*$�M�J��F�{�W��pe1 ��0j_1�cs[�C�kG��)�@Ŀ_�b=���?��9��)��,Aߵ���:j���{��Y�u�z�T��ƈ,?:j)9� r���@x �����2S��Q5صݠ^�e��8MYrԺ_�D�*gҝ4��_=H�D��緕�=���Xq0�H��w�� ,>��$Չ��94�����7����1=G�<m��$N;F'��
1
+ }����L�|L��8E�\�W��|
2
+ ��;�`