caramelize 0.2.0 → 0.3.0
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 +7 -0
- data/.gitignore +21 -53
- data/Gemfile +3 -3
- data/LICENSE.md +1 -1
- data/README.md +25 -25
- data/Rakefile +10 -1
- data/bin/caramelize +2 -9
- data/caramelize.gemspec +27 -23
- data/lib/caramelize/caramel.rb +22 -24
- data/lib/caramelize/cli.rb +33 -26
- data/lib/caramelize/cli/create_command.rb +4 -20
- data/lib/caramelize/content_transferer.rb +126 -68
- data/lib/caramelize/database_connector.rb +3 -6
- data/lib/caramelize/filters/remove_table_tab_line_endings.rb +11 -0
- data/lib/caramelize/filters/swap_wiki_links.rb +11 -9
- data/lib/caramelize/filters/wikka_to_markdown.rb +8 -8
- data/lib/caramelize/gollum_output.rb +50 -37
- data/lib/caramelize/page.rb +23 -10
- data/lib/caramelize/version.rb +1 -1
- data/lib/caramelize/wiki/redmine_wiki.rb +25 -32
- data/lib/caramelize/wiki/wiki.rb +28 -15
- data/lib/caramelize/wiki/wikkawiki.rb +16 -24
- data/spec/fixtures/markup/swap-links-input.textile +57 -0
- data/spec/fixtures/markup/swap-links-output.textile +57 -0
- data/spec/fixtures/markup/table-tab-line-endings-input.textile +145 -0
- data/spec/fixtures/markup/table-tab-line-endings-output.textile +145 -0
- data/spec/lib/caramelize/filters/remove_table_tab_line_endings_spec.rb +35 -0
- data/spec/lib/caramelize/filters/swap_wiki_links_spec.rb +33 -0
- data/spec/lib/caramelize/filters/wikka_to_markdown_spec.rb +88 -0
- data/spec/lib/caramelize/gollum_output_spec.rb +64 -0
- data/spec/lib/caramelize/wiki/wiki_spec.rb +31 -0
- data/spec/spec_helper.rb +8 -0
- metadata +136 -33
- data/lib/caramelize/author.rb +0 -8
- data/test/helper.rb +0 -18
- data/test/test_caramelize.rb +0 -7
@@ -0,0 +1,145 @@
|
|
1
|
+
h1. Williams-Renault 1994
|
2
|
+
|
3
|
+
"Williams FW16 Launch Press Conference on YouTube":http://www.youtube.com/watch?v=qJF5TYS9uX0
|
4
|
+
"Williams FW16 Testing (Senna, Estoril) on YouTube":http://www.youtube.com/watch?v=smRQ2YnAfv0
|
5
|
+
|
6
|
+
h2. Livery Changes
|
7
|
+
|
8
|
+
| |_.Mainsponsor |_.Mirrors|
|
9
|
+
|*Brazil* |/5.Rothmans|/2.white/elf|
|
10
|
+
|Pacific|
|
11
|
+
|San Marino |/14.blue/elf|
|
12
|
+
|Monaco |
|
13
|
+
|Spain |
|
14
|
+
|*Canada* |Rothmans Ltd|
|
15
|
+
|*France* |Barcode|
|
16
|
+
|*Great Britain*|/2.Racing|
|
17
|
+
|Germany |
|
18
|
+
|Hungary |/7.Rothmans|
|
19
|
+
|Belgium |
|
20
|
+
|Italy |
|
21
|
+
|Portugal |
|
22
|
+
|Europe |
|
23
|
+
|Japan |
|
24
|
+
|Australia |
|
25
|
+
|
26
|
+
h2. Selected Technical Upgrades
|
27
|
+
|
28
|
+
The upgrades we are going to do on the mod:
|
29
|
+
* **A-Spec**
|
30
|
+
** Frontwing
|
31
|
+
*** High V1
|
32
|
+
** Rearwing
|
33
|
+
*** High V1
|
34
|
+
*** Regular V1
|
35
|
+
* **B-Spec**
|
36
|
+
** Frontwing
|
37
|
+
*** High V3
|
38
|
+
*** High V2
|
39
|
+
** Rearwing
|
40
|
+
*** High V3
|
41
|
+
*** Regular V3
|
42
|
+
*** Low V3
|
43
|
+
|
44
|
+
h2. Technical Upgrades
|
45
|
+
|
46
|
+
_This is for keeping track of all upgrades. We will not implement everything in the actual mod!_
|
47
|
+
|
48
|
+
| |_.Front wing |_.Rear wing|_.Nose |_.Barge boards|_.Airbox|
|
49
|
+
|*Brazil* |/2.High V1 |Regular V1|/2.with flipups |/4.none|/5. |
|
50
|
+
|Pacific | High V1|
|
51
|
+
|San Marino |Low V1|Regular V1|/14. without flipups|
|
52
|
+
|Monaco |/2.High V2 |High V1|
|
53
|
+
|Spain |??|/12.bargeboard|
|
54
|
+
|Canada |/3.High V3|/2.High V1|/11.Airbox cutout|
|
55
|
+
|France |
|
56
|
+
|Great Britain |Regular V1|
|
57
|
+
|Germany |Low V2 |Low|
|
58
|
+
|Hungary |High V3|High V3|
|
59
|
+
|Belgium |/2.Low V2|Regular V2|
|
60
|
+
|Italy |Low |
|
61
|
+
|Portugal |/4.High V3|??|
|
62
|
+
|Europe |/3.Regular V3|
|
63
|
+
|Japan |
|
64
|
+
|Australia |
|
65
|
+
|
66
|
+
h3. Front wing
|
67
|
+
|
68
|
+
All frontwings from Spain onwards have new triangular endplates.
|
69
|
+
|
70
|
+
*Low V2*: flat angle and large gurney flaps
|
71
|
+
*High V2*: added large gurney flaps
|
72
|
+
*High V3*: like v2, but with triangular sideplates
|
73
|
+
|
74
|
+
h3. Front wing
|
75
|
+
|
76
|
+
*High V3*: adds one additional plane on the top and the wing additions inside the tires
|
77
|
+
*Regular V2*: has different striped-down endplates
|
78
|
+
*Regular V3*: has different endplates featuring the wing additions from the high-downforce variant
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
h2. Technical Data (Autocourse 1994/95)
|
83
|
+
|
84
|
+
!F1-1994_01_Williams.jpg!
|
85
|
+
For comparison (from Histomobile):
|
86
|
+
"FW16":http://www.histomobile.com/dvd_histomobile/usa/286/1994-Williams-FW16-.asp 515 kg, 2990 mm (wheelbase), 1669 mm (track front), 1598 mm (track rear)
|
87
|
+
"FW16B":http://www.histomobile.com/dvd_histomobile/usa/286/1994-Williams-FW16B-.asp 595 kg, 2890 mm (wheelbase), 1669 mm (track front), 1598 mm (track rear)
|
88
|
+
|
89
|
+
According to Autocourse 94/95, the FW16 started the season with the 67° V10 engine RS6 and got the RS6B for the Hockenheim GP as well as the RS6C for Monza. Both upgrades featured higher revs and improved top-end power. The RS6 delivered about 790 bhp / 589 KW @ 14300 rpm according to *"ultimatecarpage.com":http://www.ultimatecarpage.com/car/1054/Williams-FW16-Renault.html*.
|
90
|
+
|
91
|
+
h2. Technical Data (Grand Prix 1994)
|
92
|
+
|
93
|
+
!F1-1994_01_Williams_GP94.jpg!
|
94
|
+
|
95
|
+
h2. Technical Upgrades
|
96
|
+
|
97
|
+
The Ferrari car upgrades are listed below as reported in Autosport Magazine.
|
98
|
+
|
99
|
+
h2. Pre-Season (Autosport 134(4), January 27)
|
100
|
+
|
101
|
+
* Passive front suspension
|
102
|
+
* New and simplified cockpit
|
103
|
+
|
104
|
+
!Williams_000_AS-134_4_-1994-January-27.jpg!
|
105
|
+
|
106
|
+
!Williams_010_AS-134_4_-1994-January-27.jpg!
|
107
|
+
|
108
|
+
h3. Photos of the new cockpit and display (late season!)
|
109
|
+
|
110
|
+
!Williams_010_cockpit1.jpg!
|
111
|
+
!Williams_010_cockpit2.jpg!
|
112
|
+
!Williams_010_cockpit3.jpg!
|
113
|
+
|
114
|
+
h2. Pre-Season (Autosport 134(9), March 3)
|
115
|
+
|
116
|
+
* General car design
|
117
|
+
* Suspension
|
118
|
+
* Rear wing
|
119
|
+
|
120
|
+
!Williams_015_AS-134_9_-1994-March-3.jpg!
|
121
|
+
!Williams_016_AS-134_9_-1994-March-3.jpg!
|
122
|
+
!Williams_018_AS-134_9_-1994-March-3.jpg!
|
123
|
+
|
124
|
+
h2. Brazilian GP, Interlagos (Autosport 134(11), March 17)
|
125
|
+
|
126
|
+
* Re-designed ear end
|
127
|
+
* Chassis (cockpit, fuel tank, ...)
|
128
|
+
|
129
|
+
!Williams_020_AS-134_11_-1994-March-17.jpg!
|
130
|
+
|
131
|
+
h2. Testing between Brazilian and Pacific GP (Autosport 134(14), April 7)
|
132
|
+
|
133
|
+
!Williams_030_AS-134_14_-1994-April-7.jpg!
|
134
|
+
|
135
|
+
h2. German GP, Hockenheim (Autosport 136(5), August 4)
|
136
|
+
|
137
|
+
* Shortened sidepods
|
138
|
+
* Revised (elongated) bargeboards
|
139
|
+
* Revised cockpit edge (now rounded at the front)
|
140
|
+
* New airbox vent in agreement with the new regulations
|
141
|
+
* Rear suspension
|
142
|
+
* Diffuser
|
143
|
+
|
144
|
+
!Williams_040_AS-136_5_-1994-August-4.jpg!
|
145
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Caramelize::RemoveTableTabLineEndings do
|
4
|
+
|
5
|
+
describe :run do
|
6
|
+
let(:filter) { Caramelize::RemoveTableTabLineEndings.new }
|
7
|
+
context 'table with tabs at unix line-endings' do
|
8
|
+
it 'should remove tabs at end of line' do
|
9
|
+
body = "cell1\t|cell2\t|\t\t\n"
|
10
|
+
expect(filter.run(body)).to eq "cell1\t|cell2\t|\n"
|
11
|
+
end
|
12
|
+
it 'should remove spaces at end of line' do
|
13
|
+
body = "cell1\t|cell2\t|\t \n"
|
14
|
+
expect(filter.run(body)).to eq "cell1\t|cell2\t|\n"
|
15
|
+
end
|
16
|
+
context 'replace in full file' do
|
17
|
+
it 'returns as expected' do
|
18
|
+
input_text = File.open(File.join(['spec', 'fixtures', 'markup', 'table-tab-line-endings-input.textile']), 'r').read
|
19
|
+
output_text = File.open(File.join(['spec', 'fixtures', 'markup', 'table-tab-line-endings-output.textile']), 'r').read
|
20
|
+
expect(filter.run(input_text)).to eq output_text
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
context 'table with tabs at windows line-endings' do
|
25
|
+
it 'should remove tabs at end of line' do
|
26
|
+
body = "cell1\t|cell2\t|\t\t\r\n"
|
27
|
+
expect(filter.run(body)).to eq "cell1\t|cell2\t|\n"
|
28
|
+
end
|
29
|
+
it 'should remove spaces at end of line' do
|
30
|
+
body = "cell1\t|cell2\t|\t \r\n"
|
31
|
+
expect(filter.run(body)).to eq "cell1\t|cell2\t|\n"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Caramelize::SwapWikiLinks do
|
4
|
+
|
5
|
+
describe :run do
|
6
|
+
let(:filter) { Caramelize::SwapWikiLinks.new }
|
7
|
+
context 'wiki link' do
|
8
|
+
it 'should switch title and target' do
|
9
|
+
body = '[[statistics|Driver & Team Statistics]]'
|
10
|
+
expect(filter.run(body)).to eq '[[Driver & Team Statistics|statistics]]'
|
11
|
+
end
|
12
|
+
it 'should replace space with dashes' do
|
13
|
+
body = '[[Release 1 0]]'
|
14
|
+
expect(filter.run(body)).to eq '[[Release 1 0|Release_1_0]]'
|
15
|
+
end
|
16
|
+
it 'should remove dots' do
|
17
|
+
body = '[[Release 1.0]]'
|
18
|
+
expect(filter.run(body)).to eq '[[Release 1.0|Release_10]]'
|
19
|
+
end
|
20
|
+
it 'should simple link to hyperlink' do
|
21
|
+
body = '[[Intra wiki link]]'
|
22
|
+
expect(filter.run(body)).to eq '[[Intra wiki link|Intra_wiki_link]]'
|
23
|
+
end
|
24
|
+
context 'replace in full file' do
|
25
|
+
it 'returns as expected' do
|
26
|
+
input_text = File.open(File.join(['spec', 'fixtures', 'markup', 'swap-links-input.textile']), 'r').read
|
27
|
+
output_text = File.open(File.join(['spec', 'fixtures', 'markup', 'swap-links-output.textile']), 'r').read
|
28
|
+
expect(filter.run(input_text)).to eq output_text
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Caramelize::Wikka2Markdown do
|
4
|
+
|
5
|
+
describe :run do
|
6
|
+
let(:filter) { Caramelize::Wikka2Markdown.new }
|
7
|
+
context 'headline h1' do
|
8
|
+
it 'should convert to markdown' do
|
9
|
+
body = '======Headline======'
|
10
|
+
expect(filter.run(body)).to eq '# Headline'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
context 'headline h2' do
|
14
|
+
it 'should convert to markdown' do
|
15
|
+
body = '=====Headline====='
|
16
|
+
expect(filter.run(body)).to eq '## Headline'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
context 'headline h3' do
|
20
|
+
it 'should convert to markdown' do
|
21
|
+
body = '====Headline===='
|
22
|
+
expect(filter.run(body)).to eq '### Headline'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
context 'headline h4' do
|
26
|
+
it 'should convert to markdown' do
|
27
|
+
body = '===Headline==='
|
28
|
+
expect(filter.run(body)).to eq '#### Headline'
|
29
|
+
end
|
30
|
+
end
|
31
|
+
context 'headline h1' do
|
32
|
+
it 'should convert to markdown' do
|
33
|
+
body = '======Headline======'
|
34
|
+
expect(filter.run(body)).to eq '# Headline'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
context 'bold' do
|
38
|
+
it 'should convert to markdown' do
|
39
|
+
body = '**Text is bold**'
|
40
|
+
expect(filter.run(body)).to eq '**Text is bold**'
|
41
|
+
end
|
42
|
+
end
|
43
|
+
context 'italic' do
|
44
|
+
it 'should convert to markdown' do
|
45
|
+
body = '//Text is italic//'
|
46
|
+
expect(filter.run(body)).to eq '_Text is italic_'
|
47
|
+
end
|
48
|
+
end
|
49
|
+
context 'underline' do
|
50
|
+
it 'should convert to markdown' do
|
51
|
+
body = '__Text is underlined__'
|
52
|
+
expect(filter.run(body)).to eq '<u>Text is underlined</u>'
|
53
|
+
end
|
54
|
+
end
|
55
|
+
context 'line break' do
|
56
|
+
it 'should convert to markdown' do
|
57
|
+
body = 'Text is---\nbroken to two lines.'
|
58
|
+
expect(filter.run(body)).to eq 'Text is \nbroken to two lines.'
|
59
|
+
end
|
60
|
+
end
|
61
|
+
context 'unordered list entry' do
|
62
|
+
context 'tab based' do
|
63
|
+
it 'should convert to markdown' do
|
64
|
+
body = "\t-unordered list entry"
|
65
|
+
expect(filter.run(body)).to eq '*unordered list entry'
|
66
|
+
end
|
67
|
+
end
|
68
|
+
context 'also tab based' do
|
69
|
+
it 'should convert to markdown' do
|
70
|
+
body = "~-unordered list entry"
|
71
|
+
expect(filter.run(body)).to eq '*unordered list entry'
|
72
|
+
end
|
73
|
+
end
|
74
|
+
context 'space based' do
|
75
|
+
it 'should convert to markdown' do
|
76
|
+
body = " -unordered list entry"
|
77
|
+
expect(filter.run(body)).to eq '*unordered list entry'
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
context 'hyperlink' do
|
82
|
+
it 'should convert to markdown' do
|
83
|
+
body = '[[Title http://target]]'
|
84
|
+
expect(filter.run(body)).to eq '[[http://target|Title]]'
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Caramelize::GollumOutput do
|
4
|
+
|
5
|
+
let(:gollum_output) { Caramelize::GollumOutput.new('wiki.git') }
|
6
|
+
before do
|
7
|
+
allow(gollum_output).to receive(:initialize_repository).and_return true
|
8
|
+
end
|
9
|
+
|
10
|
+
describe :commit_history do
|
11
|
+
end
|
12
|
+
|
13
|
+
describe :create_namespace_overview do
|
14
|
+
|
15
|
+
context '3 pages in namespaces' do
|
16
|
+
it 'commits page' do
|
17
|
+
namespaces= [
|
18
|
+
OpenStruct.new(identifier: 'velociraptors', name: 'Velociraptor'),
|
19
|
+
OpenStruct.new(identifier: 'allosaurus', name: 'Allosaurus')
|
20
|
+
]
|
21
|
+
body = "## Overview of namespaces\n\n* [[Velociraptor|velociraptors/Wiki]] \n* [[Allosaurus|allosaurus/Wiki]] \n"
|
22
|
+
expected_page = Caramelize::Page.new(title: 'Home',
|
23
|
+
body: body,
|
24
|
+
message: 'Create Namespace Overview',
|
25
|
+
latest: true
|
26
|
+
)
|
27
|
+
allow(gollum_output).to receive(:commit_revision).with(expected_page, :markdown)
|
28
|
+
gollum_output.create_namespace_overview(namespaces)
|
29
|
+
expect(gollum_output).to have_receive(:commit_revision).with(expected_body, :markdown)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe :build_commit do
|
35
|
+
let(:page) do
|
36
|
+
Caramelize::Page.new( title: 'Feathered Dinosaurs',
|
37
|
+
message: 'Dinosaurs really had feathers, do not forget!',
|
38
|
+
time: Time.parse('2015-02-12'),
|
39
|
+
body: 'Dinosaurs are awesome and have feathers!',
|
40
|
+
author: OpenStruct.new(name: 'Jeff Goldblum', email: 'jeff.g@example.com') )
|
41
|
+
end
|
42
|
+
|
43
|
+
it 'builds commit hash' do
|
44
|
+
expected_hash = { message: 'Dinosaurs really had feathers, do not forget!',
|
45
|
+
authored_date: Time.parse('2015-02-12'),
|
46
|
+
committed_date: Time.parse('2015-02-12'),
|
47
|
+
name: 'Jeff Goldblum',
|
48
|
+
email: 'jeff.g@example.com' }
|
49
|
+
expect(gollum_output.send(:build_commit, page)).to eq expected_hash
|
50
|
+
end
|
51
|
+
context 'page has message' do
|
52
|
+
it 'uses page.title' do
|
53
|
+
expect(gollum_output.send(:build_commit, page)[:message]).to eq 'Dinosaurs really had feathers, do not forget!'
|
54
|
+
end
|
55
|
+
end
|
56
|
+
context 'page has no message' do
|
57
|
+
it 'should create message "Edit in page Feathered Dinosaurs"' do
|
58
|
+
page.message = ''
|
59
|
+
expect(gollum_output.send(:build_commit, page)[:message]).to eq 'Edit in page Feathered Dinosaurs'
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Caramelize::GollumOutput do
|
4
|
+
|
5
|
+
describe :revisions_by_author do
|
6
|
+
let(:wiki) { Caramelize::Wiki.new }
|
7
|
+
context 'revisions is empty' do
|
8
|
+
context 'and titles is empty' do
|
9
|
+
it 'returns empty array' do
|
10
|
+
allow(wiki).to receive(:titles).and_return []
|
11
|
+
expect(wiki.revisions_by_title('title')).to eq []
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
context 'revisions are given' do
|
16
|
+
context 'and title given' do
|
17
|
+
it 'returns empty array' do
|
18
|
+
pages = []
|
19
|
+
home_1 = OpenStruct.new(title: 'Home', time: Time.parse('2015-01-23'))
|
20
|
+
pages << home_1
|
21
|
+
pages << OpenStruct.new(title: 'Example', time: Time.parse('2015-01-20'))
|
22
|
+
pages << OpenStruct.new(title: 'Authors', time: Time.parse('2015-01-30'))
|
23
|
+
home_2 = OpenStruct.new(title: 'Home', time: Time.parse('2014-01-23'))
|
24
|
+
pages << home_2
|
25
|
+
allow(wiki).to receive(:revisions).and_return pages
|
26
|
+
expect(wiki.revisions_by_title('Home')).to eq [home_2, home_1]
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,80 +1,169 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caramelize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Daniel Senff
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: mysql2
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: cmdparse
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: docile
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
44
53
|
- !ruby/object:Gem::Version
|
45
54
|
version: '0'
|
46
55
|
- !ruby/object:Gem::Dependency
|
47
56
|
name: ruby-progressbar
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
58
|
requirements:
|
51
|
-
- -
|
59
|
+
- - ">="
|
52
60
|
- !ruby/object:Gem::Version
|
53
61
|
version: '0'
|
54
62
|
type: :runtime
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
65
|
requirements:
|
59
|
-
- -
|
66
|
+
- - ">="
|
60
67
|
- !ruby/object:Gem::Version
|
61
68
|
version: '0'
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
70
|
name: gollum-lib
|
64
71
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
72
|
requirements:
|
67
|
-
- -
|
73
|
+
- - ">="
|
68
74
|
- !ruby/object:Gem::Version
|
69
75
|
version: 1.0.0
|
70
76
|
type: :runtime
|
71
77
|
prerelease: false
|
72
78
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
79
|
requirements:
|
75
|
-
- -
|
80
|
+
- - ">="
|
76
81
|
- !ruby/object:Gem::Version
|
77
82
|
version: 1.0.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.6'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.6'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
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: rspec
|
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: byebug
|
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'
|
78
167
|
description: By defining the connectors from the input wiki you can migrate any wiki
|
79
168
|
to git-based Gollum wiki repositories.
|
80
169
|
email:
|
@@ -84,7 +173,7 @@ executables:
|
|
84
173
|
extensions: []
|
85
174
|
extra_rdoc_files: []
|
86
175
|
files:
|
87
|
-
- .gitignore
|
176
|
+
- ".gitignore"
|
88
177
|
- Gemfile
|
89
178
|
- Gemfile.lock
|
90
179
|
- LICENSE.md
|
@@ -92,7 +181,6 @@ files:
|
|
92
181
|
- Rakefile
|
93
182
|
- bin/caramelize
|
94
183
|
- caramelize.gemspec
|
95
|
-
- lib/caramelize/author.rb
|
96
184
|
- lib/caramelize/caramel.rb
|
97
185
|
- lib/caramelize/cli.rb
|
98
186
|
- lib/caramelize/cli/create_command.rb
|
@@ -100,6 +188,7 @@ files:
|
|
100
188
|
- lib/caramelize/content_transferer.rb
|
101
189
|
- lib/caramelize/database_connector.rb
|
102
190
|
- lib/caramelize/ext.rb
|
191
|
+
- lib/caramelize/filters/remove_table_tab_line_endings.rb
|
103
192
|
- lib/caramelize/filters/swap_wiki_links.rb
|
104
193
|
- lib/caramelize/filters/trac_to_markdown.rb
|
105
194
|
- lib/caramelize/filters/wikka_to_markdown.rb
|
@@ -110,34 +199,48 @@ files:
|
|
110
199
|
- lib/caramelize/wiki/trac_converter.rb
|
111
200
|
- lib/caramelize/wiki/wiki.rb
|
112
201
|
- lib/caramelize/wiki/wikkawiki.rb
|
113
|
-
-
|
114
|
-
-
|
202
|
+
- spec/fixtures/markup/swap-links-input.textile
|
203
|
+
- spec/fixtures/markup/swap-links-output.textile
|
204
|
+
- spec/fixtures/markup/table-tab-line-endings-input.textile
|
205
|
+
- spec/fixtures/markup/table-tab-line-endings-output.textile
|
206
|
+
- spec/lib/caramelize/filters/remove_table_tab_line_endings_spec.rb
|
207
|
+
- spec/lib/caramelize/filters/swap_wiki_links_spec.rb
|
208
|
+
- spec/lib/caramelize/filters/wikka_to_markdown_spec.rb
|
209
|
+
- spec/lib/caramelize/gollum_output_spec.rb
|
210
|
+
- spec/lib/caramelize/wiki/wiki_spec.rb
|
211
|
+
- spec/spec_helper.rb
|
115
212
|
homepage: http://github.com/Dahie/caramelize
|
116
213
|
licenses:
|
117
214
|
- MIT
|
215
|
+
metadata: {}
|
118
216
|
post_install_message:
|
119
217
|
rdoc_options: []
|
120
218
|
require_paths:
|
121
219
|
- lib
|
122
220
|
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
221
|
requirements:
|
125
|
-
- -
|
222
|
+
- - ">="
|
126
223
|
- !ruby/object:Gem::Version
|
127
224
|
version: '0'
|
128
225
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
226
|
requirements:
|
131
|
-
- -
|
227
|
+
- - ">="
|
132
228
|
- !ruby/object:Gem::Version
|
133
229
|
version: '0'
|
134
230
|
requirements: []
|
135
|
-
rubyforge_project:
|
136
|
-
rubygems_version:
|
231
|
+
rubyforge_project:
|
232
|
+
rubygems_version: 2.4.5
|
137
233
|
signing_key:
|
138
|
-
specification_version:
|
234
|
+
specification_version: 4
|
139
235
|
summary: Flexible and modular wiki conversion tool
|
140
236
|
test_files:
|
141
|
-
-
|
142
|
-
-
|
143
|
-
|
237
|
+
- spec/fixtures/markup/swap-links-input.textile
|
238
|
+
- spec/fixtures/markup/swap-links-output.textile
|
239
|
+
- spec/fixtures/markup/table-tab-line-endings-input.textile
|
240
|
+
- spec/fixtures/markup/table-tab-line-endings-output.textile
|
241
|
+
- spec/lib/caramelize/filters/remove_table_tab_line_endings_spec.rb
|
242
|
+
- spec/lib/caramelize/filters/swap_wiki_links_spec.rb
|
243
|
+
- spec/lib/caramelize/filters/wikka_to_markdown_spec.rb
|
244
|
+
- spec/lib/caramelize/gollum_output_spec.rb
|
245
|
+
- spec/lib/caramelize/wiki/wiki_spec.rb
|
246
|
+
- spec/spec_helper.rb
|