ts_schema_spec 0.5.4 → 0.6.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dcc02f190a1fcbe41e89aaab3f8714c6cc5d189372297d4bfb716af2d7a97e8e
|
|
4
|
+
data.tar.gz: ac904c2a071466249b79f9b514b4f5c06ab8f746b17a00ac3703dae257ad93d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b42d96309d3f9beaa23ac086f5057c0a87a281d18548aad96d7d24cb6695e84920301d5041a22a9c14f60f8193d4d99ae255dcc4b7262675a5b8d779ad49fc6b
|
|
7
|
+
data.tar.gz: 5c7ac0e02c49f4c363221e8569e510eb068ba780930a219080b339150a647dcb7dfc010cececa1cbde81e0378c59926ea2ca85742476a306df51bf2ca8d03db5
|
data/README.md
CHANGED
|
@@ -16,7 +16,7 @@ controller or a plain fetch client works the same way.
|
|
|
16
16
|
|
|
17
17
|
```ruby
|
|
18
18
|
# Gemfile
|
|
19
|
-
gem "ts_schema_spec",
|
|
19
|
+
gem "ts_schema_spec", group: :test
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
This gem requires ts-json-schema-generator, resolved from your project's
|
|
@@ -75,7 +75,7 @@ RAILS_ENV=test bundle exec rake ts_schema_spec:install_skill
|
|
|
75
75
|
|
|
76
76
|
`RAILS_ENV=test` is required when the gem is in `group: :test`, as above.
|
|
77
77
|
|
|
78
|
-
It lands in `.claude/skills/
|
|
78
|
+
It lands in `.claude/skills/ts-schema-spec/SKILL.md`, stamped with the
|
|
79
79
|
gem version. To keep the skill in sync with the gem version:
|
|
80
80
|
|
|
81
81
|
```ruby
|
|
@@ -85,6 +85,9 @@ it "has the skill matching the installed gem" do
|
|
|
85
85
|
end
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
+
Versions up to 0.5.4 named the skill `react-prop-type-spec`. After reinstalling,
|
|
89
|
+
delete `.claude/skills/react-prop-type-spec/`.
|
|
90
|
+
|
|
88
91
|
## Use
|
|
89
92
|
|
|
90
93
|
### A JSON endpoint
|
data/lib/ts_schema_spec/skill.rb
CHANGED
|
@@ -9,7 +9,7 @@ module TsSchemaSpec
|
|
|
9
9
|
# silently outdated copy teaches the wrong API. The copy carries the gem
|
|
10
10
|
# version and `check!` fails when the two diverge.
|
|
11
11
|
module Skill
|
|
12
|
-
NAME = "
|
|
12
|
+
NAME = "ts-schema-spec"
|
|
13
13
|
INSTALL_PATH = ".claude/skills/#{NAME}/SKILL.md"
|
|
14
14
|
SOURCE_PATH = File.expand_path("../../skills/#{NAME}/SKILL.md", __dir__)
|
|
15
15
|
STAMP = "ts_schema_spec_version"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: ts-schema-spec
|
|
3
3
|
description: >
|
|
4
4
|
Write or update RSpec tests that use match_schema to verify a Rails
|
|
5
5
|
endpoint's payload matches the TypeScript type that consumes it. TRIGGER
|
|
@@ -11,7 +11,7 @@ description: >
|
|
|
11
11
|
to .tsx; deleting a component's propTypes; or rendering an already-typed
|
|
12
12
|
component from an action that has no match_schema spec. React is the common
|
|
13
13
|
case, not a requirement — a Stimulus controller or a plain fetch client
|
|
14
|
-
reading the payload counts the same. Invoked as /
|
|
14
|
+
reading the payload counts the same. Invoked as /ts-schema-spec.
|
|
15
15
|
---
|
|
16
16
|
|
|
17
17
|
A spec is owed any time data is handed from Ruby to TypeScript — not only when
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ts_schema_spec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vernon Coffey
|
|
@@ -60,13 +60,13 @@ files:
|
|
|
60
60
|
- lib/ts_schema_spec/skill.rb
|
|
61
61
|
- lib/ts_schema_spec/tasks/ts_schema_spec.rake
|
|
62
62
|
- lib/ts_schema_spec/version.rb
|
|
63
|
-
- skills/
|
|
63
|
+
- skills/ts-schema-spec/SKILL.md
|
|
64
64
|
homepage: https://github.com/nitidbit/ts_schema_spec
|
|
65
65
|
licenses:
|
|
66
66
|
- MIT
|
|
67
67
|
metadata:
|
|
68
|
-
homepage_uri: https://github.com/nitidbit/ts_schema_spec
|
|
69
68
|
source_code_uri: https://github.com/nitidbit/ts_schema_spec
|
|
69
|
+
bug_tracker_uri: https://github.com/nitidbit/ts_schema_spec/issues
|
|
70
70
|
rubygems_mfa_required: 'true'
|
|
71
71
|
rdoc_options: []
|
|
72
72
|
require_paths:
|