orderly_garden 0.1.2 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a778d1c130e6c14377e1f14cac0067864233ba1
4
- data.tar.gz: 61580c645356c8208de189a31ce53fc294ab860e
3
+ metadata.gz: 4f0b07a22bcd096e63e3ec8face464516179362b
4
+ data.tar.gz: 55b7d0a37f0ba923807c0f434a863fedef65ec97
5
5
  SHA512:
6
- metadata.gz: 63821b7456822a25db2576857a41fa8e4e0a63efd94a689ebe761dfec474dc236db75c22033ba38e419a2e689d1081814da5f9cfa341f770fbf7ec82ffc53f8b
7
- data.tar.gz: f7e8e276517bb2f6f1630f083913d204e135a8e1b4a7dd3dc1f060e8a64c186a8d84a929b0f84c31f4161434a8b7fa7c6139c84b9e84dfe1eeb4a5598442a1d3
6
+ metadata.gz: fd63dc34493b134695594d8a51bfffdd389678efecbbcbbeec2174bf6040efc6fdf9d0850037035be44de87ea70d5e543a479a5c90ce03392fb7258d9a432105
7
+ data.tar.gz: c8a93d5c82f28d63e4e15831bb7d043f049c63f49ce7bc57fc5980b4a21da712da829fdd8e74bd3bba94fb0f84dac512c1851173e470c9584bd9e7b03d60b015
data/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  ## Next Version
4
4
 
5
+ ## v0.2.0 - 2016-01-2 - RuboCop 0.36.0, style touchups.
6
+
7
+ * Updates for RuboCop 0.36.0:
8
+ * Change from `Style/TrailingComma` to `Style/TrailingCommaInLiteral`.
9
+ * Change from `MultiSpaceAllowedForOperators` to `AllowForAlignment`.
10
+ * Update from `'String#%'` to `percent` in `Style/FormatString`.
11
+ * A couple minor style touchups.
12
+
13
+
5
14
  ## v0.1.2 - 2016-01-05 - Bug fix.
6
15
 
7
16
  * Fix an embarassing typo that made the `lint:cloc` task never usable.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- orderly_garden (0.1.2)
4
+ orderly_garden (0.2.0)
5
5
  bundler-audit (> 0)
6
6
  rake (~> 10.0)
7
7
  rubocop (> 0)
@@ -10,26 +10,21 @@ GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
12
  ast (2.2.0)
13
- astrolabe (1.3.1)
14
- parser (~> 2.2)
15
13
  bundler-audit (0.4.0)
16
14
  bundler (~> 1.2)
17
15
  thor (~> 0.18)
18
- parser (2.2.3.0)
19
- ast (>= 1.1, < 3.0)
16
+ parser (2.3.0.1)
17
+ ast (~> 2.2)
20
18
  powerpack (0.1.1)
21
19
  rainbow (2.0.0)
22
- rake (10.4.2)
23
- rubocop (0.35.1)
24
- astrolabe (~> 1.3)
25
- parser (>= 2.2.3.0, < 3.0)
20
+ rake (10.5.0)
21
+ rubocop (0.36.0)
22
+ parser (>= 2.3.0.0, < 3.0)
26
23
  powerpack (~> 0.1)
27
24
  rainbow (>= 1.99.1, < 3.0)
28
25
  ruby-progressbar (~> 1.7)
29
- tins (<= 1.6.0)
30
26
  ruby-progressbar (1.7.5)
31
27
  thor (0.19.1)
32
- tins (1.6.0)
33
28
 
34
29
  PLATFORMS
35
30
  ruby
@@ -66,8 +66,9 @@ Style/ExtraSpacing:
66
66
  AllowForAlignment: true
67
67
 
68
68
  Style/FormatString:
69
- EnforcedStyle: 'String#%'
70
- SupportedStyles: 'String#%'
69
+ EnforcedStyle: percent
70
+ SupportedStyles:
71
+ - percent
71
72
 
72
73
  # Style/GuardClause:
73
74
  # Enabled: false
@@ -92,7 +93,7 @@ Style/SingleLineMethods:
92
93
  Enabled: false
93
94
 
94
95
  Style/SpaceAroundOperators:
95
- MultiSpaceAllowedForOperators:
96
+ AllowForAlignment:
96
97
  - '='
97
98
  - '=>'
98
99
  - '||='
@@ -104,6 +105,8 @@ Style/SpaceAroundOperators:
104
105
  Style/StringLiterals:
105
106
  EnforcedStyle: double_quotes
106
107
 
107
- Style/TrailingComma:
108
+ Style/TrailingCommaInArguments:
109
+ Enabled: false
110
+
111
+ Style/TrailingCommaInLiteral:
108
112
  EnforcedStyleForMultiline: comma
109
- SupportedStyles: comma
@@ -2,9 +2,9 @@ module OrderlyGarden
2
2
  # Rake DSL constructs.
3
3
  module DSL
4
4
  # Create and manage a temp file, replacing `fname` with the temp file, if `fname` is provided.
5
- def with_tempfile(fname = nil, &block)
5
+ def with_tempfile(fname = nil, &_block)
6
6
  Tempfile.open("tmp") do |f|
7
- block.call(f.path, f.path.shellescape)
7
+ yield f.path, f.path.shellescape
8
8
  FileUtils.cp(f.path, fname) unless fname.nil?
9
9
  end
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module OrderlyGarden
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0".freeze
3
3
  end
@@ -15,16 +15,18 @@ module OrderlyGarden
15
15
  task_files.each { |fname| load fname }
16
16
  end
17
17
 
18
- protected
18
+ class << self
19
+ protected
19
20
 
20
- def self.task_files
21
- task_dir = File.expand_path("../../tasks", __FILE__)
22
- raw_task_files = FileList["#{task_dir}/**/*.rake"] +
23
- FileList["tasks/**/*.rake"]
24
- raw_task_files
25
- .map { |fname| File.expand_path(fname) }
26
- .sort
27
- .uniq
21
+ def task_files
22
+ task_dir = File.expand_path("../../tasks", __FILE__)
23
+ raw_task_files = FileList["#{task_dir}/**/*.rake"] +
24
+ FileList["tasks/**/*.rake"]
25
+ raw_task_files
26
+ .map { |fname| File.expand_path(fname) }
27
+ .sort
28
+ .uniq
29
+ end
28
30
  end
29
31
  end
30
32
 
data/tasks/lint.rake CHANGED
@@ -2,6 +2,7 @@ RUBOCOP_HEADING = "# #{('WARNING! ' * 7).rstrip}\n"\
2
2
  "# AUTO-GENERATED FILE! DO NOT EDIT DIRECTLY!\n"\
3
3
  "\n"\
4
4
  "# Override from `.rubocop.local.yml` and re-run `rake lint:rubocop` instead!\n"
5
+ .freeze
5
6
 
6
7
  namespace :lint do
7
8
  desc "Run Rubocop against the codebase."
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.1.2
4
+ version: 0.2.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-05 00:00:00.000000000 Z
11
+ date: 2016-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler