gitlab-gollum-lib 4.2.7.7 → 4.2.7.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3ad328bee9b70bba0418001e4a5503610a1a26d8
4
- data.tar.gz: dd9b959261b0ec13b647941b3dd5df90f087913c
2
+ SHA256:
3
+ metadata.gz: d3638f39cb5c30df11d89f6f49bc068a4bf9b730f665dd919118cc5c5b8ac140
4
+ data.tar.gz: 7c988399cbe9d428aa48bb7e665d35b260ce6aae362eddb6b799b262ea37ba8b
5
5
  SHA512:
6
- metadata.gz: bd82f0009c1df043add484a9cdebdda584fde1bde3d5a548c5fc34e1a78ef7ad43fd3b3048878c07f477dce973d39c43b937e31541fcaaf0691d209e01f06298
7
- data.tar.gz: 2b257ac9b7d4929cf64220131e7e35f73f3197a8cbb169b575e2e59fa58963807979ed5bd2b89906663cb10b8758662d2fd3eb74ac1fea7f762c142431568067
6
+ metadata.gz: afcc6138b7587b2b690c9316678f06447536ade1ff03f05d12fdbd1def2a23272fa834664004ecd10c0716700b9f31c88db097eabd9e7bda1f0d3f05ddcbfdaf
7
+ data.tar.gz: 7e2e37d9b457d12ff35d92f6798abd56496d95a469906646ce2e3c16b7fd5c2c9f905d919520705be07a0ee72dba219a3eaeb094ca4ad28982df742c34969309
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  gollum lib -- A wiki built on top of Git [![build status](https://ci.gitlab.org/projects/7/status.png?ref=master)](https://ci.gitlab.org/projects/7?ref=master)
2
2
  ========================================
3
3
 
4
+ [![pipeline status](https://gitlab.com/gitlab-org/gollum-lib/badges/master/pipeline.svg)](https://gitlab.com/gitlab-org/gollum-lib/-/commits/master)
4
5
  [![Gem Version](https://badge.fury.io/rb/gollum-lib.svg)](http://badge.fury.io/rb/gollum-lib)
5
6
  [![Build Status](https://travis-ci.org/gollum/gollum-lib.svg?branch=master)](https://travis-ci.org/gollum/gollum-lib)
6
7
  [![Dependency Status](https://gemnasium.com/gollum/gollum-lib.svg)](https://gemnasium.com/gollum/gollum-lib)
@@ -21,7 +22,8 @@ Gollum-lib follows the rules of [Semantic Versioning](http://semver.org/) and us
21
22
 
22
23
  - Ruby 1.9.3+ (>2.0 recommended)
23
24
  - Unix like operating system (OS X, Ubuntu, Debian, and more)
24
- - Will not work on Windows with the default [grit](https://github.com/github/grit) adapter, but might work via JRuby (please let us know!)
25
+ - By default the [Rugged adapter](https://gitlab.com/gitlab-org/gitlab-gollum-rugged_adapter) is used for MRI, and [RJGit](https://github.com/gollum/rjgit_adapter) for JRuby.
26
+ - Will not work on Windows with the [grit](https://github.com/github/grit) adapter, but might work via JRuby (please let us know!)
25
27
 
26
28
  ## INSTALLATION
27
29
 
data/gemspec.rb CHANGED
@@ -39,7 +39,9 @@ def specification(version, default_adapter, platform = nil)
39
39
  s.add_development_dependency 'RedCloth', '~> 4.2.9'
40
40
  s.add_development_dependency 'mocha', '~> 1.1.0'
41
41
  s.add_development_dependency 'shoulda', '~> 3.5.0'
42
- s.add_development_dependency 'wikicloth', '~> 0.8.3'
42
+ # 0.8.2 is incompatible with the latest twitter-text gem, this is fixed in master
43
+ # https://github.com/nricciar/wikicloth/commit/60e863239452924ea60c91ba1fe07d37f1e13801
44
+ s.add_development_dependency 'wikicloth', '0.8.1'
43
45
  s.add_development_dependency 'rake', '~> 10.4.0'
44
46
  s.add_development_dependency 'pry', '~> 0.10.1'
45
47
  # required by pry
@@ -2,7 +2,9 @@ require File.join(File.dirname(__FILE__), 'gemspec.rb')
2
2
  require File.join(File.dirname(__FILE__), 'lib', 'gollum-lib', 'version.rb')
3
3
  if RUBY_PLATFORM == 'java' then
4
4
  default_adapter = ['gollum-rjgit_adapter', '~> 0.3']
5
- else
5
+ elsif ENV['GOLLUM_ADAPTER'] == 'grit'
6
6
  default_adapter = ['gollum-grit_adapter', '~> 1.0']
7
+ else
8
+ default_adapter = ['gitlab-gollum-rugged_adapter', '~> 0.4.4.2']
7
9
  end
8
10
  Gem::Specification.new &specification(Gollum::Lib::VERSION, default_adapter)
@@ -5,7 +5,13 @@ require 'digest/sha1'
5
5
  require 'ostruct'
6
6
  require 'pathname'
7
7
 
8
- DEFAULT_ADAPTER = RUBY_PLATFORM == 'java' ? 'rjgit_adapter' : 'grit_adapter'
8
+ DEFAULT_ADAPTER = if RUBY_PLATFORM == 'java'
9
+ 'rjgit_adapter'
10
+ elsif ENV['GOLLUM_ADAPTER'] == 'grit'
11
+ 'grit_adapter'
12
+ else
13
+ 'rugged_adapter'
14
+ end
9
15
 
10
16
  if defined?(Gollum::GIT_ADAPTER)
11
17
  require "#{Gollum::GIT_ADAPTER.downcase}_adapter"
@@ -115,14 +115,7 @@ module Gollum
115
115
  self.class.canonicalize_filename(filename)
116
116
  end
117
117
 
118
- # Public: The title will be constructed from the
119
- # filename by stripping the extension and replacing any dashes with
120
- # spaces.
121
- #
122
- # Returns the fully sanitized String title.
123
- def title
124
- Sanitize.clean(name).strip
125
- end
118
+ alias_method :title, :name
126
119
 
127
120
  # Public: Determines if this is a sub-page
128
121
  # Sub-pages have filenames beginning with an underscore
@@ -1,5 +1,5 @@
1
1
  module Gollum
2
2
  module Lib
3
- VERSION = '4.2.7.7'
3
+ VERSION = '4.2.7.8'
4
4
  end
5
5
  end
@@ -345,13 +345,11 @@ module Gollum
345
345
  multi_commit = !!commit[:committer]
346
346
  committer = multi_commit ? commit[:committer] : Committer.new(self, commit)
347
347
 
348
- filename = Gollum::Page.cname(sanitized_name)
349
-
350
- committer.add_to_index(sanitized_dir, filename, format, data)
348
+ committer.add_to_index(sanitized_dir, sanitized_name, format, data)
351
349
 
352
350
  committer.after_commit do |index, _sha|
353
351
  @access.refresh
354
- index.update_working_dir(sanitized_dir, filename, format)
352
+ index.update_working_dir(sanitized_dir, sanitized_name, format)
355
353
  end
356
354
 
357
355
  multi_commit ? committer : committer.commit
@@ -444,7 +442,7 @@ module Gollum
444
442
  format ||= page.format
445
443
  dir = ::File.dirname(page.path)
446
444
  dir = '' if dir == '.'
447
- filename = (rename = page.name != name) ? Gollum::Page.cname(name) : page.filename_stripped
445
+ filename = (rename = page.name != name) ? name.gsub(' ', '-') : page.filename_stripped
448
446
 
449
447
  multi_commit = !!commit[:committer]
450
448
  committer = multi_commit ? commit[:committer] : Committer.new(self, commit)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-gollum-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.7.7
4
+ version: 4.2.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-03-06 00:00:00.000000000 Z
12
+ date: 2020-02-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: gollum-grit_adapter
15
+ name: gitlab-gollum-rugged_adapter
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '1.0'
20
+ version: 0.4.4.2
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '1.0'
27
+ version: 0.4.4.2
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rouge
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -189,16 +189,16 @@ dependencies:
189
189
  name: wikicloth
190
190
  requirement: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - "~>"
192
+ - - '='
193
193
  - !ruby/object:Gem::Version
194
- version: 0.8.3
194
+ version: 0.8.1
195
195
  type: :development
196
196
  prerelease: false
197
197
  version_requirements: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - "~>"
199
+ - - '='
200
200
  - !ruby/object:Gem::Version
201
- version: 0.8.3
201
+ version: 0.8.1
202
202
  - !ruby/object:Gem::Dependency
203
203
  name: rake
204
204
  requirement: !ruby/object:Gem::Requirement
@@ -440,8 +440,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
440
440
  - !ruby/object:Gem::Version
441
441
  version: '0'
442
442
  requirements: []
443
- rubyforge_project:
444
- rubygems_version: 2.5.2
443
+ rubygems_version: 3.0.6
445
444
  signing_key:
446
445
  specification_version: 2
447
446
  summary: A simple, Git-powered wiki.