chord_diagrams 0.0.9 → 0.0.10

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: 95e1c4819a991922558323a949460abf71c40543d7c27055890cdde21a704dc7
4
- data.tar.gz: 518355d7d0eb36130ad4b2170d6f3b5667f9e843f483adc909c988bbfbadd462
3
+ metadata.gz: 3180bac857640df12ac5f4b21460e44989dfa8d6ab895098cc1eb329a59630d4
4
+ data.tar.gz: abbd3f0b9e8bc7c62a90b3eb42adcccc47e97f365eb00ec5a29f2013e8e6394d
5
5
  SHA512:
6
- metadata.gz: fe564e36fe007d43a62b317c0ce45081fe974da8debf290e99203b3083fa82593f80e44ea6437603dc6db42ff1080ba5f773ea8d06f7909ed9687db19f6cde73
7
- data.tar.gz: 6d8a43b304cd39717455fe929cae5ebdf05aff1675eb584854f4b2151b1557cf94212007bca687de9ea150c0f7403674ddcbd4ad037f95c174d272ec24963302
6
+ metadata.gz: 54e13dbc75a9545f9bcac372d6eae1a2ca56bb502eb46da8443831a67a1f34e8a57b16a9880c7531ee5752eeb9719f02f467ec9dda9645df3ad0ca2e8b83449f
7
+ data.tar.gz: '0297d75222be4299481223a7db5983abae3f76643fa55cd7f7fac2b6b792e60b56af68b39d5d6747b89c3864fe81b243f13b7d7f976e88726294f10097762ab8'
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.3
1
+ 2.7.2
data/.travis.yml CHANGED
@@ -3,5 +3,5 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.6.3
7
- before_install: gem install bundler -v 2.0.1
6
+ - 2.7.2
7
+ before_install: gem install bundler -v 2.2
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # ChordDiagrams
1
+ # ChordDiagrams [![Build Status](https://www.travis-ci.com/spilth/chord_diagrams.svg?branch=master)](https://www.travis-ci.com/spilth/chord_diagrams)
2
2
 
3
3
  Generate SVGs for Guitar and Ukulele Chord Diagrams
4
4
 
@@ -12,11 +12,15 @@ gem 'chord_diagrams'
12
12
 
13
13
  And then execute:
14
14
 
15
- $ bundle
15
+ ```bash
16
+ $ bundle
17
+ ```
16
18
 
17
19
  Or install it yourself as:
18
20
 
19
- $ gem install chord_diagrams
21
+ ```bash
22
+ $ gem install chord_diagrams
23
+ ```
20
24
 
21
25
  ## Usage
22
26
 
@@ -26,14 +30,6 @@ puts ChordDiagrams.guitar_svg('Am')
26
30
  puts ChordDiagrams.ukulele_svg('Am')
27
31
  ```
28
32
 
29
- ### Guitar
30
-
31
- <svg width="100" height="100" viewBox="0 0 200 200"><text x="100" y="40" text-anchor="middle" style="font-size:36; font-weight:bold">Am</text><line x1="50" y1="80" x2="150" y2="80" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="100" x2="150" y2="100" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="120" x2="150" y2="120" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="140" x2="150" y2="140" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="160" x2="150" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="80" x2="50" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="70" y1="80" x2="70" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="90" y1="80" x2="90" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="110" y1="80" x2="110" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="130" y1="80" x2="130" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="150" y1="80" x2="150" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="49" y1="77" x2="151" y2="77" style="stroke:black; stroke-width:8"/><circle cx="50" cy="61" r="6" style="stroke:black; fill:white; stroke-width:2"/><circle cx="70" cy="61" r="6" style="stroke:black; fill:white; stroke-width:2"/><circle cx="90" cy="110" r="8" style="fill:black"/><circle cx="110" cy="110" r="8" style="fill:black"/><circle cx="130" cy="90" r="8" style="fill:black"/><circle cx="150" cy="61" r="6" style="stroke:black; fill:white; stroke-width:2"/></svg>
32
-
33
- ### Ukulele
34
-
35
- <svg width="80" height="100" viewBox="0 0 160 200"><text id="chordName" x="80" y="40" text-anchor="middle" style="font-size:36; font-weight:bold">Am</text><line x1="50" y1="80" x2="110" y2="80" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="100" x2="110" y2="100" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="120" x2="110" y2="120" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="140" x2="110" y2="140" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="160" x2="110" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="50" y1="80" x2="50" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="70" y1="80" x2="70" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="90" y1="80" x2="90" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line x1="110" y1="80" x2="110" y2="160" style="stroke:black; stroke-width:2; stroke-linecap:square"/><line id="nut" x1="49" y1="77" x2="111" y2="77" style="stroke:black; stroke-width:8"/><circle cx="50" cy="90" r="8" style="fill:black"/><circle cx="70" cy="61" r="6" style="stroke:black; fill:white; stroke-width:2"/><circle cx="90" cy="61" r="6" style="stroke:black; fill:white; stroke-width:2"/><circle cx="110" cy="61" r="6" style="stroke:black; fill:white; stroke-width:2"/></svg>
36
-
37
33
  ## Development
38
34
 
39
35
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ['Brian Kelly']
9
9
  spec.email = ['bkelly@carbonfive.com']
10
10
 
11
- spec.summary = 'Generate Chord Diagrams for Guitar'
12
- spec.description = 'Generate Chord Diagrams for Guitar'
11
+ spec.summary = 'Generate Chord Diagrams for Guitar and Ukulele'
12
+ spec.description = 'Generate Chord Diagrams for Guitar and Ukulele'
13
13
  spec.homepage = 'https://github.com/spilth/chord_diagrams'
14
14
  spec.license = 'MIT'
15
15
 
@@ -35,9 +35,9 @@ Gem::Specification.new do |spec|
35
35
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
36
36
  spec.require_paths = ['lib']
37
37
 
38
- spec.add_dependency 'victor', '0.2.4'
39
- spec.add_development_dependency 'bundler', '~> 2.0'
40
- spec.add_development_dependency 'rake', '~> 10.0'
41
- spec.add_development_dependency 'rspec', '~> 3.0'
42
- spec.add_development_dependency 'nokogiri'
38
+ spec.add_dependency 'victor', '0.3.2'
39
+ spec.add_development_dependency 'bundler', '~> 2.2'
40
+ spec.add_development_dependency 'rake', '~> 13.0'
41
+ spec.add_development_dependency 'rspec', '~> 3.8'
42
+ spec.add_development_dependency 'nokogiri', '~> 1.11'
43
43
  end
@@ -11,7 +11,7 @@ module ChordDiagrams
11
11
 
12
12
  class << self
13
13
  def ukulele_svg(name, _fingering = nil)
14
- svg = Victor::SVG.new template: :html, width: 80, height: 100, viewBox: '0 0 160 200'
14
+ svg = Victor::SVG.new template: :minimal, width: 80, height: 100, viewBox: '0 0 160 200'
15
15
 
16
16
  ChordDiagrams.draw_ukulele_name(name, svg)
17
17
  ChordDiagrams.draw_ukulele_frets(svg)
@@ -29,7 +29,7 @@ module ChordDiagrams
29
29
  end
30
30
 
31
31
  def guitar_svg(name, fingering = nil)
32
- svg = Victor::SVG.new template: :html, width: 100, height: 100, viewBox: '0 0 200 200'
32
+ svg = Victor::SVG.new template: :minimal, width: 100, height: 100, viewBox: '0 0 200 200'
33
33
 
34
34
  ChordDiagrams.draw_guitar_name(name, svg)
35
35
  ChordDiagrams.draw_guitar_frets(svg)
@@ -1,3 +1,3 @@
1
1
  module ChordDiagrams
2
- VERSION = '0.0.9'.freeze
2
+ VERSION = '0.0.10'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chord_diagrams
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Kelly
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-20 00:00:00.000000000 Z
11
+ date: 2021-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: victor
@@ -16,71 +16,71 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.4
19
+ version: 0.3.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.4
26
+ version: 0.3.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '2.2'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.0'
40
+ version: '2.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '13.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.0'
61
+ version: '3.8'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.0'
68
+ version: '3.8'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: nokogiri
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '1.11'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
83
- description: Generate Chord Diagrams for Guitar
82
+ version: '1.11'
83
+ description: Generate Chord Diagrams for Guitar and Ukulele
84
84
  email:
85
85
  - bkelly@carbonfive.com
86
86
  executables: []
@@ -124,8 +124,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubygems_version: 3.0.3
127
+ rubygems_version: 3.1.4
128
128
  signing_key:
129
129
  specification_version: 4
130
- summary: Generate Chord Diagrams for Guitar
130
+ summary: Generate Chord Diagrams for Guitar and Ukulele
131
131
  test_files: []