guard-busted 1.0.1 → 2.0.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
  SHA256:
3
- metadata.gz: 663da150a36747b5610a573555b51940b380bf2c4867e709ed6dcc2ff27ca46e
4
- data.tar.gz: 41297046ef2bf6b2987978106db86bb2ebba199cadf940013c7a3988c40b71b6
3
+ metadata.gz: 5efc2908fbfd4ffa1ebe5fa5b3f6c11f37bd39e6d4a2e34f998ffcf1a5deb85d
4
+ data.tar.gz: 2cc74b6f357c0e3daf6f48b3244147e2bf2b146ea875851328f879e8ef9fe3e1
5
5
  SHA512:
6
- metadata.gz: a062066c49f8a82f5071ebbd4d27ceb58defba8c7628640cee20850190ed9ccd67067227fc82f712ebe9fb7904d8176683e0a7653ae121621a3a8bd14abcc420
7
- data.tar.gz: 24bc5e26aabeda3bfdf74825034467c30be6aeb458bbeb2c1df4c772899a689c46e3d0c80e114d158992574eadd67bdffbf173fff7a84d9ce168fa9ce36b24b8
6
+ metadata.gz: f587c88691255588da0d6a23366026a23aeecb532a9416ee1c19d5a998548f6fd93ca84390760116e711d04107f11f4aa51996911b18b9c18f7b5751549cc7c7
7
+ data.tar.gz: 3b5ea8378e262a738b1fd9689a9d1521f6a774db6a8f3bb0d82ab794eda4c7a9dabe368232edfb3f1e08678d2c8ef8e7f3c7dab48837098641aa4ca76f7686fd
@@ -12,7 +12,7 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  strategy:
14
14
  matrix:
15
- ruby-version: ['2.7', '3.0']
15
+ ruby-version: ['3.1', '3.3']
16
16
 
17
17
  steps:
18
18
  - uses: actions/checkout@v2
@@ -21,6 +21,9 @@ jobs:
21
21
  with:
22
22
  ruby-version: ${{ matrix.ruby-version }}
23
23
  bundler-cache: true
24
+ cache-version: 1
25
+ - name: Install dependencies
26
+ run: bundle install --without development
24
27
  - name: Run tests
25
28
  run: bundle exec rake
26
29
  - name: Send test coverage report
@@ -16,7 +16,10 @@ jobs:
16
16
  - name: Set up Ruby
17
17
  uses: ruby/setup-ruby@v1
18
18
  with:
19
- ruby-version: '3.0'
19
+ ruby-version: '3.1'
20
20
  bundler-cache: true
21
+ cache-version: 1
22
+ - name: Install dependencies
23
+ run: bundle install --without development
21
24
  - name: Run rubocop
22
25
  run: bundle exec rubocop
@@ -16,7 +16,7 @@ jobs:
16
16
  - uses: actions/checkout@v4
17
17
  - uses: ruby/setup-ruby@v1
18
18
  with:
19
- ruby-version: '3.0'
19
+ ruby-version: '3.3'
20
20
 
21
21
  - name: Publish to RubyGems
22
22
  run: |
data/.gitignore CHANGED
@@ -3,3 +3,4 @@ coverage
3
3
  pkg
4
4
  vendor
5
5
  .bundle
6
+ .claude
data/.rubocop.yml CHANGED
@@ -1,3 +1,7 @@
1
+ plugins:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+
1
5
  AllCops:
2
6
  NewCops: enable
3
7
  Exclude:
@@ -5,4 +9,8 @@ AllCops:
5
9
  Layout/LineLength:
6
10
  Max: 150
7
11
  Metrics/BlockLength:
8
- IgnoredMethods: ['describe', 'context', 'shared_examples', 'it', 'before', 'namespace']
12
+ AllowedMethods: ['describe', 'context', 'shared_examples', 'it', 'before', 'namespace']
13
+ RSpec/SpecFilePathFormat:
14
+ Enabled: false
15
+ RSpec/ExampleLength:
16
+ Max: 10
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.0.0
4
+
5
+ * Update rubocop rules and fix warnings from rubocop
6
+ * Remove groups from Gemfile as all gems are needed in test and dev environments
7
+ * Remove overcommit from project
8
+ * Drop support for Ruby < 3.1
9
+ * Update github workflows to support only Ruby >= 3.1
10
+
11
+ ## v1.0.2 (Not Released)
12
+
13
+ * Update gems in Gemfile.lock
14
+
15
+ ## v1.0.1
16
+
17
+ * Update rubygems workflows
18
+ * Move development gems to Gemfile
19
+ * Force colors for STDOUT from busted
20
+ * Update rubocop rules
21
+
3
22
  ## v0.1.2
