guard-standardrb 0.1.0.beta3 → 0.1.0.beta4

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
  SHA256:
3
- metadata.gz: 60cee27a1a4257488ae62b85d59f7c3e7c9b9b141ed7444a96f8daeefeb13ccd
4
- data.tar.gz: 6a7e615e3ef05849c8ed911833a4c62bfe492fc01328797688fdcda5d76120c5
3
+ metadata.gz: 6a93e41eccda79ac0f698385bb182a7de5fb7117e1c94fea4fe93f9e5b0826e6
4
+ data.tar.gz: 2b6087c303908e445d53db12975ac4ad961cee4b3b1842993b4b08a53e48423e
5
5
  SHA512:
6
- metadata.gz: 17d43f8eaf8206766d17c5fd79db8bd36e3ecf23680cfeafe18ba93d5895bb76710ed8f6aa276799b379d8680a87ec178fa73a34dac2e5ffcd642feb9f8099f1
7
- data.tar.gz: 20a5c06d2753e669ccaf39533cb72e9a8e09c0d32d26abafd50d966a3335fc1a75afb53e9422647bc49a0ee286742e175851362a39f1ec04cbc461c5c9f3237f
6
+ metadata.gz: 808d88c143566457a5701ef58386f7e30bbbc7c177656d5e61101c05d397b09e6a490c4a0a1df7e90b33b841a2ddbf6f86c8e6c865d6917d8517c18049b9c528
7
+ data.tar.gz: a0a94d35f846f83620cc1a81e797bae3846633a5554f1f803d9f47348ab4318500b9d8567139ea30ef8bda18b55890d73a5984ce7c218dc5ce4739e2c4b651aa
data/Gemfile.lock CHANGED
@@ -1,8 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- guard-standardrb (0.1.0.beta1)
4
+ guard-standardrb (0.1.0)
5
5
  guard (>= 2.0.0)
6
+ guard-compat (~> 1.0)
6
7
  standardrb
7
8
 
8
9
  GEM
@@ -22,6 +23,7 @@ GEM
22
23
  pry (>= 0.9.12)
23
24
  shellany (~> 0.0)
24
25
  thor (>= 0.18.1)
26
+ guard-compat (1.2.1)
25
27
  jaro_winkler (1.5.4)
26
28
  listen (3.2.1)
27
29
  rb-fsevent (~> 0.10, >= 0.10.3)
@@ -81,7 +83,6 @@ PLATFORMS
81
83
  ruby
82
84
 
83
85
  DEPENDENCIES
84
- bundler (~> 2.1)
85
86
  guard-standardrb!
86
87
  rake
87
88
  rspec (~> 3.1)
@@ -18,12 +18,9 @@ Gem::Specification.new do |spec|
18
18
  spec.metadata["source_code_uri"] = "https://github.com/JodyVanden/guard-standardrb"
19
19
  spec.metadata["changelog_uri"] = "https://github.com/JodyVanden/guard-standardrb"
20
20
 
21
- spec.add_runtime_dependency 'guard', '>= 2.0.0'
22
- spec.add_runtime_dependency 'standardrb'
23
-
24
- spec.add_development_dependency 'bundler', '~> 2.1'
25
- spec.add_development_dependency 'rake', '~> 10.0'
26
- spec.add_development_dependency 'rspec', '~> 3.0'
21
+ spec.add_dependency 'guard', '>= 2.0.0'
22
+ spec.add_dependency 'guard-compat', '~> 1.0'
23
+ spec.add_dependency 'standardrb'
27
24
 
28
25
  # Specify which files should be added to the gem when it is released.
29
26
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -6,44 +6,24 @@ require 'guard/plugin'
6
6
  module Guard
7
7
  class Standardrb < Plugin
8
8
 
9
- attr_reader :options
10
-
11
- def initialize(options = {})
12
- super
13
-
14
- @options = {
15
- all_on_start: false,
16
- fix: false,
17
- }.merge(options)
18
-
19
- end
20
-
21
9
  def start
22
- run_all if @options[:all_on_start]
10
+ UI.info 'Inspecting Ruby code style of all files with standardrb'
23
11
  end
24
12
 
25
- def run_all
26
- UI.info 'Inspecting Ruby code style of all files with standardrb'
27
- system("bundle exec standardrb")
13
+ def stop
28
14
  end
29
15
 
30
16
  def run_on_modifications(res)
31
17
  UI.info 'StandardRb a file was modified'
32
- options[fix] ? inspect_standardrb_fix(res) : inspect_standardrb(res)
18
+ inspect_with_standardrb(res)
33
19
 
34
20
  $stdout.puts res if res
35
21
  end
36
22
 
37
- def inspect_standardrb(paths = [])
23
+ def inspect_with_standardrb(paths = [])
38
24
  paths.each do |path|
39
25
  system("bundle exec standardrb #{path}")
40
26
  end
41
27
  end
42
-
43
- def inspect_standardrb_fix(paths = [])
44
- paths.each do |path|
45
- system("bundle exec standardrb --fix #{path}")
46
- end
47
- end
48
28
  end
49
29
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module StandardrbVersion
3
- VERSION = "0.1.0.beta3".freeze
3
+ VERSION = "0.1.0.beta4".freeze
4
4
  end
5
5
  end
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.0.beta3
4
+ version: 0.1.0.beta4
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-04-15 00:00:00.000000000 Z
11
+ date: 2020-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -25,61 +25,33 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: standardrb
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: bundler
28
+ name: guard-compat
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '2.1'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '2.1'
55
- - !ruby/object:Gem::Dependency
56
- name: rake
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '10.0'
62
- type: :development
33
+ version: '1.0'
34
+ type: :runtime
63
35
  prerelease: false
64
36
  version_requirements: !ruby/object:Gem::Requirement
65
37
  requirements:
66
38
  - - "~>"
67
39
  - !ruby/object:Gem::Version
68
- version: '10.0'
40
+ version: '1.0'
69
41
  - !ruby/object:Gem::Dependency
70
- name: rspec
42
+ name: standardrb
71
43
  requirement: !ruby/object:Gem::Requirement
72
44
  requirements:
73
- - - "~>"
45
+ - - ">="
74
46
  - !ruby/object:Gem::Version
75
- version: '3.0'
76
- type: :development
47
+ version: '0'
48
+ type: :runtime
77
49
  prerelease: false
78
50
  version_requirements: !ruby/object:Gem::Requirement
79
51
  requirements:
80
- - - "~>"
52
+ - - ">="
81
53
  - !ruby/object:Gem::Version
82
- version: '3.0'
54
+ version: '0'
83
55
  description:
84
56
  email:
85
57
  - jody.vanden@gmail.com