orderly_garden 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f0b07a22bcd096e63e3ec8face464516179362b
4
- data.tar.gz: 55b7d0a37f0ba923807c0f434a863fedef65ec97
3
+ metadata.gz: fe0439fd76860c565c7b74389a185273c71eb073
4
+ data.tar.gz: e7928a9e26c391b8443f9a807ce8ef3828c03326
5
5
  SHA512:
6
- metadata.gz: fd63dc34493b134695594d8a51bfffdd389678efecbbcbbeec2174bf6040efc6fdf9d0850037035be44de87ea70d5e543a479a5c90ce03392fb7258d9a432105
7
- data.tar.gz: c8a93d5c82f28d63e4e15831bb7d043f049c63f49ce7bc57fc5980b4a21da712da829fdd8e74bd3bba94fb0f84dac512c1851173e470c9584bd9e7b03d60b015
6
+ metadata.gz: 1f232fb9185d64517b2dbf5233190e28d28264af2274cb6069921a7c9710122392231c574babdc99b652fe3e61c12fd29563f5c66c5cbb3c1277e072eb7045ca
7
+ data.tar.gz: cc56fa90630e5724f5386fff1661f9d456b27a9d0c3225f3447d79d2d2896f2ab5c841e1de981bf26a1425512e390eca45cae1179ff09c4ab48b1f72c07f73ea
data/.rbenv-gemsets ADDED
@@ -0,0 +1 @@
1
+ orderly_garden
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.2.4
data/CHANGELOG.md CHANGED
@@ -2,7 +2,16 @@
2
2
 
3
3
  ## Next Version
4
4
 
5
- ## v0.2.0 - 2016-01-2 - RuboCop 0.36.0, style touchups.
5
+ ## v0.3.0 - 2016-03-30 - Usability / streamlining.
6
+
7
+ * Update for RuboCop deprecations.
8
+ * Don't complain about filename for `Gemfile` and `Rakefile`.
9
+ * Let RSpec suites have long lines, so you always get the full assertion statement on a test failure.
10
+ * Produce more detailed output if it's provided in the config by adding `--extra-details` and `--display-style-guide` options.
11
+ * ALlow newer versions of Rake.
12
+
13
+
14
+ ## v0.2.0 - 2016-01-02 - RuboCop 0.36.0, style touchups.
6
15
 
7
16
  * Updates for RuboCop 0.36.0:
8
17
  * Change from `Style/TrailingComma` to `Style/TrailingCommaInLiteral`.
data/Gemfile CHANGED
@@ -2,7 +2,7 @@
2
2
  #ruby-gemset=orderly_garden
3
3
  # rubocop:enable Style/LeadingCommentSpace
4
4
  source "https://rubygems.org"
5
- ruby "2.2.3"
5
+ ruby "2.2.4"
6
6
 
7
7
  # Specify your gem's dependencies in orderly_garden.gemspec
8
8
  gemspec
data/Gemfile.lock CHANGED
@@ -1,30 +1,32 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- orderly_garden (0.2.0)
4
+ orderly_garden (0.3.0)
5
5
  bundler-audit (> 0)
