guard-foodcritic 1.0.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NTZhM2U0ZjlmMzc5YzdmNWJhNjRmZjczMmI0NTY0MTJkN2Y4NWVhZQ==
5
- data.tar.gz: !binary |-
6
- MzYyZmY2MzY4ZjBkZTEyMmQ0NjFjYjFhYmIzNGU5Y2UzOTJlODk3Yg==
2
+ SHA1:
3
+ metadata.gz: dca9d378b5c663e9ebc7785249518b04a90c6edb
4
+ data.tar.gz: 09e937f815e396a27d661f4dda02c107a915adf0
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NDY5MmRjMjM3ZjYwZTJiYmU3MDc1NmIxMjA1YWNmNTkyYmRiMWIxZWYwNzMy
10
- MWJkYTQyYjlkNmI4ODE4YTMzYzYyM2VhNmNmZDRiNTI2MWQ1NGIzMTc1Zjg2
11
- ZjI5OTU5ZTY4NGQwMDBhM2VhMTUzOTg3MmE3OTgyNzM0ODQ0YmM=
12
- data.tar.gz: !binary |-
13
- ZDNiNGEyYWJmOWY3NmMyZTliZWI3MjIxNjMxZmI4OGUzOWNlMDBhZWZiZjIy
14
- NWQzNDZiMzk4OTMwZWFlZTlhYzA0Yzc4YTU1NzQ0MjIyNDA0NmE0MTM2NzIz
15
- OGQzYTI2Nzk4MWM0ZTU5MDYxYjc1NDAwMWM1ZjhhMGE0ZTQwMzA=
6
+ metadata.gz: 59d69ac9be17f915f75d3be7d75a94412eaf9eb986df23ddf97da6b2121c1c7ed1d4a196182d8fce7c7847a15a974b37a9e023eb9ba72856326856e1a6f1c36b
7
+ data.tar.gz: de411a90defb7e7e857af8676bf5dafae0e227ce07c87b401ac5d5148f51a04a6df0eb1ca0d9f0a857db395aa48ae4273a7481fd1313e29f7ff4b44915de760a
data/.rspec CHANGED
@@ -1,2 +1,2 @@
1
1
  --color
2
- --format nested
2
+ --format doc
data/.rubocop.todo.yml ADDED
@@ -0,0 +1,11 @@
1
+ Style/HashSyntax:
2
+ Enabled: false
3
+
4
+ Metrics/LineLength:
5
+ Max: 100
6
+
7
+ Style/Documentation:
8
+ Enabled: false
9
+
10
+ Metrics/ModuleLength:
11
+ Max: 137
data/.rubocop.yml ADDED
@@ -0,0 +1 @@
1
+ inherit_from: .rubocop.todo.yml
data/.travis.yml CHANGED
@@ -1,6 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - 2.1
6
- bundler_args: --without development
3
+ - "1.9.3-p551"
4
+ - "2.0.0-p598"
5
+ - "2.1.6"
6
+ - "2.2.2"
7
+ install: bundle install --binstubs
8
+ env: TRAVIS_BUILD=true
9
+ matrix:
10
+ allow_failures:
11
+ - rvm: "1.9.3-p551"
data/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # Project History for guard-foodcritic
2
+
3
+ ## 1.1.0
4
+
5
+ * merge PR from Nordstrom to make compatible with Guard 2.9 and higher (PR )
6
+ * update dependencies to latest Guard and Foodcritic versions
7
+ * adapt Richard Nixon's (@trickyearlobe) PR to bring in guard-compat to fix test suite
8
+ * first pass at cleaning up Rubocop style issues
9
+ * extend Travis-CI matrix to ruby 1.9.3, 2.0.0, 2.1.6 and 2.2.2
10
+ * maintainership transferred to Nordstrom, Inc.
11
+
12
+ ## 1.0.3
13
+
14
+ * a changelog was not maintained for 1.0.3 or older; we may rebuild this from git changelogs
data/Gemfile CHANGED
@@ -1,11 +1,3 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec :development_group => :test
4
-
5
- group :development do
6
- gem "growl"
7
- gem "guard-bundler"
8
- gem "guard-rspec"
9
- gem "rb-fsevent"
10
- gem "travis-lint"
11
- end
data/Guardfile CHANGED
@@ -1,11 +1,6 @@
1
- guard "bundler" do
2
- watch("Gemfile")
3
- watch(/^.+\.gemspec/)
4
- end
5
-
6
- guard "rspec", :version => 2, :cli=> "--format nested" do
1
+ guard 'rspec', :version => 2, :cli => '--format doc' do
7
2
  watch(%r{^spec/.+_spec\.rb$})
