big_bro 1.1.1 → 1.1.2

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: 71293042def637f1aa53096af888781887dd1a3e
4
- data.tar.gz: 407b037ab947fb88b2c1ec234a810b0af07696ed
3
+ metadata.gz: f96d428d7ab93919882b3755d188fe74510dd6e0
4
+ data.tar.gz: 6143a60e6bfa90504a1a06760171a2f840d55e7b
5
5
  SHA512:
6
- metadata.gz: 9cd19371b48eadd188d022db1c6d7d290759db48ad13ec9e9be0368c44bca56ef1155f80d756b708a25fbc2c0c6aa88f5642d9a8a969e9233b7528477ca1bde4
7
- data.tar.gz: ea49be3fe3a4f010614719f56fa6ce76231a54c1edf5dfeb1069a46d956f453809427eb24b056ece6fcac554bfb84f3f526138b96b8c02fea84fa57e5d661729
6
+ metadata.gz: 17eb00f2fde6c87a7c42f61f2272958c4c3effefb411a5a7dc3ee119d06da9eac1ea390faa6347327c8633bbce8fdc43488f26f503ebcc1740b160e9528363c4
7
+ data.tar.gz: 9851083eddbd1567405fbd3c58c9afa2afb0ec8efb62275336b591e00582090bac254114d77abe6b79b9c884d16d6a8206f18de323f978a73cec4b5ea188a396
@@ -1,7 +1,7 @@
1
1
  require "json"
2
2
 
3
3
  class BigBrother::Counter
4
- IGNORED_COMMANDS = ["export", "cd", "ls", "clear", "ssh", "ftp", "scp"]
4
+ IGNORED_COMMANDS = %w(export cd ls clear ssh ftp scp curl)
5
5
 
6
6
  def self.count_commands_json(file = BigBrother::Settings.get("history_file"), api_key = nil)
7
7
  lines = BigBrother::Reader.lines_from_history_file(file)
@@ -19,6 +19,9 @@ class BigBrother::Pusher
19
19
 
20
20
  if conn.put("/api/users", payload).status == 200
21
21
  BigBrother::Reader.move_history_file
22
+ puts "\e[32mUploaded successfully\e[39m"
23
+ else
24
+ puts "\e[31mError pushing to server, please try again\e[39m"
22
25
  end
23
26
  end
24
27
  end
@@ -1,3 +1,3 @@
1
1
  class BigBrother
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: big_bro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - dalexj