caramelize 1.1.1 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +11 -0
  3. data/.github/workflows/main.yml +48 -0
  4. data/.rubocop.yml +29 -0
  5. data/Gemfile +12 -0
  6. data/Gemfile.lock +37 -25
  7. data/README.md +2 -3
  8. data/Rakefile +3 -1
  9. data/bin/caramelize +6 -5
  10. data/caramelize.gemspec +14 -19
  11. data/lib/caramelize/caramel.rb +32 -32
  12. data/lib/caramelize/content_transferer.rb +55 -32
  13. data/lib/caramelize/database_connector.rb +8 -8
  14. data/lib/caramelize/filter_processor.rb +2 -0
  15. data/lib/caramelize/filters/add_newline_to_page_end.rb +22 -0
  16. data/lib/caramelize/filters/camel_case_to_wiki_links.rb +26 -0
  17. data/lib/caramelize/filters/remove_table_tab_line_endings.rb +3 -2
  18. data/lib/caramelize/filters/swap_wiki_links.rb +5 -3
  19. data/lib/caramelize/filters/wikka_to_markdown.rb +26 -20
  20. data/lib/caramelize/health_check.rb +6 -68
  21. data/lib/caramelize/health_checks/home_page_check.rb +23 -0
  22. data/lib/caramelize/health_checks/orphaned_pages_check.rb +56 -0
  23. data/lib/caramelize/health_checks/page.rb +28 -0
  24. data/lib/caramelize/input_wiki/redmine_wiki.rb +18 -15
  25. data/lib/caramelize/input_wiki/wiki.rb +11 -5
  26. data/lib/caramelize/input_wiki/wikkawiki.rb +23 -14
  27. data/lib/caramelize/output_wiki/gollum.rb +10 -10
  28. data/lib/caramelize/page.rb +14 -10
  29. data/lib/caramelize/services/page_builder.rb +11 -8
  30. data/lib/caramelize/version.rb +3 -1
  31. data/lib/caramelize.rb +5 -0
  32. data/spec/lib/caramelize/content_transferer_spec.rb +3 -1
  33. data/spec/lib/caramelize/filter_processor_spec.rb +9 -4
  34. data/spec/lib/caramelize/filters/add_newline_to_page_end_spec.rb +29 -0
  35. data/spec/lib/caramelize/filters/camel_case_to_wiki_links_spec.rb +46 -0
  36. data/spec/lib/caramelize/filters/remove_table_tab_line_endings_spec.rb +19 -12
  37. data/spec/lib/caramelize/filters/swap_wiki_links_spec.rb +19 -14
  38. data/spec/lib/caramelize/filters/wikka2markdown_spec.rb +265 -0
  39. data/spec/lib/caramelize/input_wiki/wiki_spec.rb +24 -23
  40. data/spec/lib/caramelize/output_wiki/gollum_spec.rb +36 -34
  41. data/spec/lib/caramelize/page_spec.rb +34 -26
  42. data/spec/lib/caramelize/services/page_builder_spec.rb +41 -0
  43. data/spec/spec_helper.rb +4 -2
  44. metadata +19 -121
  45. data/.travis.yml +0 -5
  46. data/spec/lib/caramelize/filters/wikka_to_markdown_spec.rb +0 -198
  47. data/spec/lib/caramelize/services/page_builder.rb +0 -29
@@ -1,26 +1,27 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Caramelize::InputWiki::Wiki do
4
6
  subject(:wiki) { described_class.new }
5
7
 
6
-
7
8
  describe '#latest_revisions' do
8
- let(:page1) { double }
9
- let(:page2) { double }
10
- let(:page3) { double }
9
+ let(:page1) { double } # rubocop:todo RSpec/IndexedLet
10
+ let(:page2) { double } # rubocop:todo RSpec/IndexedLet
11
+ let(:page3) { double } # rubocop:todo RSpec/IndexedLet
11
12
 
12
- context 'no pages' do
13
+ context 'without pages' do
13
14
  it 'return empty array' do
14
15
  expect(wiki.latest_revisions).to eq []
15
16
  end
16
17
  end
17
18
 
18
- context 'pages with revisions' do
19
- it 'returns list of latest pages' do
19
+ context 'with pages with revisions' do
20
+ it 'returns list of latest pages' do # rubocop:todo RSpec/ExampleLength
20
21
  wiki.titles = %w[allosaurus brachiosaurus]
21
- allow(wiki).to receive(:revisions_by_title)
22
+ allow(wiki).to receive(:revisions_by_title) # rubocop:todo RSpec/SubjectStub
22
23
  .with('allosaurus').and_return([page1, page2])
23
- allow(wiki).to receive(:revisions_by_title)
24
+ allow(wiki).to receive(:revisions_by_title) # rubocop:todo RSpec/SubjectStub
24
25
  .with('brachiosaurus').and_return([page3])
25
26
 
26
27
  expect(wiki.latest_revisions).to eq([page2, page3])
@@ -29,27 +30,27 @@ describe Caramelize::InputWiki::Wiki do
29
30
  end
30
31
 
31
32
  describe '#revisions_by_author' do
32
- context 'revisions is empty' do
33
- context 'and titles is empty' do
33
+ context 'with revisions is empty' do
34
+ context 'with titles is empty' do
34
35
  it 'returns empty array' do
35
- allow(wiki).to receive(:titles).and_return []
36
+ allow(wiki).to receive(:titles).and_return [] # rubocop:todo RSpec/SubjectStub
36
37
  expect(wiki.revisions_by_title('title')).to eq []
37
38
  end
38
39
  end
39
40
  end
40
41
 
41
- context 'revisions are given' do
42
- context 'and title given' do
43
- it 'returns empty array' do
42
+ context 'with revisions are given' do
43
+ context 'with title given' do
44
+ it 'returns empty array' do # rubocop:todo RSpec/ExampleLength
44
45
  pages = []
45
- home_1 = OpenStruct.new(title: 'Home', time: Time.parse('2015-01-23'))
46
- pages << home_1
47
- pages << OpenStruct.new(title: 'Example', time: Time.parse('2015-01-20'))
48
- pages << OpenStruct.new(title: 'Authors', time: Time.parse('2015-01-30'))
49
- home_2 = OpenStruct.new(title: 'Home', time: Time.parse('2014-01-23'))
50
- pages << home_2
51
- allow(wiki).to receive(:revisions).and_return pages
52
- expect(wiki.revisions_by_title('Home')).to eq [home_2, home_1]
46
+ home1 = double(title: 'Home', time: Time.parse('2015-01-23')) # rubocop:todo RSpec/VerifiedDoubles
47
+ pages << home1
48
+ pages << double(title: 'Example', time: Time.parse('2015-01-20')) # rubocop:todo RSpec/VerifiedDoubles
49
+ pages << double(title: 'Authors', time: Time.parse('2015-01-30')) # rubocop:todo RSpec/VerifiedDoubles
50
+ home2 = double(title: 'Home', time: Time.parse('2014-01-23')) # rubocop:todo RSpec/VerifiedDoubles
51
+ pages << home2
52
+ allow(wiki).to receive(:revisions).and_return pages # rubocop:todo RSpec/SubjectStub
53
+ expect(wiki.revisions_by_title('Home')).to eq [home2, home1]
53
54
  end
54
55
  end
55
56
  end
@@ -1,70 +1,72 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Caramelize::OutputWiki::Gollum do
4
6
  let(:gollum_output) { described_class.new('wiki.git') }
7
+
5
8
  before do
6
9
  allow(gollum_output).to receive(:initialize_repository).and_return true
7
10
  end
8
11
 
9
12
  describe '#commit_revision' do
13
+ subject(:gollum) { double(:gollum) } # rubocop:todo RSpec/VerifiedDoubles
14
+
10
15
  let(:title) { 'title' }
11
- let(:author) { double(name: 'Steven Universe', email: 'steven@example.com') }
16
+ let(:author) { { name: 'Steven Universe', email: 'steven@example.com' } }
12
17
  let(:input_page) do
13
- double(author: author,
14
- body: 'body',
15
- commit_message: 'done',
16
- time: Time.now,
17
- title: title,
18
- path: title)
19
- end
20
- let(:gollum_page) do
21
- double(:gollum_page,
22
- name: 'title',
23
- format: :markdown)
18
+ Caramelize::Page.new(author:,
19
+ body: 'body',
20
+ commit_message: 'done',
21
+ time: Time.now,
22
+ title:,
23
+ path: title)
24
24
  end
25
- let(:markup) { :markdown }
26
- let(:gollum) { double(:gollum) }
25
+ let(:gollum_page) { double(:gollum_page, name: 'title', format: :markdown) } # rubocop:todo RSpec/VerifiedDoubles
27
26
 
28
27
  before do
29
28
  allow(Gollum::Wiki).to receive(:new).and_return(gollum)
30
29
  end
31
30
 
32
- context 'page exists' do
31
+ context 'when page exists' do
33
32
  before do
34
- allow(gollum).to receive(:page).with(title).and_return(gollum_page)
33
+ allow(gollum).to receive(:page).with(title).and_return(gollum_page) # rubocop:todo RSpec/SubjectStub
35
34
  end
36
35
 
37
36
  it 'updates page' do
38
- expect(gollum).to receive(:update_page).once.and_return(true)
39
- gollum_output.commit_revision(input_page, markup)
37
+ # rubocop:todo RSpec/SubjectStub
38
+ expect(gollum).to receive(:update_page).once.and_return(true) # rubocop:todo RSpec/MessageSpies, RSpec/SubjectStub
39
+ # rubocop:enable RSpec/SubjectStub
40
+ gollum_output.commit_revision(input_page, :markdown)
40
41
  end
41
42
  end
42
43
 
43
- context 'page does not exist yet' do
44
+ context 'when page does not exist yet' do
44
45
  before do
45
- allow(gollum).to receive(:page).with(title).and_return(nil)
46
+ allow(gollum).to receive(:page).with(title).and_return(nil) # rubocop:todo RSpec/SubjectStub
46
47
  end
47
48
 
48
49
  it 'creates page' do
49
- expect(gollum).to receive(:write_page).once
50
- gollum_output.commit_revision(input_page, markup)
50
+ allow(gollum).to receive(:write_page) # rubocop:todo RSpec/SubjectStub
51
+ gollum_output.commit_revision(input_page, :markdown)
52
+ expect(gollum).to have_received(:write_page).once # rubocop:todo RSpec/SubjectStub
51
53
  end
52
54
  end
53
55
  end
54
56
 
55
57
  describe '#commit_history' do
56
- pending
58
+ pending('test full history')
57
59
  end
58
60
 
59
61
  describe '#commit_namespace_overview' do
60
62
  let(:namespaces) do
61
63
  [
62
- OpenStruct.new(identifier: 'velociraptors', name: 'Velociraptor'),
63
- OpenStruct.new(identifier: 'allosaurus', name: 'Allosaurus')
64
+ { dentifier: 'velociraptors', name: 'Velociraptor' },
65
+ { identifier: 'allosaurus', name: 'Allosaurus' }
64
66
  ]
65
67
  end
66
68
 
67
- context '2 pages in namespaces' do
69
+ context 'with 2 pages in namespaces' do
68
70
  it 'commits page' do
69
71
  allow(gollum_output).to receive(:commit_revision)
70
72
  gollum_output.commit_namespace_overview(namespaces)
@@ -75,11 +77,11 @@ describe Caramelize::OutputWiki::Gollum do
75
77
 
76
78
  describe '#build_commit' do
77
79
  let(:page) do
78
- Caramelize::Page.new( title: 'Feathered Dinosaurs',
79
- message: 'Dinosaurs really had feathers, do not forget!',
80
- time: Time.parse('2015-02-12'),
81
- body: 'Dinosaurs are awesome and have feathers!',
82
- author: OpenStruct.new(name: 'Jeff Goldblum', email: 'jeff.g@example.com') )
80
+ Caramelize::Page.new(title: 'Feathered Dinosaurs',
81
+ message: 'Dinosaurs really had feathers, do not forget!',
82
+ time: Time.parse('2015-02-12'),
83
+ body: 'Dinosaurs are awesome and have feathers!',
84
+ author: { name: 'Jeff Goldblum', email: 'jeff.g@example.com' })
83
85
  end
84
86
 
85
87
  let(:expected_hash) do
@@ -95,15 +97,15 @@ describe Caramelize::OutputWiki::Gollum do
95
97
  expect(gollum_output.build_commit(page)).to eq expected_hash
96
98
  end
97
99
 
98
- context 'page has message' do
100
+ context 'when page has message' do
99
101
  it 'uses page.title' do
100
102
  expect(gollum_output.build_commit(page)[:message])
101
103
  .to eq 'Dinosaurs really had feathers, do not forget!'
102
104
  end
103
105
  end
104
106
 
105
- context 'page has no message' do
106
- it 'should create message "Edit in page Feathered Dinosaurs"' do
107
+ context 'when page has no message' do
108
+ it 'creates message "Edit in page Feathered Dinosaurs"' do
107
109
  page.message = ''
108
110
  expect(gollum_output.build_commit(page)[:message])
109
111
  .to eq 'Edit in page Feathered Dinosaurs'
@@ -1,62 +1,70 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Caramelize::Page do
4
-
5
- let(:message) { 'Dinosaurs really had feathers, do not forget!' }
6
- let(:author) { OpenStruct.new(name: 'Jeff Goldblum', email: 'jeff.g@example.com') }
7
- let(:title){ 'Feathered Dinosaurs' }
8
6
  subject(:page) do
9
- Caramelize::Page.new(title: title,
10
- message: message,
11
- time: Time.parse('2015-02-12'),
12
- body: 'Dinosaurs are awesome and have feathers!',
13
- author: author )
7
+ described_class.new(title:,
8
+ message:,
9
+ time: Time.parse('2015-02-12'),
10
+ body: 'Dinosaurs are awesome and have feathers!',
11
+ author:)
14
12
  end
15
13
 
14
+ let(:message) { 'Dinosaurs really had feathers, do not forget!' }
15
+ let(:author) { { name: 'Jeff Goldblum', email: 'jeff.g@example.com' } }
16
+ let(:title) { 'Feathered Dinosaurs' }
16
17
 
17
18
  describe '#author' do
18
- context 'no author is set' do
19
+ context 'without author' do
19
20
  let(:author) { nil }
20
21
 
21
- it 'fills with Caramelize user' do
22
- expect(page.author.name).to eql('Caramelize')
23
- expect(page.author.email).to eql('mail@example.com')
22
+ it 'fills with Caramelize user name' do
23
+ expect(page.author.fetch(:name)).to eql('Caramelize')
24
+ end
25
+
26
+ it 'fills with dummy email' do
27
+ expect(page.author.fetch(:email)).to eql('mail@example.com')
24
28
  end
25
29
  end
26
30
 
27
- context 'author is set' do
28
- it 'fills with Caramelize user' do
29
- expect(page.author.name).to eql(author.name)
30
- expect(page.author.email).to eql(author.email)
31
+ context 'with author' do
32
+ it 'fills with author name' do
33
+ expect(page.author.fetch(:name)).to eql(author[:name])
34
+ end
35
+
36
+ it 'fills with author email' do
37
+ expect(page.author.fetch(:email)).to eql(author[:email])
31
38
  end
32
39
  end
33
40
  end
34
41
 
35
42
  describe '#path' do
36
- context "title is 'Home'" do
43
+ context "when title is 'Home'" do
37
44
  let(:title) { 'Home' }
38
- it { expect(page.path).to eq 'Home'}
45
+
46
+ it { expect(page.path).to eq 'Home' }
39
47
  end
40
48
 
41
- context "title is 'Feathered Dinosaurs'" do
42
- it { expect(page.path).to eq 'Feathered Dinosaurs'}
49
+ context "when title is 'Feathered Dinosaurs'" do
50
+ it { expect(page.path).to eq 'Feathered Dinosaurs' }
43
51
  end
44
52
 
45
- context "title is 'Space/Feathered Dinosaurs'" do
53
+ context "when title is 'Space/Feathered Dinosaurs'" do
46
54
  let(:title) { 'Space/Feathered Dinosaurs' }
47
- it { expect(page.path).to eq 'Space/feathered dinosaurs'}
55
+
56
+ it { expect(page.path).to eq 'Space/feathered dinosaurs' }
48
57
  end
49
58
  end
50
59
 
51
-
52
60
  describe '#commit_message' do
53
- context 'page has message' do
61
+ context 'with page having message' do
54
62
  it 'uses page.title' do
55
63
  expect(page.commit_message).to eq 'Dinosaurs really had feathers, do not forget!'
56
64
  end
57
65
  end
58
66
 
59
- context 'page has no message' do
67
+ context 'with page having no message' do
60
68
  let(:message) { '' }
61
69
 
62
70
  it 'creates message "Edit in page Feathered Dinosaurs"' do
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ describe Caramelize::Services::PageBuilder do
6
+ describe '.build_namespace_overview' do
7
+ subject(:page) { described_class.build_namespace_overview(namespaces) }
8
+
9
+ let(:body) do
10
+ "## Overview of namespaces\n \n* [[Velociraptor|velociraptors/wiki]] \n* [[Allosaurus|allosaurus/wiki]]"
11
+ end
12
+ let(:expected_page) do
13
+ Caramelize::Page.new(title: 'Home',
14
+ body:,
15
+ message: 'Create Namespace Overview',
16
+ latest: true)
17
+ end
18
+ let(:namespaces) do
19
+ [
20
+ { identifier: 'velociraptors', name: 'Velociraptor' },
21
+ { identifier: 'allosaurus', name: 'Allosaurus' }
22
+ ]
23
+ end
24
+
25
+ it 'returns page with expected title' do
26
+ expect(page.title).to eql(expected_page.title)
27
+ end
28
+
29
+ it 'returns page with expected page body' do
30
+ expect(page.body).to eql(expected_page.body)
31
+ end
32
+
33
+ it 'returns page with expected page latest' do
34
+ expect(page.latest).to eql(expected_page.latest)
35
+ end
36
+
37
+ it 'returns page with expected message' do
38
+ expect(page.message).to eql(expected_page.message)
39
+ end
40
+ end
41
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'pry'
2
4
  require 'caramelize'
3
5
 
4
- Dir[('./spec/support/**/*.rb')].each {|f| require f}
6
+ Dir[('./spec/support/**/*.rb')].each { |f| require f }
5
7
 
6
8
  RSpec.configure do |config|
7
- #config.include TestHelpers
9
+ # config.include TestHelpers
8
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caramelize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Senff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-08 00:00:00.000000000 Z
11
+ date: 2024-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -66,104 +66,6 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: bundler
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '2'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '2'
83
- - !ruby/object:Gem::Dependency
84
- name: rake
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: rspec
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: byebug
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: rubocop
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: guard
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: guard-rspec
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
69
  description: With Caramelize you can migrate any wiki to git-based Gollum wiki repositories.
168
70
  email:
169
71
  - mail@danielsenff.de
@@ -172,8 +74,10 @@ executables:
172
74
  extensions: []
173
75
  extra_rdoc_files: []
174
76
  files:
77
+ - ".github/dependabot.yml"
78
+ - ".github/workflows/main.yml"
175
79
  - ".gitignore"
176
- - ".travis.yml"
80
+ - ".rubocop.yml"
177
81
  - CODE_OF_CONDUCT.md
178
82
  - Gemfile
179
83
  - Gemfile.lock
@@ -187,10 +91,15 @@ files:
187
91
  - lib/caramelize/content_transferer.rb
188
92
  - lib/caramelize/database_connector.rb
189
93
  - lib/caramelize/filter_processor.rb
