scold 0.4.2

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ada4b04063e566dad5f1904f978a773b173c9708
4
+ data.tar.gz: 84436b3bc0df4921722acf7654f16dc3b74ad2f7
5
+ SHA512:
6
+ metadata.gz: 0bd4088af46216582e36515ddd0ecd54bfe77b014080c86219aaf09c5cce6f1800f0344e632ab098e752ce752de416af7e6d447a841aae73bda95923d9b1197d
7
+ data.tar.gz: 34dbf0ac59a32205e4e61af3652febee4faecce86ee46059aac42016f8a89be1d422aba803b02fd8dadfa93d64d893ccdffc77e08722b89b6b5236d77ff0fc28
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ .bundle
2
+ .DS_Store
3
+ .idea/
4
+ .ruby-version
5
+ binstubs/
6
+ Gemfile.lock
7
+ log/*.log
8
+ vendor/bundle/
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source "https://rubygems.org"
2
+ gemspec
data/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # scold
2
+ Hound-like Rubocop utilities
3
+
4
+ The `scold` command calls Rubucop using the same configuration as Hound
5
+ merged with `.rubocop.yml` file in the current directory, if present, then
6
+ merged with `~/.rubocop_strict.yml` if present.
7
+
8
+ The `hound` command calls `scold` with uncommitted git files, if any;
9
+ otherwise does nothing. Unlike the Hound web service, this command examines
10
+ entire files, not just changed lines.
11
+
12
+ # Usage
13
+
14
+ Add to `Gemfile`:
15
+ ```
16
+ gem "scold", require: false, github: "apptentive/scold"
17
+ ```
18
+
19
+ From command line:
20
+ ```
21
+ bundle exec scold [rubocop-options] [files...]
22
+ ```
23
+ ```
24
+ bundle exec hound [rubocop-options]
25
+ ```
data/bin/hound ADDED
@@ -0,0 +1,4 @@
1
+ #! /usr/bin/env ruby
2
+ $LOAD_PATH.unshift(File.expand_path("../lib", __FILE__))
3
+ require "scold"
4
+ exit Scold::Hounder.run(ARGV)
data/bin/scold ADDED
@@ -0,0 +1,4 @@
1
+ #! /usr/bin/env ruby
2
+ $LOAD_PATH.unshift(File.expand_path("../lib", __FILE__))
3
+ require "scold"
4
+ exit Scold::Scolder.run(ARGV)
data/lib/scold/exit.rb ADDED
@@ -0,0 +1,6 @@
1
+ module Scold
2
+ module Exit
3
+ SUCCESS = 0
4
+ FAILURE = 1
5
+ end
6
+ end