git-commit-notifier 0.12.2 → 0.12.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Not yet released
4
4
 
5
+ ## Version 0.12.3
6
+
7
+ * Links updated for Gitlab 5.x
8
+
5
9
  ## Version 0.12.2
6
10
 
7
11
  * Restrict `nokogiri` gem version to be lower than 1.6.0 to allow Ruby 1.8.7 installations.
data/Gemfile CHANGED
@@ -4,6 +4,10 @@ gemspec
4
4
 
5
5
  gem "rcov", :group => :test, :platforms => :mri_18
6
6
  gem "erubis", "~> 2.7"
7
+
7
8
  gem "ripper", :group => :development, :platforms => :mri_18
9
+ gem "redcarpet", "~> 3.0", :group => :development, :platforms => :mri
10
+ gem "yard-redcarpet-ext", "~> 0.0.3", :group => :development, :platforms => :mri
11
+ gem "maruku", :group => :development, :platforms => :jruby
8
12
 
9
13
  gem "coveralls", :require => false, :platforms => [:mri_19, :mri_20], :group => :development
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.2
1
+ 0.12.3
@@ -39,6 +39,4 @@ Gem::Specification.new do |s|
39
39
  s.add_development_dependency(%q<rr>, ["~> 1.0"])
40
40
  s.add_development_dependency(%q<faker>, ["~> 1.1.2"])
41
41
  s.add_development_dependency(%q<yard>, ["~> 0.8.1"])
42
- s.add_development_dependency(%q<redcarpet>, ["~> 3.0"])
43
- s.add_development_dependency(%q<yard-redcarpet-ext>, ["~> 0.0.3"])
44
42
  end
@@ -215,6 +215,8 @@ module GitCommitNotifier
215
215
  elsif config["link_files"] == "gitlabhq" && config["gitlabhq"]
216
216
  if config["gitlabhq"]["version"] && config["gitlabhq"]["version"] < 1.2
217
217
  "<a href='#{config['gitlabhq']['path']}/#{Git.repo_name.gsub(".", "_")}/tree/#{@current_commit}/#{file_name}'>#{file_name}</a>"
218
+ elsif config["gitlabhq"]["version"] && config["gitlabhq"]["version"] >= 5.0
219
+ "<a href='#{config['gitlabhq']['path']}/#{Git.repo_name_with_parent.gsub(".", "_")}/blob/#{@current_commit}/#{file_name}'>#{file_name}</a>"
218
220
  elsif config["gitlabhq"]["version"] && config["gitlabhq"]["version"] >= 4.0
219
221
  "<a href='#{config['gitlabhq']['path']}/#{Git.repo_name_with_parent.gsub(".", "_")}/commit/#{@current_commit}'>#{file_name}</a>"
220
222
  else
@@ -536,7 +538,9 @@ module GitCommitNotifier
536
538
  :trac => lambda { |config, commit| "<a href='#{config['trac']['path']}/#{commit}'>#{commit}</a>" },
537
539
  :cgit => lambda { |config, commit| "<a href='#{config['cgit']['path']}/#{config['cgit']['project'] || "#{Git.repo_name_real}"}/commit/?id=#{commit}'>#{commit}</a>" },
538
540
  :gitlabhq => lambda { |config, commit|
539
- if config['gitlabhq']['version'] >= 4.0
541
+ if config['gitlabhq']['version'] >= 5.0
542
+ "<a href='#{config['gitlabhq']['path']}/#{Git.repo_name_with_parent.gsub(".", "_")}/commit/#{commit}'>#{commit}</a>"
543
+ elsif config['gitlabhq']['version'] >= 4.0
540
544
  "<a href='#{config['gitlabhq']['path']}/#{Git.repo_name_with_parent.gsub(".", "_")}/commits/#{commit}'>#{commit}</a>"
541
545
  else
542
546
  "<a href='#{config['gitlabhq']['path']}/#{Git.repo_name.gsub(".", "_")}/commits/#{commit}'>#{commit}</a>"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-commit-notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.12.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-10-22 00:00:00.000000000 Z
13
+ date: 2013-11-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: diff-lcs
@@ -244,38 +244,6 @@ dependencies:
244
244
  - - ~>
245
245
  - !ruby/object:Gem::Version
246
246
  version: 0.8.1
247
- - !ruby/object:Gem::Dependency
248
- name: redcarpet
249
- requirement: !ruby/object:Gem::Requirement
250
- none: false
251
- requirements:
252
- - - ~>
253
- - !ruby/object:Gem::Version
254
- version: '3.0'
255
- type: :development
256
- prerelease: false
257
- version_requirements: !ruby/object:Gem::Requirement
258
- none: false
259
- requirements:
260
- - - ~>
261
- - !ruby/object:Gem::Version
262
- version: '3.0'
263
- - !ruby/object:Gem::Dependency
264
- name: yard-redcarpet-ext
265
- requirement: !ruby/object:Gem::Requirement
266
- none: false
267
- requirements:
268
- - - ~>
269
- - !ruby/object:Gem::Version
270
- version: 0.0.3
271
- type: :development
272
- prerelease: false
273
- version_requirements: !ruby/object:Gem::Requirement
274
- none: false
275
- requirements:
276
- - - ~>
277
- - !ruby/object:Gem::Version
278
- version: 0.0.3
279
247
  description: This git commit notifier sends html mails with nice diffs for every changed
280
248
  file.
281
249
  email: bodo@bitboxer.de
@@ -356,7 +324,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
356
324
  version: '0'
357
325
  segments:
358
326
  - 0
359
- hash: -144969551668064151
327
+ hash: 1331678205794572639
360
328
  required_rubygems_version: !ruby/object:Gem::Requirement
361
329
  none: false
362
330
  requirements: