gollum-grit_adapter 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of gollum-grit_adapter might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MDA5YTliYjA0Yjc3YmQ1N2UwNTJlMTYyZmM1MDJkYjkwYjgxOWFkMQ==
5
- data.tar.gz: !binary |-
6
- ZjMwMzE0NzNkNGJmOTZlODA0NmY4N2ZhMzExMzAwMDQ3ZmE4NTNjYQ==
2
+ SHA1:
3
+ metadata.gz: 0d871bb42c88eabb6c791ce8da27246976c99468
4
+ data.tar.gz: 8e3c385dc460a6fbbbd57039c7dd1be9b81d1e09
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NzA4NjgyOGQzMGY1OGQ0ZWRlOGE3OTc3Nzc4OGI5MjYzYzQ2N2QxN2IwYjgw
10
- ODllZGVlY2U3ZDY1MGE2YmI5NGZjZDkzNzMyNDQxMzJjN2U2MTg5NWFmZjU3
11
- NDBjODRlZDRmNGI1M2I1YWRiZmJhN2M2MWM0ZjZlMjNjMjVhODQ=
12
- data.tar.gz: !binary |-
13
- ODA4NjYyZDZlNTMwMjBiZTg5Y2IxNDA0Y2JmNTI5Zjk5YzE2NWQxNGM0N2Vj
14
- OTgwNWQ5OTYxNjVjZDA2MTVkZTFlYTViYmEzYjEwMzRhNWUxMTllYjFhNzYz
15
- NDFlMzY0MDNlYTE4ZmYyMjc2NDg4N2VkYmY1NzZmMmJlZDY1NWU=
6
+ metadata.gz: 0b94c9ed9edaf6df005e2102b272d710f0d93f638602c5644b21023473848cfeeccbd0c534f47c69ca29a9ae7e4e28f75615836a925aa435cf53d4e784a09107
7
+ data.tar.gz: 76778c49ff74bdb69b75e325b01fe9ed4dd4e33f4abc1e153dd9cb9b1c26bc0fd1b707fd121c741619f47c909e86b0d1dcc1b9c51b142ba3763fe67d571ec369
data/README.md CHANGED
@@ -1 +1,17 @@
1
- Adapter for Gollum to use Grit at the backend
1
+ [![Gem Version](https://badge.fury.io/rb/gollum-grit_adapter.svg)](http://badge.fury.io/rb/gollum-grit_adapter)
2
+ [![Build Status](https://travis-ci.org/gollum/grit_adapter.svg?branch=master)](https://travis-ci.org/gollum/grit_adapter)
3
+
4
+ ## DESCRIPTION
5
+
6
+ Adapter for [gollum](https://github.com/gollum/gollum) to use Grit at the backend.
7
+
8
+ ## CONTRIBUTING
9
+
10
+ Make sure the [git adapter specs](https://github.com/gollum/adapter_specs) pass by running `rake`, but also make sure that the [gollum-lib](https://github.com/gollum/gollum-lib) specs pass when using your branch of this adapter as a backend:
11
+ * Clone the latest version of gollum-lib.
12
+ * Change gollum-lib's Gemfile so as to use your local version of this adapter, i.e.:
13
+ ```diff
14
+ -gem 'gollum-grit_adapter'
15
+ +gem 'gollum-grit_adapter', :path => "/path/to/your/gollum-lib_grit_adapter"
16
+ ```
17
+ * Run the gollum-lib specs and see if they pass.
@@ -132,8 +132,9 @@ module Gollum
132
132
  args << '--' << options[:path] if options[:path]
133
133
  result = @git.grep(*args).split("\n")
134
134
  result.map do |line|
135
- line = line.split(":")
136
- {:name => line[1], :count => line[2]}
135
+ branch_and_name, _, count = line.rpartition(":")
136
+ branch, _, name = branch_and_name.partition(':')
137
+ {:name => name, :count => count}
137
138
  end
138
139
  end
139
140
 
@@ -1,7 +1,7 @@
1
1
  module Gollum
2
2
  module Lib
3
3
  module Git
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum-grit_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bart Kamphorst, Dawa Ometto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-18 00:00:00.000000000 Z
11
+ date: 2014-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab-grit
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 2.6.5
19
+ version: 2.7.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 2.6.5
26
+ version: 2.7.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -45,11 +45,11 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - Gemfile
49
- - README.md
50
- - lib/grit_adapter.rb
51
48
  - lib/grit_adapter/git_layer_grit.rb
52
49
  - lib/grit_adapter/version.rb
50
+ - lib/grit_adapter.rb
51
+ - README.md
52
+ - Gemfile
53
53
  homepage: https://github.com/gollum/grit_adapter
54
54
  licenses:
55
55
  - MIT
@@ -60,17 +60,17 @@ require_paths:
60
60
  - lib
61
61
  required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
- - - ! '>='
63
+ - - '>='
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ! '>='
68
+ - - '>='
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
72
  rubyforge_project:
73
- rubygems_version: 2.4.1
73
+ rubygems_version: 2.0.0
74
74
  signing_key:
75
75
  specification_version: 4
76
76
  summary: Adapter for Gollum to use Grit at the backend.