94
+ - lib/caramelize/filters/add_newline_to_page_end.rb
95
+ - lib/caramelize/filters/camel_case_to_wiki_links.rb
190
96
  - lib/caramelize/filters/remove_table_tab_line_endings.rb
191
97
  - lib/caramelize/filters/swap_wiki_links.rb
192
98
  - lib/caramelize/filters/wikka_to_markdown.rb
193
99
  - lib/caramelize/health_check.rb
100
+ - lib/caramelize/health_checks/home_page_check.rb
101
+ - lib/caramelize/health_checks/orphaned_pages_check.rb
102
+ - lib/caramelize/health_checks/page.rb
194
103
  - lib/caramelize/input_wiki/redmine_wiki.rb
195
104
  - lib/caramelize/input_wiki/wiki.rb
196
105
  - lib/caramelize/input_wiki/wikkawiki.rb
@@ -204,18 +113,21 @@ files:
204
113
  - spec/fixtures/markup/table-tab-line-endings-output.textile
205
114
  - spec/lib/caramelize/content_transferer_spec.rb
206
115
  - spec/lib/caramelize/filter_processor_spec.rb
116
+ - spec/lib/caramelize/filters/add_newline_to_page_end_spec.rb
117
+ - spec/lib/caramelize/filters/camel_case_to_wiki_links_spec.rb
207
118
  - spec/lib/caramelize/filters/remove_table_tab_line_endings_spec.rb
208
119
  - spec/lib/caramelize/filters/swap_wiki_links_spec.rb
209
- - spec/lib/caramelize/filters/wikka_to_markdown_spec.rb
120
+ - spec/lib/caramelize/filters/wikka2markdown_spec.rb
210
121
  - spec/lib/caramelize/input_wiki/wiki_spec.rb
211
122
  - spec/lib/caramelize/output_wiki/gollum_spec.rb
212
123
  - spec/lib/caramelize/page_spec.rb
213
- - spec/lib/caramelize/services/page_builder.rb
124
+ - spec/lib/caramelize/services/page_builder_spec.rb
214
125
  - spec/spec_helper.rb
215
126
  homepage: http://github.com/Dahie/caramelize
216
127
  licenses:
217
128
  - MIT
218
- metadata: {}
129
+ metadata:
130
+ rubygems_mfa_required: 'true'
219
131
  post_install_message:
220
132
  rdoc_options: []
221
133
  require_paths:
@@ -224,29 +136,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
224
136
  requirements:
225
137
  - - ">="
226
138
  - !ruby/object:Gem::Version
227
- version: '0'
139
+ version: '3.1'
228
140
  required_rubygems_version: !ruby/object:Gem::Requirement
229
141
  requirements:
230
142
  - - ">="
231
143
  - !ruby/object:Gem::Version
232
144
  version: '0'
233
145
  requirements: []
234
- rubygems_version: 3.4.22
146
+ rubygems_version: 3.5.5
235
147
  signing_key:
236
148
  specification_version: 4
237
149
  summary: Flexible and modular wiki conversion tool
238
- test_files:
239
- - spec/fixtures/markup/swap-links-input.textile
240
- - spec/fixtures/markup/swap-links-output.textile
241
- - spec/fixtures/markup/table-tab-line-endings-input.textile
242
- - spec/fixtures/markup/table-tab-line-endings-output.textile
243
- - spec/lib/caramelize/content_transferer_spec.rb
244
- - spec/lib/caramelize/filter_processor_spec.rb
245
- - spec/lib/caramelize/filters/remove_table_tab_line_endings_spec.rb
246
- - spec/lib/caramelize/filters/swap_wiki_links_spec.rb
247
- - spec/lib/caramelize/filters/wikka_to_markdown_spec.rb
248
- - spec/lib/caramelize/input_wiki/wiki_spec.rb
249
- - spec/lib/caramelize/output_wiki/gollum_spec.rb
250
- - spec/lib/caramelize/page_spec.rb
251
- - spec/lib/caramelize/services/page_builder.rb
252
- - spec/spec_helper.rb
150
+ test_files: []
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.6
4
- before_install:
5
- - gem install bundler