4
23
 
5
24
  * Fixed Guardfile
data/Gemfile.lock CHANGED
@@ -1,25 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- guard-busted (1.0.1)
4
+ guard-busted (2.0.0)
5
5
  guard (~> 2.18)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- amazing_print (1.4.0)
11
- ast (2.4.2)
10
+ amazing_print (1.8.1)
11
+ ast (2.4.3)
12
12
  coderay (1.1.3)
13
- diff-lcs (1.5.0)
14
- docile (1.4.0)
15
- ffi (1.15.5)
16
- formatador (1.1.0)
17
- guard (2.18.0)
13
+ diff-lcs (1.6.2)
14
+ docile (1.4.1)
15
+ ffi (1.17.2-x86_64-linux-gnu)
16
+ formatador (1.1.1)
17
+ guard (2.19.1)
18
18
  formatador (>= 0.2.4)
19
19
  listen (>= 2.7, < 4.0)
20
+ logger (~> 1.6)
20
21
  lumberjack (>= 1.0.12, < 2.0)
21
22
  nenv (~> 0.1)
22
23
  notiffany (~> 0.0)
24
+ ostruct (~> 0.6)
23
25
  pry (>= 0.13.0)
24
26
  shellany (~> 0.0)
25
27
  thor (>= 0.18.1)
@@ -28,69 +30,84 @@ GEM
28
30
  guard (~> 2.1)
29
31
  guard-compat (~> 1.1)
30
32
  rspec (>= 2.99.0, < 4.0)
31
- listen (3.7.1)
33
+ json (2.13.2)
34
+ language_server-protocol (3.17.0.5)
35
+ lint_roller (1.1.0)
36
+ listen (3.9.0)
32
37
  rb-fsevent (~> 0.10, >= 0.10.3)
33
38
  rb-inotify (~> 0.9, >= 0.9.10)
34
- lumberjack (1.2.8)
35
- method_source (1.0.0)
39
+ logger (1.7.0)
40
+ lumberjack (1.3.3)
41
+ method_source (1.1.0)
36
42
  nenv (0.3.0)
37
43
  notiffany (0.1.3)
38
44
  nenv (~> 0.1)
39
45
  shellany (~> 0.0)
40
- parallel (1.21.0)
41
- parser (3.1.0.0)
46
+ ostruct (0.6.3)
47
+ parallel (1.27.0)
48
+ parser (3.3.9.0)
42
49
  ast (~> 2.4.1)
43
- pry (0.14.1)
50
+ racc
51
+ prism (1.4.0)
52
+ pry (0.15.2)
44
53
  coderay (~> 1.1)
45
54
  method_source (~> 1.0)
55
+ racc (1.8.1)
46
56
  rainbow (3.1.1)
47
- rake (13.0.6)
48
- rb-fsevent (0.11.1)
49
- rb-inotify (0.10.1)
57
+ rake (13.3.0)
58
+ rb-fsevent (0.11.2)
59
+ rb-inotify (0.11.1)
50
60
  ffi (~> 1.0)
51
- regexp_parser (2.2.1)
52
- rexml (3.2.5)
53
- rspec (3.11.0)
54
- rspec-core (~> 3.11.0)
55
- rspec-expectations (~> 3.11.0)
56
- rspec-mocks (~> 3.11.0)
57
- rspec-core (3.11.0)
58
- rspec-support (~> 3.11.0)
59
- rspec-expectations (3.11.0)
61
+ regexp_parser (2.10.0)
62
+ rexml (3.4.1)
63
+ rspec (3.13.1)
64
+ rspec-core (~> 3.13.0)
65
+ rspec-expectations (~> 3.13.0)
66
+ rspec-mocks (~> 3.13.0)
67
+ rspec-core (3.13.5)
68
+ rspec-support (~> 3.13.0)
69
+ rspec-expectations (3.13.5)
60
70
  diff-lcs (>= 1.2.0, < 2.0)
