file_police 0.1.2 → 0.1.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDNjY2Q3NGRiODViMDdiMzcwNmVmZDhkNWY0OTRlNzhlNGNjYjExYQ==
4
+ NWY2NDUxNDUxYjM5ODg2MGViNmYzMDA4N2U4YmEzNTFmYzY3NTBmZQ==
5
5
  data.tar.gz: !binary |-
6
- NzA5N2MxNzM4ZDAyMmQzMmQ0NWRmNzU0M2Y2OTYxYjFkYmVkOGNmNQ==
6
+ YmRlZjgxZWJiZTNiYjUwZmZmNjk3ODBmMDNlOTk1NGNkNWY5YTAzMg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NjkwN2JlMzBmNzY2NDZmMTczYTA5ZDY5NjBmYzdiZDk1MzBjOTRjYzM5ZmNm
10
- NjdjYTVkZGZiZGJjNWZhM2YxMTdjNmRlYWU1ZjY4ZmE4MWQ5ODhmOTIxM2Qy
11
- NTVhNWQ3MTI0ZjdlMzU4MWVlNDJlOTE0ZjVjZjFmMzQ5ZGZlMjk=
9
+ NTZjZWMzYTU5MjE1Y2Q5OTQ1NzcwMzRlNmJkZDRiZDYyMGQ0MDg1ZDAwZDA2
10
+ NGYyMDVhY2NjOWViZjIwOWZmMzM3YWIyZjcwYjNmNDExMzAzZGQzZGZlY2Y2
11
+ MzQ4MjU5NWNiMmEzYTNlMGZmYmE1YTUxN2E3Y2EyOGJjZGU0N2I=
12
12
  data.tar.gz: !binary |-
13
- YjVhZmViMGRjZTRiYjY5YzJkMjIyNzM0ZjNlN2NmYmI0MzAwOTI3YTMzMmRk
14
- YWQxZWZiZjMyNjkwZTU3Yzg5M2NlOWViZmExOGMzNmE4N2U4NTU2Yzg2NTM1
15
- OTVmZjVmY2EyNGVjYzlkNDdjMGIzYjM2NTczNjI1ZmEwNmM2YzM=
13
+ NWQ0ZDE0ZWU0OGRlYzZlZDZiZjk5ZjA5ZDM5MjBiNTNhMzU3NWNiZTMwNjM3
14
+ ODdiN2FiYWQ2MGY3ZGI0OWRmYTRjNmIzZjk5N2UzNjBiNmVhMGQzMGZlZTM4
15
+ M2M5Y2Q4MTFlNGRhOTBjODcwZjViMGM4Yzg3N2M5OTBkMzdkNjQ=
data/.gitignore CHANGED
@@ -14,6 +14,5 @@ spec/reports
14
14
  test/tmp
15
15
  test/version_tmp
16
16
  tmp
17
- bin
18
17
  .DS_Store
19
18
  Gemfile.lock
data/bin/autospec ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'autospec' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rspec-core', 'autospec')
data/bin/htmldiff ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'htmldiff' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('diff-lcs', 'htmldiff')
data/bin/ldiff ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'ldiff' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('diff-lcs', 'ldiff')
data/bin/patrol ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ require 'file_police'
3
+ if ARGV[0]
4
+ tickets = FilePolice.patrol(ARGV[0]).collect { |t| t unless t.violations.empty? }.compact
5
+ if tickets.empty?
6
+ exit(0)
7
+ else
8
+ puts "Awwww, 5-0, yo!"
9
+ tickets.collect { |t| puts t.file }
10
+ exit(1)
11
+ end
12
+ end
data/bin/rake ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rake' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rake', 'rake')
data/bin/rspec ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rspec' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rspec-core', 'rspec')
data/file_police.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.executables = "patrol"
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
@@ -1,3 +1,3 @@
1
1
  module FilePolice
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file_police
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Wead
@@ -55,7 +55,8 @@ dependencies:
55
55
  description: Policing our files
56
56
  email:
57
57
  - amsterdamos@gmail.com
58
- executables: []
58
+ executables:
59
+ - patrol
59
60
  extensions: []
60
61
  extra_rdoc_files: []
61
62
  files:
@@ -65,6 +66,12 @@ files:
65
66
  - LICENSE.txt
66
67
  - README.md
67
68
  - Rakefile
69
+ - bin/autospec
70
+ - bin/htmldiff
71
+ - bin/ldiff
72
+ - bin/patrol
73
+ - bin/rake
74
+ - bin/rspec
68
75
  - file_police.gemspec
69
76
  - lib/file_police.rb
70
77
  - lib/file_police/backlog_file.rb