chris_lib 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chris_lib/shell_methods.rb +11 -1
- data/lib/chris_lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f27e8c1d357690c572ec24efd5ef5933d0699f514808b9cc0ee6b9852e772edb
|
4
|
+
data.tar.gz: fb46802d3e5ea9a3075f7667e9eaa0a3fd9095f88c956146e305b6f8bbfa61ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d0ed857fef8a490066f28941d994a0f3175dded021f6fcdcd6f28c2ab6b228a57bb4aa1fe45fa65330dcd19cf6602b83357413fe8e49dde9d37a2fd67a31161
|
7
|
+
data.tar.gz: c6e1ba3d37f9b0c1cc10fa6ad40f5708c04ea245acf941f2faeb1f135ceae942e90c39a121c0327f6027480d9c94e9a79a981ca7b111fafb995ebd4e3852de44
|
@@ -9,7 +9,7 @@ module ShellMethods
|
|
9
9
|
`stat -f%z #{file_path}`.to_i
|
10
10
|
end
|
11
11
|
|
12
|
-
def
|
12
|
+
def osx_imessage_admin(msg)
|
13
13
|
`osascript -e 'tell application "Messages" to send "#{msg}" to buddy "admin"'`
|
14
14
|
end
|
15
15
|
|
@@ -17,6 +17,16 @@ module ShellMethods
|
|
17
17
|
`osascript -e 'display notification "#{msg}" with title "#{title}"'`
|
18
18
|
end
|
19
19
|
|
20
|
+
def osx_hostname
|
21
|
+
`hostname`
|
22
|
+
end
|
23
|
+
|
24
|
+
# mail to osx user
|
25
|
+
# https://stackoverflow.com/q/41602984/1299362
|
26
|
+
def osx_send_mail(subject, body = nil)
|
27
|
+
`echo "#{body}" | mail -s "#{subject}" 'Chris'`
|
28
|
+
end
|
29
|
+
|
20
30
|
def parse_options
|
21
31
|
@options = {}
|
22
32
|
OptionParser.new do |opts|
|
data/lib/chris_lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chris_lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|