repokeeper 0.0.2 → 0.0.3

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
2
  SHA1:
3
- metadata.gz: c0a4d70fa1b1a42dc5e758970189a3f408a31adc
4
- data.tar.gz: e74ab69c1261b64d1d5921a786e038994f60bd2a
3
+ metadata.gz: a49ed97e87f7255f8bbe21f395490f2e369fdfd0
4
+ data.tar.gz: ba9ba5fe84c2137c40fb00fb185f5ed9bd455071
5
5
  SHA512:
6
- metadata.gz: 36053e57ea6d1c76041c608f15038e45e14f86d3d7614c5ea8c3d1c0bcc56889e6f8b498fa66951094a02f55c64d4b3eabd6d969a75a48a92fb3a7ee197f601a
7
- data.tar.gz: 86677aa22199f03b20326a0be00e96ad99d7e9aea3fd4648914ff3ef36e493d3fc754f1ba5dfe07e7d1245e5afc1794e1c60443e7c4c098db2f93cc60b8ac834
6
+ metadata.gz: 37f17d9c968121f4b4cfab3f48f69fc1cb1109f894430238fb208115d0412f0fa460c0af81dbaf7fb6c30f390d8732bb2cefddda3cd8df1197658b4354198707
7
+ data.tar.gz: 855d32d62fc3bcf9786f0bf210d88a5e812071dbdc599601ee58428b7a09b7373f831d648f67657a99d98069a2302e49cde78dd5a448752e79073049d6999c82
data/README.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # Repokeeper
2
2
 
3
+ [![Code Climate](http://img.shields.io/codeclimate/github/antlypls/repokeeper.svg?style=flat)](https://codeclimate.com/github/antlypls/repokeeper)
4
+ [![Build Status](http://img.shields.io/travis/antlypls/repokeeper.svg?style=flat)](https://travis-ci.org/antlypls/repokeeper)
5
+ [![Coverage Status](http://img.shields.io/coveralls/antlypls/repokeeper.svg?style=flat)](https://coveralls.io/r/antlypls/repokeeper)
6
+
3
7
  ## What's all this about?
4
8
 
5
9
  Repokeeper is a tool for git repositories analysis that highlights common
6
10
  flaws/bad practices in a workflow.
7
11
 
8
- ## Flaws in workflow? What does it mean?
9
-
10
- Flaws commonly seen in repository management.
11
-
12
12
  ## Why do I need a tool for this?
13
13
 
14
14
  There are many tools for static code analysis like rubocop, flay, flog,
@@ -20,7 +20,6 @@ commits merged into master branch is a bad idea).
20
20
  By using Repokeeper, you can explore what was wrong in project's history, and
21
21
  then adjust your process accordingly.
22
22
 
23
-
24
23
  Problems with project management usually leave traces in repository history and
25
24
  structure.
26
25
  For instance, a rush in delivery of features to production can lead to debugging
@@ -97,6 +96,15 @@ from current directory even if it exists.
97
96
  If you are annoyed by tons of merge commits warnings, you can disable it,
98
97
  by `enabled: false` option in config file.
99
98
 
99
+ ## Can I specify which commits to analyze?
100
+
101
+ By default repokeeper analyzes commits reachable from `HEAD`.
102
+ But you can use `-r` option to specify revisions to analyze:
103
+
104
+ * `-r rev1` analyze commits that are reachable from `rev1`
105
+ * `-r rev1..rev2` analyze commits that are reachable from `rev2` but exclude
106
+ those that are reachable from `rev1`.
107
+
100
108
  ## More fun with custom formatters
101
109
 
102
110
  You can provide custom formatter class to change output the way you want,
@@ -170,14 +178,9 @@ And everything is ready to run:
170
178
  You know what to do.
171
179
  But don't forget to run `repokeeper` against your new commits ;)
172
180
 
181
+ ## Credits
173
182
 
174
- ## Contact
175
-
176
- Anatoliy Plastinin
177
-
178
- - http://github.com/antlypls
179
- - http://twitter.com/antlypls
180
- - hello@antlypls.com
183
+ Repokeeper is by [Anatoliy Plastinin](http://antlypls.com).
181
184
 
182
185
  ## License
183
186
 
@@ -1,6 +1,6 @@
1
1
  module Repokeeper
2
2
  module Offenses
3
- class BranchesOffense < Struct.new(:branches, :message, :analyzer_name)
3
+ BranchesOffense = Struct.new(:branches, :message, :analyzer_name) do
4
4
  # we want Array(offense) to return [offense]
5
5
  undef_method :to_a
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module Repokeeper
2
2
  module Offenses
3
- class CommitOffense < Struct.new(:commit, :message, :analyzer_name)
3
+ CommitOffense = Struct.new(:commit, :message, :analyzer_name) do
4
4
  # we want Array(offense) to return [offense]
5
5
  undef_method :to_a
6
6
  end
@@ -30,7 +30,7 @@ module Repokeeper
30
30
  def enabled_analyzers(collection)
31
31
  collection
32
32
  .map { |analyzer_class| instantiate_analyzer(analyzer_class) }
33
- .select { |analyzer| analyzer.enabled? }
33
+ .select(&:enabled?)
34
34
  end
35
35
 
36
36
  def enabled_commits_analyzers
@@ -1,3 +1,3 @@
1
1
  module Repokeeper
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repokeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatoliy Plastinin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-29 00:00:00.000000000 Z
11
+ date: 2016-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.21'
19
+ version: 0.21.0
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: '0.21'
26
+ version: 0.21.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: methadone
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.4.1
126
+ rubygems_version: 2.4.7
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Repokeeper - git repo analysis tool