ccru 0.1.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 +7 -0
- data/.github/workflows/main.yml +27 -0
- data/.gitignore +9 -0
- data/.rubocop.yml +13 -0
- data/CHANGELOG.md +79 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +55 -0
- data/README.md +88 -0
- data/Rakefile +8 -0
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/ccru.gemspec +39 -0
- data/exe/ccru +5 -0
- data/lib/ccru/cli.rb +84 -0
- data/lib/ccru/erb_linter.rb +83 -0
- data/lib/ccru/erb_linter_runner.rb +37 -0
- data/lib/ccru/file_handler.rb +12 -0
- data/lib/ccru/file_type_detector.rb +27 -0
- data/lib/ccru/git_diff.rb +141 -0
- data/lib/ccru/javascript_linter.rb +282 -0
- data/lib/ccru/javascript_linter_runner.rb +32 -0
- data/lib/ccru/linter_runner.rb +40 -0
- data/lib/ccru/offense_printer.rb +45 -0
- data/lib/ccru/rubocop_runner.rb +65 -0
- data/lib/ccru/usual_linter.rb +57 -0
- data/lib/ccru/version.rb +5 -0
- data/lib/ccru.rb +8 -0
- data/sig/ccru.rbs +4 -0
- metadata +98 -0
metadata
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ccru
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- thucpt
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2025-08-29 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: rubocop
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0.5'
|
|
20
|
+
- - "<"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '2.0'
|
|
23
|
+
type: :runtime
|
|
24
|
+
prerelease: false
|
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
26
|
+
requirements:
|
|
27
|
+
- - ">="
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '0.5'
|
|
30
|
+
- - "<"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '2.0'
|
|
33
|
+
description: Checks only new files fully and modified files only for changed lines
|
|
34
|
+
based on git diff. Supports Ruby (RuboCop), JavaScript (ES6 syntax + code quality),
|
|
35
|
+
and ERB templates (conventions).
|
|
36
|
+
email:
|
|
37
|
+
- thucpt@zigexn.vn
|
|
38
|
+
executables:
|
|
39
|
+
- ccru
|
|
40
|
+
extensions: []
|
|
41
|
+
extra_rdoc_files: []
|
|
42
|
+
files:
|
|
43
|
+
- ".github/workflows/main.yml"
|
|
44
|
+
- ".gitignore"
|
|
45
|
+
- ".rubocop.yml"
|
|
46
|
+
- CHANGELOG.md
|
|
47
|
+
- Gemfile
|
|
48
|
+
- Gemfile.lock
|
|
49
|
+
- README.md
|
|
50
|
+
- Rakefile
|
|
51
|
+
- bin/console
|
|
52
|
+
- bin/setup
|
|
53
|
+
- ccru.gemspec
|
|
54
|
+
- exe/ccru
|
|
55
|
+
- lib/ccru.rb
|
|
56
|
+
- lib/ccru/cli.rb
|
|
57
|
+
- lib/ccru/erb_linter.rb
|
|
58
|
+
- lib/ccru/erb_linter_runner.rb
|
|
59
|
+
- lib/ccru/file_handler.rb
|
|
60
|
+
- lib/ccru/file_type_detector.rb
|
|
61
|
+
- lib/ccru/git_diff.rb
|
|
62
|
+
- lib/ccru/javascript_linter.rb
|
|
63
|
+
- lib/ccru/javascript_linter_runner.rb
|
|
64
|
+
- lib/ccru/linter_runner.rb
|
|
65
|
+
- lib/ccru/offense_printer.rb
|
|
66
|
+
- lib/ccru/rubocop_runner.rb
|
|
67
|
+
- lib/ccru/usual_linter.rb
|
|
68
|
+
- lib/ccru/version.rb
|
|
69
|
+
- sig/ccru.rbs
|
|
70
|
+
homepage: https://github.com/thuczige/ccru
|
|
71
|
+
licenses: []
|
|
72
|
+
metadata:
|
|
73
|
+
allowed_push_host: https://rubygems.org
|
|
74
|
+
homepage_uri: https://github.com/thuczige/ccru
|
|
75
|
+
source_code_uri: https://github.com/thuczige/ccru
|
|
76
|
+
changelog_uri: https://github.com/thuczige/ccru/blob/main/CHANGELOG.md
|
|
77
|
+
rubygems_mfa_required: 'true'
|
|
78
|
+
post_install_message:
|
|
79
|
+
rdoc_options: []
|
|
80
|
+
require_paths:
|
|
81
|
+
- lib
|
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
83
|
+
requirements:
|
|
84
|
+
- - ">="
|
|
85
|
+
- !ruby/object:Gem::Version
|
|
86
|
+
version: '2.0'
|
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
|
+
requirements:
|
|
89
|
+
- - ">="
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: '0'
|
|
92
|
+
requirements: []
|
|
93
|
+
rubygems_version: 3.5.3
|
|
94
|
+
signing_key:
|
|
95
|
+
specification_version: 4
|
|
96
|
+
summary: Multi-language linter wrapper that checks only changed lines/files (Ruby,
|
|
97
|
+
JavaScript, ERB)
|
|
98
|
+
test_files: []
|