gollum-lib 5.0.1-java → 5.0.6-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5662c1525277435507ced6f525a59cf50b16a054e5026acd2a014c6ded340789
4
- data.tar.gz: f9bd5b7bdf94bad28f59317199544fc7fdb9cf99e8fefd576de96316f7cf77e1
3
+ metadata.gz: e08f233796cb452691f39d50029ea10100088f520ca413cd656f81ae3c586edc
4
+ data.tar.gz: 6819382931ebd534d6b698bb733f251b4b7df7c1bc6475dd8130aadf75402971
5
5
  SHA512:
6
- metadata.gz: f19aeec8848ae1d3b67264de96cc4e10050e0a662106ef554a23efc50e54c5a1369f0fe8b8ef4d87c88d137dac885b07af708b8760365ef632fdf3fe9695d8fe
7
- data.tar.gz: c6d87ce1dc06acef4a4db237073c9240ae41d614df9e1c01772e4b0ad9b23c2cb9ae2b33596c298718075d2d810d4c7922d5bc71b38af832329bbfdbad8d4f53
6
+ metadata.gz: '058703fd1e3240e66ea9039548fb32e051c881fbb549b1f2a0f5ad1b7f45b9608f172991c7a3ddd1edd64744a051b7da189f5777407aa8d383db51a51173da22'
7
+ data.tar.gz: 2a82c3024a8c0365089e588be77e0efcc73a8406d9882095788e8937f3e281249007b6c7f4dee9c754ae244d19d2394243b856536c4abf63d5af535911fd83b8
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v5.0.1
2
+
3
+ Bugfix release: fix emoji when using base path. Thanks to @heavywatal.
4
+
1
5
  # v5.0
2
6
 
3
7
  For a detailed overview of changes in 5.0 and a guide to migrating your wiki, see https://github.com/gollum/gollum/wiki/5.0-release-notes
data/Rakefile CHANGED
@@ -51,11 +51,11 @@ def gemspec_file
51
51
  end
52
52
 
53
53
  def gemspecs
54
- [RUBY_PLATFORM == 'java' ? "#{name}_java.gemspec" : "#{name}.gemspec"]
54
+ ["#{name}.gemspec", "#{name}_java.gemspec"]
55
55
  end
56
56
 
57
57
  def gem_files
58
- [RUBY_PLATFORM == 'java' ? "#{name}-#{version}-java.gem" : "#{name}-#{version}.gem"]
58
+ ["#{name}-#{version}.gem", "#{name}-#{version}-java.gem"]
59
59
  end
60
60
 
61
61
  def replace_header(head, header_name)
@@ -75,6 +75,7 @@ Rake::TestTask.new(:test) do |test|
75
75
  test.libs << 'lib' << 'test' << '.'
76
76
  test.pattern = 'test/**/test_*.rb'
77
77
  test.verbose = true
78
+ test.warning = false
78
79
  end
79
80
 
80
81
  desc "Generate RCov test coverage and open in your browser"
data/gemspec.rb CHANGED
@@ -8,7 +8,7 @@ def specification(version, default_adapter, platform = nil)
8
8
  s.name = 'gollum-lib'
9
9
  s.version = version
10
10
  s.platform = platform if platform
11
- s.date = '2020-03-29'
11
+ s.date = '2020-09-23'
12
12
  s.date = '2017-04-13'
13
13
  s.rubyforge_project = 'gollum-lib'
14
14
  s.license = 'MIT'
@@ -66,7 +66,6 @@ def specification(version, default_adapter, platform = nil)
66
66
  LICENSE
67
67
  README.md
68
68
  Rakefile
69
- adapter_dependencies.rb
70
69
  docs/sanitization.md
71
70
  gemspec.rb
72
71
  gollum-lib.gemspec
@@ -1,4 +1,10 @@
1
1
  require File.join(File.dirname(__FILE__), 'gemspec.rb')
2
- require File.join(File.dirname(__FILE__), 'adapter_dependencies.rb')
3
2
  require File.join(File.dirname(__FILE__), 'lib', 'gollum-lib', 'version.rb')
