voice_chapters 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/lib/voice_chapters.rb +1 -1
- data/spec/lib/vocie_chapter_spec.rb +4 -0
- data/voice_chapters.gemspec +7 -7
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51613b51c3cdbd66a5257ca25535d96bcf7fb67c
|
4
|
+
data.tar.gz: 9fc2621cde23295bc23861da814aa158d5223ffd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfc261142ca7488503595b5bbd1e17a7f0b8bf9221725dca7bf985157a2cfcfaff6473cc0e150de2a03dc8fc482a0c4fae54a5019a3f87a33630ffc47be8ed39
|
7
|
+
data.tar.gz: 63128544c2126859e7141381b0aec33bb31b4934f5c70b1907546c800bc7e6cd9c5431f49eb21bee5bd99d2fe4db5fd92ff9186c0096f388247404b332ec913a
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Voice Chapters
|
2
2
|
|
3
|
-
Using Mac system text
|
3
|
+
Using the Mac system text-to-speech Voice Chapters will create an audio file
|
4
|
+
with bookmarked chapters. It takes a regex capture
|
5
|
+
group to define the chapter markers and the gem will create a m4a/acc file.
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
@@ -17,7 +19,9 @@ Or install it yourself as:
|
|
17
19
|
$ gem install voice_chapters
|
18
20
|
|
19
21
|
## Usage
|
22
|
+
|
20
23
|
require 'voice_chapters'
|
24
|
+
|
21
25
|
text = 'In the beginning, God created the heavens and the earth.2 The earth was without form and void, and darkness was over the face of the deep. And the Spirit of God was hovering over the face of the waters. 3 And God said, “Let there be light,” and there was light. 4 And God saw that the light was good. And God separated the light from the darkness. 5 God called the light Day, and the darkness he called Night. And there was evening and there was morning, the first day.'
|
22
26
|
|
23
27
|
Voice_Chapters.new(text: text,
|
@@ -25,7 +29,7 @@ Or install it yourself as:
|
|
25
29
|
marker: /(\D+)/) # Mark by verse
|
26
30
|
|
27
31
|
#Will save the file in the current directory under
|
28
|
-
#/audio/:file_name
|
32
|
+
#/audio/:file_name.
|
29
33
|
|
30
34
|
## Contributing
|
31
35
|
|
data/lib/voice_chapters.rb
CHANGED
@@ -19,7 +19,7 @@ class Voice_Chapters
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def create_audio_folder
|
22
|
-
Dir.mkdir(Dir.pwd) unless File.directory?
|
22
|
+
Dir.mkdir(File.expand_path('audio',Dir.pwd)) unless File.directory? File.expand_path('audio',Dir.pwd)
|
23
23
|
end
|
24
24
|
|
25
25
|
def chapter_marker(expression)
|
@@ -22,6 +22,10 @@ describe Voice_Chapters do
|
|
22
22
|
expect(@voice_chapters.chapters.length).to eq(5)
|
23
23
|
end
|
24
24
|
|
25
|
+
it "create an audio directory if it doesn't already exist" do
|
26
|
+
expect(File.directory? File.expand_path('audio',Dir.pwd)).to eq(true)
|
27
|
+
end
|
28
|
+
|
25
29
|
it "makes a file in audio directory named from param" do
|
26
30
|
expect(File.exist?(@file_path)).to eq(true)
|
27
31
|
end
|
data/voice_chapters.gemspec
CHANGED
@@ -5,15 +5,15 @@ require 'voice_chapters/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "voice_chapters"
|
8
|
-
spec.version = '0.0.
|
8
|
+
spec.version = '0.0.4'
|
9
9
|
spec.authors = ["Dustin Zeisler"]
|
10
10
|
spec.email = ["dustin@zive.me"]
|
11
|
-
spec.description = %q{Using Mac system text
|
12
|
-
|
13
|
-
and gem will create
|
14
|
-
spec.summary = %q{Using Mac system text
|
15
|
-
|
16
|
-
and gem will create
|
11
|
+
spec.description = %q{Using the Mac system text-to-speech Voice Chapters will create an audio file
|
12
|
+
with bookmarked chapters. It takes a regex capture
|
13
|
+
group to define the chapter markers and the gem will create a m4a/acc file.}
|
14
|
+
spec.summary = %q{Using the Mac system text-to-speech Voice Chapters will create an audio file
|
15
|
+
with bookmarked chapters. It takes a regex capture
|
16
|
+
group to define the chapter markers and the gem will create a m4a/acc file.}
|
17
17
|
spec.homepage = "https://github.com/zeisler/voice_chapters"
|
18
18
|
spec.license = "MIT"
|
19
19
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: voice_chapters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dustin Zeisler
|
@@ -53,9 +53,9 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description: |-
|
56
|
-
Using Mac system text
|
57
|
-
|
58
|
-
and gem will create
|
56
|
+
Using the Mac system text-to-speech Voice Chapters will create an audio file
|
57
|
+
with bookmarked chapters. It takes a regex capture
|
58
|
+
group to define the chapter markers and the gem will create a m4a/acc file.
|
59
59
|
email:
|
60
60
|
- dustin@zive.me
|
61
61
|
executables: []
|
@@ -98,8 +98,9 @@ rubyforge_project:
|
|
98
98
|
rubygems_version: 2.0.3
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
|
-
summary: Using Mac system text
|
102
|
-
|
101
|
+
summary: Using the Mac system text-to-speech Voice Chapters will create an audio file
|
102
|
+
with bookmarked chapters. It takes a regex capture group to define the chapter markers
|
103
|
+
and the gem will create a m4a/acc file.
|
103
104
|
test_files:
|
104
105
|
- spec/lib/vocie_chapter_spec.rb
|
105
106
|
- spec/spec_helper.rb
|