Skip to content

Commit ff538ef

Browse files
committed
Properly cast values passed to set<State> functions
1 parent a91dddd commit ff538ef

File tree

9 files changed

+1344
-632
lines changed

9 files changed

+1344
-632
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.2
1+
3.4.3

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [0.0.13] - 2025-08-05
2+
3+
- Properly cast values passed to set<State> functions
4+
- Properly build forms for detached entities as if they were proper entities
5+
16
## [0.0.12] - 2025-04-15
27

38
- Fix non-camelized get/set useState names for nested types

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ gem "rake"
1111
# gem "foobara-typescript-remote-command-generator", path: "../typescript-remote-command-generator"
1212

1313
group :development do
14-
gem "foobara-rubocop-rules", "~> 0.0.1"
14+
gem "foobara-rubocop-rules", ">= 1.0.0"
1515
gem "guard-rspec"
1616
gem "rubocop-rake"
1717
gem "rubocop-rspec"
@@ -23,7 +23,7 @@ group :development, :test do
2323
end
2424

2525
group :test do
26-
gem "foobara-spec-helpers", "~> 0.0.1"
26+
gem "foobara-spec-helpers", "< 2.0.0"
2727
gem "rspec"
2828
gem "rspec-its"
2929
gem "simplecov"

Gemfile.lock

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
PATH
22
remote: .
33
specs:
4-
foobara-typescript-react-command-form-generator (0.0.12)
5-
foobara-typescript-remote-command-generator (~> 0.0.1)
4+
foobara-typescript-react-command-form-generator (0.0.13)
5+
foobara-typescript-remote-command-generator (< 2.0.0)
66

77
GEM
88
remote: https://rubygems.org/
99
specs:
1010
ast (2.4.3)
11-
bigdecimal (3.1.9)
11+
bigdecimal (3.2.2)
1212
byebug (12.0.0)
1313
coderay (1.1.3)
14-
diff-lcs (1.6.1)
14+
diff-lcs (1.6.2)
1515
docile (1.4.1)
1616
ffi (1.17.2-x86_64-linux-gnu)
17-
foobara (0.0.102)
17+
foobara (0.0.141)
1818
bigdecimal
1919
foobara-lru-cache (~> 0.0.2)
20-
foobara-util (~> 0.0.11)
20+
foobara-util (>= 1.0.0)
2121
inheritable-thread-vars (~> 0.0.1)
22-
foobara-files-generator (0.0.5)
23-
foobara
22+
foobara-files-generator (0.0.7)
23+
foobara (~> 0.0.116)
2424
foobara-lru-cache (0.0.2)
25-
foobara-rubocop-rules (0.0.8)
25+
foobara-rubocop-rules (1.0.0)
2626
rubocop
2727
rubocop-rspec
2828
foobara-spec-helpers (0.0.4)
2929
foobara-util
30-
foobara-typescript-remote-command-generator (0.0.18)
31-
foobara-files-generator (~> 0.0.1)
32-
foobara-util (0.0.11)
33-
formatador (1.1.0)
30+
foobara-typescript-remote-command-generator (1.0.1)
31+
foobara-files-generator (< 2.0.0)
32+
foobara-util (1.0.2)
33+
formatador (1.1.1)
3434
guard (2.19.1)
3535
formatador (>= 0.2.4)
3636
listen (>= 2.7, < 4.0)
@@ -47,23 +47,23 @@ GEM
4747
guard (~> 2.1)
4848
guard-compat (~> 1.1)
4949
rspec (>= 2.99.0, < 4.0)
50-
inheritable-thread-vars (0.0.2)
51-
json (2.10.2)
52-
language_server-protocol (3.17.0.4)
50+
inheritable-thread-vars (0.0.3)
51+
json (2.13.2)
52+
language_server-protocol (3.17.0.5)
5353
lint_roller (1.1.0)
5454
listen (3.9.0)
5555
rb-fsevent (~> 0.10, >= 0.10.3)
5656
rb-inotify (~> 0.9, >= 0.9.10)
5757
logger (1.7.0)
58-
lumberjack (1.2.10)
58+
lumberjack (1.4.0)
5959
method_source (1.1.0)
6060
nenv (0.3.0)
6161
notiffany (0.1.3)
6262
nenv (~> 0.1)
6363
shellany (~> 0.0)
64-
ostruct (0.6.1)
64+
ostruct (0.6.3)
6565
parallel (1.27.0)
66-
parser (3.3.8.0)
66+
parser (3.3.9.0)
6767
ast (~> 2.4.1)
6868
racc
6969
prism (1.4.0)
@@ -75,45 +75,45 @@ GEM
7575
pry (>= 0.13, < 0.16)
7676
racc (1.8.1)
7777
rainbow (3.1.1)
78-
rake (13.2.1)
78+
rake (13.3.0)
7979
rb-fsevent (0.11.2)
8080
rb-inotify (0.11.1)
8181
ffi (~> 1.0)
82-
regexp_parser (2.10.0)
83-
rspec (3.13.0)
82+
regexp_parser (2.11.0)
83+
rspec (3.13.1)
8484
rspec-core (~> 3.13.0)
8585
rspec-expectations (~> 3.13.0)
8686
rspec-mocks (~> 3.13.0)
87-
rspec-core (3.13.3)
87+
rspec-core (3.13.5)
8888
rspec-support (~> 3.13.0)
89-
rspec-expectations (3.13.3)
89+
rspec-expectations (3.13.5)
9090
diff-lcs (>= 1.2.0, < 2.0)
9191
rspec-support (~> 3.13.0)
9292
rspec-its (2.0.0)
9393
rspec-core (>= 3.13.0)
9494
rspec-expectations (>= 3.13.0)
95-
rspec-mocks (3.13.2)
95+
rspec-mocks (3.13.5)
9696
diff-lcs (>= 1.2.0, < 2.0)
9797
rspec-support (~> 3.13.0)
98-
rspec-support (3.13.2)
99-
rubocop (1.75.2)
98+
rspec-support (3.13.4)
99+
rubocop (1.79.2)
100100
json (~> 2.3)
101101
language_server-protocol (~> 3.17.0.2)
102102
lint_roller (~> 1.1.0)
103103
parallel (~> 1.10)
104104
parser (>= 3.3.0.2)
105105
rainbow (>= 2.2.2, < 4.0)
106106
regexp_parser (>= 2.9.3, < 3.0)
107-
rubocop-ast (>= 1.44.0, < 2.0)
107+
rubocop-ast (>= 1.46.0, < 2.0)
108108
ruby-progressbar (~> 1.7)
109109
unicode-display_width (>= 2.4.0, < 4.0)
110-
rubocop-ast (1.44.1)
110+
rubocop-ast (1.46.0)
111111
parser (>= 3.3.7.2)
112112
prism (~> 1.4)
113113
rubocop-rake (0.7.1)
114114
lint_roller (~> 1.1)
115115
rubocop (>= 1.72.1)
116-
rubocop-rspec (3.5.0)
116+
rubocop-rspec (3.6.0)
117117
lint_roller (~> 1.1)
118118
rubocop (~> 1.72, >= 1.72.1)
119119
ruby-progressbar (1.13.0)
@@ -122,9 +122,9 @@ GEM
122122
docile (~> 1.1)
123123
simplecov-html (~> 0.11)
124124
simplecov_json_formatter (~> 0.1)
125-
simplecov-html (0.13.1)
125+
simplecov-html (0.13.2)
126126
simplecov_json_formatter (0.1.4)
127-
thor (1.3.2)
127+
thor (1.4.0)
128128
unicode-display_width (3.1.4)
129129
unicode-emoji (~> 4.0, >= 4.0.4)
130130
unicode-emoji (4.0.4)
@@ -133,8 +133,8 @@ PLATFORMS
133133
x86_64-linux
134134

135135
DEPENDENCIES
136-
foobara-rubocop-rules (~> 0.0.1)
137-
foobara-spec-helpers (~> 0.0.1)
136+
foobara-rubocop-rules (>= 1.0.0)
137+
foobara-spec-helpers (< 2.0.0)
138138
foobara-typescript-react-command-form-generator!
139139
guard-rspec
140140
pry

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ require "rubocop/rake_task"
77

88
RuboCop::RakeTask.new
99

10-
task default: %i[spec rubocop]
10+
task default: [:spec, :rubocop]

foobara-typescript-react-command-form-generator.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121
spec.metadata["source_code_uri"] = spec.homepage
2222
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/CHANGELOG.md"
2323

24-
spec.add_dependency "foobara-typescript-remote-command-generator", "~> 0.0.1"
24+
spec.add_dependency "foobara-typescript-remote-command-generator", "< 2.0.0"
2525

2626
spec.files = Dir[
2727
"lib/**/*",

0 commit comments

Comments
 (0)