ayadn 1.0.9 → 1.0.10
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/ayadn/action.rb +1 -0
- data/lib/ayadn/alias.rb +4 -4
- data/lib/ayadn/blacklist.rb +4 -4
- data/lib/ayadn/set.rb +6 -6
- data/lib/ayadn/status.rb +4 -4
- data/lib/ayadn/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 49dd553377a25e5e47acce2e8468b732c15c819e
|
|
4
|
+
data.tar.gz: 4189ffb9443fe7a6b3dd67146865beb7e062e22f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d79060bf8077ca7cf42e9d50624bfc25d643c5bb89803748a3ce30c84ba59a0523157f6c94560679941683687f0e8446edad932f381a99bd35742b9d41e5468c
|
|
7
|
+
data.tar.gz: 0a27b19388a402dce26175a2c452902214f75012a1ec1f5b54f6d5137a846404c732c0029d80c4ff56278522a3247034546b7623895add96c09fb72ac8b00435
|
data/CHANGELOG.md
CHANGED
data/lib/ayadn/action.rb
CHANGED
data/lib/ayadn/alias.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
module Ayadn
|
|
3
3
|
class Alias < Thor
|
|
4
4
|
|
|
5
|
-
desc "
|
|
5
|
+
desc "create CHANNEL ALIAS", "Creates an alias for a channel"
|
|
6
6
|
long_desc Descriptions.alias_create
|
|
7
7
|
def create(*args)
|
|
8
8
|
begin
|
|
@@ -27,7 +27,7 @@ module Ayadn
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
desc "
|
|
30
|
+
desc "delete ALIAS", "Deletes a previously created alias"
|
|
31
31
|
long_desc Descriptions.alias_delete
|
|
32
32
|
def delete(*args)
|
|
33
33
|
begin
|
|
@@ -47,7 +47,7 @@ module Ayadn
|
|
|
47
47
|
end
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
desc "
|
|
50
|
+
desc "import DATABASE", "Imports an aliases database from a backed up Ayadn account"
|
|
51
51
|
long_desc Descriptions.alias_import
|
|
52
52
|
def import(database)
|
|
53
53
|
begin
|
|
@@ -72,7 +72,7 @@ module Ayadn
|
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
desc "
|
|
75
|
+
desc "list", "List previously created aliases"
|
|
76
76
|
long_desc Descriptions.alias_list
|
|
77
77
|
def list
|
|
78
78
|
begin
|
data/lib/ayadn/blacklist.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
2
|
module Ayadn
|
|
3
3
|
class Blacklist < Thor
|
|
4
|
-
desc "
|
|
4
|
+
desc "add TYPE TARGET", "Adds a mention, hashtag or client to your blacklist"
|
|
5
5
|
long_desc Descriptions.blacklist_add
|
|
6
6
|
def add(*args)
|
|
7
7
|
if args.length != 2
|
|
@@ -12,7 +12,7 @@ module Ayadn
|
|
|
12
12
|
puts Status.done
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
desc "
|
|
15
|
+
desc "remove TYPE TARGET", "Removes a mention, hashtag or client from your blacklist"
|
|
16
16
|
long_desc Descriptions.blacklist_remove
|
|
17
17
|
def remove(*args)
|
|
18
18
|
if args.length != 2
|
|
@@ -23,14 +23,14 @@ module Ayadn
|
|
|
23
23
|
puts Status.done
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
desc "
|
|
26
|
+
desc "list", "List the content of your blacklist"
|
|
27
27
|
long_desc Descriptions.blacklist_list
|
|
28
28
|
def list
|
|
29
29
|
blacklist = BlacklistWorkers.new
|
|
30
30
|
blacklist.list
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
desc "
|
|
33
|
+
desc "import DATABASE", "Imports a blacklist database from another Ayadn account"
|
|
34
34
|
long_desc Descriptions.blacklist_import
|
|
35
35
|
def import(database)
|
|
36
36
|
blacklist = BlacklistWorkers.new
|
data/lib/ayadn/set.rb
CHANGED
|
@@ -2,7 +2,7 @@ module Ayadn
|
|
|
2
2
|
|
|
3
3
|
class Set < Thor
|
|
4
4
|
|
|
5
|
-
desc "
|
|
5
|
+
desc "scroll ITEM VALUE", "Set the waiting time (in seconds, min 0.7) between two requests when scrolling"
|
|
6
6
|
def scroll(*args)
|
|
7
7
|
scroll_config = SetScroll.new
|
|
8
8
|
if args[0]
|
|
@@ -15,7 +15,7 @@ module Ayadn
|
|
|
15
15
|
scroll_config.save
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
desc "
|
|
18
|
+
desc "timeline ITEM TRUE/FALSE", "Set ITEM to be activated or not"
|
|
19
19
|
long_desc Descriptions.set_timeline
|
|
20
20
|
def timeline(*args)
|
|
21
21
|
timeline_config = SetTimeline.new
|
|
@@ -36,7 +36,7 @@ module Ayadn
|
|
|
36
36
|
timeline_config.save
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
desc "
|
|
39
|
+
desc "count ITEM NUMBER", "Set ITEM to retrieve NUMBER of elements by default"
|
|
40
40
|
long_desc Descriptions.set_counts
|
|
41
41
|
map "counts" => :count
|
|
42
42
|
def count(*args)
|
|
@@ -64,7 +64,7 @@ module Ayadn
|
|
|
64
64
|
# puts args
|
|
65
65
|
# end
|
|
66
66
|
|
|
67
|
-
desc "
|
|
67
|
+
desc "color ITEM COLOR", "Set ITEM to COLOR"
|
|
68
68
|
long_desc Descriptions.set_color
|
|
69
69
|
map "colors" => :color
|
|
70
70
|
map "colour" => :color
|
|
@@ -88,7 +88,7 @@ module Ayadn
|
|
|
88
88
|
color_config.save
|
|
89
89
|
end
|
|
90
90
|
|
|
91
|
-
desc "
|
|
91
|
+
desc "backup ITEM TRUE/FALSE", "Set ITEM to be activated or not"
|
|
92
92
|
long_desc Descriptions.set_backup
|
|
93
93
|
def backup(*args)
|
|
94
94
|
backup_config = SetBackup.new
|
|
@@ -109,7 +109,7 @@ module Ayadn
|
|
|
109
109
|
backup_config.save
|
|
110
110
|
end
|
|
111
111
|
|
|
112
|
-
desc "
|
|
112
|
+
desc "defaults", "Sets back the configuration to defaults values"
|
|
113
113
|
long_desc Descriptions.set_defaults
|
|
114
114
|
def defaults
|
|
115
115
|
Settings.restore_defaults
|
data/lib/ayadn/status.rb
CHANGED
|
@@ -146,19 +146,19 @@ module Ayadn
|
|
|
146
146
|
"\nReplying to post #{post_id}...\n".color(:green)
|
|
147
147
|
end
|
|
148
148
|
def self.readline
|
|
149
|
-
"\nType your text. ".color(:cyan) + "[CTRL+D] ".color(:green) + "to validate, ".color(:cyan) + "[CTRL+C] ".color(:red) + "to cancel.\n
|
|
149
|
+
"\nType your text. ".color(:cyan) + "[CTRL+D] ".color(:green) + "to validate, ".color(:cyan) + "[CTRL+C] ".color(:red) + "to cancel.\n".color(:cyan)
|
|
150
150
|
end
|
|
151
151
|
# def self.classic
|
|
152
152
|
# "\nType your text. ".color(:cyan) + "[ENTER] ".color(:green) + "to validate, ".color(:cyan) + "[CTRL+C] ".color(:red) + "to cancel.\n\n".color(:cyan)
|
|
153
153
|
# end
|
|
154
154
|
def self.reply
|
|
155
|
-
"\n#{Settings.config[:post_max_length]} ".color(:yellow) + "characters maximum. If the original post has mentions, you text will be inserted after the first one. Markdown links are supported.\n
|
|
155
|
+
"\n#{Settings.config[:post_max_length]} ".color(:yellow) + "characters maximum. If the original post has mentions, you text will be inserted after the first one. Markdown links are supported.\n"
|
|
156
156
|
end
|
|
157
157
|
def self.post
|
|
158
|
-
"\n#{Settings.config[:post_max_length]} ".color(:yellow) + "characters maximum. Markdown links are supported.\n
|
|
158
|
+
"\n#{Settings.config[:post_max_length]} ".color(:yellow) + "characters maximum. Markdown links are supported.\n"
|
|
159
159
|
end
|
|
160
160
|
def self.message
|
|
161
|
-
"\n#{Settings.config[:message_max_length]} ".color(:yellow) + "characters maximum. Markdown links are supported.\n
|
|
161
|
+
"\n#{Settings.config[:message_max_length]} ".color(:yellow) + "characters maximum. Markdown links are supported.\n"
|
|
162
162
|
end
|
|
163
163
|
# def self.method_missing(meth, args)
|
|
164
164
|
# "\nThe command '#{meth} #{args}' doesn't exist.\n".color(:red)
|
data/lib/ayadn/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ayadn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eric Dejonckheere
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-04-
|
|
11
|
+
date: 2014-04-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|