md_splitter 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/.DS_Store ADDED
Binary file
data/.gitignore CHANGED
@@ -2,4 +2,4 @@
2
2
  .bundle
3
3
  Gemfile.lock
4
4
  pkg/*
5
- samples/*
5
+ fixtures/**/*
data/bin/md_splitter CHANGED
@@ -34,7 +34,7 @@ command :split do |c|
34
34
  :dry_run => options.dry_run.nil? ? false : true,
35
35
  :output_path => options.output_path,
36
36
  :split_on => options.split_on,
37
- :manifest => options.manifest.nil? ? false : true
37
+ :manifest => options.manifest.nil? ? false : make_manifest_builder
38
38
  }
39
39
 
40
40
  puts opts
@@ -52,4 +52,8 @@ command :split do |c|
52
52
  end
53
53
  end
54
54
 
55
- default_command :split
55
+ default_command :split
56
+
57
+ def make_manifest_builder
58
+ MdSplitter::ElfManifestBuilder.new
59
+ end
@@ -14,10 +14,22 @@ module MdSplitter
14
14
  # * *Raises* :
15
15
  # - ++ ->
16
16
  #
17
- def initialize items
18
- @items = build_manifest_object items
19
-
20
- end
17
+ def initialize
18
+ @raw_object = {}
19
+ end
20
+
21
+ #
22
+ #
23
+ # * *Args* :
24
+ # - ++ ->
25
+ # * *Returns* :
26
+ # -
27
+ # * *Raises* :
28
+ # - ++ ->
29
+ #
30
+ def build raw_obj, requested_id
31
+ @raw_object = build_manifest_object raw_obj, requested_id
32
+ end
21
33
 
22
34
  # Accepts an ennumerable object and returns a json manifest
23
35
  #
@@ -29,23 +41,25 @@ module MdSplitter
29
41
  # - ++ ->
30
42
  #
31
43
  def raw
32
- @items
44
+ @raw_object
33
45
  end
34
46
 
35
- def json
36
- JSON.pretty_generate raw
47
+ def json
48
+ puts "Generating json string from #{@raw_object}"
49
+ JSON.pretty_generate @raw_object
37
50
  end
38
51
 
39
52
 
40
53
  private
41
54
 
42
- def build_manifest_object items
55
+ def build_manifest_object items, id = nil
43
56
  pages = Array.new
57
+ id ||= UUIDTools::UUID.random_create.to_s
44
58
  items.each do |item|
45
59
  pages << get_page_object(item)
46
60
  end
