eudora_sound 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/Gemfile.lock +19 -16
- data/exe/eudora_sound +1 -1
- data/lib/eudora_sound.rb +30 -3
- data/lib/eudora_sound/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: f1fe517ed777d5f0bfaa41dc512d292dcb3678faa751a77eedd63649eb2fbdef
|
4
|
+
data.tar.gz: 63f2a64c52a4faa1c0b40a2a11b0674c43a86e815169a5c0c4d6c8cfb2989bed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abbeac467d981c43f1b61508b890e713e600c9224f59228aa24d40404667defcf10662477ca16b1600bd5b7a1e38539c89629f2188aec91462e6ed232bc8ff44
|
7
|
+
data.tar.gz: 522469ded6ff4da546ae2b91b69dc570fed87bd04e66c00edc9a65e056e5afa2068f715b8a967c855432299d2426759fd93ca136fe5ccda12da24c0b0e089fcc
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v1.0.3](https://github.com/shinyaohtani/eudora_sound/tree/v1.0.3) (2020-05-25)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/shinyaohtani/eudora_sound/compare/v1.0.2...v1.0.3)
|
6
|
+
|
7
|
+
- To output a message if OS is other than macOS: "Not supported OS"
|
8
|
+
|
9
|
+
**Implemented enhancements:**
|
10
|
+
|
11
|
+
- Print a message "Not supported OS" [\#11](https://github.com/shinyaohtani/eudora_sound/issues/11)
|
12
|
+
|
13
|
+
**Merged pull requests:**
|
14
|
+
|
15
|
+
- implemented [\#12](https://github.com/shinyaohtani/eudora_sound/pull/12) ([shinyaohtani](https://github.com/shinyaohtani))
|
16
|
+
|
3
17
|
## [v1.0.2](https://github.com/shinyaohtani/eudora_sound/tree/v1.0.2) (2020-05-20)
|
4
18
|
|
5
19
|
[Full Changelog](https://github.com/shinyaohtani/eudora_sound/compare/v1.0.1...v1.0.2)
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eudora_sound (1.0.
|
4
|
+
eudora_sound (1.0.3)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -15,24 +15,24 @@ GEM
|
|
15
15
|
addressable (2.7.0)
|
16
16
|
public_suffix (>= 2.0.2, < 5.0)
|
17
17
|
ast (2.4.0)
|
18
|
-
async (1.
|
18
|
+
async (1.26.1)
|
19
19
|
console (~> 1.0)
|
20
20
|
nio4r (~> 2.3)
|
21
21
|
timers (~> 4.1)
|
22
|
-
async-http (0.
|
23
|
-
async (~> 1.
|
22
|
+
async-http (0.52.4)
|
23
|
+
async (~> 1.25)
|
24
24
|
async-io (~> 1.28)
|
25
25
|
async-pool (~> 0.2)
|
26
|
-
protocol-http (~> 0.
|
27
|
-
protocol-http1 (~> 0.
|
28
|
-
protocol-http2 (~> 0.
|
26
|
+
protocol-http (~> 0.20.0)
|
27
|
+
protocol-http1 (~> 0.13.0)
|
28
|
+
protocol-http2 (~> 0.14.0)
|
29
29
|
async-http-faraday (0.9.0)
|
30
30
|
async-http (~> 0.42)
|
31
31
|
faraday
|
32
|
-
async-io (1.
|
32
|
+
async-io (1.29.0)
|
33
33
|
async (~> 1.14)
|
34
|
-
async-pool (0.2
|
35
|
-
async (~> 1.
|
34
|
+
async-pool (0.3.2)
|
35
|
+
async (~> 1.25)
|
36
36
|
byebug (11.1.3)
|
37
37
|
coderay (1.1.2)
|
38
38
|
concurrent-ruby (1.1.6)
|
@@ -65,10 +65,10 @@ GEM
|
|
65
65
|
parser (2.7.1.2)
|
66
66
|
ast (~> 2.4.0)
|
67
67
|
protocol-hpack (1.4.2)
|
68
|
-
protocol-http (0.
|
69
|
-
protocol-http1 (0.
|
70
|
-
protocol-http (~> 0.
|
71
|
-
protocol-http2 (0.
|
68
|
+
protocol-http (0.20.0)
|
69
|
+
protocol-http1 (0.13.0)
|
70
|
+
protocol-http (~> 0.19)
|
71
|
+
protocol-http2 (0.14.0)
|
72
72
|
protocol-hpack (~> 1.4)
|
73
73
|
protocol-http (~> 0.18)
|
74
74
|
pry (0.13.1)
|
@@ -95,14 +95,17 @@ GEM
|
|
95
95
|
diff-lcs (>= 1.2.0, < 2.0)
|
96
96
|
rspec-support (~> 3.9.0)
|
97
97
|
rspec-support (3.9.3)
|
98
|
-
rubocop (0.
|
98
|
+
rubocop (0.84.0)
|
99
99
|
parallel (~> 1.10)
|
100
100
|
parser (>= 2.7.0.1)
|
101
101
|
rainbow (>= 2.2.2, < 4.0)
|
102
102
|
rexml
|
103
|
+
rubocop-ast (>= 0.0.3)
|
103
104
|
ruby-progressbar (~> 1.7)
|
104
105
|
unicode-display_width (>= 1.4.0, < 2.0)
|
105
|
-
rubocop-
|
106
|
+
rubocop-ast (0.0.3)
|
107
|
+
parser (>= 2.7.0.1)
|
108
|
+
rubocop-performance (1.6.0)
|
106
109
|
rubocop (>= 0.71.0)
|
107
110
|
rubocop-rspec (1.39.0)
|
108
111
|
rubocop (>= 0.68.1)
|
data/exe/eudora_sound
CHANGED
data/lib/eudora_sound.rb
CHANGED
@@ -4,8 +4,35 @@ require 'eudora_sound/version'
|
|
4
4
|
|
5
5
|
# Play that good old sound
|
6
6
|
module EudoraSound
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
require 'rbconfig'
|
8
|
+
|
9
|
+
# Play that good old sound
|
10
|
+
class EudoraSound
|
11
|
+
def self.play
|
12
|
+
case os
|
13
|
+
when :macosx
|
14
|
+
cmd = "/usr/bin/env afplay #{File.expand_path(__dir__ + '/Eudora-1.aiff &')}"
|
15
|
+
system cmd
|
16
|
+
when :linux, :windows, :unix, :unknown
|
17
|
+
puts 'Not supported OS'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.os
|
22
|
+
host_os = RbConfig::CONFIG['host_os']
|
23
|
+
case host_os
|
24
|
+
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
|
25
|
+
:windows
|
26
|
+
when /darwin|mac os/
|
27
|
+
:macosx
|
28
|
+
when /linux/
|
29
|
+
:linux
|
30
|
+
when /solaris|bsd/
|
31
|
+
:unix
|
32
|
+
else
|
33
|
+
puts "unknown os: #{host_os.inspect}"
|
34
|
+
:unknown
|
35
|
+
end
|
36
|
+
end
|
10
37
|
end
|
11
38
|
end
|
data/lib/eudora_sound/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eudora_sound
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shinya Ohtani (shinyaohtani@github)
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|