guard-standardrb 0.1.0.beta1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -5
- data/Gemfile.lock +20 -17
- data/README.md +21 -3
- data/guard-standardrb.gemspec +5 -1
- data/lib/guard/standardrb.rb +9 -9
- data/lib/guard/standardrb/templates/GuardFile +2 -2
- data/lib/guard/standardrb/version.rb +1 -1
- metadata +34 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03ab395c9a951dbb9ef428667cdc0464bd46565688422d6d4068acd8664da705
|
4
|
+
data.tar.gz: 91fc5b06daabf12f370687611fafe5b5918173c9637a417d3749ea762a07f8b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d24e1f6e15fc5d6e8472e90e14862ad4b164dcf0d36b2eb9c3512c87255489aa1a2c6c788aad763e58635b80c261244ddeb834fd7b1606442a720fc5e71948ce
|
7
|
+
data.tar.gz: 8a9d9b13968634f7894afa9bda2f65daae632b6bea4aa350d1e1d1a2b6c066c85466ce3ebc43becb62b669ee78b90e04d12804a8332451627c248a7b2e929843
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -9,10 +9,10 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
ast (2.4.
|
13
|
-
coderay (1.1.
|
12
|
+
ast (2.4.1)
|
13
|
+
coderay (1.1.3)
|
14
14
|
diff-lcs (1.3)
|
15
|
-
ffi (1.
|
15
|
+
ffi (1.13.1)
|
16
16
|
formatador (0.2.5)
|
17
17
|
guard (2.16.2)
|
18
18
|
formatador (>= 0.2.4)
|
@@ -24,27 +24,27 @@ GEM
|
|
24
24
|
shellany (~> 0.0)
|
25
25
|
thor (>= 0.18.1)
|
26
26
|
guard-compat (1.2.1)
|
27
|
-
jaro_winkler (1.5.4)
|
28
27
|
listen (3.2.1)
|
29
28
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
30
29
|
rb-inotify (~> 0.9, >= 0.9.10)
|
31
|
-
lumberjack (1.2.
|
30
|
+
lumberjack (1.2.5)
|
32
31
|
method_source (1.0.0)
|
33
32
|
nenv (0.3.0)
|
34
33
|
notiffany (0.1.3)
|
35
34
|
nenv (~> 0.1)
|
36
35
|
shellany (~> 0.0)
|
37
|
-
parallel (1.19.
|
38
|
-
parser (2.7.1.
|
36
|
+
parallel (1.19.2)
|
37
|
+
parser (2.7.1.3)
|
39
38
|
ast (~> 2.4.0)
|
40
39
|
pry (0.13.1)
|
41
40
|
coderay (~> 1.1)
|
42
41
|
method_source (~> 1.0)
|
43
42
|
rainbow (3.0.0)
|
44
43
|
rake (13.0.1)
|
45
|
-
rb-fsevent (0.10.
|
44
|
+
rb-fsevent (0.10.4)
|
46
45
|
rb-inotify (0.10.1)
|
47
46
|
ffi (~> 1.0)
|
47
|
+
regexp_parser (1.7.1)
|
48
48
|
rexml (3.2.4)
|
49
49
|
rspec (3.9.0)
|
50
50
|
rspec-core (~> 3.9.0)
|
@@ -59,25 +59,28 @@ GEM
|
|
59
59
|
diff-lcs (>= 1.2.0, < 2.0)
|
60
60
|
rspec-support (~> 3.9.0)
|
61
61
|
rspec-support (3.9.2)
|
62
|
-
rubocop (0.
|
63
|
-
jaro_winkler (~> 1.5.1)
|
62
|
+
rubocop (0.85.1)
|
64
63
|
parallel (~> 1.10)
|
65
64
|
parser (>= 2.7.0.1)
|
66
65
|
rainbow (>= 2.2.2, < 4.0)
|
66
|
+
regexp_parser (>= 1.7)
|
67
67
|
rexml
|
68
|
+
rubocop-ast (>= 0.0.3)
|
68
69
|
ruby-progressbar (~> 1.7)
|
69
|
-
unicode-display_width (>= 1.4.0, <
|
70
|
-
rubocop-
|
70
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
71
|
+
rubocop-ast (0.0.3)
|
72
|
+
parser (>= 2.7.0.1)
|
73
|
+
rubocop-performance (1.6.1)
|
71
74
|
rubocop (>= 0.71.0)
|
72
75
|
ruby-progressbar (1.10.1)
|
73
76
|
shellany (0.0.1)
|
74
|
-
standard (0.
|
75
|
-
rubocop (~> 0.
|
76
|
-
rubocop-performance (~> 1.
|
77
|
+
standard (0.4.7)
|
78
|
+
rubocop (~> 0.85.0)
|
79
|
+
rubocop-performance (~> 1.6.0)
|
77
80
|
standardrb (1.0.0)
|
78
81
|
standard
|
79
82
|
thor (1.0.1)
|
80
|
-
unicode-display_width (1.
|
83
|
+
unicode-display_width (1.7.0)
|
81
84
|
|
82
85
|
PLATFORMS
|
83
86
|
ruby
|
@@ -88,4 +91,4 @@ DEPENDENCIES
|
|
88
91
|
rspec (~> 3.1)
|
89
92
|
|
90
93
|
BUNDLED WITH
|
91
|
-
2.1.
|
94
|
+
2.1.4
|
data/README.md
CHANGED
@@ -1,8 +1,20 @@
|
|
1
1
|
# Guard::Standardrb
|
2
2
|
|
3
|
-
Welcome to
|
3
|
+
Welcome to the new guard plugin `guard-standardrb`!
|
4
|
+
This guard is bases on the gem `standardrb`, you can find more information about it https://github.com/testdouble/standard
|
4
5
|
|
5
|
-
|
6
|
+
StandardRB is essentially a wrapper on top of RuboCop, but enforce code convention without much configuration possible.
|
7
|
+
This plugin will run with your guard while you modify your code and output any code conventions erros
|
8
|
+
|
9
|
+
More Information about StandardRb:
|
10
|
+
The beauty of Ruby Standard Style is that it's simple. No one wants to maintain multiple hundred-line style configuration files for every module/project they work on. Enough of this madness!
|
11
|
+
|
12
|
+
This gem saves you (and others!) time in three ways:
|
13
|
+
|
14
|
+
No configuration. The easiest way to enforce consistent style in your project. Just drop it in.
|
15
|
+
Automatically format code. Just run standardrb --fix and say goodbye to messy or inconsistent code.
|
16
|
+
Catch style issues & programmer errors early. Save precious code review time by eliminating back-and-forth between reviewer & contributor.
|
17
|
+
Adopting Standard style means ranking the importance of code clarity and community conventions higher than personal style. This might not make sense for 100% of projects and development cultures, however open source can be a hostile place for newbies. Setting up clear, automated contributor expectations makes a project healthier.
|
6
18
|
|
7
19
|
## Installation
|
8
20
|
|
@@ -20,9 +32,15 @@ Or install it yourself as:
|
|
20
32
|
|
21
33
|
$ gem install guard-standardrb
|
22
34
|
|
35
|
+
To add this guard plugin to your repo, run:
|
36
|
+
|
37
|
+
$ bundle exec guard init standardrb
|
38
|
+
|
23
39
|
## Usage
|
24
40
|
|
25
|
-
|
41
|
+
Once you installed the gem on your repo and initialized it to be added to your GuardFile,
|
42
|
+
just run `bundle exec guard` and you should see a line `Standardrb initialized`.
|
43
|
+
This means that the guard will run on all files that will be modified by that point in time and output the erros.
|
26
44
|
|
27
45
|
## Development
|
28
46
|
|
data/guard-standardrb.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.authors = ["Jody Vandenschrick"]
|
8
8
|
spec.email = ["jody.vanden@gmail.com"]
|
9
9
|
|
10
|
-
spec.summary = %q{add a plugin to
|
10
|
+
spec.summary = %q{add a plugin to guard to work with standardrb.}
|
11
11
|
spec.homepage = "https://github.com/JodyVanden/guard-standardrb"
|
12
12
|
spec.license = "MIT"
|
13
13
|
# spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
@@ -21,6 +21,10 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_dependency 'guard', '>= 2.0.0'
|
22
22
|
spec.add_dependency 'guard-compat', '~> 1.0'
|
23
23
|
spec.add_dependency 'standardrb'
|
24
|
+
|
25
|
+
spec.add_development_dependency 'rake'
|
26
|
+
spec.add_development_dependency 'rspec', '~> 3.1'
|
27
|
+
|
24
28
|
|
25
29
|
# Specify which files should be added to the gem when it is released.
|
26
30
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
data/lib/guard/standardrb.rb
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require
|
4
|
-
require 'guard/plugin'
|
1
|
+
require "guard"
|
2
|
+
require "guard/plugin"
|
3
|
+
require "guard/standardrb/version"
|
5
4
|
|
6
5
|
module Guard
|
7
6
|
class Standardrb < Plugin
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
def initialize(options = {})
|
8
|
+
super
|
9
|
+
@options = options
|
11
10
|
end
|
12
11
|
|
13
|
-
def
|
12
|
+
def start
|
13
|
+
Guard::Compat::UI.info "Inspecting Ruby code style of all files with standardrb"
|
14
14
|
end
|
15
15
|
|
16
16
|
def run_on_modifications(res)
|
17
|
-
UI.info
|
17
|
+
Guard::Compat::UI.info "StandardRb a file was modified"
|
18
18
|
inspect_with_standardrb(res)
|
19
19
|
|
20
20
|
$stdout.puts res if res
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-standardrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jody Vandenschrick
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -52,6 +52,34 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.1'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.1'
|
55
83
|
description:
|
56
84
|
email:
|
57
85
|
- jody.vanden@gmail.com
|
@@ -93,12 +121,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
93
121
|
version: '0'
|
94
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
123
|
requirements:
|
96
|
-
- - "
|
124
|
+
- - ">="
|
97
125
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
126
|
+
version: '0'
|
99
127
|
requirements: []
|
100
|
-
rubygems_version: 3.
|
128
|
+
rubygems_version: 3.0.3
|
101
129
|
signing_key:
|
102
130
|
specification_version: 4
|
103
|
-
summary: add a plugin to
|
131
|
+
summary: add a plugin to guard to work with standardrb.
|
104
132
|
test_files: []
|