47
- {
48
- :id => UUIDTools::UUID.random_create.to_s,
61
+ obj = {
62
+ :id => id,
49
63
  :pages => pages
50
64
  }
51
65
  end
@@ -82,8 +82,11 @@ module MdSplitter
82
82
  private
83
83
 
84
84
  def save_manifest pages, directory
85
- say "Writing manifest"
86
- manifest = MdSplitter::ElfManifestBuilder.new pages
85
+ say "Writing manifest"
86
+ # build the manifest id from the source file's path
87
+ manifest_id = "#{directory}_pages"
88
+ manifest = @options[:manifest]
89
+ manifest.build(pages,manifest_id)
87
90
  save_file File.join(directory, "manifest.json"), manifest.json
88
91
  end
89
92
 
@@ -1,3 +1,3 @@
1
1
  module MdSplitter
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
Binary file
@@ -0,0 +1,25 @@
1
+ {
2
+ "id": "spec/fixtures/sample_pages",
3
+ "pages": [
4
+ {
5
+ "id": "sample_1",
6
+ "title": "Sample 1",
7
+ "url": "sample_1.html"
8
+ },
9
+ {
10
+ "id": "sample_2",
11
+ "title": "Sample 2",
12
+ "url": "sample_2.html"
13
+ },
14
+ {
15
+ "id": "sample_3",
16
+ "title": "Sample 3",
17
+ "url": "sample_3.html"
18
+ },
19
+ {
20
+ "id": "sample_4",
21
+ "title": "Sample 4",
22
+ "url": "sample_4.html"
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,3 @@
1
+ <h1 id="header-1">Header 1</h1>
2
+
3
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
@@ -0,0 +1,5 @@
1
+ <ul>
2
+ <li>Hello</li>
3
+ <li>this</li>
4
+ <li>is</li>
5
+ </ul>
@@ -0,0 +1,4 @@
1
+ <ul>
2
+ <li>a</li>
3
+ <li>list</li>
4
+ </ul>
@@ -0,0 +1,3 @@
1
+ <h2 id="header-2">Header 2</h2>
2
+
3
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
File without changes
@@ -0,0 +1,19 @@
1
+ # Header 1 #
2
+
3
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
4
+
5
+ ---
6
+
7
+ * Hello
8
+ * this
9
+ * is
10
+ * a
11
+ * list
12
+
13
+ ***
14
+
15
+ ## Header 2 ##
16
+
17
+ ---
18
+
19
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
@@ -1,16 +1,23 @@
1
1
  require 'md_splitter/elf_manifest_builder'
2
2
 
3
- describe "Build an ELF manifest." do
4
- before(:each) do
5
- @subject = MdSplitter::ElfManifestBuilder.new get_test_object
6
- end
3
+ describe "ELF manifest builder." do
4
+ before(:each) do
5
+ @manifest_id = 'this/is/a/path'
6
+ @page_list = get_test_page_list
7
+ @subject = MdSplitter::ElfManifestBuilder.new # @page_list, @manifest_id
8
+ end
9
+
10
+ it "should respond to a build method" do
11
+ @subject.should respond_to(:build).with(2).arguments # args are manifest object and id
12
+ end
7
13
 
8
14
  it "should respond to a raw method" do
9
15
  @subject.should respond_to(:raw)
10
16
  end
11
17
 
12
18
  describe "Return manifest object." do
13
- before(:each) do
19
+ before(:each) do
20
+ @subject.build @page_list, @manifest_id
14
21
  @result = @subject.raw
15
22
  end
16
23
 
@@ -18,8 +25,8 @@ describe "Build an ELF manifest." do
18
25
  @result.should be_a(Hash)
19
26
  end
20
27
 
21
- it "should have an id property" do
22
- @result[:id].should be_a String
28
+ it "should return the id property provided at creation" do
29
+ @result[:id].should eq @manifest_id
23
30
  end
24
31
 
25
32
  it "should have a pages array" do
@@ -51,8 +58,8 @@ describe "Build an ELF manifest." do
51
58
  end
52
59
 
53
60
  it "ids should match source item ids" do
54
- get_test_object.each_index do |i|
55
- @result[:pages][i][:id].should eq get_test_object_titles[i]
61
+ get_test_page_list.each_index do |i|
62
+ @result[:pages][i][:id].should eq get_test_page_list_titles[i]
56
63
  end
57
64
  end
58
65
 
@@ -63,8 +70,8 @@ describe "Build an ELF manifest." do
63
70
  end
64
71
 
65
72
  it "url should match the source item" do
66
- get_test_object.each_index do |i|
67
- @result[:pages][i][:url].should eq get_test_object[i]
73
+ get_test_page_list.each_index do |i|
74
+ @result[:pages][i][:url].should eq get_test_page_list[i]
68
75
  end
69
76
  end
70
77
  end
@@ -89,15 +96,15 @@ private
89
96
 
90
97
 
91
98
  # Builds test object from which to test manifest
92
- def get_test_object
99
+ def get_test_page_list
93
100
  test_obj = ["page_number_1.html", "page_number_2.html", "page_number_3.html"]
94
101
  end
95
102
 
96
- def get_test_object_titles
103
+ def get_test_page_list_titles
97
104
  return ['page_number_1', 'page_number_2', 'page_number_3']
98
105
  end
99
106
 
100
- def get_test_object_ids
107
+ def get_test_page_list_ids
101
108
  return ['page_number_1', 'page_number_2', 'page_number_3']
102
109
  end
103
110
 
@@ -1,5 +1,4 @@
1
1
  require 'md_splitter/splitter'
2
- require 'md_splitter/elf_manifest_builder'
3
2
  require 'fileutils'
4
3
 
5
4
  describe "Splitter" do
@@ -28,11 +27,11 @@ describe "Splitter" do
28
27
  end
29
28
 
30
29
  it "should deal with folder hierarchies" do
31
- mock_input_file_read "spec/fake/path/sample.md"
30
+ mock_input_file_read test_input_path
32
31
  # expect call to Kramdown
33
32
  mock_kramdown(sample_markdown.strip).should_receive(:to_html).and_return(simple_html)
34
33
  mock_output_file_write "spec/fake/path/sample.html"
35
- @subject.split "spec/fake/path/sample.md"
34
+ @subject.split test_input_path
36
35
  end
37
36
  end
38
37
 
@@ -43,35 +42,35 @@ describe "Splitter" do
43
42
  end
44
43
  it "should use the split_on option to split the src into multiple files" do
45
44
  mock_doc_split
46
- @subject.split "spec/fake/path/sample.md", :split_on => "---\n"
45
+ @subject.split test_input_path, :split_on => "---\n"
47
46
  end
48
47
 
49
48
  it "should create the folder structure when necessary" do
50
49
  mock_doc_split
51
50
  # when splitting a file, should create the target path if necessary
52
51
  FileUtils.should_receive(:mkpath).with('spec/fake/path/sample')
53
- @subject.split "spec/fake/path/sample.md", :split_on => "---\n"
52
+ @subject.split test_input_path, :split_on => "---\n"
54
53
  end
55
54
 
56
55
  # it "should 'say' what we're doing" do
57
56
  # mock_doc_split
58
57
  # STDOUT.should_receive(:puts).with(/Splitting sample.md/).once
59
- # @subject.split "spec/fake/path/sample.md", :split_on => "---\n"
58
+ # @subject.split test_input_path, :split_on => "---\n"
60
59
  # end
61
60
  end
62
61
 
63
62
  describe "support a custom output path" do
64
63
  it "for single files" do
65
- mock_input_file_read "spec/fake/path/sample.md"
64
+ mock_input_file_read test_input_path
66
65
  mock_output_file_write "spec/fake/path/exports/sample.html"
67
- @subject.split "spec/fake/path/sample.md", :output_path => "exports"
66
+ @subject.split test_input_path, :output_path => "exports"
68
67
  end
69
68
 
70
69
  it "should use the custom path for split files" do
71
- mock_input_file_read "spec/fake/path/sample.md"
70
+ mock_input_file_read test_input_path
72
71
  mock_output_file_write "spec/fake/path/exports/sample.html", 3
73
72
  FileUtils.should_receive(:mkpath).with('spec/fake/path/exports')
74
- @subject.split "spec/fake/path/sample.md", :output_path => "exports", :split_on => "---"
73
+ @subject.split test_input_path, :output_path => "exports", :split_on => "---"
75
74
  end
76
75
  end
77
76
 
@@ -82,45 +81,45 @@ describe "Splitter" do
82
81
  it "should not perform any file actions" do
83
82
  make_safe_file_stubs
84
83
  File.should_not_receive(:open)
85
- @subject.split "spec/fake/path/sample.md", :split_on => "---\n", :dry_run => true
84
+ @subject.split test_input_path, :split_on => "---\n", :dry_run => true
86
85
  end
87
86
  it "should say when we're in dry_run mode" do
88
87
  make_safe_file_stubs
89
88
  STDOUT.should_receive(:puts).with(/^Dry Run/i).at_least(:once)
90
- @subject.split "spec/fake/path/sample.md", :split_on => "---\n", :dry_run => true
89
+ @subject.split test_input_path, :split_on => "---\n", :dry_run => true
91
90
  end
92
91
  end
93
92
 
94
93
  describe "create a manifest if requested" do
95
94
  before(:each) do
96
- mock_input_file_read "spec/fake/path/sample.md"
95
+ mock_input_file_read test_input_path
97
96
  mock_output_file_write "spec/fake/path/sample/sample.html", 3
98
97
  mock_output_file_write "spec/fake/path/sample/manifest.json"
99
98
  @duff_builder = double()
100
99
  @duff_builder.stub(:json)
100
+ @duff_builder.stub(:build)
101
101
  @subject = MdSplitter::Splitter.new
102
102
  end
103
103
 
104
- it "should create a manifest builder" do
105
- MdSplitter::ElfManifestBuilder.should_receive(:new).and_return(@duff_builder)
106
- @subject.split "spec/fake/path/sample.md", :split_on => "---", :manifest => true
104
+ it "should accept a manifest builder as a parameter" do
105
+ # MdSplitter::ElfManifestBuilder.should_receive(:new).and_return(@duff_builder)
106
+ @duff_builder.should_receive(:json).and_return(target_elf_manifest)
107
+ @subject.split test_input_path, :split_on => "---", :manifest => @duff_builder
107
108
  end
108
109
 
109
- it "should pass a list of pages to the manifest builder" do
110
- MdSplitter::ElfManifestBuilder.should_receive(:new).with(["sample_1.html", "sample_2.html", "sample_3.html"]).and_return(@duff_builder)
111
- @subject.split "spec/fake/path/sample.md", :split_on => "---", :manifest => true
110
+ it "should pass a list of pages and an id to the :build command" do
111
+ # MdSplitter::ElfManifestBuilder.should_receive(:new).with(["sample_1.html", "sample_2.html", "sample_3.html"], "spec/fake/path/sample").and_return(@duff_builder)
112
+ @duff_builder.should_receive(:build).with(expected_split_pages, "spec/fake/path/sample_pages")
113
+ @subject.split test_input_path, :split_on => "---", :manifest => @duff_builder
112
114
  end
113
115
 
114
116
  describe "saving the manifest" do
115
- before(:each) do
116
- MdSplitter::ElfManifestBuilder.should_receive(:new).and_return(@duff_builder)
117
- end
118
117
  it "should request the json manifest and save it to the target directory" do
119
- @duff_builder.should_receive(:json).and_return(sample_elf_manifest)
118
+ @duff_builder.should_receive(:json).and_return(target_elf_manifest)
120
119
  STDOUT.should_receive(:puts).with(/Splitting/i).at_least(:once)
121
120
  STDOUT.should_receive(:puts).with(/Writing spec\/fake\/path/i).at_least(:once)
122
121
  STDOUT.should_receive(:puts).with(/Writing manifest/i).at_least(:once)
123
- @subject.split "spec/fake/path/sample.md", :split_on => "---", :manifest => true
122
+ @subject.split test_input_path, :split_on => "---", :manifest => @duff_builder
124
123
  end
125
124
  end
126
125
 
@@ -136,7 +135,7 @@ def make_safe_file_stubs
136
135
  end
137
136
 
138
137
  def mock_doc_split
139
- mock_input_file_read "spec/fake/path/sample.md"
138
+ mock_input_file_read test_input_path
140
139
  FileUtils.stub(:mkpath)
141
140
  mock_output_file_write "spec/fake/path/sample/sample.html", 3
142
141
  # mock_output_file_write "spec/fake/path/sample/sample_2.html"
@@ -188,28 +187,36 @@ def sample_markdown
188
187
  ---
189
188
  ### Heading 3
190
189
  eos
191
- end
190
+ end
191
+
192
+ def test_input_path
193
+ "spec/fake/path/sample.md"
194
+ end
195
+
196
+ def expected_split_pages
197
+ ["sample_1.html", "sample_2.html", "sample_3.html"]
198
+ end
192
199
 
193
- def sample_elf_manifest
200
+ def target_elf_manifest
194
201
  <<-eos
195
202
  {
196
- "id":"859d7b55-61fa-42fd-8b34-ae0f9c664bd71",
203
+ "id":"spec/fake/path/sample_pages",
197
204
  "pages":
198
205
  [
199
206
  {
200
- "id":"page1",
201
- "title":"Page 1",
202
- "url":"page1.html"
207
+ "id":"sample_1",
208
+ "title":"Sample 1",
209
+ "url":"sample_1.html"
203
210
  },
204
211
  {
205
- "id":"page2",
206
- "title":"Page 2",
207
- "url":"page2.html"
212
+ "id":"sample_2",
213
+ "title":"Sample 2",
214
+ "url":"sample_2.html"
208
215
  },
209
216
  {
210
- "id":"page3",
211
- "title":"Page 3",
212
- "url":"page3.html"
217
+ "id":"sample_3",
218
+ "title":"Sample 3",
219
+ "url":"sample_3.html"
213
220
  }
214
221
  ]
215
222
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: md_splitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-02 00:00:00.000000000Z
12
+ date: 2011-11-03 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70125038532020 !ruby/object:Gem::Requirement
16
+ requirement: &70254001603000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.9.2
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70125038532020
24
+ version_requirements: *70254001603000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70125038530500 !ruby/object:Gem::Requirement
27
+ requirement: &70254001600840 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.21
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70125038530500
35
+ version_requirements: *70254001600840
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70125038529220 !ruby/object:Gem::Requirement
38
+ requirement: &70254001600100 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.7.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70125038529220
46
+ version_requirements: *70254001600100
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: guard-rspec
49
- requirement: &70125038528100 !ruby/object:Gem::Requirement
49
+ requirement: &70254001599380 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70125038528100
57
+ version_requirements: *70254001599380
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: growl
60
- requirement: &70125038526420 !ruby/object:Gem::Requirement
60
+ requirement: &70254001598720 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70125038526420
68
+ version_requirements: *70254001598720
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rb-fsevent
71
- requirement: &70125038523000 !ruby/object:Gem::Requirement
71
+ requirement: &70254001598080 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70125038523000
79
+ version_requirements: *70254001598080
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: kramdown
82
- requirement: &70125038521720 !ruby/object:Gem::Requirement
82
+ requirement: &70254001596980 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.13.3
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70125038521720
90
+ version_requirements: *70254001596980
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: commander
93
- requirement: &70125038519700 !ruby/object:Gem::Requirement
93
+ requirement: &70254001595760 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 4.0.6
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70125038519700
101
+ version_requirements: *70254001595760
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: json
104
- requirement: &70125038517480 !ruby/object:Gem::Requirement
104
+ requirement: &70254001595000 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 1.6.1
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *70125038517480
112
+ version_requirements: *70254001595000
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: uuidtools
115
- requirement: &70125038514480 !ruby/object:Gem::Requirement
115
+ requirement: &70254001593980 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 2.1.2
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *70125038514480
123
+ version_requirements: *70254001593980
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: active_support
126
- requirement: &70125038513180 !ruby/object:Gem::Requirement
126
+ requirement: &70254001592300 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,7 +131,7 @@ dependencies:
131
131
  version: 3.0.0
132
132
  type: :runtime
133
133
  prerelease: false
134
- version_requirements: *70125038513180
134
+ version_requirements: *70254001592300
135
135
  description: Parses md docs for split markers and produces multiple html files and
136
136
  a json manifest
137
137
  email:
@@ -141,6 +141,7 @@ executables:
141
141
  extensions: []
142
142
  extra_rdoc_files: []
143
143
  files:
144
+ - .DS_Store
144
145
  - .gitignore
145
146
  - .rvmrc
146
147
  - Gemfile
@@ -155,8 +156,15 @@ files:
155
156
  - lib/md_splitter/splitter.rb
156
157
  - lib/md_splitter/version.rb
157
158
  - md_splitter.gemspec
158
- - samples/sample.md
159
159
  - spec/bin/md_splitter_spec.rb
160
+ - spec/fixtures/.DS_Store
161
+ - spec/fixtures/sample.md
162
+ - spec/fixtures/sample/manifest.json
163
+ - spec/fixtures/sample/sample_1.html
164
+ - spec/fixtures/sample/sample_2.html
165
+ - spec/fixtures/sample/sample_3.html
166
+ - spec/fixtures/sample/sample_4.html
167
+ - spec/fixtures/split_me.md
160
168
  - spec/ilb/md_splitter/manifest_builder_spec.rb
161
169
  - spec/ilb/md_splitter/splitter_spec.rb
162
170
  homepage: ''
@@ -173,7 +181,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
181
  version: '0'
174
182
  segments:
175
183
  - 0
176
- hash: 864076252232225175
184
+ hash: -314162196657490798
177
185
  required_rubygems_version: !ruby/object:Gem::Requirement
178
186
  none: false
179
187
  requirements:
@@ -182,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
190
  version: '0'
183
191
  segments:
184
192
  - 0
185
- hash: 864076252232225175
193
+ hash: -314162196657490798
186
194
  requirements: []
187
195
  rubyforge_project: md_splitter
188
196
  rubygems_version: 1.8.10
@@ -191,5 +199,13 @@ specification_version: 3
191
199
  summary: Prepares Markdown docs for web delivery
192
200
  test_files:
193
201
  - spec/bin/md_splitter_spec.rb
202
+ - spec/fixtures/.DS_Store
203
+ - spec/fixtures/sample.md
204
+ - spec/fixtures/sample/manifest.json
205
+ - spec/fixtures/sample/sample_1.html
206
+ - spec/fixtures/sample/sample_2.html
207
+ - spec/fixtures/sample/sample_3.html
208
+ - spec/fixtures/sample/sample_4.html
209
+ - spec/fixtures/split_me.md
194
210
  - spec/ilb/md_splitter/manifest_builder_spec.rb
195
211
  - spec/ilb/md_splitter/splitter_spec.rb