ayadn 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/ayadn/switch.rb +1 -1
- data/lib/ayadn/version.rb +1 -1
- data/lib/ayadn/workers.rb +7 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4da689dcf2f0af0a1f79e9a36812f21224a5dc4d
|
4
|
+
data.tar.gz: 2b8142d137821e710c2347f34e9ef04517f85bc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e25eb614812f284648dc494fcd36c5ab9850e2e298fa1ef25307474f2e9d041b8307d333cef286a5b3d5540d80dc5937accde52f748eb0c77b34e9bd93e889a
|
7
|
+
data.tar.gz: 3c9da18ff39c2652a977a89b651b9bb08f7e6e3dd9823d2870c7fe5d86f61c3dfdc2a23d504cd46570fdff84edc1a63f115e86c9190819664d9ab5e125491bce
|
data/CHANGELOG.md
CHANGED
data/lib/ayadn/switch.rb
CHANGED
@@ -30,7 +30,7 @@ module Ayadn
|
|
30
30
|
exit
|
31
31
|
end
|
32
32
|
#puts "\e[H\e[2J"
|
33
|
-
username = Workers.remove_arobase_if_present(user.first)
|
33
|
+
username = Workers.remove_arobase_if_present([user.first])[0]
|
34
34
|
home_path = Dir.home + "/ayadn"
|
35
35
|
if File.exist?("#{home_path}/accounts.db")
|
36
36
|
accounts_db = Databases.init("#{home_path}/accounts.db")
|
data/lib/ayadn/version.rb
CHANGED
data/lib/ayadn/workers.rb
CHANGED
@@ -292,10 +292,13 @@ module Ayadn
|
|
292
292
|
db[active][:handle]
|
293
293
|
end
|
294
294
|
|
295
|
-
def self.remove_arobase_if_present
|
296
|
-
|
297
|
-
|
298
|
-
|
295
|
+
def self.remove_arobase_if_present args
|
296
|
+
args.map! do |username|
|
297
|
+
username = username.chars
|
298
|
+
username.shift if username.first == "@"
|
299
|
+
username.join
|
300
|
+
end
|
301
|
+
args
|
299
302
|
end
|
300
303
|
|
301
304
|
def self.extract_users(resp)
|