orderly_garden 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +6 -11
- data/config/rubocop_rules.yml +8 -5
- data/lib/orderly_garden/dsl.rb +2 -2
- data/lib/orderly_garden/version.rb +1 -1
- data/lib/orderly_garden.rb +11 -9
- data/tasks/lint.rake +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f0b07a22bcd096e63e3ec8face464516179362b
|
4
|
+
data.tar.gz: 55b7d0a37f0ba923807c0f434a863fedef65ec97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
19
|
-
ast (
|
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.
|
23
|
-
rubocop (0.
|
24
|
-
|
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
|
data/config/rubocop_rules.yml
CHANGED
@@ -66,8 +66,9 @@ Style/ExtraSpacing:
|
|
66
66
|
AllowForAlignment: true
|
67
67
|
|
68
68
|
Style/FormatString:
|
69
|
-
EnforcedStyle:
|
70
|
-
SupportedStyles:
|
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
|
-
|
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/
|
108
|
+
Style/TrailingCommaInArguments:
|
109
|
+
Enabled: false
|
110
|
+
|
111
|
+
Style/TrailingCommaInLiteral:
|
108
112
|
EnforcedStyleForMultiline: comma
|
109
|
-
SupportedStyles: comma
|
data/lib/orderly_garden/dsl.rb
CHANGED
@@ -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, &
|
5
|
+
def with_tempfile(fname = nil, &_block)
|
6
6
|
Tempfile.open("tmp") do |f|
|
7
|
-
|
7
|
+
yield f.path, f.path.shellescape
|
8
8
|
FileUtils.cp(f.path, fname) unless fname.nil?
|
9
9
|
end
|
10
10
|
end
|
data/lib/orderly_garden.rb
CHANGED
@@ -15,16 +15,18 @@ module OrderlyGarden
|
|
15
15
|
task_files.each { |fname| load fname }
|
16
16
|
end
|
17
17
|
|
18
|
-
|
18
|
+
class << self
|
19
|
+
protected
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
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.
|
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-
|
11
|
+
date: 2016-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|