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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e4800182680c4d8c77cfe6d4687c538a6f7177a
4
- data.tar.gz: afe0e1758bda85939f02ba448ffd5ec1a54610a0
3
+ metadata.gz: 51613b51c3cdbd66a5257ca25535d96bcf7fb67c
4
+ data.tar.gz: 9fc2621cde23295bc23861da814aa158d5223ffd
5
5
  SHA512:
6
- metadata.gz: 66f4307fea5e75523ff9adc01566eb1b38235e60ab42a8efc5d13b8182f0d4861d04cd0c6eca09e638fd88d3c85305a7b8a615ddf77f29f43a4a77f03f73fa77
7
- data.tar.gz: e1def82206a33d94656eb1c08757a85df6706d8afa70cd5647a002adda4b2c8778ff164358652d393a1bdd5de526b3fb85d536c763901f6a5f1ed5f041d22d02
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 to speech it will read some text and using a regex capture group to define chapter markers the gem will create a m4a file with chapters.
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, make sure the directory audio exists.
32
+ #/audio/:file_name.
29
33
 
30
34
  ## Contributing
31
35
 
@@ -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? @feed_path
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
@@ -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.3'
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 to speech
12
- read some text and express chapter markers
13
- and gem will create an m4a file with chapters}
14
- spec.summary = %q{Using Mac system text to speech
15
- read some text and express chapter markers
16
- and gem will create an m4a file with chapters}
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.3
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 to speech
57
- read some text and express chapter markers
58
- and gem will create an m4a file with chapters
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 to speech read some text and express chapter markers
102
- and gem will create an m4a file with chapters
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