tablature_hero 0.1.0 → 0.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 +4 -4
- data/Gemfile.lock +62 -0
- data/exe/tablature_hero +26 -0
- data/lib/tablature_hero/version.rb +1 -1
- data/media/metro_high.mp3 +0 -0
- data/media/metro_low.mp3 +0 -0
- data/tablature_hero.gemspec +2 -3
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6c6f9ba11ebdd42d3e38af18ff05ad7cef5c4c0a7944e0919ca074b02c0b051
|
4
|
+
data.tar.gz: f51ec715d174b9ae159dd427e5f81d1dc74f7b79ca7a10bd1b9f8494012b8c62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 230be2c2b0b46ab94419111c77101e9e8403d137eab42c5795fe059c1994b33b59442211f16dd30f14161d77638b353e9cdce566a758bbd1ac63acc3fd91b0e4
|
7
|
+
data.tar.gz: afc8e40e525e5e8b01a3699530ba27e2d7de83048165c626fbc7e6036385e5848a49c9c5028aa1c93316724235521e9253b8c3b7eab54a4102cc3b0895babac4
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
tablature_hero (0.1.1)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
ast (2.4.2)
|
10
|
+
diff-lcs (1.5.0)
|
11
|
+
json (2.6.3)
|
12
|
+
language_server-protocol (3.17.0.3)
|
13
|
+
parallel (1.23.0)
|
14
|
+
parser (3.2.2.4)
|
15
|
+
ast (~> 2.4.1)
|
16
|
+
racc
|
17
|
+
racc (1.7.3)
|
18
|
+
rainbow (3.1.1)
|
19
|
+
rake (13.1.0)
|
20
|
+
regexp_parser (2.8.2)
|
21
|
+
rexml (3.2.6)
|
22
|
+
rspec (3.12.0)
|
23
|
+
rspec-core (~> 3.12.0)
|
24
|
+
rspec-expectations (~> 3.12.0)
|
25
|
+
rspec-mocks (~> 3.12.0)
|
26
|
+
rspec-core (3.12.2)
|
27
|
+
rspec-support (~> 3.12.0)
|
28
|
+
rspec-expectations (3.12.3)
|
29
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
30
|
+
rspec-support (~> 3.12.0)
|
31
|
+
rspec-mocks (3.12.6)
|
32
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
33
|
+
rspec-support (~> 3.12.0)
|
34
|
+
rspec-support (3.12.1)
|
35
|
+
rubocop (1.57.2)
|
36
|
+
json (~> 2.3)
|
37
|
+
language_server-protocol (>= 3.17.0)
|
38
|
+
parallel (~> 1.10)
|
39
|
+
parser (>= 3.2.2.4)
|
40
|
+
rainbow (>= 2.2.2, < 4.0)
|
41
|
+
regexp_parser (>= 1.8, < 3.0)
|
42
|
+
rexml (>= 3.2.5, < 4.0)
|
43
|
+
rubocop-ast (>= 1.28.1, < 2.0)
|
44
|
+
ruby-progressbar (~> 1.7)
|
45
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
46
|
+
rubocop-ast (1.30.0)
|
47
|
+
parser (>= 3.2.1.0)
|
48
|
+
ruby-progressbar (1.13.0)
|
49
|
+
unicode-display_width (2.5.0)
|
50
|
+
|
51
|
+
PLATFORMS
|
52
|
+
arm64-darwin-22
|
53
|
+
x86_64-linux
|
54
|
+
|
55
|
+
DEPENDENCIES
|
56
|
+
rake (~> 13.0)
|
57
|
+
rspec (~> 3.0)
|
58
|
+
rubocop (~> 1.21)
|
59
|
+
tablature_hero!
|
60
|
+
|
61
|
+
BUNDLED WITH
|
62
|
+
2.4.1
|
data/exe/tablature_hero
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# frozen_string_literal: true
|
4
|
+
|
5
|
+
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), "..", "lib")
|
6
|
+
|
7
|
+
require "tablature_hero"
|
8
|
+
|
9
|
+
def time(filename)
|
10
|
+
start = Time.now.to_f
|
11
|
+
path = File.join(File.dirname(__FILE__), "..", "media", filename)
|
12
|
+
`afplay #{path}`
|
13
|
+
Time.now.to_f - start
|
14
|
+
end
|
15
|
+
|
16
|
+
puts "running tablature_hero #{TablatureHero::VERSION}"
|
17
|
+
tempo = ARGV.shift.chomp
|
18
|
+
beat_duration = 60.0/tempo.to_i
|
19
|
+
loop do
|
20
|
+
duration = time("metro_high.mp3")
|
21
|
+
sleep beat_duration - duration
|
22
|
+
3.times do
|
23
|
+
duration = time("metro_low.mp3")
|
24
|
+
sleep beat_duration - duration
|
25
|
+
end
|
26
|
+
end
|
Binary file
|
data/media/metro_low.mp3
ADDED
Binary file
|
data/tablature_hero.gemspec
CHANGED
@@ -5,15 +5,14 @@ require_relative "lib/tablature_hero/version"
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "tablature_hero"
|
7
7
|
spec.version = TablatureHero::VERSION
|
8
|
-
spec.authors = ["Frederic Robert","Mark Ryall"]
|
9
|
-
spec.email = ["pf.robert974@gmail.com","mark.ryall@gmail.com"]
|
8
|
+
spec.authors = ["Frederic Robert", "Mark Ryall"]
|
9
|
+
spec.email = ["pf.robert974@gmail.com", "mark.ryall@gmail.com"]
|
10
10
|
|
11
11
|
spec.summary = "Guitar Tabs and Metronome."
|
12
12
|
spec.homepage = "https://github.com/pfr974/tablature_hero"
|
13
13
|
spec.license = "MIT"
|
14
14
|
spec.required_ruby_version = ">= 2.6.0"
|
15
15
|
|
16
|
-
|
17
16
|
spec.metadata = {
|
18
17
|
"rubygems_mfa_required" => "true"
|
19
18
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tablature_hero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frederic Robert
|
@@ -15,7 +15,8 @@ description:
|
|
15
15
|
email:
|
16
16
|
- pf.robert974@gmail.com
|
17
17
|
- mark.ryall@gmail.com
|
18
|
-
executables:
|
18
|
+
executables:
|
19
|
+
- tablature_hero
|
19
20
|
extensions: []
|
20
21
|
extra_rdoc_files: []
|
21
22
|
files:
|
@@ -24,11 +25,15 @@ files:
|
|
24
25
|
- CHANGELOG.md
|
25
26
|
- CODE_OF_CONDUCT.md
|
26
27
|
- Gemfile
|
28
|
+
- Gemfile.lock
|
27
29
|
- LICENSE.txt
|
28
30
|
- README.md
|
29
31
|
- Rakefile
|
32
|
+
- exe/tablature_hero
|
30
33
|
- lib/tablature_hero.rb
|
31
34
|
- lib/tablature_hero/version.rb
|
35
|
+
- media/metro_high.mp3
|
36
|
+
- media/metro_low.mp3
|
32
37
|
- sig/tablature_hero.rbs
|
33
38
|
- tablature_hero.gemspec
|
34
39
|
homepage: https://github.com/pfr974/tablature_hero
|