8
3
  watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
9
- watch("spec/spec_helper.rb") { "spec" }
10
- watch(%r{^spec/support/(.+)\.rb$}) { |m| "spec" }
4
+ watch('spec/spec_helper.rb') { 'spec' }
5
+ watch(%r{^spec/support/(.+)\.rb$}) { |_| 'spec' }
11
6
  end
data/README.md CHANGED
@@ -1,13 +1,14 @@
1
1
  # Guard::Foodcritic
2
2
 
3
- [![Build History][2]][1] [![Dependency Status][4]][3]
3
+ [![Gem Version](https://badge.fury.io/rb/guard-foodcritic.png)](http://badge.fury.io/rb/guard-foodcritic)
4
4
 
5
- Guard::Foodcritic automatically runs foodcritic.
5
+ [![Build Status](https://travis-ci.org/Nordstrom/guard-foodcritic.png?branch=master)](https://travis-ci.org/Nordstrom/guard-foodcritic)
6
+
7
+ [![Inline docs](http://inch-ci.org/github/nordstrom/guard-foodcritic.svg?branch=master)](http://inch-ci.org/github/nordstrom/guard-foodcritic)
6
8
 
7
- [1]: http://travis-ci.org/cgriego/guard-foodcritic
8
- [2]: https://secure.travis-ci.org/cgriego/guard-foodcritic.png?branch=master
9
- [3]: https://gemnasium.com/cgriego/guard-foodcritic
10
- [4]: https://gemnasium.com/cgriego/guard-foodcritic.png
9
+ [![Code Climate](https://codeclimate.com/github/Nordstrom/guard-foodcritic/badges/gpa.svg)](https://codeclimate.com/github/Nordstrom/guard-foodcritic)
10
+
11
+ Guard::Foodcritic automatically runs foodcritic.
11
12
 
12
13
  ## Installation
13
14
 
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env rake
2
- require "bundler/gem_tasks"
3
- require "rspec/core/rake_task"
2
+ require 'bundler/gem_tasks'
3
+ require 'rspec/core/rake_task'
4
4
 
5
5
  task :default => :spec
6
6
 
@@ -2,23 +2,23 @@
2
2
  require File.expand_path('../lib/guard/foodcritic/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
- gem.authors = ["Chris Griego"]
6
- gem.email = ["cgriego@gmail.com"]
7
- gem.description = %q{Guard::Foodcritic automatically runs foodcritic.}
8
- gem.summary = %q{Guard::Foodcritic automatically runs foodcritic.}
9
- gem.homepage = "https://github.com/cgriego/guard-foodcritic"
5
+ gem.authors = ['Chris Griego', 'James FitzGibbon']
6
+ gem.email = ['cgriego@gmail.com', 'james.i.fitzgibbon@nordstrom.com']
7
+ gem.description = 'Guard::Foodcritic automatically runs foodcritic.'
8
+ gem.summary = 'Guard::Foodcritic automatically runs foodcritic.'
9
+ gem.homepage = 'https://github.com/Nordstrom/guard-foodcritic'
10
10
 
11
- gem.files = `git ls-files`.split($\)
11
+ gem.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR)
12
12
  gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
13
13
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
- gem.name = "guard-foodcritic"
15
- gem.require_paths = ["lib"]
14
+ gem.name = 'guard-foodcritic'
15
+ gem.require_paths = ['lib']
16
16
  gem.version = Guard::FOODCRITIC_VERSION
17
17
 
18
- gem.add_runtime_dependency "guard", ">= 1.0", "< 3.0"
19
- gem.add_runtime_dependency "foodcritic", ">= 1.3", "< 5.0"
18
+ gem.add_runtime_dependency 'guard', '~> 2.12'
19
+ gem.add_dependency 'guard-compat', '~> 1.1'
20
+ gem.add_runtime_dependency 'foodcritic', '~> 4.0'
20
21
 
21
- gem.add_development_dependency "bundler", "~> 1.0"
22
- gem.add_development_dependency "rake", "~> 10.0"
23
- gem.add_development_dependency "rspec", "~> 2.10"
22
+ gem.add_development_dependency 'rake', '~> 10.0'
23
+ gem.add_development_dependency 'rspec', '~> 2.10'
24
24
  end
@@ -1,17 +1,16 @@
1
- require "guard"
2
- require "guard/guard"
1
+ require 'guard/compat/plugin'
3
2
 
4
3
  module Guard
5
- class Foodcritic < Guard
6
- autoload :Runner, "guard/foodcritic/runner"
4
+ class Foodcritic < Plugin
5
+ autoload :Runner, 'guard/foodcritic/runner'
7
6
 
8
- def initialize(watchers=[], options={})
7
+ def initialize(options = {})
9
8
  super
10
9
 
11
10
  @options = {
12
11
  :all_on_start => true,
13
- :cookbook_paths => ["cookbooks"],
14
- :notification => true,
12
+ :cookbook_paths => ['cookbooks'],
13
+ :notification => true
15
14
  }.merge(@options)
16
15
  end
17
16
 
@@ -24,7 +23,7 @@ module Guard
24
23
  end
25
24
 
26
25
  def run_all
27
- UI.info "Linting all cookbooks"
26
+ Guard::Compat::UI.info 'Linting all cookbooks'
28
27
  run! @options[:cookbook_paths]
29
28
  end
30
29
 
@@ -40,7 +39,7 @@ module Guard
40
39
  run_paths paths
41
40
  end
42
41
 
43
- def respond_to?(method_name, include_private=false)
42
+ def respond_to?(method_name, include_private = false)
44
43
  if %w(run_on_deletion run_on_change).include? method_name.to_s
45
44
  false
46
45
  else
@@ -51,15 +50,15 @@ module Guard
51
50
  private
52
51
 
53
52
  def run_paths(paths)
54
- UI.info "Linting: #{paths.join(' ')}"
53
+ Guard::Compat::UI.info "Linting: #{paths.join(' ')}"
55
54
  run! paths
56
55
  end
57
56
 
58
57
  def run!(paths)
59
58
  if runner.run(paths)
60
- Notifier.notify "Foodcritic passed", :image => :success if @options[:notification]
59
+ Guard::Compat::UI.notify 'Foodcritic passed', :image => :success if @options[:notification]
61
60
  else
62
- Notifier.notify "Foodcritic failed", :image => :failed if @options[:notification]
61
+ Guard::Compat::UI.notify 'Foodcritic failed', :image => :failed if @options[:notification]
63
62
  throw :task_has_failed
64
63
  end
65
64
  end
@@ -1,18 +1,18 @@
1
- require "guard/foodcritic"
1
+ require 'guard/foodcritic'
2
2
 
3
3
  module Guard
4
4
  class Foodcritic
5
5
  class Runner
6
6
  attr_reader :options
7
7
 
8
- def initialize(options={})
8
+ def initialize(options = {})
9
9
  @options = {
10
- :cli => "--epic-fail any",
10
+ :cli => '--epic-fail any'
11
11
  }.merge(options)
12
12
  end
13
13
 
14
14
  def command(paths)
15
- ["foodcritic", @options[:cli], paths].flatten(1).join(' ')
15
+ ['foodcritic', @options[:cli], paths].flatten(1).join(' ')
16
16
  end
17
17
 
18
18
  def run(paths)
@@ -1,6 +1,8 @@
1
- guard "foodcritic" do
1
+ guard 'foodcritic' do
2
2
  watch(%r{attributes/.+\.rb$})
3
3
  watch(%r{providers/.+\.rb$})
4
4
  watch(%r{recipes/.+\.rb$})
5
5
  watch(%r{resources/.+\.rb$})
6
+ watch(%r{templates/.+$})
7
+ watch['metadata.rb']
6
8
  end
@@ -1,3 +1,3 @@
1
1
  module Guard
2
- FOODCRITIC_VERSION = "1.0.3"
2
+ FOODCRITIC_VERSION = '1.1.0'
3
3
  end
@@ -1,56 +1,57 @@
1
- require "spec_helper"
2
- require "guard/foodcritic/runner"
1
+ require 'spec_helper'
2
+ require 'guard/compat/test/helper'
3
+ require 'guard/foodcritic/runner'
3
4
 
4
5
  module Guard
5
6
  describe Foodcritic::Runner do
6
- describe "#options" do
7
- it "remembers the initialized options" do
8
- options = { :foo => "bar" }
7
+ describe '#options' do
8
+ it 'remembers the initialized options' do
9
+ options = { :foo => 'bar' }
9
10
  described_class.new(options).options.should include options
10
11
  end
11
12
 
12
13
  it "[:cli] defaults to '--epic-fail any'" do
13
- described_class.new.options[:cli].should == "--epic-fail any"
14
+ described_class.new.options[:cli].should == '--epic-fail any'
14
15
  end
15
16
  end
16
17
 
17
- describe "#command" do
18
+ describe '#command' do
18
19
  let(:runner) { described_class.new }
19
20
  let(:paths) { %w(recipes/default.rb attributes/default.rb) }
20
21
  subject { runner.command(paths) }
21
22
 
22
- it "calls the foodcritic executable" do
23
- should start_with "foodcritic"
23
+ it 'calls the foodcritic executable' do
24
+ should start_with 'foodcritic'
24
25
  end
25
26
 
26
- it "passes the given paths to the foodcritic executable" do
27
- should end_with paths.join(" ")
27
+ it 'passes the given paths to the foodcritic executable' do
28
+ should end_with paths.join(' ')
28
29
  end
29
30
 
30
- it "includes the cli option" do
31
+ it 'includes the cli option' do
31
32
  should include runner.options[:cli]
32
33
  end
33
34
  end
34
35
 
35
- describe "#run" do
36
+ describe '#run' do
36
37
  let(:runner) { described_class.new }
37
- let(:command) { double "command" }
38
+ let(:command) { double 'command' }
38
39
  before { runner.stub(:command).and_return(command) }
39
40
 
40
- it "generates the command with the given paths and runs it" do
41
+ it 'generates the command with the given paths and runs it' do
41
42
  paths = %w(recipes/default.rb attributes/default.rb)
42
43
  runner.should_receive(:system).with(command)
43
44
  runner.run(paths)
44
45
  end
45
46
 
46
- it "returns true when foodcritic suceeds" do
47
+ it 'returns true when foodcritic suceeds' do
47
48
  runner.stub(:system).and_return(true)
48
- runner.run([]).should be_true
49
+ runner.run([]).should be true
49
50
  end
50
51
 
51
- it "returns false when foodcritic finds fault" do
52
+ it 'returns false when foodcritic finds fault' do
52
53
  runner.stub(:system).and_return(false)
53
- runner.run([]).should be_false
54
+ runner.run([]).should be false
54
55
  end
55
56
  end
56
57
  end
@@ -1,5 +1,6 @@
1
- require "spec_helper"
2
- require "guard/foodcritic"
1
+ require 'spec_helper'
2
+ require 'guard/compat/test/helper'
3
+ require 'guard/foodcritic'
3
4
 
4
5
  module Guard
5
6
  describe Foodcritic do
@@ -8,63 +9,63 @@ module Guard
8
9
  UI.stub(:info)
9
10
  end
10
11
 
11
- it { should be_a_kind_of ::Guard::Guard }
12
+ it { should be_a_kind_of ::Guard::Plugin }
12
13
 
13
- describe "#options" do
14
- it "[:all_on_start] defaults to true" do
15
- described_class.new.options[:all_on_start].should be_true
14
+ describe '#options' do
15
+ it '[:all_on_start] defaults to true' do
16
+ described_class.new.options[:all_on_start].should be true
16
17
  end
17
18
 
18
19
  it "[:cookbook_paths] defaults to ['cookbooks']" do
19
- described_class.new.options[:cookbook_paths].should == ["cookbooks"]
20
+ described_class.new.options[:cookbook_paths].should == ['cookbooks']
20
21
  end
21
22
 
22
- it "[:notification] defaults to true" do
23
- described_class.new.options[:notification].should be_true
23
+ it '[:notification] defaults to true' do
24
+ described_class.new.options[:notification].should be true
24
25
  end
25
26
  end
26
27
 
27
- shared_examples "handles runner results" do
28
- context "the runner fails" do
28
+ shared_examples 'handles runner results' do
29
+ context 'the runner fails' do
29
30
  before { runner.stub(:run).and_return(false) }
30
31
  it { expect { subject }.to throw_symbol :task_has_failed }
31
32
 
32
- context "notifications are enabled" do
33
+ context 'notifications are enabled' do
33
34
  let(:notification) { true }
34
35
 
35
- it "notifies the user of the failure" do
36
- Notifier.should_receive(:notify).with("Foodcritic failed", :image => :failed)
36
+ it 'notifies the user of the failure' do
37
+ Notifier.should_receive(:notify).with('Foodcritic failed', :image => :failed)
37
38
  catch(:task_has_failed) { subject }
38
39
  end
39
40
  end
40
41
 
41
- context "notifications are disabled" do
42
+ context 'notifications are disabled' do
42
43
  let(:notification) { false }
43
44
 
44
- it "does not notify the user of the failure" do
45
+ it 'does not notify the user of the failure' do
45
46
  Notifier.should_not_receive(:notify)
46
47
  catch(:task_has_failed) { subject }
47
48
  end
48
49
  end
49
50
  end
50
51
 
51
- context "the runner succeeds" do
52
+ context 'the runner succeeds' do
52
53
  before { runner.stub(:run).and_return(true) }
53
54
  it { expect { subject }.not_to throw_symbol :task_has_failed }
54
55
 
55
- context "notifications are enabled" do
56
+ context 'notifications are enabled' do
56
57
  let(:notification) { true }
57
58
 
58
- it "notifies the user of the success" do
59
- Notifier.should_receive(:notify).with("Foodcritic passed", :image => :success)
59
+ it 'notifies the user of the success' do
60
+ Notifier.should_receive(:notify).with('Foodcritic passed', :image => :success)
60
61
  subject
61
62
  end
62
63
  end
63
64
 
64
- context "notifications are disabled" do
65
+ context 'notifications are disabled' do
65
66
  let(:notification) { false }
66
67
 
67
- it "does not notify the user of the success" do
68
+ it 'does not notify the user of the success' do
68
69
  Notifier.should_not_receive(:notify)
69
70
  subject
70
71
  end
@@ -72,93 +73,98 @@ module Guard
72
73
  end
73
74
  end
74
75
 
75
- describe "#run_all" do
76
+ describe '#run_all' do
76
77
  subject { guard.run_all }
77
- let(:guard) { described_class.new [], :cookbook_paths => %w(cookbooks site-cookbooks), :notification => notification }
78
+ let(:guard) do
79
+ described_class.new(
80
+ :cookbook_paths => %w(cookbooks site-cookbooks),
81
+ :notification => notification
82
+ )
83
+ end
78
84
  let(:notification) { false }
79
- let(:runner) { double "runner", :run => true }
85
+ let(:runner) { double 'runner', :run => true }
80
86
  before { guard.stub(:runner).and_return(runner) }
81
87
 
82
- it "runs the runner with the cookbook paths" do
88
+ it 'runs the runner with the cookbook paths' do
83
89
  runner.should_receive(:run).with(guard.options[:cookbook_paths]).and_return(true)
84
90
  subject
85
91
  end
86
92
 
87
- it "informs the user" do
88
- UI.should_receive(:info).with("Linting all cookbooks")
93
+ it 'informs the user' do
94
+ UI.should_receive(:info).with('Linting all cookbooks', {})
89
95
  subject
90
96
  end
91
97
 
92
- include_examples "handles runner results"
98
+ include_examples 'handles runner results'
93
99
  end
94
100
 
95
- shared_examples "lints specified cookbook files" do
96
- let(:guard) { described_class.new([], :notification => notification) }
101
+ shared_examples 'lints specified cookbook files' do
102
+ let(:guard) { described_class.new(:notification => notification) }
97
103
  let(:notification) { false }
98
104
  let(:paths) { %w(recipes/default.rb attributes/default.rb) }
99
- let(:runner) { double "runner", :run => true }
105
+ let(:runner) { double 'runner', :run => true }
100
106
  before { guard.stub(:runner).and_return(runner) }
101
107
 
102
- it "runs the runner with the changed paths" do
108
+ it 'runs the runner with the changed paths' do
103
109
  runner.should_receive(:run).with(paths).and_return(true)
104
110
  subject
105
111
  end
106
112
 
107
- it "informs the user" do
108
- UI.should_receive(:info).with("Linting: recipes/default.rb attributes/default.rb")
113
+ it 'informs the user' do
114
+ UI.should_receive(:info).with('Linting: recipes/default.rb attributes/default.rb', {})
109
115
  subject
110
116
  end
111
117
 
112
- include_examples "handles runner results"
118
+ include_examples 'handles runner results'
113
119
  end
114
120
 
115
- describe "#run_on_additions" do
121
+ describe '#run_on_additions' do
116
122
  subject { guard.run_on_additions(paths) }
117
- include_examples "lints specified cookbook files"
123
+ include_examples 'lints specified cookbook files'
118
124
  end
119
125
 
120
- describe "#run_on_change" do
126
+ describe '#run_on_change' do
121
127
  subject { guard.run_on_change(paths) }
122
- include_examples "lints specified cookbook files"
128
+ include_examples 'lints specified cookbook files'
123
129
  end
124
130
 
125
- describe "#run_on_modifications" do
131
+ describe '#run_on_modifications' do
126
132
  subject { guard.run_on_modifications(paths) }
127
- include_examples "lints specified cookbook files"
133
+ include_examples 'lints specified cookbook files'
128
134
  end
129
135
 
130
- describe "#runner" do
131
- it "returns a Runner" do
136
+ describe '#runner' do
137
+ it 'returns a Runner' do
132
138
  described_class.new.runner.should be_a_kind_of Foodcritic::Runner
133
139
  end
134
140
 
135
- it "memoizes the runner" do
141
+ it 'memoizes the runner' do
136
142
  guard = described_class.new
137
143
  guard.runner.should equal guard.runner
138
144
  end
139
145
 
140
- it "configured the runner with the guard options" do
146
+ it 'configured the runner with the guard options' do
141
147
  guard = described_class.new
142
148
  runner = guard.runner
143
149
  runner.options.should include guard.options
144
150
  end
145
151
  end
146
152
 
147
- describe "#start" do
148
- it "runs all on start if the :all_on_start option is set to true" do
149
- guard = described_class.new([], :all_on_start => true)
153
+ describe '#start' do
154
+ it 'runs all on start if the :all_on_start option is set to true' do
155
+ guard = described_class.new(:all_on_start => true)
150
156
  guard.should_receive(:run_all)
151
157
  guard.start
152
158
  end
153
159
 
154
- it "does not run all on start if the :all_on_start option is set to false" do
155
- guard = described_class.new([], :all_on_start => false)
160
+ it 'does not run all on start if the :all_on_start option is set to false' do
161
+ guard = described_class.new(:all_on_start => false)
156
162
  guard.should_not_receive(:run_all)
157
163
  guard.start
158
164
  end
159
165
  end
160
166
 
161
- describe "#respond_to" do
167
+ describe '#respond_to' do
162
168
  it { should respond_to :run_on_additions }
163
169
  it { should respond_to :run_on_modifications }
164
170
  it { should_not respond_to :run_on_change }
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
- require "bundler/setup"
2
- require "rspec/autorun"
1
+ require 'bundler/setup'
2
+ require 'rspec/autorun'
3
3
 
4
- ENV["GUARD_ENV"] = "test"
4
+ ENV['GUARD_ENV'] = 'test'
5
5
 
6
6
  # Requires supporting files with custom matchers and macros, etc,
7
7
  # in ./support/ and its subdirectories.
@@ -9,5 +9,6 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |file| require file }
9
9
 
10
10
  RSpec.configure do |config|
11
11
  config.mock_framework = :rspec
12
- config.treat_symbols_as_metadata_keys_with_true_values = true # default in RSpec 3
12
+ # default in RSpec 3
13
+ config.treat_symbols_as_metadata_keys_with_true_values = true
13
14
  end
metadata CHANGED
@@ -1,108 +1,101 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-foodcritic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Griego
8
+ - James FitzGibbon
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-07-17 00:00:00.000000000 Z
12
+ date: 2015-05-30 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: guard
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - ! '>='
18
+ - - "~>"
18
19
  - !ruby/object:Gem::Version
19
- version: '1.0'
20
- - - <
21
- - !ruby/object:Gem::Version
22
- version: '3.0'
20
+ version: '2.12'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
24
  requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '1.0'
30
- - - <
25
+ - - "~>"
31
26
  - !ruby/object:Gem::Version
32
- version: '3.0'
27
+ version: '2.12'
33
28
  - !ruby/object:Gem::Dependency
34
- name: foodcritic
29
+ name: guard-compat
35
30
  requirement: !ruby/object:Gem::Requirement
36
31
  requirements:
37
- - - ! '>='
38
- - !ruby/object:Gem::Version
39
- version: '1.3'
40
- - - <
32
+ - - "~>"
41
33
  - !ruby/object:Gem::Version
42
- version: '5.0'
34
+ version: '1.1'
43
35
  type: :runtime
44
36
  prerelease: false
45
37
  version_requirements: !ruby/object:Gem::Requirement
46
38
  requirements:
47
- - - ! '>='
39
+ - - "~>"
48
40
  - !ruby/object:Gem::Version
49
- version: '1.3'
50
- - - <
51
- - !ruby/object:Gem::Version
52
- version: '5.0'
41
+ version: '1.1'
53
42
  - !ruby/object:Gem::Dependency
54
- name: bundler
43
+ name: foodcritic
55
44
  requirement: !ruby/object:Gem::Requirement
56
45
  requirements:
57
- - - ~>
46
+ - - "~>"
58
47
  - !ruby/object:Gem::Version
59
- version: '1.0'
60
- type: :development
48
+ version: '4.0'
49
+ type: :runtime
61
50
  prerelease: false
62
51
  version_requirements: !ruby/object:Gem::Requirement
63
52
  requirements:
64
- - - ~>
53
+ - - "~>"
65
54
  - !ruby/object:Gem::Version
66
- version: '1.0'
55
+ version: '4.0'
67
56
  - !ruby/object:Gem::Dependency
68
57
  name: rake
69
58
  requirement: !ruby/object:Gem::Requirement
70
59
  requirements:
71
- - - ~>
60
+ - - "~>"
72
61
  - !ruby/object:Gem::Version
73
62
  version: '10.0'
74
63
  type: :development
75
64
  prerelease: false
76
65
  version_requirements: !ruby/object:Gem::Requirement
77
66
  requirements:
78
- - - ~>
67
+ - - "~>"
79
68
  - !ruby/object:Gem::Version
80
69
  version: '10.0'
81
70
  - !ruby/object:Gem::Dependency
82
71
  name: rspec
83
72
  requirement: !ruby/object:Gem::Requirement
84
73
  requirements:
85
- - - ~>
74
+ - - "~>"
86
75
  - !ruby/object:Gem::Version
87
76
  version: '2.10'
88
77
  type: :development
89
78
  prerelease: false
90
79
  version_requirements: !ruby/object:Gem::Requirement
91
80
  requirements:
92
- - - ~>
81
+ - - "~>"
93
82
  - !ruby/object:Gem::Version
94
83
  version: '2.10'
95
84
  description: Guard::Foodcritic automatically runs foodcritic.
96
85
  email:
97
86
  - cgriego@gmail.com
87
+ - james.i.fitzgibbon@nordstrom.com
98
88
  executables: []
99
89
  extensions: []
100
90
  extra_rdoc_files: []
101
91
  files:
102
- - .gitignore
103
- - .rspec
104
- - .ruby-version
105
- - .travis.yml
92
+ - ".gitignore"
93
+ - ".rspec"
94
+ - ".rubocop.todo.yml"
95
+ - ".rubocop.yml"
96
+ - ".ruby-version"
97
+ - ".travis.yml"
98
+ - CHANGELOG.md
106
99
  - Gemfile
107
100
  - Guardfile
108
101
  - LICENSE
@@ -116,7 +109,7 @@ files:
116
109
  - spec/guard/foodcritic/runner_spec.rb
117
110
  - spec/guard/foodcritic_spec.rb
118
111
  - spec/spec_helper.rb
119
- homepage: https://github.com/cgriego/guard-foodcritic
112
+ homepage: https://github.com/Nordstrom/guard-foodcritic
120
113
  licenses: []
121
114
  metadata: {}
122
115
  post_install_message:
@@ -125,17 +118,17 @@ require_paths:
125
118
  - lib
126
119
  required_ruby_version: !ruby/object:Gem::Requirement
127
120
  requirements:
128
- - - ! '>='
121
+ - - ">="
129
122
  - !ruby/object:Gem::Version
130
123
  version: '0'
131
124
  required_rubygems_version: !ruby/object:Gem::Requirement
132
125
  requirements:
133
- - - ! '>='
126
+ - - ">="
134
127
  - !ruby/object:Gem::Version
135
128
  version: '0'
136
129
  requirements: []
137
130
  rubyforge_project:
138
- rubygems_version: 2.2.2
131
+ rubygems_version: 2.4.4
139
132
  signing_key:
140
133
  specification_version: 4
141
134
  summary: Guard::Foodcritic automatically runs foodcritic.
@@ -143,3 +136,4 @@ test_files:
143
136
  - spec/guard/foodcritic/runner_spec.rb
144
137
  - spec/guard/foodcritic_spec.rb
145
138
  - spec/spec_helper.rb
139
+ has_rdoc: