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: c8202e8af0fa27c82203f869cd593208ee48dd95bfe23f6ab53083c47442fc47
4
- data.tar.gz: 3afcb839cc834657613896897ba454234a07facc8b0ffc3a9e8ce54abea5dffb
3
+ metadata.gz: dcc02f190a1fcbe41e89aaab3f8714c6cc5d189372297d4bfb716af2d7a97e8e
4
+ data.tar.gz: ac904c2a071466249b79f9b514b4f5c06ab8f746b17a00ac3703dae257ad93d3
5
5
  SHA512:
6
- metadata.gz: a4608416aebf93c1125f9df04126b44479f52bf95e7605f924aa14af04b18fbafef30f39e3cf0ff16c38b948d9f970b37fb552b867cb9725764d569b83cdb1d4
7
- data.tar.gz: 8ff1849e182079b473b130922e9315dfc92766c5d84bad559d52e715c01e3ffbc86effafa971b445f2fc2ee307a6819be81f45266d9441c07333c0f658b38600
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", github: "nitidbit/ts_schema_spec", tag: "v0.5.3", group: :test
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/react-prop-type-spec/SKILL.md`, stamped with the
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
@@ -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 = "react-prop-type-spec"
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,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  namespace :ts_schema_spec do
4
- desc "Copy the react-prop-type-spec agent skill into .claude/skills"
4
+ desc "Copy the ts-schema-spec agent skill into .claude/skills"
5
5
  task :install_skill do
6
6
  require "ts_schema_spec/skill"
7
7
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TsSchemaSpec
4
- VERSION = "0.5.4"
4
+ VERSION = "0.6.0"
5
5
  end
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: react-prop-type-spec
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 /react-prop-type-spec.
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.5.4
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/react-prop-type-spec/SKILL.md
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: