imsg 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 845e8f0e06e3eeab065a9afb626f6e7068ea31d5
4
- data.tar.gz: 4e0a0d431d8d26a117675483e86323d4554b0889
3
+ metadata.gz: 71c3b7a7d8f6cbe0a53d035f6bbed5d5902969fc
4
+ data.tar.gz: dfa4f1b9089e5e43f29a4a933c578e74cdd50048
5
5
  SHA512:
6
- metadata.gz: b06656bfe7355c6fc95f1cc973dced3efe6cb9ab62e357ef9bf7146941c8d3af64b3eddd7bdb2ff0c766a915f7339de1c63512abfc7a217363dd81a0fa29728b
7
- data.tar.gz: 8ce73d91d0bb05bd990e471af3b97cb2f9a9643140f9b130cf1e9e9e821e77d730223674c42e3e8572d6eddb3d84839c7ff6dae7f63bf21516c0ff8c77cb3cfe
6
+ metadata.gz: cf5bbbb568eabd11e0cc301c348851f44cee481b6bb0ff54d8998312bfe37ae2cebb0c4967822a2526251b46b1e8535b34ab74a3177a7c3c40ac14863064bb1c
7
+ data.tar.gz: 52eb6f07be8ef87d0b52e17eb5c143571adb87e0872cd3bcb444c567bedc0e808fd542695ea2b742387994e2436deed0fa72829b99a85d66508b68ed261b8572
data/.gitignore CHANGED
@@ -11,6 +11,7 @@ spec/reports
11
11
  test/tmp
12
12
  test/version_tmp
13
13
  tmp
14
+ .DS_Store
14
15
 
15
16
  # YARD artifacts
16
17
  .yardoc
@@ -6,7 +6,7 @@ module ImsgHandler
6
6
  CHAT_DISPLAY_LIMIT = 15
7
7
 
8
8
  def self.display_chats(chats)
9
- chats.first(CHAT_DISPLAY_LIMIT).map.with_index{ |x, i| "#{i + 1} - #{x.to_s}"}.join("\n")
9
+ chats.first(CHAT_DISPLAY_LIMIT).map.with_index{ |x, i| "\e[1;32m#{i + 1} \e[1;31m- \e[1;36m#{x.to_s}"}.join("\n")
10
10
  end
11
11
 
12
12
  def self.sort_by_updated(chats)
@@ -23,11 +23,10 @@ module ImsgHandler
23
23
  def self.send_message message, buddy, chat
24
24
  script_path = File.expand_path('../applescript', __FILE__)
25
25
  if (chat)
26
- puts "Sending \"#{message}\" to chat with \"#{chat.to_s}\""
27
- # puts `ls`
26
+ puts "\e[0mSending \e[1;32m\"#{message}\" \e[0mto chat with \e[1;36m\"#{chat.to_s}\""
28
27
  `osascript #{script_path}/sendToChat.scpt \"#{message}\" \"#{buddy}\"`
29
28
  else
30
- puts "Sending \"#{message}\" to buddy \"#{buddy}\""
29
+ puts "\e[0mSending \e[1;32m\"#{message}\" \e[0mmto buddy \e[1;36m\"#{buddy}\""
31
30
  `osascript #{script_path}/sendToBuddy.scpt \"#{message}\" \"#{buddy}\"`
32
31
  end
33
32
  end
@@ -37,7 +36,7 @@ def self.ask_for_buddy_with_msg msg
37
36
  chats = sort_by_updated(Chat.fetch_all)
38
37
  puts "\nTo whom would you like to send your message?"
39
38
  puts "(You can choose a number or type a buddy name/email)\n\n"
40
- puts display_chats(chats)
39
+ puts display_chats(chats) + "\e[1;35m"
41
40
  response = gets.chomp
42
41
  chat = is_i?(response) ? chats[response.to_i - 1] : nil
43
42
  response = chat ? chat.chat_number.to_s : response
@@ -1,3 +1,3 @@
1
1
  module Imsg
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imsg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Sampaio
@@ -61,7 +61,6 @@ executables:
61
61
  extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
- - ".DS_Store"
65
64
  - ".gitignore"
66
65
  - Gemfile
67
66
  - Gemfile.lock
data/.DS_Store DELETED
Binary file