61
- rspec-support (~> 3.11.0)
62
- rspec-mocks (3.11.0)
71
+ rspec-support (~> 3.13.0)
72
+ rspec-mocks (3.13.5)
63
73
  diff-lcs (>= 1.2.0, < 2.0)
64
- rspec-support (~> 3.11.0)
65
- rspec-support (3.11.0)
66
- rubocop (1.25.1)
74
+ rspec-support (~> 3.13.0)
75
+ rspec-support (3.13.4)
76
+ rubocop (1.79.1)
77
+ json (~> 2.3)
78
+ language_server-protocol (~> 3.17.0.2)
79
+ lint_roller (~> 1.1.0)
67
80
  parallel (~> 1.10)
68
- parser (>= 3.1.0.0)
81
+ parser (>= 3.3.0.2)
69
82
  rainbow (>= 2.2.2, < 4.0)
70
- regexp_parser (>= 1.8, < 3.0)
71
- rexml
72
- rubocop-ast (>= 1.15.1, < 2.0)
83
+ regexp_parser (>= 2.9.3, < 3.0)
84
+ rubocop-ast (>= 1.46.0, < 2.0)
73
85
  ruby-progressbar (~> 1.7)
74
- unicode-display_width (>= 1.4.0, < 3.0)
75
- rubocop-ast (1.15.2)
76
- parser (>= 3.0.1.1)
77
- rubocop-rake (0.6.0)
78
- rubocop (~> 1.0)
79
- rubocop-rspec (2.8.0)
80
- rubocop (~> 1.19)
81
- ruby-progressbar (1.11.0)
86
+ unicode-display_width (>= 2.4.0, < 4.0)
87
+ rubocop-ast (1.46.0)
88
+ parser (>= 3.3.7.2)
89
+ prism (~> 1.4)
90
+ rubocop-rake (0.7.1)
91
+ lint_roller (~> 1.1)
92
+ rubocop (>= 1.72.1)
93
+ rubocop-rspec (3.6.0)
94
+ lint_roller (~> 1.1)
95
+ rubocop (~> 1.72, >= 1.72.1)
96
+ ruby-progressbar (1.13.0)
82
97
  shellany (0.0.1)
83
- simplecov (0.21.2)
98
+ simplecov (0.22.0)
84
99
  docile (~> 1.1)
85
100
  simplecov-html (~> 0.11)
86
101
  simplecov_json_formatter (~> 0.1)
87
- simplecov-cobertura (2.1.0)
102
+ simplecov-cobertura (3.0.0)
88
103
  rexml
89
104
  simplecov (~> 0.19)
90
- simplecov-html (0.12.3)
91
- simplecov_json_formatter (0.1.3)
92
- thor (1.2.1)
93
- unicode-display_width (2.1.0)
105
+ simplecov-html (0.13.2)
106
+ simplecov_json_formatter (0.1.4)
107
+ thor (1.4.0)
108
+ unicode-display_width (3.1.4)
109
+ unicode-emoji (~> 4.0, >= 4.0.4)
110
+ unicode-emoji (4.0.4)
94
111
 
95
112
  PLATFORMS
96
113
  x86_64-linux
@@ -109,4 +126,4 @@ DEPENDENCIES
109
126
  simplecov-cobertura
110
127
 
111
128
  BUNDLED WITH
112
- 2.3.4
129
+ 2.5.17
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 Piotr Jezusek
3
+ Copyright (c) 2025 Piotr Jezusek
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -27,21 +27,27 @@ Just type `guard init busted` in the root of your project.
27
27
  This command initializes the Guard file.
28
28
 
29
29
  The provided guard template checks all files with `.lua` extension and starts the corresponding test file.
30
- It searches test files in `spec` directory with the pattern `spec/<relative_path_to_file>/<file_name>_spec.lua`.
30
+ It searches for test files in the `spec` directory with the pattern `spec/<relative_path_to_file>/<file_name>_spec.lua`.
31
31
 
32
32
  _EXAMPLE:_<br />