6
- rake (~> 10.0)
6
+ rake (>= 10.0)
7
7
  rubocop (> 0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
12
  ast (2.2.0)
13
- bundler-audit (0.4.0)
13
+ bundler-audit (0.5.0)
14
14
  bundler (~> 1.2)
15
15
  thor (~> 0.18)
16
- parser (2.3.0.1)
16
+ parser (2.3.0.7)
17
17
  ast (~> 2.2)
18
18
  powerpack (0.1.1)
19
- rainbow (2.0.0)
20
- rake (10.5.0)
21
- rubocop (0.36.0)
22
- parser (>= 2.3.0.0, < 3.0)
19
+ rainbow (2.1.0)
20
+ rake (11.1.2)
21
+ rubocop (0.39.0)
22
+ parser (>= 2.3.0.7, < 3.0)
23
23
  powerpack (~> 0.1)
24
24
  rainbow (>= 1.99.1, < 3.0)
25
25
  ruby-progressbar (~> 1.7)
26
+ unicode-display_width (~> 1.0, >= 1.0.1)
26
27
  ruby-progressbar (1.7.5)
27
28
  thor (0.19.1)
29
+ unicode-display_width (1.0.3)
28
30
 
29
31
  PLATFORMS
30
32
  ruby
@@ -17,10 +17,14 @@ Lint/FormatParameterMismatch:
17
17
 
18
18
  Metrics/LineLength:
19
19
  Max: 100
20
+ Exclude:
21
+ # RSpec spits out the failing assertion, but assumes it's single-line. To avoid interfering with
22
+ # testing workflow, we allow an exception to line-length:
23
+ - 'spec/**/*_spec.rb'
20
24
 
21
25
  Metrics/MethodLength:
22
26
  Exclude:
23
- - 'db/migrate/*'
27
+ - 'db/migrate/**/*'
24
28
 
25
29
  Performance/StringReplacement:
26
30
  Enabled: true
@@ -65,6 +69,11 @@ Style/EmptyLineBetweenDefs:
65
69
  Style/ExtraSpacing:
66
70
  AllowForAlignment: true
67
71
 
72
+ Style/FileName:
73
+ Exclude:
74
+ - 'Gemfile'
75
+ - 'Rakefile'
76
+
68
77
  Style/FormatString:
69
78
  EnforcedStyle: percent
70
79
  SupportedStyles:
@@ -19,6 +19,7 @@ module OrderlyGarden
19
19
  protected
20
20
 
21
21
  def task_files
22
+ # TODO: Clean this up, and conform to Rails-y projects if we're in a Rails project.
22
23
  task_dir = File.expand_path("../../tasks", __FILE__)
23
24
  raw_task_files = FileList["#{task_dir}/**/*.rake"] +
24
25
  FileList["tasks/**/*.rake"]
@@ -1,3 +1,3 @@
1
1
  module OrderlyGarden
2
- VERSION = "0.2.0".freeze
2
+ VERSION = "0.3.0".freeze
3
3
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.7"
22
22
 
23
- spec.add_runtime_dependency "rake", "~> 10.0"
23
+ spec.add_runtime_dependency "rake", ">= 10.0"
24
24
  spec.add_runtime_dependency "bundler-audit", "> 0"
25
25
  spec.add_runtime_dependency "rubocop", "> 0"
26
26
  end
data/tasks/lint.rake CHANGED
@@ -16,15 +16,21 @@ namespace :lint do
16
16
  overrides ||= {}
17
17
 
18
18
  # Be slightly intelligent about merging AllCops, but allow overriding things:
19
+ # TODO: Allow blending include/exclude lists for any block!
19
20
  overrides["AllCops"] ||= {}
20
21
  o_allcops = overrides["AllCops"]
21
22
  d_allcops = defaults["AllCops"] || {}
22
- o_allcops["Exclude"] ||= d_allcops["Exclude"] if d_allcops.key?("Exclude")
23
- o_allcops["Include"] ||= d_allcops["Include"] if d_allcops.key?("Include")
23
+ o_allcops["Exclude"] = Array(o_allcops["Exclude"])
24
+ o_allcops["Include"] = Array(o_allcops["Include"])
25
+ o_allcops["Exclude"] += Array(d_allcops["Exclude"]) if d_allcops.key?("Exclude")
26
+ o_allcops["Include"] += Array(d_allcops["Include"]) if d_allcops.key?("Include")
27
+
28
+ o_allcops["Exclude"] = o_allcops["Exclude"].sort.uniq
29
+ o_allcops["Exclude"] = o_allcops["Exclude"].sort.uniq
24
30
 
25
31
  results = (RUBOCOP_HEADING + defaults.merge(overrides).to_yaml).rstrip
26
32
  write_file(".rubocop.yml", [results])
27
- sh "rubocop --display-cop-names"
33
+ sh "rubocop --display-cop-names --extra-details --display-style-guide"
28
34
  end
29
35
 
30
36
  desc "Run bundler-audit against the Gemfile."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orderly_garden
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Frisby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-22 00:00:00.000000000 Z
11
+ date: 2016-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,14 +28,14 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
@@ -74,7 +74,9 @@ extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
+ - ".rbenv-gemsets"
77
78
  - ".rubocop.local.yml"
79
+ - ".ruby-version"
78
80
  - CHANGELOG.md
79
81
  - Gemfile
80
82
  - Gemfile.lock