zooline 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +1 -2
- data/Rakefile +1 -1
- data/lib/zooline.rb +2 -2
- data/lib/zooline/command.rb +15 -3
- data/lib/zooline/credentials.rb +1 -1
- data/zooline.gemspec +1 -1
- metadata +3 -3
- metadata.gz.sig +2 -1
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
�Cu���P��S�t�������y=/C�!�}רEx��0y�m�f>��!��o��$�ؘ�#��
|
1
|
+
� �m]-������������wz|2;��`��.�����xs��!�7Qb5�0�<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.
|
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"
|
data/lib/zooline.rb
CHANGED
@@ -9,7 +9,7 @@ end
|
|
9
9
|
require "patron"
|
10
10
|
require 'digest/sha1'
|
11
11
|
require 'yajl'
|
12
|
-
|
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.
|
26
|
+
VERSION = '0.0.3'
|
27
27
|
|
28
28
|
def self.storage
|
29
29
|
@storage ||= Zooline::Storage.new
|
data/lib/zooline/command.rb
CHANGED
@@ -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
|
176
|
+
zooline this help text
|
171
177
|
zooline help this help text
|
172
178
|
|
173
|
-
zooline
|
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
|
|
data/lib/zooline/credentials.rb
CHANGED
data/zooline.gemspec
CHANGED
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:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
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
|
-
|
1
|
+
�}����L�|L��8E�\�W��|
|
2
|
+
��;�`
|