33
- There is some file in the project `some_dir/some_file.lua`.
34
- After some change on this file the guard-busted gem will try to perform tests located in: `spec/some_dir/some_file_spec.lua`.
33
+ There is a file in the project `some_dir/some_file.lua`.
34
+ After making changes to this file, the guard-busted gem will try to run tests located in: `spec/some_dir/some_file_spec.lua`.
35
35
 
36
36
  _WARNING!:_<br />
37
- Keep in your mind that it treats `src` dir in the special way.
37
+ Keep in mind that it treats the `src` directory in a special way.
38
38
  It just does not include `src` in the mentioned pattern.
39
39
 
40
40
  The gem also supports desktop notifications.
41
41
 
42
+ ## Development
43
+
44
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
45
+
46
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `lib/guard/busted/version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
47
+
42
48
  ## Contributing
43
49
 
44
- Don't hesitate to open an issue or make a pull request.
50
+ Bug reports and pull requests are welcome on GitHub at https://github.com/pjezusek/guard-busted.
45
51
 
46
52
  ## License
47
53
 
data/bin/setup CHANGED
@@ -8,12 +8,3 @@ cd $(git rev-parse --show-toplevel 2>/dev/null)
8
8
 
9
9
  # Install development dependencies
10
10
  bundle install
11
-
12
- # Instal overcommit dependencies
13
- bundle install --gemfile=.overcommit_gems.rb
14
-
15
- # Install git hooks
16
- overcommit --install
17
-
18
- # Sign git hooks
19
- overcommit --sign
data/guard-busted.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = 'Guard::Busted automatically run your specs'
13
13
  spec.homepage = 'https://github.com/pjezusek/guard-busted.git'
14
14
  spec.license = 'MIT'
15
- spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
15
+ spec.required_ruby_version = Gem::Requirement.new('>= 3.1.0')
16
16
 
17
17
  spec.metadata['homepage_uri'] = spec.homepage
18
18
  spec.metadata['source_code_uri'] = 'https://github.com/pjezusek/guard-busted.git'
@@ -3,7 +3,7 @@
3
3
  # :nocov:
4
4
  module Guard
5
5
  module BustedVersion
6
- VERSION = '1.0.1'
6
+ VERSION = '2.0.0'
7
7
  end
8
8
  end
9
9
  # :nocov:
data/lib/guard/busted.rb CHANGED
@@ -11,6 +11,7 @@ module Guard
11
11
  # Plugin for 'guard' which starts 'busted' (lua unit testing framework) if a change is detected.
12
12
  class Busted < Plugin
13
13
  include BustedUtils
14
+
14
15
  attr_reader :options, :runner
15
16
 
16
17
  # Initializes a Guard plugin.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-busted
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Jezusek
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-03 00:00:00.000000000 Z
11
+ date: 2025-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -35,9 +35,6 @@ files:
35
35
  - ".github/workflows/rubocop.yml"
36
36
  - ".github/workflows/rubygems.yml"
37
37
  - ".gitignore"
38
- - ".overcommit.yml"
39
- - ".overcommit_gems.rb"
40
- - ".overcommit_gems.rb.lock"
41
38
  - ".rspec"
42
39
  - ".rubocop.yml"
43
40
  - CHANGELOG.md
@@ -65,7 +62,7 @@ metadata:
65
62
  source_code_uri: https://github.com/pjezusek/guard-busted.git
66
63
  changelog_uri: https://github.com/pjezusek/guard-busted/blob/master/CHANGELOG.md
67
64
  rubygems_mfa_required: 'true'
68
- post_install_message:
65
+ post_install_message:
69
66
  rdoc_options: []
70
67
  require_paths:
71
68
  - lib
@@ -73,15 +70,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
73
70
  requirements:
74
71
  - - ">="
75
72
  - !ruby/object:Gem::Version
76
- version: 2.5.0
73
+ version: 3.1.0
77
74
  required_rubygems_version: !ruby/object:Gem::Requirement
78
75
  requirements:
79
76
  - - ">="
80
77
  - !ruby/object:Gem::Version
81
78
  version: '0'
82
79
  requirements: []
83
- rubygems_version: 3.2.33
84
- signing_key:
80
+ rubygems_version: 3.5.22
81
+ signing_key:
85
82
  specification_version: 4
86
83
  summary: Guard gem for busted
87
84
  test_files: []
data/.overcommit.yml DELETED
@@ -1,86 +0,0 @@
1
- gemfile: '.overcommit_gems.rb'
2
-
3
- plugin_directory: '.git-hooks'
4
-
5
- quiet: false
6
-
7
- concurrency: '%{processors}'
8
-
9
- verify_signatures: true
10
-
11
- CommitMsg:
12
- ALL:
13
- requires_files: false
14
- quiet: false
15
-
16
- CapitalizedSubject:
17
- enabled: false
18
-
19
- EmptyMessage:
20
- enabled: true
21
- description: 'Check for empty commit message'
22
-
23
- MessageFormat:
24
- enabled: true
25
- description: 'Check commit message matches expected pattern'
26
- pattern: '\[(((#[0-9]+)(, (#[0-9]+))*)|(v[0-9]+(\.[0-9]+)*))\][ ](.+)(\n\n.+)?'
27
- expected_pattern_message: '[#<Issue Id>|v<version>] <Commit Message Description>'
28
- sample_message: '[#403] Fix a bug that crashes the system'
29
-
30
- SingleLineSubject:
31
- enabled: true
32
- description: 'Check subject line'
33
-
34
- TextWidth:
35
- enabled: true
36
- description: 'Check text width'
37
- max_subject_width: 60
38
- min_subject_width: 0
39
- max_body_width: 72
40
-
41
- TrailingPeriod:
42
- enabled: true
43
- description: 'Check for trailing periods in subject'
44
-
45
- PreCommit:
46
- ALL:
47
- problem_on_unmodified_line: report
48
- requires_files: true
49
- required: false
50
- quiet: false
51
-
52
- RuboCop:
53
- enabled: true
54
- on_warn: fail
55
-
56
- AuthorEmail:
57
- enabled: true
58
- description: 'Check author email'
59
- requires_files: false
60
- required: true
61
- pattern: '^[^@]+@.*$'
62
-
63
- AuthorName:
64
- enabled: true
65
- description: 'Check for author name'
66
- requires_files: false
67
- required: true
68
-
69
- BrokenSymlinks:
70
- enabled: true
71
- description: 'Check for broken symlinks'
72
-
73
- CaseConflicts:
74
- enabled: true
75
- description: 'Check for case-insensitivity conflicts'
76
-
77
- FileSize:
78
- enabled: true
79
- description: 'Check for oversized files'
80
- size_limit_bytes: 1_000_000
81
-
82
- ForbiddenBranches:
83
- enabled: true
84
- description: 'Check for commit to forbidden branch'
85
- quiet: true
86
- branch_patterns: ['master', 'develop', 'v*']
data/.overcommit_gems.rb DELETED
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'overcommit'
6
- gem 'rubocop'
7
- gem 'rubocop-rspec'
@@ -1,42 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- ast (2.4.2)
5
- childprocess (4.1.0)
6
- iniparse (1.5.0)
7
- overcommit (0.58.0)
8
- childprocess (>= 0.6.3, < 5)
9
- iniparse (~> 1.4)
10
- rexml (~> 3.2)
11
- parallel (1.21.0)
12
- parser (3.1.0.0)
13
- ast (~> 2.4.1)
14
- rainbow (3.1.1)
15
- regexp_parser (2.2.1)
16
- rexml (3.2.5)
17
- rubocop (1.25.1)
18
- parallel (~> 1.10)
19
- parser (>= 3.1.0.0)
20
- rainbow (>= 2.2.2, < 4.0)
21
- regexp_parser (>= 1.8, < 3.0)
22
- rexml
23
- rubocop-ast (>= 1.15.1, < 2.0)
24
- ruby-progressbar (~> 1.7)
25
- unicode-display_width (>= 1.4.0, < 3.0)
26
- rubocop-ast (1.15.2)
27
- parser (>= 3.0.1.1)
28
- rubocop-rspec (2.8.0)
29
- rubocop (~> 1.19)
30
- ruby-progressbar (1.11.0)
31
- unicode-display_width (2.1.0)
32
-
33
- PLATFORMS
34
- x86_64-linux
35
-
36
- DEPENDENCIES
37
- overcommit
38
- rubocop
39
- rubocop-rspec
40
-
41
- BUNDLED WITH
42
- 2.3.4