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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa4dcb853713952cf8cc813a5bd684def15250c00a120ded188d3b8d34a40a26
4
- data.tar.gz: 2f88c9cd01470d74e81c1695fc48ae9a796081575013600dbd8a8e80c48c683c
3
+ metadata.gz: f1fe517ed777d5f0bfaa41dc512d292dcb3678faa751a77eedd63649eb2fbdef
4
+ data.tar.gz: 63f2a64c52a4faa1c0b40a2a11b0674c43a86e815169a5c0c4d6c8cfb2989bed
5
5
  SHA512:
6
- metadata.gz: d9f833bc223ece4bab09406ccd7b52870af2890d9992947afc3bc7a016682915f0731518d077d79c027a81254fafd212dccc492f7768e68dbc10ca5a3e62a163
7
- data.tar.gz: e9253f915eab8450ac58dd357f7490211fe82bf31321ef57ee11a92f5e57817455ef64ffe8e7ab3d0938eed2c498b57d7541d406c5e41acdf73c0ca5540f3c9d
6
+ metadata.gz: abbeac467d981c43f1b61508b890e713e600c9224f59228aa24d40404667defcf10662477ca16b1600bd5b7a1e38539c89629f2188aec91462e6ed232bc8ff44
7
+ data.tar.gz: 522469ded6ff4da546ae2b91b69dc570fed87bd04e66c00edc9a65e056e5afa2068f715b8a967c855432299d2426759fd93ca136fe5ccda12da24c0b0e089fcc
@@ -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)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eudora_sound (1.0.2)
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.24.2)
18
+ async (1.26.1)
19
19
  console (~> 1.0)
20
20
  nio4r (~> 2.3)
21
21
  timers (~> 4.1)
22
- async-http (0.51.2)
23
- async (~> 1.23)
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.18.0)
27
- protocol-http1 (~> 0.12.0)
28
- protocol-http2 (~> 0.13.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.28.0)
32
+ async-io (1.29.0)
33
33
  async (~> 1.14)
34
- async-pool (0.2.0)
35
- async (~> 1.8)
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.18.0)
69
- protocol-http1 (0.12.0)
70
- protocol-http (~> 0.18)
71
- protocol-http2 (0.13.3)
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.83.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-performance (1.5.2)
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)
@@ -3,4 +3,4 @@
3
3
 
4
4
  require 'eudora_sound'
5
5
 
6
- EudoraSound.play
6
+ EudoraSound::EudoraSound.play
@@ -4,8 +4,35 @@ require 'eudora_sound/version'
4
4
 
5
5
  # Play that good old sound
6
6
  module EudoraSound
7
- def self.play
8
- cmd = "/usr/bin/env afplay #{File.expand_path(__dir__ + '/Eudora-1.aiff &')}"
9
- system cmd
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EudoraSound
4
- VERSION = '1.0.2'
4
+ VERSION = '1.0.3'
5
5
  DESCRIPTION = <<~DESC
6
6
  This plays the ancient Eudora mailer's sound.
7
7
  Use this to notify the end of processing etc.
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.2
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-20 00:00:00.000000000 Z
11
+ date: 2020-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler