redmine_wiki_exporter 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +41 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +49 -0
- data/VERSION +1 -0
- data/lib/redmine_wiki_exporter/constant.rb +231 -0
- data/lib/redmine_wiki_exporter.rb +88 -0
- data/redmine_wiki_exporter.gemspec +67 -0
- data/spec/redmine_wiki_exporter_spec.rb +7 -0
- data/spec/spec_helper.rb +12 -0
- metadata +129 -0
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
gem "hpricot"
|
6
|
+
gem "mechanize"
|
7
|
+
|
8
|
+
# Add dependencies to develop your gem here.
|
9
|
+
# Include everything needed to run rake, tests, features, etc.
|
10
|
+
group :development do
|
11
|
+
gem "rspec", "~> 2.3.0"
|
12
|
+
gem "bundler", "~> 1.0.0"
|
13
|
+
gem "jeweler", "~> 1.6.4"
|
14
|
+
gem "rcov", ">= 0"
|
15
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
diff-lcs (1.1.3)
|
5
|
+
git (1.2.5)
|
6
|
+
hpricot (0.8.4)
|
7
|
+
jeweler (1.6.4)
|
8
|
+
bundler (~> 1.0)
|
9
|
+
git (>= 1.2.5)
|
10
|
+
rake
|
11
|
+
mechanize (2.0.1)
|
12
|
+
net-http-digest_auth (~> 1.1, >= 1.1.1)
|
13
|
+
net-http-persistent (~> 1.8)
|
14
|
+
nokogiri (~> 1.4)
|
15
|
+
webrobots (~> 0.0, >= 0.0.9)
|
16
|
+
net-http-digest_auth (1.1.1)
|
17
|
+
net-http-persistent (1.9)
|
18
|
+
nokogiri (1.5.0)
|
19
|
+
rake (0.9.2)
|
20
|
+
rcov (0.9.10)
|
21
|
+
rspec (2.3.0)
|
22
|
+
rspec-core (~> 2.3.0)
|
23
|
+
rspec-expectations (~> 2.3.0)
|
24
|
+
rspec-mocks (~> 2.3.0)
|
25
|
+
rspec-core (2.3.1)
|
26
|
+
rspec-expectations (2.3.0)
|
27
|
+
diff-lcs (~> 1.1.2)
|
28
|
+
rspec-mocks (2.3.0)
|
29
|
+
webrobots (0.0.11)
|
30
|
+
nokogiri (>= 1.4.4)
|
31
|
+
|
32
|
+
PLATFORMS
|
33
|
+
ruby
|
34
|
+
|
35
|
+
DEPENDENCIES
|
36
|
+
bundler (~> 1.0.0)
|
37
|
+
hpricot
|
38
|
+
jeweler (~> 1.6.4)
|
39
|
+
mechanize
|
40
|
+
rcov
|
41
|
+
rspec (~> 2.3.0)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 Toshiyuki Hirooka
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
= redmine_wiki_exporter
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Contributing to redmine_wiki_exporter
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
9
|
+
* Fork the project
|
10
|
+
* Start a feature/bugfix branch
|
11
|
+
* Commit and push until you are happy with your contribution
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2011 Toshiyuki Hirooka. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "redmine_wiki_exporter"
|
18
|
+
gem.homepage = "http://github.com/aiming/redmine_wiki_exporter"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{redmine wiki exporter}
|
21
|
+
gem.description = %Q{redmine wiki exporter}
|
22
|
+
gem.email = "toshi.hirooka@gmail.com"
|
23
|
+
gem.authors = ["Toshiyuki Hirooka"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rspec/core'
|
29
|
+
require 'rspec/core/rake_task'
|
30
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
+
end
|
33
|
+
|
34
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
35
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
36
|
+
spec.rcov = true
|
37
|
+
end
|
38
|
+
|
39
|
+
task :default => :spec
|
40
|
+
|
41
|
+
require 'rake/rdoctask'
|
42
|
+
Rake::RDocTask.new do |rdoc|
|
43
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
44
|
+
|
45
|
+
rdoc.rdoc_dir = 'rdoc'
|
46
|
+
rdoc.title = "redmine_wiki_exporter #{version}"
|
47
|
+
rdoc.rdoc_files.include('README*')
|
48
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
49
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.0
|
@@ -0,0 +1,231 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
module RedmineWikiExporterModule
|
4
|
+
class Constant
|
5
|
+
def self.header
|
6
|
+
<<EOS
|
7
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
8
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
9
|
+
<head>
|
10
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
11
|
+
<title>Filament - Spec 050-130 World Zone - Aiming Redmine</title>
|
12
|
+
<meta name="description" content="Redmine" />
|
13
|
+
<meta name="keywords" content="issue,bug,tracker" />
|
14
|
+
<meta name="csrf-param" content="authenticity_token"/>
|
15
|
+
<meta name="csrf-token" content="F1GP2+Lh7OEwJ6fmrwldGI+nHQNgVhnSoQv29oMCLk4="/>
|
16
|
+
<link rel='shortcut icon' href='/favicon.ico?1308721718' />
|
17
|
+
<link href="/stylesheets/application.css?1306774282" media="all" rel="stylesheet" type="text/css" />
|
18
|
+
|
19
|
+
<script src="/javascripts/prototype.js?1306774282" type="text/javascript"></script>
|
20
|
+
<script src="/javascripts/effects.js?1306774282" type="text/javascript"></script>
|
21
|
+
<script src="/javascripts/dragdrop.js?1306774282" type="text/javascript"></script>
|
22
|
+
<script src="/javascripts/controls.js?1306774282" type="text/javascript"></script>
|
23
|
+
<script src="/javascripts/application.js?1306774282" type="text/javascript"></script>
|
24
|
+
<script type="text/javascript">
|
25
|
+
//<![CDATA[
|
26
|
+
Event.observe(window, 'load', function(){ new WarnLeavingUnsaved('このページから移動すると、保存されていないデータが失われます。'); });
|
27
|
+
//]]>
|
28
|
+
</script>
|
29
|
+
|
30
|
+
<!--[if IE 6]>
|
31
|
+
<style type="text/css">
|
32
|
+
* html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }
|
33
|
+
body {behavior: url(/stylesheets/csshover.htc?1306774282);}
|
34
|
+
</style>
|
35
|
+
<![endif]-->
|
36
|
+
|
37
|
+
|
38
|
+
<style type="text/css">
|
39
|
+
h1. Stylesheet
|
40
|
+
|
41
|
+
@import url(/themes/fil/stylesheets/application.css);
|
42
|
+
|
43
|
+
/* 見出し1 */
|
44
|
+
.wiki h1 {
|
45
|
+
padding: 4px 0px 2px 10px; /* 余白の幅 */
|
46
|
+
border-width: 0px 0px 3px 20px; /* 枠の幅 */
|
47
|
+
border-style: solid; /* 枠の種類 */
|
48
|
+
line-height: 100%; /*行の高さ */
|
49
|
+
}
|
50
|
+
|
51
|
+
/* 見出し1 */
|
52
|
+
.wiki h1 {
|
53
|
+
padding: 4px 0px 2px 10px; /* 余白の幅 */
|
54
|
+
border-width: 0px 0px 3px 20px; /* 枠の幅 */
|
55
|
+
border-style: solid; /* 枠の種類 */
|
56
|
+
line-height: 100%; /*行の高さ */
|
57
|
+
}
|
58
|
+
|
59
|
+
/* 見出し2 */
|
60
|
+
.wiki h2 {
|
61
|
+
padding: 4px 0px 0px 8px; /* 余白の幅 */
|
62
|
+
border-width: 0px 0px 2px 15px; /* 枠の幅 */
|
63
|
+
border-style: solid; /* 枠の種類 */
|
64
|
+
margin:0.5em 0em 0.5em 0em; /* 上下の間隔 */
|
65
|
+
border-color: #000000; /* 枠の色 */
|
66
|
+
}
|
67
|
+
|
68
|
+
/* 見出し3 */
|
69
|
+
.wiki h3 {
|
70
|
+
padding: 3px 0px 0px 6px; /* 余白の幅 */
|
71
|
+
border-style: solid; /* 枠の種類 */
|
72
|
+
border-width: 0px 0px 1px 10px; /* 枠の幅 */
|
73
|
+
margin:0.5em 0em 0.5em 0.5em; /* 上下の間隔 */
|
74
|
+
border-color: #333333; /* 枠の色 */
|
75
|
+
}
|
76
|
+
|
77
|
+
/* 見出し4 */
|
78
|
+
.wiki h4 {
|
79
|
+
padding: 3px 0px 0px 6px; /* 余白の幅 */
|
80
|
+
border-style: solid; /* 枠の種類 */
|
81
|
+
border-width: 0px 0px 1px 7px; /* 枠の幅 */
|
82
|
+
margin:0.5em 50% 0.5em 1em; /* 上下の間隔 */
|
83
|
+
}
|
84
|
+
|
85
|
+
/* 見出し5 */
|
86
|
+
.wiki h5 {
|
87
|
+
padding: 3px 0px 0px 6px; /* 余白の幅 */
|
88
|
+
border-style: solid; /* 枠の種類 */
|
89
|
+
border-width: 0px 0px 0px 5px; /* 枠の幅 */
|
90
|
+
margin:0.5em 1.3em; /* 上下の間隔 */
|
91
|
+
}
|
92
|
+
|
93
|
+
/* 見出し6 draft・memo用 */
|
94
|
+
.wiki h6 {
|
95
|
+
line-height: 130%; /* 行の高さ */
|
96
|
+
margin:0.3em 0em; /* 上下の間隔 */
|
97
|
+
}
|
98
|
+
|
99
|
+
/* p */
|
100
|
+
p {
|
101
|
+
padding: 0px 0px 0px 2em; /* 余白の幅 */
|
102
|
+
}
|
103
|
+
|
104
|
+
/* pre */
|
105
|
+
.wiki pre {
|
106
|
+
padding: 3px 3px 3px 3px; /* 余白の幅 */
|
107
|
+
border-width: 2px 2px 2px 2px; /* 枠の幅 */
|
108
|
+
}
|
109
|
+
|
110
|
+
.fc-r {
|
111
|
+
color: #ff0000;
|
112
|
+
}
|
113
|
+
|
114
|
+
.fc-b {
|
115
|
+
color: #0000ff;
|
116
|
+
}
|
117
|
+
|
118
|
+
.fc-g {
|
119
|
+
color: #00ff00;
|
120
|
+
}
|
121
|
+
|
122
|
+
.fc-w {
|
123
|
+
color: #ffffff;
|
124
|
+
}
|
125
|
+
|
126
|
+
.draft {
|
127
|
+
font-size: 2em; /* 文字のサイズ */
|
128
|
+
color: #ffffff; /* 文字の色 */
|
129
|
+
background-color: #ff5555; /* 背景色 */
|
130
|
+
line-height: 130%; /* 行の高さ */
|
131
|
+
margin:0.3em 0em; /* 上下の間隔 */
|
132
|
+
padding: 0.2em; /* 余白の幅 */
|
133
|
+
}
|
134
|
+
|
135
|
+
.p-a {
|
136
|
+
font-size: 1em; /* 文字のサイズ */
|
137
|
+
color: #ff0000; /* 文字の色 */
|
138
|
+
padding: 0.1em; /* 余白の幅 */
|
139
|
+
}
|
140
|
+
|
141
|
+
.p-b {
|
142
|
+
font-size: 1em; /* 文字のサイズ */
|
143
|
+
color: #ff5500; /* 文字の色 */*/
|
144
|
+
padding: 0.1em; /* 余白の幅 */
|
145
|
+
|
146
|
+
}
|
147
|
+
|
148
|
+
.p-c {
|
149
|
+
font-size: 1em; /* 文字のサイズ */
|
150
|
+
color: #ffaa00; /* 文字の色 */*/
|
151
|
+
padding: 0.1em; /* 余白の幅 */
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
table {
|
156
|
+
margin:0.2em 2em; /* 上下の間隔 */
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
li {
|
161
|
+
margin:0.3em 0.5em; /* 上下の間隔 */
|
162
|
+
}
|
163
|
+
|
164
|
+
|
165
|
+
.dev {
|
166
|
+
font-weight:bold; /* 太字 */
|
167
|
+
}
|
168
|
+
|
169
|
+
.art {
|
170
|
+
font-weight:bold; /* 太字 */
|
171
|
+
}
|
172
|
+
|
173
|
+
.pln {
|
174
|
+
font-weight:bold; /* 太字 */
|
175
|
+
}
|
176
|
+
|
177
|
+
.snd {
|
178
|
+
font-weight:bold; /* 太字 */
|
179
|
+
}
|
180
|
+
|
181
|
+
.logic {
|
182
|
+
font-weight:bold; /* 太字 */
|
183
|
+
font-size: 1.3em; /* 文字のサイズ */
|
184
|
+
background-color: #eaeaea; /* 背景色 */
|
185
|
+
padding: 0.5em; /* 余白の幅 */
|
186
|
+
line-height: 300%; /* 行の高さ */
|
187
|
+
border-width: 1px 1px 1px 1px; /* 枠の幅 */
|
188
|
+
border-style: solid; /* 枠の種類 */
|
189
|
+
}
|
190
|
+
|
191
|
+
.kari {
|
192
|
+
font-weight:bold; /* 太字 */
|
193
|
+
color: #ffffff; /* 文字の色 */
|
194
|
+
background-color: #ff7777; /* 背景色 */
|
195
|
+
border-width: 1px 1px 1px 1px; /* 枠の幅 */
|
196
|
+
border-style: solid; /* 枠の種類 */
|
197
|
+
}
|
198
|
+
</style>
|
199
|
+
|
200
|
+
|
201
|
+
<link href="/plugin_assets/redmine_wiki_extensions/stylesheets/wiki_extensions.css?1306928215" media="screen" rel="stylesheet" type="text/css" />
|
202
|
+
<script src="/plugin_assets/redmine_wiki_extensions/javascripts/wiki_extensions.js?1306928215" type="text/javascript"></script>
|
203
|
+
|
204
|
+
<script src="/plugin_assets/redmine_wiki_extensions/javascripts/tablesort.js?1306928215" type="text/javascript"></script>
|
205
|
+
<script type="text/javascript">
|
206
|
+
//TableSort.arrowNone = " ";
|
207
|
+
TableSort.arrowUp = ' <img alt="Sort_asc" src="/images/sort_asc.png?1306774281" />';
|
208
|
+
TableSort.arrowDown = ' <img alt="Sort_desc" src="/images/sort_desc.png?1306774281" />';
|
209
|
+
</script>
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
<!-- page specific tags -->
|
214
|
+
|
215
|
+
<link href="/stylesheets/scm.css?1306774282" media="screen" rel="stylesheet" type="text/css" />
|
216
|
+
</head>
|
217
|
+
<body>
|
218
|
+
EOS
|
219
|
+
end
|
220
|
+
|
221
|
+
def self.footer
|
222
|
+
<<EOS
|
223
|
+
</body>
|
224
|
+
</html>
|
225
|
+
EOS
|
226
|
+
end
|
227
|
+
|
228
|
+
def self.css
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'hpricot'
|
4
|
+
require 'mechanize'
|
5
|
+
require 'open-uri'
|
6
|
+
require File.expand_path(File.dirname(__FILE__) + '/redmine_wiki_exporter/constant')
|
7
|
+
|
8
|
+
# ignoring SSL verify
|
9
|
+
require 'openssl'
|
10
|
+
module OpenSSL
|
11
|
+
module SSL
|
12
|
+
remove_const :VERIFY_PEER
|
13
|
+
end
|
14
|
+
end
|
15
|
+
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
|
16
|
+
|
17
|
+
class RedmineWikiExporter
|
18
|
+
def root_url
|
19
|
+
@root_url
|
20
|
+
end
|
21
|
+
|
22
|
+
def agent
|
23
|
+
@agent
|
24
|
+
end
|
25
|
+
|
26
|
+
def exporting_path
|
27
|
+
@exporting_path
|
28
|
+
end
|
29
|
+
def exporting_path=(path)
|
30
|
+
@exporting_path = path
|
31
|
+
end
|
32
|
+
|
33
|
+
def page_name
|
34
|
+
agent.page.uri.to_s.split('/').last
|
35
|
+
end
|
36
|
+
|
37
|
+
def initialize(root)
|
38
|
+
@root_url = root
|
39
|
+
@agent = Mechanize.new
|
40
|
+
end
|
41
|
+
|
42
|
+
def login(username, password)
|
43
|
+
agent.get("#{root_url}/login")
|
44
|
+
login_form = agent.page.form_with(:action => "/login")
|
45
|
+
login_form['username'] = username
|
46
|
+
login_form['password'] = password
|
47
|
+
login_form.submit
|
48
|
+
end
|
49
|
+
|
50
|
+
def image_urls
|
51
|
+
agent.page.images.map {|img| img.src}
|
52
|
+
end
|
53
|
+
|
54
|
+
def save_images
|
55
|
+
agent.page.images.map {|i| i.url}.select {|url| url.include? "/attachments/download/"}.each do |url|
|
56
|
+
image = agent.get(url)
|
57
|
+
image.save("#{exporting_path}/images/#{url.split('/').last}.png")
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
def save_page
|
62
|
+
header = RedmineWikiExporterModule::Constant.header
|
63
|
+
footer = RedmineWikiExporterModule::Constant.footer
|
64
|
+
doc = Hpricot(agent.page.body)
|
65
|
+
wiki = (doc/"div.wiki")
|
66
|
+
(wiki/:img).each do |img|
|
67
|
+
img[:src] = "images/#{img[:src].split('/').last}.png" if image_urls.include? img[:src]
|
68
|
+
end
|
69
|
+
(wiki/:a).each do |link|
|
70
|
+
link[:href] = "#{link[:href].to_s.split('/').last}.html" if link[:href].to_s.include? "/wiki/"
|
71
|
+
end
|
72
|
+
file = open("#{exporting_path}/#{page_name}.html", "w")
|
73
|
+
file.write(header + wiki.inner_html + footer)
|
74
|
+
file.close
|
75
|
+
end
|
76
|
+
|
77
|
+
def mkdirs
|
78
|
+
Dir::mkdir("#{exporting_path}") rescue nil
|
79
|
+
Dir::mkdir("#{exporting_path}/images") rescue nil
|
80
|
+
end
|
81
|
+
|
82
|
+
def scrape(url)
|
83
|
+
agent.get(url)
|
84
|
+
mkdirs
|
85
|
+
save_page
|
86
|
+
save_images
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{redmine_wiki_exporter}
|
8
|
+
s.version = "0.0.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = [%q{Toshiyuki Hirooka}]
|
12
|
+
s.date = %q{2011-09-05}
|
13
|
+
s.description = %q{redmine wiki exporter}
|
14
|
+
s.email = %q{toshi.hirooka@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"lib/redmine_wiki_exporter.rb",
|
29
|
+
"lib/redmine_wiki_exporter/constant.rb",
|
30
|
+
"redmine_wiki_exporter.gemspec",
|
31
|
+
"spec/redmine_wiki_exporter_spec.rb",
|
32
|
+
"spec/spec_helper.rb"
|
33
|
+
]
|
34
|
+
s.homepage = %q{http://github.com/aiming/redmine_wiki_exporter}
|
35
|
+
s.licenses = [%q{MIT}]
|
36
|
+
s.require_paths = [%q{lib}]
|
37
|
+
s.rubygems_version = %q{1.8.6}
|
38
|
+
s.summary = %q{redmine wiki exporter}
|
39
|
+
|
40
|
+
if s.respond_to? :specification_version then
|
41
|
+
s.specification_version = 3
|
42
|
+
|
43
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
44
|
+
s.add_runtime_dependency(%q<hpricot>, [">= 0"])
|
45
|
+
s.add_runtime_dependency(%q<mechanize>, [">= 0"])
|
46
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
47
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
48
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
49
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
50
|
+
else
|
51
|
+
s.add_dependency(%q<hpricot>, [">= 0"])
|
52
|
+
s.add_dependency(%q<mechanize>, [">= 0"])
|
53
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
54
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
55
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
56
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
57
|
+
end
|
58
|
+
else
|
59
|
+
s.add_dependency(%q<hpricot>, [">= 0"])
|
60
|
+
s.add_dependency(%q<mechanize>, [">= 0"])
|
61
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
62
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
63
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
64
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'redmine_wiki_exporter'
|
5
|
+
|
6
|
+
# Requires supporting files with custom matchers and macros, etc,
|
7
|
+
# in ./support/ and its subdirectories.
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: redmine_wiki_exporter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Toshiyuki Hirooka
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-09-05 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: hpricot
|
16
|
+
requirement: &70145298133420 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70145298133420
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: mechanize
|
27
|
+
requirement: &70145298132940 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70145298132940
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec
|
38
|
+
requirement: &70145298132460 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 2.3.0
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70145298132460
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bundler
|
49
|
+
requirement: &70145298131980 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.0.0
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70145298131980
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: jeweler
|
60
|
+
requirement: &70145298131500 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 1.6.4
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *70145298131500
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rcov
|
71
|
+
requirement: &70145298131020 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *70145298131020
|
80
|
+
description: redmine wiki exporter
|
81
|
+
email: toshi.hirooka@gmail.com
|
82
|
+
executables: []
|
83
|
+
extensions: []
|
84
|
+
extra_rdoc_files:
|
85
|
+
- LICENSE.txt
|
86
|
+
- README.rdoc
|
87
|
+
files:
|
88
|
+
- .document
|
89
|
+
- .rspec
|
90
|
+
- Gemfile
|
91
|
+
- Gemfile.lock
|
92
|
+
- LICENSE.txt
|
93
|
+
- README.rdoc
|
94
|
+
- Rakefile
|
95
|
+
- VERSION
|
96
|
+
- lib/redmine_wiki_exporter.rb
|
97
|
+
- lib/redmine_wiki_exporter/constant.rb
|
98
|
+
- redmine_wiki_exporter.gemspec
|
99
|
+
- spec/redmine_wiki_exporter_spec.rb
|
100
|
+
- spec/spec_helper.rb
|
101
|
+
homepage: http://github.com/aiming/redmine_wiki_exporter
|
102
|
+
licenses:
|
103
|
+
- MIT
|
104
|
+
post_install_message:
|
105
|
+
rdoc_options: []
|
106
|
+
require_paths:
|
107
|
+
- lib
|
108
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
110
|
+
requirements:
|
111
|
+
- - ! '>='
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
segments:
|
115
|
+
- 0
|
116
|
+
hash: 3243057863215267496
|
117
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
119
|
+
requirements:
|
120
|
+
- - ! '>='
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
requirements: []
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 1.8.6
|
126
|
+
signing_key:
|
127
|
+
specification_version: 3
|
128
|
+
summary: redmine wiki exporter
|
129
|
+
test_files: []
|