anne 1.0.0

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.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/bin/anne +6 -0
  3. data/lib/anne.rb +8 -0
  4. metadata +46 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 61e67f7abfc8618a205097497d3c1ad59a490859
4
+ data.tar.gz: 09179f3d3d41e7afe92ba58febac96ea56df8711
5
+ SHA512:
6
+ metadata.gz: 1a11c5e827190a06af252e9648ce395fa717a6d832c68a5a656ffd297b298589337aae7ed7feb4b15364d5dff1e4ffcb0550b87ce09d5e264530ad059ce3de3d
7
+ data.tar.gz: 567794ccbf9ed5feb5e4717f2b9f26d1f216333a5fd3d31dd8711669982e4e82f0d2dd37a1e53761919334656adfe526e235cead990555473dd22815267c57b7
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'anne'
4
+
5
+ anne = Anne.new
6
+ anne.execute
@@ -0,0 +1,8 @@
1
+ class Anne
2
+ def execute
3
+ files = `git status -s`
4
+ files = files.split("\n").map { |x| x.split(" ").last }
5
+ files = files.join(" ")
6
+ system "rubocop #{files}"
7
+ end
8
+ end
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: anne
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - jsrn
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-04-20 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Run rubocop on the files you've recently changed.
14
+ email: james.srn@gmail.com
15
+ executables:
16
+ - anne
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - bin/anne
21
+ - lib/anne.rb
22
+ homepage: http://jsrn.net
23
+ licenses:
24
+ - MIT
25
+ metadata: {}
26
+ post_install_message:
27
+ rdoc_options: []
28
+ require_paths:
29
+ - lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubyforge_project:
42
+ rubygems_version: 2.4.5
43
+ signing_key:
44
+ specification_version: 4
45
+ summary: Teams up with rubocop to prevent bad commits.
46
+ test_files: []