orderly_garden 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +8 -0
- data/Gemfile +3 -1
- data/Gemfile.lock +18 -12
- data/README.md +5 -4
- data/Rakefile +2 -0
- data/TODO.txt +9 -0
- data/config/rubocop_rules.yml +7 -7
- data/lib/orderly_garden.rb +2 -0
- data/lib/orderly_garden/dsl.rb +3 -1
- data/lib/orderly_garden/monkey_patches.rb +2 -0
- data/lib/orderly_garden/version.rb +3 -1
- data/orderly_garden.gemspec +3 -1
- data/tasks/lint.rake +12 -5
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39a82d6a9f6f2edc41e1f408539a64573188bfaa
|
4
|
+
data.tar.gz: 9e926c0872b4d4d6fd43093c76f85500ea0dbebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b22d7b8cf79ce6d19cca9f3f7bde2106e80714726f68b09bd202a1a43534b549638bd1c226f78b40c058b3c2c426ab83ae6193f9c5e0b2166a9df5f59a995cea
|
7
|
+
data.tar.gz: 4cc9c1032748bcba38a36fce4e1490f1e7817f83d9b80c9a30109e0335e311c7c2a665c1f8e16bd6d808f212408e74bd917fea9e774dbd338e031b9880c3e9bb
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.4.1
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
## Next Version
|
4
4
|
|
5
|
+
## v0.3.1 - 2017-06-12 - Update Rubocop.
|
6
|
+
|
7
|
+
* Update to Ruby 2.4.1.
|
8
|
+
* Fix some documentation errors.
|
9
|
+
* Update `rubocop` rules to use new namespacing from `0.49.0`.
|
10
|
+
* Require `rubocop` of at least `0.49.0`.
|
11
|
+
|
12
|
+
|
5
13
|
## v0.3.0 - 2016-03-30 - Usability / streamlining.
|
6
14
|
|
7
15
|
* Update for RuboCop deprecations.
|
data/Gemfile
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# rubocop:disable Style/LeadingCommentSpace
|
2
4
|
#ruby-gemset=orderly_garden
|
3
5
|
# rubocop:enable Style/LeadingCommentSpace
|
4
6
|
source "https://rubygems.org"
|
5
|
-
ruby "2.
|
7
|
+
ruby "2.4.1"
|
6
8
|
|
7
9
|
# Specify your gem's dependencies in orderly_garden.gemspec
|
8
10
|
gemspec
|
data/Gemfile.lock
CHANGED
@@ -1,32 +1,35 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
orderly_garden (0.3.
|
4
|
+
orderly_garden (0.3.1)
|
5
5
|
bundler-audit (> 0)
|
6
6
|
rake (>= 10.0)
|
7
|
-
rubocop (
|
7
|
+
rubocop (>= 0.49.0)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
ast (2.
|
12
|
+
ast (2.3.0)
|
13
13
|
bundler-audit (0.5.0)
|
14
14
|
bundler (~> 1.2)
|
15
15
|
thor (~> 0.18)
|
16
|
-
|
16
|
+
parallel (1.11.2)
|
17
|
+
parser (2.4.0.0)
|
17
18
|
ast (~> 2.2)
|
18
19
|
powerpack (0.1.1)
|
19
|
-
rainbow (2.
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
rainbow (2.2.2)
|
21
|
+
rake
|
22
|
+
rake (12.0.0)
|
23
|
+
rubocop (0.49.1)
|
24
|
+
parallel (~> 1.10)
|
25
|
+
parser (>= 2.3.3.1, < 3.0)
|
23
26
|
powerpack (~> 0.1)
|
24
27
|
rainbow (>= 1.99.1, < 3.0)
|
25
28
|
ruby-progressbar (~> 1.7)
|
26
29
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
27
|
-
ruby-progressbar (1.
|
28
|
-
thor (0.19.
|
29
|
-
unicode-display_width (1.
|
30
|
+
ruby-progressbar (1.8.1)
|
31
|
+
thor (0.19.4)
|
32
|
+
unicode-display_width (1.2.1)
|
30
33
|
|
31
34
|
PLATFORMS
|
32
35
|
ruby
|
@@ -35,5 +38,8 @@ DEPENDENCIES
|
|
35
38
|
bundler (~> 1.7)
|
36
39
|
orderly_garden!
|
37
40
|
|
41
|
+
RUBY VERSION
|
42
|
+
ruby 2.4.1p111
|
43
|
+
|
38
44
|
BUNDLED WITH
|
39
|
-
1.
|
45
|
+
1.15.1
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ A set of tools for Rake and Ruby workflows, to help keep things neat and tidy.
|
|
16
16
|
Add this line to your application's Gemfile:
|
17
17
|
|
18
18
|
```ruby
|
19
|
-
gem "orderly_garden", require: false
|
19
|
+
gem "orderly_garden", require: false
|
20
20
|
```
|
21
21
|
|
22
22
|
And then execute:
|
@@ -35,17 +35,18 @@ gem install orderly_garden
|
|
35
35
|
|
36
36
|
### Setup
|
37
37
|
|
38
|
-
1. In `Rakefile`, add this
|
38
|
+
1. In `Rakefile`, add this:
|
39
39
|
```ruby
|
40
40
|
require "rubygems"
|
41
41
|
require "bundler/setup"
|
42
42
|
Bundler.require(:default, :development, :test)
|
43
|
-
require "
|
43
|
+
require "orderly_garden"
|
44
44
|
OrderlyGarden.init!
|
45
45
|
```
|
46
46
|
1. Create a file named `.rubocop.local.yml` with your own Rubocop rules / configuration.
|
47
47
|
* This will be merged with the saner defaults provided by `orderly_garden` when running `rake lint:rubocop`.
|
48
|
-
1.
|
48
|
+
1. `git rm .rubocop.yml`, if currently versioned. This file will be auto-generated going forward, and should not be versioned anymore.
|
49
|
+
1. Add `/.rubocop.yml` to your `.gitignore` file.
|
49
50
|
|
50
51
|
### Running The Tools
|
51
52
|
|
data/Rakefile
CHANGED
data/TODO.txt
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
* https://gitlab.com/coraline/fukuzatsu
|
2
|
+
* https://gitlab.com/coraline/snuffle
|
3
|
+
* https://gitlab.com/coraline/analyst ?
|
4
|
+
* https://github.com/CoralineAda/society
|
5
|
+
* https://github.com/CoralineAda/turbulence
|
6
|
+
* https://github.com/CoralineAda/churn
|
7
|
+
* https://github.com/CoralineAda/poro_plus
|
8
|
+
* https://github.com/CoralineAda/faceted
|
9
|
+
* https://github.com/CoralineAda/synack
|
data/config/rubocop_rules.yml
CHANGED
@@ -29,10 +29,10 @@ Metrics/MethodLength:
|
|
29
29
|
Performance/StringReplacement:
|
30
30
|
Enabled: true
|
31
31
|
|
32
|
-
|
32
|
+
Layout/AccessModifierIndentation:
|
33
33
|
EnforcedStyle: outdent
|
34
34
|
|
35
|
-
|
35
|
+
Layout/AlignHash:
|
36
36
|
EnforcedColonStyle: table
|
37
37
|
# TODO: Err, maybe keys here?
|
38
38
|
EnforcedLastArgumentHashStyle: ignore_implicit
|
@@ -45,7 +45,7 @@ Style/CollectionMethods:
|
|
45
45
|
find_all: select
|
46
46
|
|
47
47
|
# Allow comments to be aligned to one another.
|
48
|
-
|
48
|
+
Layout/CommentIndentation:
|
49
49
|
Enabled: false
|
50
50
|
|
51
51
|
# Don't bother with class documentation for Rails application class, and DB
|
@@ -63,10 +63,10 @@ Style/DoubleNegation:
|
|
63
63
|
# Style/DotPosition:
|
64
64
|
# EnforcedStyle: trailing
|
65
65
|
|
66
|
-
|
66
|
+
Layout/EmptyLineBetweenDefs:
|
67
67
|
AllowAdjacentOneLineDefs: true
|
68
68
|
|
69
|
-
|
69
|
+
Layout/ExtraSpacing:
|
70
70
|
AllowForAlignment: true
|
71
71
|
|
72
72
|
Style/FileName:
|
@@ -91,7 +91,7 @@ Style/LineEndConcatenation:
|
|
91
91
|
Style/RegexpLiteral:
|
92
92
|
AllowInnerSlashes: false
|
93
93
|
|
94
|
-
|
94
|
+
Layout/RescueEnsureAlignment:
|
95
95
|
Enabled: true
|
96
96
|
|
97
97
|
# Style/RescueModifier:
|
@@ -101,7 +101,7 @@ Style/RescueEnsureAlignment:
|
|
101
101
|
Style/SingleLineMethods:
|
102
102
|
Enabled: false
|
103
103
|
|
104
|
-
|
104
|
+
Layout/SpaceAroundOperators:
|
105
105
|
AllowForAlignment:
|
106
106
|
- '='
|
107
107
|
- '=>'
|
data/lib/orderly_garden.rb
CHANGED
data/lib/orderly_garden/dsl.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module OrderlyGarden
|
2
4
|
# Rake DSL constructs.
|
3
5
|
module DSL
|
@@ -28,7 +30,7 @@ module OrderlyGarden
|
|
28
30
|
Rake::Task
|
29
31
|
.tasks
|
30
32
|
.select { |t| t.name =~ /^#{name}:/ }
|
31
|
-
.
|
33
|
+
.sort_by(&:name)
|
32
34
|
.each(&:execute)
|
33
35
|
end
|
34
36
|
end
|
data/orderly_garden.gemspec
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
2
4
|
lib = File.expand_path("../lib", __FILE__)
|
3
5
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
6
|
require "orderly_garden/version"
|
@@ -22,5 +24,5 @@ Gem::Specification.new do |spec|
|
|
22
24
|
|
23
25
|
spec.add_runtime_dependency "rake", ">= 10.0"
|
24
26
|
spec.add_runtime_dependency "bundler-audit", "> 0"
|
25
|
-
spec.add_runtime_dependency "rubocop", "
|
27
|
+
spec.add_runtime_dependency "rubocop", ">= 0.49.0"
|
26
28
|
end
|
data/tasks/lint.rake
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
RUBOCOP_HEADING = "# #{('WARNING! ' * 7).rstrip}\n"\
|
2
4
|
"# AUTO-GENERATED FILE! DO NOT EDIT DIRECTLY!\n"\
|
3
5
|
"\n"\
|
4
6
|
"# Override from `.rubocop.local.yml` and re-run `rake lint:rubocop` instead!\n"
|
5
|
-
.freeze
|
6
7
|
|
7
8
|
namespace :lint do
|
8
9
|
desc "Run Rubocop against the codebase."
|
@@ -10,9 +11,9 @@ namespace :lint do
|
|
10
11
|
require "yaml"
|
11
12
|
puts "Running Rubocop..."
|
12
13
|
defaults_file = File.expand_path("../../config/rubocop_rules.yml", __FILE__)
|
13
|
-
defaults = YAML.
|
14
|
+
defaults = YAML.safe_load(File.read(defaults_file))
|
14
15
|
local_opts = ".rubocop.local.yml"
|
15
|
-
overrides = YAML.
|
16
|
+
overrides = YAML.safe_load(File.read(local_opts)) if File.exist?(local_opts)
|
16
17
|
overrides ||= {}
|
17
18
|
|
18
19
|
# Be slightly intelligent about merging AllCops, but allow overriding things:
|
@@ -32,24 +33,30 @@ namespace :lint do
|
|
32
33
|
write_file(".rubocop.yml", [results])
|
33
34
|
sh "rubocop --display-cop-names --extra-details --display-style-guide"
|
34
35
|
end
|
36
|
+
end
|
35
37
|
|
38
|
+
namespace :lint do
|
36
39
|
desc "Run bundler-audit against the Gemfile."
|
37
40
|
task :'bundler-audit' do
|
38
41
|
require "bundler/audit/cli"
|
39
42
|
|
40
|
-
%w
|
43
|
+
%w[update check].each do |command|
|
41
44
|
Bundler::Audit::CLI.start [command]
|
42
45
|
end
|
43
46
|
end
|
47
|
+
end
|
44
48
|
|
45
|
-
|
49
|
+
if `which cloc`.strip != ""
|
50
|
+
namespace :lint do
|
46
51
|
desc "Show LOC metrics for project using cloc."
|
47
52
|
task :cloc do
|
48
53
|
# TODO: Make this list customizable.
|
49
54
|
sh "cloc . --exclude-dir=coverage,.bundle,tmp"
|
50
55
|
end
|
51
56
|
end
|
57
|
+
end
|
52
58
|
|
59
|
+
namespace :lint do
|
53
60
|
desc "Check for outdated gems."
|
54
61
|
task :bundler do
|
55
62
|
# Don't error-out if this fails, since we may not be able to update some
|
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.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Frisby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.49.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.49.0
|
69
69
|
description:
|
70
70
|
email:
|
71
71
|
- jfrisby@mrjoy.com
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- LICENSE.txt
|
84
84
|
- README.md
|
85
85
|
- Rakefile
|
86
|
+
- TODO.txt
|
86
87
|
- config/rubocop_rules.yml
|
87
88
|
- lib/orderly_garden.rb
|
88
89
|
- lib/orderly_garden/dsl.rb
|
@@ -110,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
111
|
version: '0'
|
111
112
|
requirements: []
|
112
113
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.6.11
|
114
115
|
signing_key:
|
115
116
|
specification_version: 4
|
116
117
|
summary: A set of tools for Rake and Ruby workflows, to help keep things neat and
|