4
- Gem::Specification.new &specification(Gollum::Lib::VERSION, DEFAULT_ADAPTER_REQ)
3
+ # This file needs to conditionally define the default adapter for MRI and Java, because this is the file that is included from the Gemfile.
4
+ # In addition, the default Java adapter needs to be defined in gollum-lib_java.gemspec beause that file is used to *build* the Java gem.
5
+ if RUBY_PLATFORM == 'java' then
6
+ default_adapter = ['gollum-rjgit_adapter', '~> 0.6']
7
+ else
8
+ default_adapter = ['gollum-rugged_adapter', '~> 1.0']
9
+ end
10
+ Gem::Specification.new &specification(Gollum::Lib::VERSION, default_adapter)
@@ -1,4 +1,4 @@
1
1
  require File.join(File.dirname(__FILE__), 'gemspec.rb')
2
- require File.join(File.dirname(__FILE__), 'adapter_dependencies.rb')
3
2
  require File.join(File.dirname(__FILE__), 'lib', 'gollum-lib', 'version.rb')
4
- Gem::Specification.new &specification(Gollum::Lib::VERSION, DEFAULT_ADAPTER_REQ, "java")
3
+ default_adapter = ['gollum-rjgit_adapter', '~> 0.6']
4
+ Gem::Specification.new &specification(Gollum::Lib::VERSION, default_adapter, "java")
@@ -78,12 +78,22 @@ module Gollum
78
78
  # Returns a normalized String directory name, or nil if no directory
79
79
  # is given.
80
80
  def self.normalize_dir(dir)
81
- return '' if dir =~ /^.:\/$/
82
- if dir
83
- dir = ::File.expand_path(dir, '/')
84
- dir = dir[2..-1] if dir =~ /^[a-zA-Z]:\// # expand_path may add d:/ on windows
85
- dir = '' if dir == '/'
86
- end
81
+ return unless dir
82
+
83
+ dir = dir.dup
84
+
85
+ # Remove '.' and '..' path segments
86
+ dir.gsub!(%r{(\A|/)\.{1,2}(/|\z)}, '/')
87
+
88
+ # Remove repeated slashes
89
+ dir.gsub!(%r{//+}, '/')
90
+
91
+ # Remove Windows drive letters, trailing slashes, and keep one leading slash
92
+ dir.sub!(%r{\A([a-z]:)?/*(.*?)/*\z}i, '/\2')
93
+
94
+ # Return empty string for paths that point to the toplevel
95
+ return '' if dir == '/'
96
+
87
97
  dir
88
98
  end
89
99
  end
@@ -54,7 +54,7 @@ module Gollum
54
54
  @actor ||= begin
55
55
  @options[:name] = @wiki.default_committer_name if @options[:name].nil?
56
56
  @options[:email] = @wiki.default_committer_email if @options[:email].nil?
57
- Gollum::Git::Actor.new(@options[:name], @options[:email])
57
+ Gollum::Git::Actor.new(@options[:name], @options[:email], @options[:time])
58
58
  end
59
59
  end
60
60
 
@@ -171,7 +171,7 @@ module Gollum
171
171
  return false if @blob.is_symlink && !FS_SUPPORT_SYMLINKS
172
172
 
173
173
  # This will try to resolve symbolic links, as well
174
- pathname = Pathname.new(::File.expand_path(::File.join(@wiki.repo.path, '..', @path)))
174
+ pathname = Pathname.new(::File.join(@wiki.repo.path, '..', BlobEntry.normalize_dir(@path)))
175
175
  if pathname.symlink?
176
176
  source = ::File.readlink(pathname.to_path)
177
177
  realpath = ::File.join(::File.dirname(pathname.to_path), source)
@@ -26,7 +26,8 @@ class Gollum::Filter::Emoji < Gollum::Filter
26
26
  end
27
27
 
28
28
  def process(data)
29
- data.gsub! process_pattern, %q(<img src="/gollum/emoji/\k<name>" alt="\k<name>" class="emoji">)
29
+ src = ::File.join(@markup.wiki.base_path, '/gollum/emoji/\\k<name>')
30
+ data.gsub! process_pattern, %Q(<img src="#{src}" alt="\\k<name>" class="emoji">)
30
31
  data
31
32
  end
32
33
 
@@ -230,6 +230,7 @@ class Gollum::Filter::Tags < Gollum::Filter
230
230
  else
231
231
  name = page ? path_to_link_text(link) : link
232
232
  end
233
+
233
234
  link = page ? page.escaped_url_path : ERB::Util.url_encode(link).force_encoding('utf-8')
234
235
  generate_link(link, name, extra, presence)
235
236
  end
@@ -14,7 +14,7 @@ class Gollum::Filter::YAML < Gollum::Filter
14
14
  @markup.metadata.merge!(frontmatter) if frontmatter.respond_to?(:keys) && frontmatter.respond_to?(:values)
15
15
  rescue ::Psych::SyntaxError, ::Psych::DisallowedClass, ::Psych::BadAlias => error
16
16
  @markup.metadata['errors'] ||= []
17
- @markup.metadata['errors'] << "Failed to load YAML frontmater: #{error.message}"
17
+ @markup.metadata['errors'] << "Failed to load YAML frontmatter: #{error.message}"
18
18
  end
19
19
  ''
20
20
  end
@@ -16,7 +16,7 @@ module Gollum
16
16
  # '/opt/local/bin/ruby.ext' -> 'ruby'
17
17
  def path_to_link_text(str)
18
18
  return nil unless str
19
- ::File.basename(str, ::File.extname(str))
19
+ ::File.basename(str, Page.valid_extension?(str) ? ::File.extname(str) : '')
20
20
  end
21
21
 
22
22
  end
@@ -25,6 +25,10 @@ module Gollum
25
25
  "<p class=\"gollum-error\">#{s}</p>"
26
26
  end
27
27
 
28
+ def active_page
29
+ return @page.parent_page || @page
30
+ end
31
+
28
32
  # The special class we reserve for only the finest of screwups. The
29
33
  # underscore is to make sure nobody can define a real, callable macro
30
34
  # with the same name, because that would be... exciting.
@@ -3,7 +3,7 @@ module Gollum
3
3
 
4
4
  class Series < Gollum::Macro
5
5
  def render(series_prefix = "")
6
- raise "This page's name does not match the prefix '#{series_prefix}'" unless @page.name =~ /^#{series_prefix}/
6
+ raise "This page's name does not match the prefix '#{series_prefix}'" unless active_page.name =~ /^#{series_prefix}/
7
7
  render_links(*find_series(series_prefix))
8
8
  end
9
9
 
@@ -21,7 +21,7 @@ module Gollum
21
21
  dir = @wiki.pages.select {|page| ::File.dirname(page.path) == ::File.dirname(@page.path)}
22
22
  dir.select! {|page| page.name =~ /\A#{series_prefix}/ } unless series_prefix.empty?
23
23
  dir.sort_by! {|page| page.name}
24
- self_index = dir.find_index {|page| page.name == @page.name}
24
+ self_index = dir.find_index {|page| page.name == active_page.name}
25
25
  if self_index > 0
26
26
  return dir[self_index-1], dir[self_index+1]
27
27
  else
@@ -56,9 +56,9 @@ end
56
56
  module Gollum
57
57
  class Markup
58
58
  if gem_exists?('pandoc-ruby')
59
- GitHub::Markup::Markdown::MARKDOWN_GEMS.delete('kramdown')
59
+ GitHub::Markup::Markdown::MARKDOWN_GEMS.clear
60
60
  GitHub::Markup::Markdown::MARKDOWN_GEMS['pandoc-ruby'] = proc { |content|
61
- PandocRuby.convert(content, :from => :markdown, :to => :html, :filter => 'pandoc-citeproc')
61
+ PandocRuby.convert(content, :from => 'markdown-tex_math_dollars-raw_tex', :to => :html, :filter => 'pandoc-citeproc')
62
62
  }
63
63
  else
64
64
  GitHub::Markup::Markdown::MARKDOWN_GEMS['kramdown'] = proc { |content|
@@ -85,7 +85,8 @@ module Gollum
85
85
  :extensions => ['rest', 'rst'])
86
86
  register(:asciidoc, "AsciiDoc",
87
87
  :skip_filters => [:Tags],
88
- :enabled => MarkupRegisterUtils::gem_exists?("asciidoctor"))
88
+ :enabled => MarkupRegisterUtils::gem_exists?("asciidoctor"),
89
+ :extensions => ['adoc','asciidoc'])
89
90
  register(:mediawiki, "MediaWiki",
90
91
  :enabled => MarkupRegisterUtils::gem_exists?("wikicloth"),
91
92
  :extensions => ['mediawiki','wiki'], :reverse_links => true)
@@ -277,7 +277,7 @@ module Gollum
277
277
  #
278
278
  # Returns the String extension (no leading period).
279
279
  def self.format_to_ext(format)
280
- format == :markdown ? "md" : format.to_s
280
+ Gollum::Markup.formats[format] ? Gollum::Markup.formats[format][:extensions].first : nil
281
281
  end
282
282
 
283
283
  # The underlying wiki repo.
@@ -360,7 +360,7 @@ module Gollum
360
360
  def initialize(wiki, name, data, version, parent_page = nil)
361
361
  @wiki = wiki
362
362
  @path = name
363
- @blob = OpenStruct.new(:name => name, :data => data, :is_symlink => false)
363
+ @blob = OpenStruct.new(:name => name, :data => wiki.normalize(data), :is_symlink => false)
364
364
  @version = version
365
365
  @formatted_data = nil
366
366
  @doc = nil
@@ -368,5 +368,6 @@ module Gollum
368
368
  @historical = false
369
369
  end
370
370
  end
371
+
371
372
 
372
373
  end
@@ -7,12 +7,12 @@ module Gollum
7
7
  module Redirects
8
8
 
9
9
  def stale?
10
- @current_head != @wiki.repo.head.commit.sha
10
+ @current_head != get_head_sha
11
11
  end
12
12
 
13
13
  def init(wiki)
14
14
  @wiki = wiki
15
- @current_head = @wiki.repo.head.commit.sha
15
+ @current_head = get_head_sha
16
16
  end
17
17
 
18
18
  def load
@@ -33,6 +33,10 @@ module Gollum
33
33
  @wiki.overwrite_file(REDIRECTS_FILE, self.to_yaml, {})
34
34
  end
35
35
 
36
+ def get_head_sha
37
+ @wiki.repo.head ? @wiki.repo.head.commit.sha : nil
38
+ end
39
+
36
40
  end # Redirects Module
37
41
 
38
42
  end # Gollum Module
@@ -1,5 +1,5 @@
1
1
  module Gollum
2
2
  module Lib
3
- VERSION = '5.0.1'
3
+ VERSION = '5.0.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,275 +1,270 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.0.6
5
5
  platform: java
6
6
  authors:
7
7
  - Tom Preston-Werner
8
8
  - Rick Olson
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2017-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
+ name: gollum-rjgit_adapter
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 0.5.1
20
18
  - - "~>"
21
19
  - !ruby/object:Gem::Version
22
- version: 0.5.1
23
- name: gollum-rjgit_adapter
24
- prerelease: false
20
+ version: '0.6'
25
21
  type: :runtime
22
+ prerelease: false
26
23
  version_requirements: !ruby/object:Gem::Requirement
27
24
  requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- version: 0.5.1
31
25
  - - "~>"
32
26
  - !ruby/object:Gem::Version
33
- version: 0.5.1
27
+ version: '0.6'
34
28
  - !ruby/object:Gem::Dependency
29
+ name: rouge
35
30
  requirement: !ruby/object:Gem::Requirement
36
31
  requirements:
37
32
  - - "~>"
38
33
  - !ruby/object:Gem::Version
39
34
  version: '3.1'
40
- name: rouge
41
- prerelease: false
42
35
  type: :runtime
36
+ prerelease: false
43
37
  version_requirements: !ruby/object:Gem::Requirement
44
38
  requirements:
45
39
  - - "~>"
46
40
  - !ruby/object:Gem::Version
47
41
  version: '3.1'
48
42
  - !ruby/object:Gem::Dependency
43
+ name: nokogiri
49
44
  requirement: !ruby/object:Gem::Requirement
50
45
  requirements:
51
46
  - - "~>"
52
47
  - !ruby/object:Gem::Version
53
48
  version: '1.8'
54
- name: nokogiri
55
- prerelease: false
56
49
  type: :runtime
50
+ prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
52
  requirements:
59
53
  - - "~>"
60
54
  - !ruby/object:Gem::Version
61
55
  version: '1.8'
62
56
  - !ruby/object:Gem::Dependency
57
+ name: loofah
63
58
  requirement: !ruby/object:Gem::Requirement
64
59
  requirements:
65
60
  - - "~>"
66
61
  - !ruby/object:Gem::Version
67
62
  version: '2.3'
68
- name: loofah
69
- prerelease: false
70
63
  type: :runtime
64
+ prerelease: false
71
65
  version_requirements: !ruby/object:Gem::Requirement
72
66
  requirements:
73
67
  - - "~>"
74
68
  - !ruby/object:Gem::Version
75
69
  version: '2.3'
76
70
  - !ruby/object:Gem::Dependency
71
+ name: github-markup
77
72
  requirement: !ruby/object:Gem::Requirement
78
73
  requirements:
79
74
  - - "~>"
80
75
  - !ruby/object:Gem::Version
81
76
  version: '3.0'
82
- name: github-markup
83
- prerelease: false
84
77
  type: :runtime
78
+ prerelease: false
85
79
  version_requirements: !ruby/object:Gem::Requirement
86
80
  requirements:
87
81
  - - "~>"
88
82
  - !ruby/object:Gem::Version
89
83
  version: '3.0'
90
84
  - !ruby/object:Gem::Dependency
85
+ name: gemojione
91
86
  requirement: !ruby/object:Gem::Requirement
92
87
  requirements:
93
88
  - - "~>"
94
89
  - !ruby/object:Gem::Version
95
90
  version: '4.1'
96
- name: gemojione
97
- prerelease: false
98
91
  type: :runtime
92
+ prerelease: false
99
93
  version_requirements: !ruby/object:Gem::Requirement
100
94
  requirements:
101
95
  - - "~>"
102
96
  - !ruby/object:Gem::Version
103
97
  version: '4.1'
104
98
  - !ruby/object:Gem::Dependency
99
+ name: octicons
105
100
  requirement: !ruby/object:Gem::Requirement
106
101
  requirements:
107
102
  - - "~>"
108
103
  - !ruby/object:Gem::Version
109
104
  version: '8.5'
110
- name: octicons
111
- prerelease: false
112
105
  type: :runtime
106
+ prerelease: false
113
107
  version_requirements: !ruby/object:Gem::Requirement
114
108
  requirements:
115
109
  - - "~>"
116
110
  - !ruby/object:Gem::Version
117
111
  version: '8.5'
118
112
  - !ruby/object:Gem::Dependency
113
+ name: twitter-text
119
114
  requirement: !ruby/object:Gem::Requirement
120
115
  requirements:
121
116
  - - '='
122
117
  - !ruby/object:Gem::Version
123
118
  version: 1.14.7
124
- name: twitter-text
125
- prerelease: false
126
119
  type: :runtime
120
+ prerelease: false
127
121
  version_requirements: !ruby/object:Gem::Requirement
128
122
  requirements:
129
123
  - - '='
130
124
  - !ruby/object:Gem::Version
131
125
  version: 1.14.7
132
126
  - !ruby/object:Gem::Dependency
127
+ name: org-ruby
133
128
  requirement: !ruby/object:Gem::Requirement
134
129
  requirements:
135
130
  - - "~>"
136
131
  - !ruby/object:Gem::Version
137
132
  version: 0.9.9
138
- name: org-ruby
139
- prerelease: false
140
133
  type: :development
134
+ prerelease: false
141
135
  version_requirements: !ruby/object:Gem::Requirement
142
136
  requirements:
143
137
  - - "~>"
144
138
  - !ruby/object:Gem::Version
145
139
  version: 0.9.9
146
140
  - !ruby/object:Gem::Dependency
141
+ name: kramdown
147
142
  requirement: !ruby/object:Gem::Requirement
148
143
  requirements:
149
144
  - - "~>"
150
145
  - !ruby/object:Gem::Version
151
146
  version: 2.1.0
152
- name: kramdown
153
- prerelease: false
154
147
  type: :development
148
+ prerelease: false
155
149
  version_requirements: !ruby/object:Gem::Requirement
156
150
  requirements:
157
151
  - - "~>"
158
152
  - !ruby/object:Gem::Version
159
153
  version: 2.1.0
160
154
  - !ruby/object:Gem::Dependency
155
+ name: kramdown-parser-gfm
161
156
  requirement: !ruby/object:Gem::Requirement
162
157
  requirements:
163
158
  - - "~>"
164
159
  - !ruby/object:Gem::Version
165
160
  version: 1.1.0
166
- name: kramdown-parser-gfm
167
- prerelease: false
168
161
  type: :development
162
+ prerelease: false
169
163
  version_requirements: !ruby/object:Gem::Requirement
170
164
  requirements:
171
165
  - - "~>"
172
166
  - !ruby/object:Gem::Version
173
167
  version: 1.1.0
174
168
  - !ruby/object:Gem::Dependency
169
+ name: RedCloth
175
170
  requirement: !ruby/object:Gem::Requirement
176
171
  requirements:
177
172
  - - "~>"
178
173
  - !ruby/object:Gem::Version
179
174
  version: 4.2.9
180
- name: RedCloth
181
- prerelease: false
182
175
  type: :development
176
+ prerelease: false
183
177
  version_requirements: !ruby/object:Gem::Requirement
184
178
  requirements:
185
179
  - - "~>"
186
180
  - !ruby/object:Gem::Version
187
181
  version: 4.2.9
188
182
  - !ruby/object:Gem::Dependency
183
+ name: mocha
189
184
  requirement: !ruby/object:Gem::Requirement
190
185
  requirements:
191
186
  - - "~>"
192
187
  - !ruby/object:Gem::Version
193
188
  version: 1.2.0
194
- name: mocha
195
- prerelease: false
196
189
  type: :development
190
+ prerelease: false
197
191
  version_requirements: !ruby/object:Gem::Requirement
198
192
  requirements:
199
193
  - - "~>"
200
194
  - !ruby/object:Gem::Version
201
195
  version: 1.2.0
202
196
  - !ruby/object:Gem::Dependency
197
+ name: shoulda
203
198
  requirement: !ruby/object:Gem::Requirement
204
199
  requirements:
205
200
  - - "~>"
206
201
  - !ruby/object:Gem::Version
207
202
  version: 3.5.0
208
- name: shoulda
209
- prerelease: false
210
203
  type: :development
204
+ prerelease: false
211
205
  version_requirements: !ruby/object:Gem::Requirement
212
206
  requirements:
213
207
  - - "~>"
214
208
  - !ruby/object:Gem::Version
215
209
  version: 3.5.0
216
210
  - !ruby/object:Gem::Dependency
211
+ name: wikicloth
217
212
  requirement: !ruby/object:Gem::Requirement
218
213
  requirements:
219
214
  - - "~>"
220
215
  - !ruby/object:Gem::Version
221
216
  version: 0.8.3
222
- name: wikicloth
223
- prerelease: false
224
217
  type: :development
218
+ prerelease: false
225
219
  version_requirements: !ruby/object:Gem::Requirement
226
220
  requirements:
227
221
  - - "~>"
228
222
  - !ruby/object:Gem::Version
229
223
  version: 0.8.3
230
224
  - !ruby/object:Gem::Dependency
225
+ name: bibtex-ruby
231
226
  requirement: !ruby/object:Gem::Requirement
232
227
  requirements:
233
228
  - - "~>"
234
229
  - !ruby/object:Gem::Version
235
230
  version: '4.3'
236
- name: bibtex-ruby
237
- prerelease: false
238
231
  type: :development
232
+ prerelease: false
239
233
  version_requirements: !ruby/object:Gem::Requirement
240
234
  requirements:
241
235
  - - "~>"
242
236
  - !ruby/object:Gem::Version
243
237
  version: '4.3'
244
238
  - !ruby/object:Gem::Dependency
239
+ name: citeproc-ruby
245
240
  requirement: !ruby/object:Gem::Requirement
246
241
  requirements:
247
242
  - - "~>"
248
243
  - !ruby/object:Gem::Version
249
244
  version: '1.1'
250
- name: citeproc-ruby
251
- prerelease: false
252
245
  type: :development
246
+ prerelease: false
253
247
  version_requirements: !ruby/object:Gem::Requirement
254
248
  requirements:
255
249
  - - "~>"
256
250
  - !ruby/object:Gem::Version
257
251
  version: '1.1'
258
252
  - !ruby/object:Gem::Dependency
253
+ name: unicode_utils
259
254
  requirement: !ruby/object:Gem::Requirement
260
255
  requirements:
261
256
  - - "~>"
262
257
  - !ruby/object:Gem::Version
263
258
  version: 1.4.0
264
- name: unicode_utils
265
- prerelease: false
266
259
  type: :development
260
+ prerelease: false
267
261
  version_requirements: !ruby/object:Gem::Requirement
268
262
  requirements:
269
263
  - - "~>"
270
264
  - !ruby/object:Gem::Version
271
265
  version: 1.4.0
272
266
  - !ruby/object:Gem::Dependency
267
+ name: rake
273
268
  requirement: !ruby/object:Gem::Requirement
274
269
  requirements:
275
270
  - - "~>"
@@ -278,9 +273,8 @@ dependencies:
278
273
  - - ">="
279
274
  - !ruby/object:Gem::Version
280
275
  version: 12.3.3
281
- name: rake
282
- prerelease: false
283
276
  type: :development
277
+ prerelease: false
284
278
  version_requirements: !ruby/object:Gem::Requirement
285
279
  requirements:
286
280
  - - "~>"
@@ -290,154 +284,154 @@ dependencies:
290
284
  - !ruby/object:Gem::Version
291
285
  version: 12.3.3
292
286
  - !ruby/object:Gem::Dependency
287
+ name: pry
293
288
  requirement: !ruby/object:Gem::Requirement
294
289
  requirements:
295
290
  - - "~>"
296
291
  - !ruby/object:Gem::Version
297
292
  version: 0.10.1
298
- name: pry
299
- prerelease: false
300
293
  type: :development
294
+ prerelease: false
301
295
  version_requirements: !ruby/object:Gem::Requirement
302
296
  requirements:
303
297
  - - "~>"
304
298
  - !ruby/object:Gem::Version
305
299
  version: 0.10.1
306
300
  - !ruby/object:Gem::Dependency
301
+ name: rb-readline
307
302
  requirement: !ruby/object:Gem::Requirement
308
303
  requirements:
309
304
  - - "~>"
310
305
  - !ruby/object:Gem::Version
311
306
  version: 0.5.1
312
- name: rb-readline
313
- prerelease: false
314
307
  type: :development
308
+ prerelease: false
315
309
  version_requirements: !ruby/object:Gem::Requirement
316
310
  requirements:
317
311
  - - "~>"
318
312
  - !ruby/object:Gem::Version
319
313
  version: 0.5.1
320
314
  - !ruby/object:Gem::Dependency
315
+ name: test-unit
321
316
  requirement: !ruby/object:Gem::Requirement
322
317
  requirements:
323
318
  - - "~>"
324
319
  - !ruby/object:Gem::Version
325
320
  version: 3.1.5
326
- name: test-unit
327
- prerelease: false
328
321
  type: :development
322
+ prerelease: false
329
323
  version_requirements: !ruby/object:Gem::Requirement
330
324
  requirements:
331
325
  - - "~>"
332
326
  - !ruby/object:Gem::Version
333
327
  version: 3.1.5
334
328
  - !ruby/object:Gem::Dependency
329
+ name: minitest-reporters
335
330
  requirement: !ruby/object:Gem::Requirement
336
331
  requirements:
337
332
  - - "~>"
338
333
  - !ruby/object:Gem::Version
339
334
  version: '1.4'
340
- name: minitest-reporters
341
- prerelease: false
342
335
  type: :development
336
+ prerelease: false
343
337
  version_requirements: !ruby/object:Gem::Requirement
344
338
  requirements:
345
339
  - - "~>"
346
340
  - !ruby/object:Gem::Version
347
341
  version: '1.4'
348
342
  - !ruby/object:Gem::Dependency
343
+ name: nokogiri-diff
349
344
  requirement: !ruby/object:Gem::Requirement
350
345
  requirements:
351
346
  - - "~>"
352
347
  - !ruby/object:Gem::Version
353
348
  version: 0.2.0
354
- name: nokogiri-diff
355
- prerelease: false
356
349
  type: :development
350
+ prerelease: false
357
351
  version_requirements: !ruby/object:Gem::Requirement
358
352
  requirements:
359
353
  - - "~>"
360
354
  - !ruby/object:Gem::Version
361
355
  version: 0.2.0
362
356
  - !ruby/object:Gem::Dependency
357
+ name: guard
363
358
  requirement: !ruby/object:Gem::Requirement
364
359
  requirements:
365
360
  - - "~>"
366
361
  - !ruby/object:Gem::Version
367
362
  version: 2.8.2
368
- name: guard
369
- prerelease: false
370
363
  type: :development
364
+ prerelease: false
371
365
  version_requirements: !ruby/object:Gem::Requirement
372
366
  requirements:
373
367
  - - "~>"
374
368
  - !ruby/object:Gem::Version
375
369
  version: 2.8.2
376
370
  - !ruby/object:Gem::Dependency
371
+ name: guard-minitest
377
372
  requirement: !ruby/object:Gem::Requirement
378
373
  requirements:
379
374
  - - "~>"
380
375
  - !ruby/object:Gem::Version
381
376
  version: 2.3.2
382
- name: guard-minitest
383
- prerelease: false
384
377
  type: :development
378
+ prerelease: false
385
379
  version_requirements: !ruby/object:Gem::Requirement
386
380
  requirements:
387
381
  - - "~>"
388
382
  - !ruby/object:Gem::Version
389
383
  version: 2.3.2
390
384
  - !ruby/object:Gem::Dependency
385
+ name: rb-inotify
391
386
  requirement: !ruby/object:Gem::Requirement
392
387
  requirements:
393
388
  - - "~>"
394
389
  - !ruby/object:Gem::Version
395
390
  version: 0.9.3
396
- name: rb-inotify
397
- prerelease: false
398
391
  type: :development
392
+ prerelease: false
399
393
  version_requirements: !ruby/object:Gem::Requirement
400
394
  requirements:
401
395
  - - "~>"
402
396
  - !ruby/object:Gem::Version
403
397
  version: 0.9.3
404
398
  - !ruby/object:Gem::Dependency
399
+ name: rb-fsevent
405
400
  requirement: !ruby/object:Gem::Requirement
406
401
  requirements:
407
402
  - - "~>"
408
403
  - !ruby/object:Gem::Version
409
404
  version: 0.9.4
410
- name: rb-fsevent
411
- prerelease: false
412
405
  type: :development
406
+ prerelease: false
413
407
  version_requirements: !ruby/object:Gem::Requirement
414
408
  requirements:
415
409
  - - "~>"
416
410
  - !ruby/object:Gem::Version
417
411
  version: 0.9.4
418
412
  - !ruby/object:Gem::Dependency
413
+ name: rb-fchange
419
414
  requirement: !ruby/object:Gem::Requirement
420
415
  requirements:
421
416
  - - "~>"
422
417
  - !ruby/object:Gem::Version
423
418
  version: 0.0.6
424
- name: rb-fchange
425
- prerelease: false
426
419
  type: :development
420
+ prerelease: false
427
421
  version_requirements: !ruby/object:Gem::Requirement
428
422
  requirements:
429
423
  - - "~>"
430
424
  - !ruby/object:Gem::Version
431
425
  version: 0.0.6
432
426
  - !ruby/object:Gem::Dependency
427
+ name: twitter_cldr
433
428
  requirement: !ruby/object:Gem::Requirement
434
429
  requirements:
435
430
  - - "~>"
436
431
  - !ruby/object:Gem::Version
437
432
  version: 3.1.0
438
- name: twitter_cldr
439
- prerelease: false
440
433
  type: :development
434
+ prerelease: false
441
435
  version_requirements: !ruby/object:Gem::Requirement
442
436
  requirements:
443
437
  - - "~>"
@@ -456,7 +450,6 @@ files:
456
450
  - LICENSE
457
451
  - README.md
458
452
  - Rakefile
459
- - adapter_dependencies.rb
460
453
  - docs/sanitization.md
461
454
  - gemspec.rb
462
455
  - gollum-lib.gemspec
@@ -507,7 +500,7 @@ homepage: http://github.com/gollum/gollum-lib
507
500
  licenses:
508
501
  - MIT
509
502
  metadata: {}
510
- post_install_message:
503
+ post_install_message:
511
504
  rdoc_options:
512
505
  - "--charset=UTF-8"
513
506
  require_paths:
@@ -523,9 +516,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
523
516
  - !ruby/object:Gem::Version
524
517
  version: '0'
525
518
  requirements: []
526
- rubyforge_project: gollum-lib
527
- rubygems_version: 2.7.10
528
- signing_key:
519
+ rubygems_version: 3.0.3
520
+ signing_key:
529
521
  specification_version: 2
530
522
  summary: A simple, Git-powered wiki.
531
523
  test_files: []
@@ -1,7 +0,0 @@
1
- # Set the default git adapter for use in gollum-lib.gemspec and gollum-lib_java.gemspec
2
-
3
- if RUBY_PLATFORM == 'java' then
4
- DEFAULT_ADAPTER_REQ = ['gollum-rjgit_adapter', '>= 0.5.1', '~> 0.5.1']
5
- else
6
- DEFAULT_ADAPTER_REQ = ['gollum-rugged_adapter', '>= 0.99.4', '~> 0.99.4']
7
- end