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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d6f1195525df083ba3349006e7eae88c3baeb6a
4
- data.tar.gz: 4475a5194d1f98f9b237c7ac932df116f7b6cd06
3
+ metadata.gz: 49dd553377a25e5e47acce2e8468b732c15c819e
4
+ data.tar.gz: 4189ffb9443fe7a6b3dd67146865beb7e062e22f
5
5
  SHA512:
6
- metadata.gz: a20433b793d2076d1d09c77aadb3ab7b52b67a537a5eb41a06de7a0af3abdd184e658fecbec23b3d7dd153502f5a35f730eef8a22dce60de799ed196bf6034d0
7
- data.tar.gz: 3b0e038387a48c936805c66a362ff9d1c792faed55c5069db963b98b02b0b1d154bb66130a0b410f6c158bc5852d2ce19219a90f108180f1ede6ef1b38c0f58e
6
+ metadata.gz: d79060bf8077ca7cf42e9d50624bfc25d643c5bb89803748a3ce30c84ba59a0523157f6c94560679941683687f0e8446edad932f381a99bd35742b9d41e5468c
7
+ data.tar.gz: 0a27b19388a402dce26175a2c452902214f75012a1ec1f5b54f6d5137a846404c732c0029d80c4ff56278522a3247034546b7623895add96c09fb72ac8b00435
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.0.10
2
+
3
+ - Fixes the help bug (doubled commands)
4
+ - Auto adds the @ if missing in pm
5
+
1
6
  # 1.0.9
2
7
 
3
8
  - Fixes the stubborn 'nowplaying' database bug
data/lib/ayadn/action.rb CHANGED
@@ -718,6 +718,7 @@ module Ayadn
718
718
  def pmess(username)
719
719
  begin
720
720
  missing_username if username.empty?
721
+ username = Workers.add_arobase_if_missing(username)
721
722
  messenger = Post.new
722
723
  puts Status.message
723
724
  lines_array = messenger.compose
data/lib/ayadn/alias.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  module Ayadn
3
3
  class Alias < Thor
4
4
 
5
- desc "alias create CHANNEL ALIAS", "Creates an alias for a channel"
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 "alias delete ALIAS", "Deletes a previously created alias"
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 "alias import DATABASE", "Imports an aliases database from a backed up Ayadn account"
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 "alias list", "List previously created aliases"
75
+ desc "list", "List previously created aliases"
76
76
  long_desc Descriptions.alias_list
77
77
  def list
78
78
  begin
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  module Ayadn
3
3
  class Blacklist < Thor
4
- desc "blacklist add TYPE TARGET", "Adds a mention, hashtag or client to your blacklist"
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 "blacklist remove TYPE TARGET", "Removes a mention, hashtag or client from your blacklist"
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 "blacklist list", "List the content of your blacklist"
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 "blacklist import DATABASE", "Imports a blacklist database from another Ayadn account"
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 "set scroll ITEM VALUE", "Set the waiting time (in seconds, min 0.7) between two requests when scrolling"
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 "set timeline ITEM TRUE/FALSE", "Set ITEM to be activated or not"
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 "set count ITEM NUMBER", "Set ITEM to retrieve NUMBER of elements by default"
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 "set color ITEM COLOR", "Set ITEM to COLOR"
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 "set backup ITEM TRUE/FALSE", "Set ITEM to be activated or not"
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 "set defaults", "Sets back the configuration to defaults values"
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\n".color(:cyan)
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\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\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\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
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Ayadn
3
- VERSION = "1.0.9"
3
+ VERSION = "1.0.10"
4
4
  end
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.9
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-16 00:00:00.000000000 Z
11
+ date: 2014-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor