reevoocop 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZTFmZmRjYWNlN2EyZGI0ODRkODlmOTM5NDhkYTc3ZjlkODQ2MTgxNg==
5
+ data.tar.gz: !binary |-
6
+ NTU1NTYzYjMxZjU3NWY3OGY1MWNlN2IyN2U4YzBmYWIwNmEwNDE4Ng==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YTY0YTIzM2M2MGMyMjI5OTQ2MDI4NjNlYTRiYzEwMzQzZmVjM2EyMWJkYTYx
10
+ ODQwMGE3ZGVhMTJlNDg4YzhhZWZmMTY4Zjk3YjgyM2JmOGNhOGQ1ZTAxY2Qx
11
+ OWMwZWUyZjUxNzIzNGFlNTc4ODE2ZjcyNmQ0OWZlNTZjMTE4ODU=
12
+ data.tar.gz: !binary |-
13
+ OTg0OGNmZDM1OWEwNTYwYzExMDY1NTlmYTExM2RiNTBjZThhMGI5MTQxZTFm
14
+ YmEyYWFlNDkwOGFiZjU0YmJiYWE0NGY3YTg0Y2IzYWFhYzFkZjZkNjMxOTYx
15
+ MDg5OTk4NDg1MzJjOTQ0NTE5MmM4ZjI5YjJlNWYxYjhjNzBhYTQ=
data/README.md CHANGED
@@ -26,6 +26,19 @@ require 'reevoocop/rake_task'
26
26
  ReevooCop::RakeTask.new(:reevoocop)
27
27
  ```
28
28
 
29
+ Or to only have it lint files after the specified commit:
30
+
31
+ ```ruby
32
+ task :reevoocop do
33
+ exit 27 unless system("reevoocop #{files_that_changed_since_t_minus_0}")
34
+ end
35
+
36
+ def files_that_changed_since_t_minus_0
37
+ `git diff-tree --no-commit-id --name-only -r 19c297ff4a91b47c9af735a935c72ea5a2f05791 HEAD`
38
+ .split("\n").select { |f| f.match(/(rb\z)/) && File.exist?(f) }.join(' ')
39
+ end
40
+ ```
41
+
29
42
  In your shell
30
43
  ```
31
44
  $ reevoocop
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module ReevooCop
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
data/lib/reevoocop.yml CHANGED
@@ -1,5 +1,7 @@
1
1
  LineLength:
2
2
  Max: 120
3
+ Metrics/MethodLength:
4
+ Enabled: false
3
5
  Documentation:
4
6
  Enabled: false
5
7
  AndOr:
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reevoocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ed Robinson
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-02-17 00:00:00.000000000 Z
11
+ date: 2015-04-14 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rubocop
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - '='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - '='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: bundler
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -81,32 +74,25 @@ files:
81
74
  homepage: http://reevoo.github.io
82
75
  licenses:
83
76
  - MIT
77
+ metadata: {}
84
78
  post_install_message:
85
79
  rdoc_options: []
86
80
  require_paths:
87
81
  - lib
88
82
  required_ruby_version: !ruby/object:Gem::Requirement
89
- none: false
90
83
  requirements:
91
84
  - - ! '>='
92
85
  - !ruby/object:Gem::Version
93
86
  version: '0'
94
- segments:
95
- - 0
96
- hash: -3565107819277608750
97
87
  required_rubygems_version: !ruby/object:Gem::Requirement
98
- none: false
99
88
  requirements:
100
89
  - - ! '>='
101
90
  - !ruby/object:Gem::Version
102
91
  version: '0'
103
- segments:
104
- - 0
105
- hash: -3565107819277608750
106
92
  requirements: []
107
93
  rubyforge_project:
108
- rubygems_version: 1.8.25
94
+ rubygems_version: 2.4.6
109
95
  signing_key:
110
- specification_version: 3
96
+ specification_version: 4
111
97
  summary: Like RuboCop only for Reevoo
112
98
  test_files: []