evox 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 44ae05ff4c63074d1ab2574ad9bc9cdd1036681dd79a2336d92d2520a7fd6ffa
4
+ data.tar.gz: fcc009f3d676dfa40252379bdc851a0f81f5d4e980ce39e8f926cdf0fab77077
5
+ SHA512:
6
+ metadata.gz: 5ef7fe3a745fc5f8865bb7135cddebf0b29fd648523f0c569dcc091ebeed76b040e4be360ee7c261574a65537dc99f7b2b0398fc06216ebd8857625b9f6dd45e
7
+ data.tar.gz: 60d5b4e2748c342b411920631d2215110884e756125593722b5ce0f821217ace8e73add80aaaf06a3834acc7e6ecc0ea3b3ebaea2b46687154ee59513c0ee72c
data/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /.idea/
10
+ .rakeTasks
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.0
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in evox.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,32 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ evox (1.0.0)
5
+ commander
6
+ prawn
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ byebug (11.1.1)
12
+ commander (4.5.2)
13
+ highline (~> 2.0.0)
14
+ highline (2.0.3)
15
+ pdf-core (0.7.0)
16
+ prawn (2.2.2)
17
+ pdf-core (~> 0.7.0)
18
+ ttfunk (~> 1.5)
19
+ rake (12.3.3)
20
+ ttfunk (1.6.2.1)
21
+
22
+ PLATFORMS
23
+ ruby
24
+
25
+ DEPENDENCIES
26
+ bundler (~> 2.1.4)
27
+ byebug
28
+ evox!
29
+ rake (~> 12.3.3)
30
+
31
+ BUNDLED WITH
32
+ 2.1.4
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Leonid Medovyy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Evox
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/evox`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'evox'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install evox
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/evox.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "evox"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/evox ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require 'evox'
3
+
4
+ start = Evox::Start.new
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/evox.gemspec ADDED
@@ -0,0 +1,30 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "evox/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "evox"
8
+ spec.version = Evox::VERSION
9
+ spec.authors = ["Leonid Medovyy"]
10
+ spec.email = ["leonid@goodlogik.com"]
11
+
12
+ spec.summary = "A rugged songbook generator"
13
+ spec.homepage = "https://github.com/leouofa/evox"
14
+ spec.license = "MIT"
15
+
16
+ # Specify which files should be added to the gem when it is released.
17
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ end
21
+ spec.bindir = "bin"
22
+ spec.executables = "evox"
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_development_dependency "bundler", "~> 2.1.4"
26
+ spec.add_development_dependency "rake", "~> 12.3.3"
27
+ spec.add_development_dependency "byebug"
28
+ spec.add_dependency "commander"
29
+ spec.add_dependency "prawn"
30
+ end
@@ -0,0 +1,3 @@
1
+ module Evox
2
+ VERSION = "1.0.0"
3
+ end
data/lib/evox.rb ADDED
@@ -0,0 +1,215 @@
1
+ require "evox/version"
2
+ require 'prawn'
3
+ require 'commander/import'
4
+ require 'yaml'
5
+ require 'fileutils'
6
+
7
+
8
+ module Evox
9
+ class Start
10
+ program :name, 'Evox'
11
+ program :version, '1.0.0'
12
+ program :description, 'Rugged Songbook generator'
13
+ default_command :howto
14
+
15
+ command :howto do |c|
16
+ c.syntax = 'evox howto'
17
+ c.description = 'Displays instructions for using the evox song book generator'
18
+ c.action do |_args, _options|
19
+ puts '1. Generate initial folder structure by running "evox init"'
20
+ puts '2. Build your songbook by running "evox generate"'
21
+ puts '3. Learn more about the songbook generator at https://github.com/leouofa/evox'
22
+ end
23
+ end
24
+
25
+ command :init do |c|
26
+ c.syntax = 'evox init'
27
+ c.description = 'initializes the folder structure & copies default config files'
28
+ c.action do |_args, _options|
29
+ source_folder = File.expand_path("../templates", __FILE__)
30
+ dest_folder = FileUtils.pwd()
31
+ Dir.mkdir('book')
32
+ Dir.mkdir('cover')
33
+ Dir.mkdir('songs')
34
+ puts '✅ Initialized Folder Structure'
35
+
36
+ FileUtils.cp "#{source_folder}/config.yml", "#{dest_folder}/cover/config.yml"
37
+ FileUtils.cp "#{source_folder}/logo.png", "#{dest_folder}/cover/logo.png"
38
+ puts '✅ Copied Default Cover Files'
39
+
40
+ FileUtils.cp "#{source_folder}/free_falling.evox", "#{dest_folder}/songs/free_falling.evox"
41
+ FileUtils.cp "#{source_folder}/over_the_rainbow.evox", "#{dest_folder}/songs/over_the_rainbow.evox"
42
+ FileUtils.cp "#{source_folder}/i_dont_love.evox", "#{dest_folder}/songs/i_dont_love.evox"
43
+ puts '✅ Copied Sample Longs'
44
+
45
+ puts ''
46
+ puts '🚨 Consider checking this folder in source control 🚨'
47
+ end
48
+ end
49
+
50
+ command :generate do |c|
51
+ c.syntax = 'evox generate [options]'
52
+ c.description = 'generates the songbook'
53
+ c.action do |_args, _options|
54
+
55
+ Prawn::Document.generate('book/book.pdf', page_size: "A4") do
56
+ def build_cover
57
+ cover = YAML.load(File.read('cover/config.yml'))
58
+ # Generate Cover Page
59
+ pad_top(cover["header"]["top_padding"]) { text cover["header"]["title"], size: cover["header"]["title_size"], style: :bold, align: :center }
60
+ pad_bottom(cover["header"]["bottom_padding"]) { text cover["header"]["subtitle"], size: cover["header"]["subtitle_size"], style: :bold, align: :center }
61
+
62
+ image "cover/#{cover["logo"]["image"]}", width: cover["logo"]["width"], height: cover["logo"]["height"], position: :center
63
+
64
+ pad_top(50) { text cover["footer"]["title"], size: cover["footer"]["title_size"], style: :bold, align: :center }
65
+ end
66
+
67
+ def scanner(delimiter, song)
68
+ column_start = false
69
+ columns = []
70
+ current_column = []
71
+
72
+ File.open( "songs/#{song}").each_with_index do |line, index|
73
+ if line =~ /#{Regexp.quote(delimiter)}/
74
+ # tracking if the state has been changed
75
+ state_changed = false
76
+
77
+ # starting to scan a column if the column is not being scanned
78
+ if column_start == false
79
+ column_start = true
80
+ state_changed = true
81
+
82
+ current_column << index
83
+ end
84
+
85
+ # ending the column scan if the column is already being scanned
86
+ if column_start == true && state_changed == false
87
+ column_start = false
88
+
89
+ current_column << index
90
+ columns << current_column
91
+ current_column = []
92
+ end
93
+
94
+ end
95
+ end
96
+
97
+ columns
98
+ end
99
+
100
+ def build_pages
101
+ songs = Dir.entries('songs').select {|f| !File.directory? f}
102
+ songs = songs.sort_by {|f| f }
103
+ toc = []
104
+
105
+ # build songs
106
+ songs.each do |song|
107
+ start_new_page
108
+ song_config = get_song_config(song)
109
+
110
+ build_page_header(song_config)
111
+ build_lyrics(song, song_config)
112
+
113
+ toc << {name: song_config["name"], page_number: page_number}
114
+ end
115
+
116
+ # number the pages
117
+ string = "<page> of <total>"
118
+ options = { :at => [0, 0],
119
+ :width => bounds.width,
120
+ :align => :center,
121
+ :page_filter => Proc.new { |page| page != 1 },
122
+ :start_count_at => 2,
123
+ :color => "000000" }
124
+ number_pages string, options
125
+
126
+ # build the toc
127
+ build_toc(toc)
128
+
129
+
130
+ end
131
+
132
+ def get_song_config(song_file)
133
+ song = File.read("songs/#{song_file}")
134
+ config = song[/==(.*?)==/m, 1]
135
+ YAML.load(config)
136
+ end
137
+
138
+ def build_page_header(song_config)
139
+ stroke_horizontal_rule
140
+ pad_top(10) { text song_config["name"].upcase, size: 18 }
141
+ pad_bottom(5) { text song_config["author"].upcase, size: 12 }
142
+ pad_bottom(25) { stroke_horizontal_rule }
143
+ end
144
+
145
+ def build_lyrics(song_file, song_config)
146
+ col_array = scanner '--', song_file
147
+ y_position = cursor
148
+
149
+ col_array.each_with_index do |column, column_index|
150
+ gutter = song_config["gutter"]
151
+ column_width = (song_config["column_width"] / (col_array.count)) - gutter
152
+
153
+ if column_index == 0
154
+ x_position = 0
155
+ else
156
+ x_position = (column_width + gutter) * column_index
157
+ end
158
+
159
+ font_size = song_config["font"]
160
+
161
+ bounding_box([x_position, y_position], width: column_width, overflow: :shrink_to_fit) do
162
+ File.open( "songs/#{song_file}").each_with_index do |line, line_index|
163
+ if line_index >= column[0] && line_index <= column[1]
164
+ next if line =~ /--/
165
+ if line[0] == '.'
166
+ text line.gsub('.','').gsub(' ',' '), size: font_size, color: '008aff'
167
+ end
168
+ pad_bottom(5) { text line.strip, size: font_size, color: '000000', font: 'courier' } if line[0] == ' '
169
+ pad_bottom(15) {} if line[0] =~ /\n/
170
+ end
171
+ end
172
+ end
173
+
174
+ end
175
+
176
+ bounding_box [0,10], width: bounds.width do
177
+ stroke_horizontal_rule
178
+ end
179
+
180
+ end
181
+
182
+ def build_toc(toc)
183
+ start_new_page
184
+ stroke_horizontal_rule
185
+ pad(10) { text "Table of Contents".upcase, size: 20, style: :bold }
186
+ pad_bottom(20) { stroke_horizontal_rule }
187
+
188
+ dots = 65
189
+ toc.each do |toc_item|
190
+ spacer = "." * (dots - toc_item[:name].length - toc_item[:page_number].to_s.length)
191
+ pad_bottom(8) { text "#{toc_item[:name]} #{spacer} #{toc_item[:page_number]}" }
192
+ end
193
+ end
194
+
195
+ fonts_path = File.expand_path("../fonts", __FILE__)
196
+
197
+ font_families.update("RobotoMono" => {
198
+ :normal => "#{fonts_path}/roboto/RobotoMono-Regular.ttf",
199
+ :italic => "#{fonts_path}/roboto/RobotoMono-Italic.ttf",
200
+ :bold => "#{fonts_path}/roboto/RobotoMono-Bold.ttf",
201
+ :bold_italic => "#{fonts_path}/roboto/RobotoMono-BoldItalic.ttf"
202
+ })
203
+ font "RobotoMono"
204
+
205
+ build_cover
206
+ build_pages
207
+
208
+ end
209
+
210
+ end
211
+ end
212
+
213
+
214
+ end
215
+ end
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,14 @@
1
+ header:
2
+ top_padding: 20
3
+ title: 'The Great Book of Songs'
4
+ title_size: 35
5
+ subtitle: 'Version 0.5'
6
+ subtitle_size: 15
7
+ bottom_padding: 50
8
+ logo:
9
+ image: logo.png
10
+ width: 393.5
11
+ height: 457
12
+ footer:
13
+ title: 'Compiled by Leonid Medovyy'
14
+ title_size: 25
@@ -0,0 +1,83 @@
1
+ ==
2
+ name: Free Falling
3
+ author: Tom Petty
4
+ font: 9.0
5
+ column_width: 610
6
+ gutter: 5
7
+ ==
8
+
9
+ --
10
+ . C F F C G
11
+ She's a good girl, loves her mama
12
+ . C F F C G
13
+ Loves Jesus and America too
14
+ . C F F C G
15
+ She's a good girl, crazy 'bout Elvis
16
+ . C F F C G
17
+ Loves horses and her boyfriend too
18
+
19
+ . C F F C G
20
+ It's a long day of livin' in Reseda
21
+ . C F F C G
22
+ There's a freeway runnin' through the yard
23
+ . C F F C G
24
+ And I'm a bad boy, 'cause I don't even miss her
25
+ . C F F C G
26
+ I'm a bad boy for breakin' her heart
27
+
28
+ . C F F C G
29
+ And I'm free
30
+ . C F F C G
31
+ Free falling
32
+ . C F F C G
33
+ Yeah I'm free
34
+ . C F F C G
35
+ Free fallin'
36
+
37
+ . C F F C G
38
+ All the vampires walkin' through the valley
39
+ . C F F C G
40
+ Move west down Ventura Blvd.
41
+ . C F F C G
42
+ And all the bad boys are standing in the shadows
43
+ . C F F C G
44
+ And the good girls are home with broken hearts
45
+
46
+ . C F F C G
47
+ And I'm free
48
+ . C F F C G
49
+ Free falling
50
+ . C F F C G
51
+ Yeah I'm free
52
+ . C F F C G
53
+ Free fallin'
54
+ --
55
+
56
+ --
57
+ . C F F C G
58
+ I wanna glide down over Mullholand
59
+ . C F F C G
60
+ I wanna write her name in the sky
61
+ . C F F C G
62
+ I'm gonna free fall out into nothin'
63
+ . C F F C G
64
+ Gonna leave this world for awhile
65
+
66
+ . C F F C G
67
+ And I'm free
68
+ . C F F C G
69
+ Free falling
70
+ . C F F C G
71
+ Yeah I'm free
72
+ . C F F C G
73
+ Free fallin'
74
+
75
+ . C F F C G
76
+ And I'm free
77
+ . C F F C G
78
+ Free falling
79
+ . C F F C G
80
+ Yeah I'm free
81
+ . C F F C G
82
+ Free fallin'
83
+ --
@@ -0,0 +1,83 @@
1
+ ==
2
+ name: Я не люблю
3
+ author: Владимир Высоцкий
4
+ font: 9.5
5
+ column_width: 570
6
+ gutter: 5
7
+ ==
8
+
9
+ --
10
+ . Am Dm
11
+ Я не люблю фатального исхода,
12
+ . G7 C
13
+ От жизни никогда не устаю.
14
+ . Dm6
15
+ Я не люблю любое время года,
16
+ . F E7
17
+ Когда веселых песен не пою.
18
+
19
+ . Am B7
20
+ Я не люблю холодного цинизма,
21
+ . Dm6 E7
22
+ В восторженность не верю, и еще
23
+ . Am Dm
24
+ Когда чужой мои читает письма
25
+ . E7 Am
26
+ Заглядывая мне через плечо.
27
+
28
+ . Am Dm
29
+ Я не люблю, когда наполовину
30
+ . G7 C
31
+ Или когда прервали разговор.
32
+ . Dm6
33
+ Я не люблю, когда стреляют в спину,
34
+ . F E7
35
+ Я также против выстрела в упор.
36
+
37
+ . Am B7
38
+ Я ненавижу сплетни в виде версий,
39
+ . Dm6 E7
40
+ Червей сомненья, почестей иглу,
41
+ . Am Dm
42
+ Или когда все время против шерсти,
43
+ . E7 Am
44
+ Или когда железом по стеклу.
45
+ --
46
+
47
+ --
48
+ . Am Dm
49
+ Я не люблю уверенности сытой
50
+ . G7 C
51
+ Уж лучше пусть откажут тормоза.
52
+ . Dm6
53
+ Досадно мне, что слово "честь" забыто
54
+ . F E7
55
+ И что в чести наветы за глаза.
56
+
57
+ . Am B7
58
+ Когда я вижу сломанные крылья
59
+ . Dm6 E7
60
+ Нет жалости во мне, и неспроста:
61
+ . Am Dm
62
+ Я не люблю насилье и бессилье,
63
+ . E7 Am
64
+ Вот только жаль распятого Христа.
65
+
66
+ . Am Dm
67
+ Я не люблю себя, когда я трушу,
68
+ . G7 C
69
+ Досадно мне, когда невинных бьют.
70
+ . Dm6
71
+ Я не люблю, когда мне лезут в душу,
72
+ . F E7
73
+ Тем более - когда в нее плюют.
74
+
75
+ . Am B7
76
+ Я не люблю манежи и арены -
77
+ . Dm6 E7
78
+ На них мильон меняют по рублю.
79
+ . Am Dm
80
+ Пусть впереди большие перемены -
81
+ . E7 Am
82
+ Я это никогда не полюблю!
83
+ --
Binary file
@@ -0,0 +1,88 @@
1
+ ==
2
+ name: Somewhere Over The Rainbow
3
+ author: Israël Kamakawiwo'ole
4
+ font: 7.2
5
+ column_width: 560
6
+ gutter: 5
7
+ ==
8
+
9
+ --
10
+ .C Em F C
11
+ ooo-ooo ooo-ooo ooo-ooo ooo-ooo
12
+ .F E7 Am F
13
+ ooo-ooo ooo-ooo ooo-ooo ooo-ooo
14
+
15
+ .C Em F C
16
+ Somewhere over the rainbow, way up high
17
+ .F C G Am F
18
+ And the dreams that you dream of once in a lullaby...
19
+ . C Em F C
20
+ Oh somewhere over the rainbow, blue birds fly
21
+ .F C G Am F
22
+ And the dreams that you dream of, dreams really do come true...
23
+
24
+ . C
25
+ Someday i'll wish upon a star
26
+ .G Am F
27
+ Wake up where the clouds are far behind me
28
+ . C
29
+ Where trouble melts like lemon drops
30
+ .G Am F
31
+ High above the chimney tops that's where you'll find me
32
+
33
+ . C Em F C
34
+ Oh somewhere over the rainbow, blue birds fly
35
+ .F C G Am F
36
+ And the dreams that you dare to, oh why, oh why can't I?...
37
+
38
+ . C Em F C
39
+ Well I see trees of green and Red roses too
40
+ .F C E7 Am
41
+ I'll watch then bloom for me and you
42
+ . F G Am F
43
+ And I think to myself: what a wonderful world
44
+ . C Em F C
45
+ Well I see skies of blue and I see clouds of white
46
+ . F C E7 Am
47
+ And the brightness of day, I like the dark
48
+ . F G C F C
49
+ And I think to myself: what a wonderful world
50
+
51
+ . G C
52
+ The colours of the rainbow so pretty in the sky
53
+ . G C
54
+ Are also on the faces of people passing bye
55
+ . F C F C
56
+ See friends shaking hands, saying 'how do you do?'
57
+ .F C Dm7 D
58
+ They're really saying, I...I love you
59
+ --
60
+
61
+ --
62
+
63
+ . C Em F C
64
+ I hear babies cry and I watch them grow
65
+ .F C E7 Am
66
+ They'll learn much more than we'll know
67
+ . F G Am F
68
+ And I think to myself: what a wonderful world
69
+
70
+ .C
71
+ Someday i'll wish upon a star
72
+ .G Am F
73
+ Wake up where the clouds are far behind me
74
+ . C
75
+ Where trouble melts like lemon drops
76
+ .G Am F
77
+ High above the chimney tops that's where you'll find me
78
+
79
+ . C Em F C
80
+ Oh somewhere over the rainbow, way up high
81
+ .F C G Am F
82
+ And the dreams that you dare to, why, oh why can't I?...
83
+
84
+ .C Em F C
85
+ ooo-ooo ooo-ooo ooo-ooo ooo-ooo
86
+ .F E7 Am F
87
+ ooo-ooo ooo-ooo ooo-a-eh-a-a-a-a-a-a
88
+ --
metadata ADDED
@@ -0,0 +1,143 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: evox
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Leonid Medovyy
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-04-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 2.1.4
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 2.1.4
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 12.3.3
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 12.3.3
41
+ - !ruby/object:Gem::Dependency
42
+ name: byebug
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: commander
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: prawn
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description:
84
+ email:
85
+ - leonid@goodlogik.com
86
+ executables:
87
+ - evox
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".gitignore"
92
+ - ".ruby-version"
93
+ - Gemfile
94
+ - Gemfile.lock
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
98
+ - bin/console
99
+ - bin/evox
100
+ - bin/setup
101
+ - evox.gemspec
102
+ - lib/evox.rb
103
+ - lib/evox/version.rb
104
+ - lib/fonts/roboto/LICENSE.txt
105
+ - lib/fonts/roboto/RobotoMono-Bold.ttf
106
+ - lib/fonts/roboto/RobotoMono-BoldItalic.ttf
107
+ - lib/fonts/roboto/RobotoMono-Italic.ttf
108
+ - lib/fonts/roboto/RobotoMono-Light.ttf
109
+ - lib/fonts/roboto/RobotoMono-LightItalic.ttf
110
+ - lib/fonts/roboto/RobotoMono-Medium.ttf
111
+ - lib/fonts/roboto/RobotoMono-MediumItalic.ttf
112
+ - lib/fonts/roboto/RobotoMono-Regular.ttf
113
+ - lib/fonts/roboto/RobotoMono-Thin.ttf
114
+ - lib/fonts/roboto/RobotoMono-ThinItalic.ttf
115
+ - lib/templates/config.yml
116
+ - lib/templates/free_falling.evox
117
+ - lib/templates/i_dont_love.evox
118
+ - lib/templates/logo.png
119
+ - lib/templates/over_the_rainbow.evox
120
+ homepage: https://github.com/leouofa/evox
121
+ licenses:
122
+ - MIT
123
+ metadata: {}
124
+ post_install_message:
125
+ rdoc_options: []
126
+ require_paths:
127
+ - lib
128
+ required_ruby_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ requirements: []
139
+ rubygems_version: 3.1.2
140
+ signing_key:
141
+ specification_version: 4
142
+ summary: A rugged songbook generator
143
+ test_files: []