caramelize 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.editorconfig +30 -0
- data/.github/dependabot.yml +1 -1
- data/.github/workflows/main.yml +4 -4
- data/.ruby-version +1 -0
- data/Gemfile +6 -11
- data/Gemfile.lock +85 -90
- data/LICENSE.md +1 -1
- data/Rakefile +3 -3
- data/bin/caramelize +2 -3
- data/caramelize.gemspec +24 -20
- data/lib/caramelize/caramel.rb +23 -23
- data/lib/caramelize/content_transferer.rb +18 -18
- data/lib/caramelize/database_connector.rb +6 -6
- data/lib/caramelize/filters/camel_case_to_wiki_links.rb +2 -2
- data/lib/caramelize/filters/mediawiki_to_markdown.rb +4 -4
- data/lib/caramelize/filters/swap_wiki_links.rb +2 -2
- data/lib/caramelize/filters/wikka_to_markdown.rb +2 -2
- data/lib/caramelize/health_check.rb +1 -1
- data/lib/caramelize/health_checks/home_page_check.rb +2 -2
- data/lib/caramelize/health_checks/orphaned_pages_check.rb +1 -1
- data/lib/caramelize/health_checks/page.rb +2 -2
- data/lib/caramelize/input_wiki/media_wiki.rb +17 -17
- data/lib/caramelize/input_wiki/redmine_wiki.rb +23 -23
- data/lib/caramelize/input_wiki/wiki.rb +1 -1
- data/lib/caramelize/input_wiki/wikka_wiki.rb +15 -15
- data/lib/caramelize/output_wiki/gollum.rb +3 -3
- data/lib/caramelize/page.rb +11 -11
- data/lib/caramelize/services/page_builder.rb +4 -4
- data/lib/caramelize/version.rb +1 -1
- data/lib/caramelize.rb +16 -16
- data/samples/media_wiki.rb +4 -4
- data/spec/lib/caramelize/content_transferer_spec.rb +4 -4
- data/spec/lib/caramelize/filter_processor_spec.rb +7 -7
- data/spec/lib/caramelize/filters/add_newline_to_page_end_spec.rb +7 -7
- data/spec/lib/caramelize/filters/camel_case_to_wiki_links_spec.rb +17 -19
- data/spec/lib/caramelize/filters/mediawiki_to_markdown_spec.rb +4 -4
- data/spec/lib/caramelize/filters/remove_table_tab_line_endings_spec.rb +15 -17
- data/spec/lib/caramelize/filters/swap_wiki_links_spec.rb +23 -25
- data/spec/lib/caramelize/filters/wikka_to_markdown_spec.rb +82 -84
- data/spec/lib/caramelize/input_wiki/media_wiki_spec.rb +3 -3
- data/spec/lib/caramelize/input_wiki/wiki_spec.rb +21 -21
- data/spec/lib/caramelize/input_wiki/wikka_wiki_spec.rb +3 -3
- data/spec/lib/caramelize/output_wiki/gollum_spec.rb +39 -39
- data/spec/lib/caramelize/page_spec.rb +30 -30
- data/spec/lib/caramelize/services/page_builder_spec.rb +12 -12
- data/spec/spec_helper.rb +2 -3
- metadata +62 -9
- data/.rubocop.yml +0 -31
- data/.rubocop_todo.yml +0 -55
@@ -1,39 +1,39 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "spec_helper"
|
4
4
|
|
5
5
|
describe Caramelize::OutputWiki::Gollum do
|
6
|
-
let(:gollum_output) { described_class.new(
|
6
|
+
let(:gollum_output) { described_class.new("wiki.git") }
|
7
7
|
|
8
8
|
before do
|
9
9
|
allow(gollum_output).to receive(:initialize_repository).and_return true
|
10
10
|
end
|
11
11
|
|
12
|
-
describe
|
12
|
+
describe "#commit_revision" do
|
13
13
|
subject(:gollum) { double(:gollum) } # rubocop:todo RSpec/VerifiedDoubles
|
14
14
|
|
15
|
-
let(:title) {
|
16
|
-
let(:author) { {
|
15
|
+
let(:title) { "title" }
|
16
|
+
let(:author) { {name: "Steven Universe", email: "steven@example.com"} }
|
17
17
|
let(:input_page) do
|
18
18
|
Caramelize::Page.new(author:,
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
19
|
+
body: "body",
|
20
|
+
commit_message: "done",
|
21
|
+
time: Time.now,
|
22
|
+
title:,
|
23
|
+
path: title)
|
24
24
|
end
|
25
|
-
let(:gollum_page) { double(:gollum_page, name:
|
25
|
+
let(:gollum_page) { double(:gollum_page, name: "title", format: :markdown) } # rubocop:todo RSpec/VerifiedDoubles
|
26
26
|
|
27
27
|
before do
|
28
28
|
allow(Gollum::Wiki).to receive(:new).and_return(gollum)
|
29
29
|
end
|
30
30
|
|
31
|
-
context
|
31
|
+
context "when page exists" do
|
32
32
|
before do
|
33
33
|
allow(gollum).to receive(:page).with(title).and_return(gollum_page) # rubocop:todo RSpec/SubjectStub
|
34
34
|
end
|
35
35
|
|
36
|
-
it
|
36
|
+
it "updates page" do
|
37
37
|
# rubocop:todo RSpec/SubjectStub
|
38
38
|
expect(gollum).to receive(:update_page).once.and_return(true) # rubocop:todo RSpec/MessageSpies, RSpec/SubjectStub
|
39
39
|
# rubocop:enable RSpec/SubjectStub
|
@@ -41,12 +41,12 @@ describe Caramelize::OutputWiki::Gollum do
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
context
|
44
|
+
context "when page does not exist yet" do
|
45
45
|
before do
|
46
46
|
allow(gollum).to receive(:page).with(title).and_return(nil) # rubocop:todo RSpec/SubjectStub
|
47
47
|
end
|
48
48
|
|
49
|
-
it
|
49
|
+
it "creates page" do
|
50
50
|
allow(gollum).to receive(:write_page) # rubocop:todo RSpec/SubjectStub
|
51
51
|
gollum_output.commit_revision(input_page, :markdown)
|
52
52
|
expect(gollum).to have_received(:write_page).once # rubocop:todo RSpec/SubjectStub
|
@@ -54,20 +54,20 @@ describe Caramelize::OutputWiki::Gollum do
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
-
describe
|
58
|
-
pending(
|
57
|
+
describe "#commit_history" do
|
58
|
+
pending("test full history")
|
59
59
|
end
|
60
60
|
|
61
|
-
describe
|
61
|
+
describe "#commit_namespace_overview" do
|
62
62
|
let(:namespaces) do
|
63
63
|
[
|
64
|
-
{
|
65
|
-
{
|
64
|
+
{dentifier: "velociraptors", name: "Velociraptor"},
|
65
|
+
{identifier: "allosaurus", name: "Allosaurus"}
|
66
66
|
]
|
67
67
|
end
|
68
68
|
|
69
|
-
context
|
70
|
-
it
|
69
|
+
context "with 2 pages in namespaces" do
|
70
|
+
it "commits page" do
|
71
71
|
allow(gollum_output).to receive(:commit_revision)
|
72
72
|
gollum_output.commit_namespace_overview(namespaces)
|
73
73
|
expect(gollum_output).to have_received(:commit_revision)
|
@@ -75,40 +75,40 @@ describe Caramelize::OutputWiki::Gollum do
|
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
|
-
describe
|
78
|
+
describe "#build_commit" do
|
79
79
|
let(:page) do
|
80
|
-
Caramelize::Page.new(title:
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
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"})
|
85
85
|
end
|
86
86
|
|
87
87
|
let(:expected_hash) do
|
88
88
|
{
|
89
|
-
message:
|
90
|
-
time: Time.parse(
|
91
|
-
name:
|
92
|
-
email:
|
89
|
+
message: "Dinosaurs really had feathers, do not forget!",
|
90
|
+
time: Time.parse("2015-02-12"),
|
91
|
+
name: "Jeff Goldblum",
|
92
|
+
email: "jeff.g@example.com"
|
93
93
|
}
|
94
94
|
end
|
95
95
|
|
96
|
-
it
|
96
|
+
it "builds commit hash" do
|
97
97
|
expect(gollum_output.build_commit(page)).to eq expected_hash
|
98
98
|
end
|
99
99
|
|
100
|
-
context
|
101
|
-
it
|
100
|
+
context "when page has message" do
|
101
|
+
it "uses page.title" do
|
102
102
|
expect(gollum_output.build_commit(page)[:message])
|
103
|
-
.to eq
|
103
|
+
.to eq "Dinosaurs really had feathers, do not forget!"
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
|
-
context
|
107
|
+
context "when page has no message" do
|
108
108
|
it 'creates message "Edit in page Feathered Dinosaurs"' do
|
109
|
-
page.message =
|
109
|
+
page.message = ""
|
110
110
|
expect(gollum_output.build_commit(page)[:message])
|
111
|
-
.to eq
|
111
|
+
.to eq "Edit in page Feathered Dinosaurs"
|
112
112
|
end
|
113
113
|
end
|
114
114
|
end
|
@@ -1,74 +1,74 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "spec_helper"
|
4
4
|
|
5
5
|
describe Caramelize::Page do
|
6
6
|
subject(:page) do
|
7
7
|
described_class.new(title:,
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
message:,
|
9
|
+
time: Time.parse("2015-02-12"),
|
10
|
+
body: "Dinosaurs are awesome and have feathers!",
|
11
|
+
author:)
|
12
12
|
end
|
13
13
|
|
14
|
-
let(:message) {
|
15
|
-
let(:author) { {
|
16
|
-
let(:title) {
|
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" }
|
17
17
|
|
18
|
-
describe
|
19
|
-
context
|
18
|
+
describe "#author" do
|
19
|
+
context "without author" do
|
20
20
|
let(:author) { nil }
|
21
21
|
|
22
|
-
it
|
23
|
-
expect(page.author.fetch(:name)).to eql(
|
22
|
+
it "fills with Caramelize user name" do
|
23
|
+
expect(page.author.fetch(:name)).to eql("Caramelize")
|
24
24
|
end
|
25
25
|
|
26
|
-
it
|
27
|
-
expect(page.author.fetch(:email)).to eql(
|
26
|
+
it "fills with dummy email" do
|
27
|
+
expect(page.author.fetch(:email)).to eql("mail@example.com")
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
context
|
32
|
-
it
|
31
|
+
context "with author" do
|
32
|
+
it "fills with author name" do
|
33
33
|
expect(page.author.fetch(:name)).to eql(author[:name])
|
34
34
|
end
|
35
35
|
|
36
|
-
it
|
36
|
+
it "fills with author email" do
|
37
37
|
expect(page.author.fetch(:email)).to eql(author[:email])
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
describe
|
42
|
+
describe "#path" do
|
43
43
|
context "when title is 'Home'" do
|
44
|
-
let(:title) {
|
44
|
+
let(:title) { "Home" }
|
45
45
|
|
46
|
-
it { expect(page.path).to eq
|
46
|
+
it { expect(page.path).to eq "Home" }
|
47
47
|
end
|
48
48
|
|
49
49
|
context "when title is 'Feathered Dinosaurs'" do
|
50
|
-
it { expect(page.path).to eq
|
50
|
+
it { expect(page.path).to eq "Feathered Dinosaurs" }
|
51
51
|
end
|
52
52
|
|
53
53
|
context "when title is 'Space/Feathered Dinosaurs'" do
|
54
|
-
let(:title) {
|
54
|
+
let(:title) { "Space/Feathered Dinosaurs" }
|
55
55
|
|
56
|
-
it { expect(page.path).to eq
|
56
|
+
it { expect(page.path).to eq "Space/feathered dinosaurs" }
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
describe
|
61
|
-
context
|
62
|
-
it
|
63
|
-
expect(page.commit_message).to eq
|
60
|
+
describe "#commit_message" do
|
61
|
+
context "with page having message" do
|
62
|
+
it "uses page.title" do
|
63
|
+
expect(page.commit_message).to eq "Dinosaurs really had feathers, do not forget!"
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
-
context
|
68
|
-
let(:message) {
|
67
|
+
context "with page having no message" do
|
68
|
+
let(:message) { "" }
|
69
69
|
|
70
70
|
it 'creates message "Edit in page Feathered Dinosaurs"' do
|
71
|
-
expect(page.commit_message).to eq
|
71
|
+
expect(page.commit_message).to eq "Edit in page Feathered Dinosaurs"
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|
@@ -1,40 +1,40 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "spec_helper"
|
4
4
|
|
5
5
|
describe Caramelize::Services::PageBuilder do
|
6
|
-
describe
|
6
|
+
describe ".build_namespace_overview" do
|
7
7
|
subject(:page) { described_class.build_namespace_overview(namespaces) }
|
8
8
|
|
9
9
|
let(:body) do
|
10
10
|
"## Overview of namespaces\n \n* [[Velociraptor|velociraptors/wiki]] \n* [[Allosaurus|allosaurus/wiki]]"
|
11
11
|
end
|
12
12
|
let(:expected_page) do
|
13
|
-
Caramelize::Page.new(title:
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
Caramelize::Page.new(title: "Home",
|
14
|
+
body:,
|
15
|
+
message: "Create Namespace Overview",
|
16
|
+
latest: true)
|
17
17
|
end
|
18
18
|
let(:namespaces) do
|
19
19
|
[
|
20
|
-
{
|
21
|
-
{
|
20
|
+
{identifier: "velociraptors", name: "Velociraptor"},
|
21
|
+
{identifier: "allosaurus", name: "Allosaurus"}
|
22
22
|
]
|
23
23
|
end
|
24
24
|
|
25
|
-
it
|
25
|
+
it "returns page with expected title" do
|
26
26
|
expect(page.title).to eql(expected_page.title)
|
27
27
|
end
|
28
28
|
|
29
|
-
it
|
29
|
+
it "returns page with expected page body" do
|
30
30
|
expect(page.body).to eql(expected_page.body)
|
31
31
|
end
|
32
32
|
|
33
|
-
it
|
33
|
+
it "returns page with expected page latest" do
|
34
34
|
expect(page.latest).to eql(expected_page.latest)
|
35
35
|
end
|
36
36
|
|
37
|
-
it
|
37
|
+
it "returns page with expected message" do
|
38
38
|
expect(page.message).to eql(expected_page.message)
|
39
39
|
end
|
40
40
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require 'caramelize'
|
3
|
+
require "caramelize"
|
5
4
|
|
6
|
-
Dir[
|
5
|
+
Dir["./spec/support/**/*.rb"].each { |f| require f }
|
7
6
|
|
8
7
|
RSpec.configure do |config|
|
9
8
|
# config.include TestHelpers
|
metadata
CHANGED
@@ -1,15 +1,42 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caramelize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Senff
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-06-18 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: base64
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '0'
|
19
|
+
type: :runtime
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - ">="
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '0'
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: bigdecimal
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
13
40
|
- !ruby/object:Gem::Dependency
|
14
41
|
name: commander
|
15
42
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +79,20 @@ dependencies:
|
|
52
79
|
- - ">="
|
53
80
|
- !ruby/object:Gem::Version
|
54
81
|
version: '0'
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: ostruct
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
type: :runtime
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
55
96
|
- !ruby/object:Gem::Dependency
|
56
97
|
name: paru
|
57
98
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +107,20 @@ dependencies:
|
|
66
107
|
- - ">="
|
67
108
|
- !ruby/object:Gem::Version
|
68
109
|
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rdoc
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
type: :runtime
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
69
124
|
- !ruby/object:Gem::Dependency
|
70
125
|
name: ruby-progressbar
|
71
126
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,11 +143,11 @@ executables:
|
|
88
143
|
extensions: []
|
89
144
|
extra_rdoc_files: []
|
90
145
|
files:
|
146
|
+
- ".editorconfig"
|
91
147
|
- ".github/dependabot.yml"
|
92
148
|
- ".github/workflows/main.yml"
|
93
149
|
- ".gitignore"
|
94
|
-
- ".
|
95
|
-
- ".rubocop_todo.yml"
|
150
|
+
- ".ruby-version"
|
96
151
|
- CODE_OF_CONDUCT.md
|
97
152
|
- Gemfile
|
98
153
|
- Gemfile.lock
|
@@ -149,7 +204,6 @@ licenses:
|
|
149
204
|
- MIT
|
150
205
|
metadata:
|
151
206
|
rubygems_mfa_required: 'true'
|
152
|
-
post_install_message:
|
153
207
|
rdoc_options: []
|
154
208
|
require_paths:
|
155
209
|
- lib
|
@@ -157,15 +211,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
157
211
|
requirements:
|
158
212
|
- - ">="
|
159
213
|
- !ruby/object:Gem::Version
|
160
|
-
version: '3
|
214
|
+
version: '3'
|
161
215
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
216
|
requirements:
|
163
217
|
- - ">="
|
164
218
|
- !ruby/object:Gem::Version
|
165
219
|
version: '0'
|
166
220
|
requirements: []
|
167
|
-
rubygems_version: 3.
|
168
|
-
signing_key:
|
221
|
+
rubygems_version: 3.6.2
|
169
222
|
specification_version: 4
|
170
223
|
summary: Flexible and modular wiki conversion tool
|
171
224
|
test_files: []
|
data/.rubocop.yml
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
2
|
-
|
3
|
-
require:
|
4
|
-
- rubocop-rake
|
5
|
-
- rubocop-rspec
|
6
|
-
- rubocop-performance
|
7
|
-
|
8
|
-
AllCops:
|
9
|
-
NewCops: enable
|
10
|
-
Exclude:
|
11
|
-
- 'vendor/**/*'
|
12
|
-
- 'spec/fixtures/**/*'
|
13
|
-
- 'tmp/**/*'
|
14
|
-
- '.git/**/*'
|
15
|
-
- 'bin/*'
|
16
|
-
- '*.cmlz'
|
17
|
-
TargetRubyVersion: 3.1
|
18
|
-
SuggestExtensions: false
|
19
|
-
|
20
|
-
Style/Documentation:
|
21
|
-
Enabled: false
|
22
|
-
StyleGuide: http://relaxed.ruby.style/#styledocumentation
|
23
|
-
|
24
|
-
Metrics/BlockLength:
|
25
|
-
Enabled: false
|
26
|
-
|
27
|
-
Layout/LineLength:
|
28
|
-
Enabled: false
|
29
|
-
|
30
|
-
RSpec/NestedGroups:
|
31
|
-
Enabled: false
|
data/.rubocop_todo.yml
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2024-03-04 19:34:06 UTC using RuboCop version 1.61.0.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 1
|
10
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
11
|
-
Lint/NestedMethodDefinition:
|
12
|
-
Exclude:
|
13
|
-
- 'lib/caramelize/filters/textile_to_markdown.rb'
|
14
|
-
|
15
|
-
# Offense count: 5
|
16
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
17
|
-
Metrics/AbcSize:
|
18
|
-
Max: 79
|
19
|
-
|
20
|
-
# Offense count: 2
|
21
|
-
# Configuration parameters: CountComments, CountAsOne.
|
22
|
-
Metrics/ClassLength:
|
23
|
-
Max: 118
|
24
|
-
|
25
|
-
# Offense count: 1
|
26
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
27
|
-
Metrics/CyclomaticComplexity:
|
28
|
-
Max: 9
|
29
|
-
|
30
|
-
# Offense count: 10
|
31
|
-
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
32
|
-
Metrics/MethodLength:
|
33
|
-
Max: 102
|
34
|
-
|
35
|
-
# Offense count: 1
|
36
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
37
|
-
Metrics/PerceivedComplexity:
|
38
|
-
Max: 9
|
39
|
-
|
40
|
-
# Offense count: 2
|
41
|
-
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
|
42
|
-
# Include: **/*_spec*rb*, **/spec/**/*
|
43
|
-
RSpec/FilePath:
|
44
|
-
Exclude:
|
45
|
-
- 'spec/lib/caramelize/filters/add_newline_to_page_end_spec.rb'
|
46
|
-
- 'spec/lib/caramelize/filters/mediawiki_to_markdown_spec.rb'
|
47
|
-
|
48
|
-
# Offense count: 2
|
49
|
-
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
|
50
|
-
# Include: **/*_spec.rb
|
51
|
-
RSpec/SpecFilePathFormat:
|
52
|
-
Exclude:
|
53
|
-
- '**/spec/routing/**/*'
|
54
|
-
- 'spec/lib/caramelize/filters/add_newline_to_page_end_spec.rb'
|
55
|
-
- 'spec/lib/caramelize/filters/mediawiki_to_markdown_spec.rb'
|