camille 0.5.16 → 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: c64a49ba269a9488e2990dce715d59e21ec603bb09453bc07b48f1b29cf80183
4
- data.tar.gz: 482a7672c68154b5ab94c68318b2672f02f76793ad08372570a1b5ec4049e7b8
3
+ metadata.gz: 5a179a530118d866cdd0d5baa3b90a454a3d4c2a5c77b47d43b3be4132587b13
4
+ data.tar.gz: 82341acb5d71fa1209c32c9c2fa09fdde41bbe71890fa13cfe8469b43842489b
5
5
  SHA512:
6
- metadata.gz: d6ba48e7bc89d06d8ad92eb375cac5d02d783fc35c5732215f068630b57918a5b0bfaccc89b76d49983b384fbac31e2bbbe208d14526ea37489864e2cb2cee67
7
- data.tar.gz: cb52ae9bdfc4445c098040b576d1e6910da8b699a615bfea339ed2bf24b0b180408d67a53b03a1c6259aadf3bda9f407d25c5fc17a12fbd22fb42c0aa0b20637
6
+ metadata.gz: 744ac81f6d267007676d123e4b9111a462989adde5f060e58bde32b749c6204f6912bd2b17fcba298b2aca0ee34f91fc534356ce6d3d3acb01d450e24e839168
7
+ data.tar.gz: 6bcd20cd62ff6de5c7ffd15666f1f6bf0a4c2d453acc682c109cad901b9cf8e77c488685b97ad8353efbff98ef810e30e4f4286a6e03f9428d11077319989622
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Added
6
+
7
+ * Support Rails 8.0
8
+
3
9
  ## 0.5.16
4
10
 
5
11
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,100 +1,115 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- camille (0.5.15)
5
- rails (>= 6.1, < 8)
4
+ camille (0.5.16)
5
+ rails (>= 6.1, < 8.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (7.0.4.2)
11
- actionpack (= 7.0.4.2)
12
- activesupport (= 7.0.4.2)
10
+ actioncable (7.2.2.1)
11
+ actionpack (= 7.2.2.1)
12
+ activesupport (= 7.2.2.1)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
- actionmailbox (7.0.4.2)
16
- actionpack (= 7.0.4.2)
17
- activejob (= 7.0.4.2)
18
- activerecord (= 7.0.4.2)
19
- activestorage (= 7.0.4.2)
20
- activesupport (= 7.0.4.2)
21
- mail (>= 2.7.1)
22
- net-imap
23
- net-pop
24
- net-smtp
25
- actionmailer (7.0.4.2)
26
- actionpack (= 7.0.4.2)
27
- actionview (= 7.0.4.2)
28
- activejob (= 7.0.4.2)
29
- activesupport (= 7.0.4.2)
30
- mail (~> 2.5, >= 2.5.4)
31
- net-imap
32
- net-pop
33
- net-smtp
34
- rails-dom-testing (~> 2.0)
35
- actionpack (7.0.4.2)
36
- actionview (= 7.0.4.2)
37
- activesupport (= 7.0.4.2)
38
- rack (~> 2.0, >= 2.2.0)
15
+ zeitwerk (~> 2.6)
16
+ actionmailbox (7.2.2.1)
17
+ actionpack (= 7.2.2.1)
18
+ activejob (= 7.2.2.1)
19
+ activerecord (= 7.2.2.1)
20
+ activestorage (= 7.2.2.1)
21
+ activesupport (= 7.2.2.1)
22
+ mail (>= 2.8.0)
23
+ actionmailer (7.2.2.1)
24
+ actionpack (= 7.2.2.1)
25
+ actionview (= 7.2.2.1)
26
+ activejob (= 7.2.2.1)
27
+ activesupport (= 7.2.2.1)
28
+ mail (>= 2.8.0)
29
+ rails-dom-testing (~> 2.2)
30
+ actionpack (7.2.2.1)
31
+ actionview (= 7.2.2.1)
32
+ activesupport (= 7.2.2.1)
33
+ nokogiri (>= 1.8.5)
34
+ racc
35
+ rack (>= 2.2.4, < 3.2)
36
+ rack-session (>= 1.0.1)
39
37
  rack-test (>= 0.6.3)
40
- rails-dom-testing (~> 2.0)
41
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
42
- actiontext (7.0.4.2)
43
- actionpack (= 7.0.4.2)
44
- activerecord (= 7.0.4.2)
45
- activestorage (= 7.0.4.2)
46
- activesupport (= 7.0.4.2)
38
+ rails-dom-testing (~> 2.2)
39
+ rails-html-sanitizer (~> 1.6)
40
+ useragent (~> 0.16)
41
+ actiontext (7.2.2.1)
42
+ actionpack (= 7.2.2.1)
43
+ activerecord (= 7.2.2.1)
44
+ activestorage (= 7.2.2.1)
45
+ activesupport (= 7.2.2.1)
47
46
  globalid (>= 0.6.0)
48
47
  nokogiri (>= 1.8.5)
49
- actionview (7.0.4.2)
50
- activesupport (= 7.0.4.2)
48
+ actionview (7.2.2.1)
49
+ activesupport (= 7.2.2.1)
51
50
  builder (~> 3.1)
52
- erubi (~> 1.4)
53
- rails-dom-testing (~> 2.0)
54
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
55
- activejob (7.0.4.2)
56
- activesupport (= 7.0.4.2)
51
+ erubi (~> 1.11)
52
+ rails-dom-testing (~> 2.2)
53
+ rails-html-sanitizer (~> 1.6)
54
+ activejob (7.2.2.1)
55
+ activesupport (= 7.2.2.1)
57
56
  globalid (>= 0.3.6)
58
- activemodel (7.0.4.2)
59
- activesupport (= 7.0.4.2)
60
- activerecord (7.0.4.2)
61
- activemodel (= 7.0.4.2)
62
- activesupport (= 7.0.4.2)
63
- activestorage (7.0.4.2)
64
- actionpack (= 7.0.4.2)
65
- activejob (= 7.0.4.2)
66
- activerecord (= 7.0.4.2)
67
- activesupport (= 7.0.4.2)
57
+ activemodel (7.2.2.1)
58
+ activesupport (= 7.2.2.1)
59
+ activerecord (7.2.2.1)
60
+ activemodel (= 7.2.2.1)
61
+ activesupport (= 7.2.2.1)
62
+ timeout (>= 0.4.0)
63
+ activestorage (7.2.2.1)
64
+ actionpack (= 7.2.2.1)
65
+ activejob (= 7.2.2.1)
66
+ activerecord (= 7.2.2.1)
67
+ activesupport (= 7.2.2.1)
68
68
  marcel (~> 1.0)
69
- mini_mime (>= 1.1.0)
70
- activesupport (7.0.4.2)
71
- concurrent-ruby (~> 1.0, >= 1.0.2)
69
+ activesupport (7.2.2.1)
70
+ base64
71
+ benchmark (>= 0.3)
72
+ bigdecimal
73
+ concurrent-ruby (~> 1.0, >= 1.3.1)
74
+ connection_pool (>= 2.2.5)
75
+ drb
72
76
  i18n (>= 1.6, < 2)
77
+ logger (>= 1.4.2)
73
78
  minitest (>= 5.1)
74
- tzinfo (~> 2.0)
75
- builder (3.2.4)
76
- concurrent-ruby (1.2.2)
79
+ securerandom (>= 0.3)
80
+ tzinfo (~> 2.0, >= 2.0.5)
81
+ base64 (0.2.0)
82
+ benchmark (0.4.0)
83
+ bigdecimal (3.1.8)
84
+ builder (3.3.0)
85
+ concurrent-ruby (1.3.4)
86
+ connection_pool (2.4.1)
77
87
  crass (1.0.6)
78
- date (3.3.4)
79
- diff-lcs (1.5.0)
80
- erubi (1.12.0)
88
+ date (3.4.1)
89
+ diff-lcs (1.5.1)
90
+ drb (2.2.1)
91
+ erubi (1.13.0)
81
92
  globalid (1.2.1)
82
93
  activesupport (>= 6.1)
83
- i18n (1.12.0)
94
+ i18n (1.14.6)
84
95
  concurrent-ruby (~> 1.0)
85
- loofah (2.19.1)
96
+ io-console (0.8.0)
97
+ irb (1.14.2)
98
+ rdoc (>= 4.0.0)
99
+ reline (>= 0.4.2)
100
+ logger (1.6.3)
101
+ loofah (2.23.1)
86
102
  crass (~> 1.0.2)
87
- nokogiri (>= 1.5.9)
103
+ nokogiri (>= 1.12.0)
88
104
  mail (2.8.1)
89
105
  mini_mime (>= 0.1.1)
90
106
  net-imap
91
107
  net-pop
92
108
  net-smtp
93
109
  marcel (1.0.4)
94
- method_source (1.0.0)
95
110
  mini_mime (1.1.5)
96
- minitest (5.17.0)
97
- net-imap (0.4.16)
111
+ minitest (5.25.4)
112
+ net-imap (0.5.1)
98
113
  date
99
114
  net-protocol
100
115
  net-pop (0.1.2)
@@ -103,69 +118,86 @@ GEM
103
118
  timeout
104
119
  net-smtp (0.5.0)
105
120
  net-protocol
106
- nio4r (2.7.3)
107
- nokogiri (1.14.2-x86_64-linux)
121
+ nio4r (2.7.4)
122
+ nokogiri (1.17.2-x86_64-linux)
108
123
  racc (~> 1.4)
109
- racc (1.6.2)
110
- rack (2.2.6.3)
111
- rack-test (2.0.2)
124
+ psych (5.2.1)
125
+ date
126
+ stringio
127
+ racc (1.8.1)
128
+ rack (3.1.8)
129
+ rack-session (2.0.0)
130
+ rack (>= 3.0.0)
131
+ rack-test (2.1.0)
112
132
  rack (>= 1.3)
113
- rails (7.0.4.2)
114
- actioncable (= 7.0.4.2)
115
- actionmailbox (= 7.0.4.2)
116
- actionmailer (= 7.0.4.2)
117
- actionpack (= 7.0.4.2)
118
- actiontext (= 7.0.4.2)
119
- actionview (= 7.0.4.2)
120
- activejob (= 7.0.4.2)
121
- activemodel (= 7.0.4.2)
122
- activerecord (= 7.0.4.2)
123
- activestorage (= 7.0.4.2)
124
- activesupport (= 7.0.4.2)
133
+ rackup (2.2.1)
134
+ rack (>= 3)
135
+ rails (7.2.2.1)
136
+ actioncable (= 7.2.2.1)
137
+ actionmailbox (= 7.2.2.1)
138
+ actionmailer (= 7.2.2.1)
139
+ actionpack (= 7.2.2.1)
140
+ actiontext (= 7.2.2.1)
141
+ actionview (= 7.2.2.1)
142
+ activejob (= 7.2.2.1)
143
+ activemodel (= 7.2.2.1)
144
+ activerecord (= 7.2.2.1)
145
+ activestorage (= 7.2.2.1)
146
+ activesupport (= 7.2.2.1)
125
147
  bundler (>= 1.15.0)
126
- railties (= 7.0.4.2)
127
- rails-dom-testing (2.0.3)
128
- activesupport (>= 4.2.0)
148
+ railties (= 7.2.2.1)
149
+ rails-dom-testing (2.2.0)
150
+ activesupport (>= 5.0.0)
151
+ minitest
129
152
  nokogiri (>= 1.6)
130
- rails-html-sanitizer (1.5.0)
131
- loofah (~> 2.19, >= 2.19.1)
132
- railties (7.0.4.2)
133
- actionpack (= 7.0.4.2)
134
- activesupport (= 7.0.4.2)
135
- method_source
153
+ rails-html-sanitizer (1.6.2)
154
+ loofah (~> 2.21)
155
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
156
+ railties (7.2.2.1)
157
+ actionpack (= 7.2.2.1)
158
+ activesupport (= 7.2.2.1)
159
+ irb (~> 1.13)
160
+ rackup (>= 1.0.0)
136
161
  rake (>= 12.2)
137
- thor (~> 1.0)
138
- zeitwerk (~> 2.5)
139
- rake (13.0.6)
140
- rspec (3.12.0)
141
- rspec-core (~> 3.12.0)
142
- rspec-expectations (~> 3.12.0)
143
- rspec-mocks (~> 3.12.0)
144
- rspec-core (3.12.1)
145
- rspec-support (~> 3.12.0)
146
- rspec-expectations (3.12.2)
162
+ thor (~> 1.0, >= 1.2.2)
163
+ zeitwerk (~> 2.6)
164
+ rake (13.2.1)
165
+ rdoc (6.9.0)
166
+ psych (>= 4.0.0)
167
+ reline (0.5.12)
168
+ io-console (~> 0.5)
169
+ rspec (3.13.0)
170
+ rspec-core (~> 3.13.0)
171
+ rspec-expectations (~> 3.13.0)
172
+ rspec-mocks (~> 3.13.0)
173
+ rspec-core (3.13.2)
174
+ rspec-support (~> 3.13.0)
175
+ rspec-expectations (3.13.3)
147
176
  diff-lcs (>= 1.2.0, < 2.0)
148
- rspec-support (~> 3.12.0)
149
- rspec-mocks (3.12.3)
177
+ rspec-support (~> 3.13.0)
178
+ rspec-mocks (3.13.2)
150
179
  diff-lcs (>= 1.2.0, < 2.0)
151
- rspec-support (~> 3.12.0)
152
- rspec-rails (6.0.1)
153
- actionpack (>= 6.1)
154
- activesupport (>= 6.1)
155
- railties (>= 6.1)
156
- rspec-core (~> 3.11)
157
- rspec-expectations (~> 3.11)
158
- rspec-mocks (~> 3.11)
159
- rspec-support (~> 3.11)
160
- rspec-support (3.12.0)
161
- thor (1.2.1)
162
- timeout (0.4.1)
180
+ rspec-support (~> 3.13.0)
181
+ rspec-rails (7.1.0)
182
+ actionpack (>= 7.0)
183
+ activesupport (>= 7.0)
184
+ railties (>= 7.0)
185
+ rspec-core (~> 3.13)
186
+ rspec-expectations (~> 3.13)
187
+ rspec-mocks (~> 3.13)
188
+ rspec-support (~> 3.13)
189
+ rspec-support (3.13.2)
190
+ securerandom (0.4.0)
191
+ stringio (3.1.2)
192
+ thor (1.3.2)
193
+ timeout (0.4.2)
163
194
  tzinfo (2.0.6)
164
195
  concurrent-ruby (~> 1.0)
196
+ useragent (0.16.11)
165
197
  websocket-driver (0.7.6)
166
198
  websocket-extensions (>= 0.1.0)
167
199
  websocket-extensions (0.1.5)
168
- zeitwerk (2.6.7)
200
+ zeitwerk (2.7.1)
169
201
 
170
202
  PLATFORMS
171
203
  x86_64-linux
@@ -0,0 +1,26 @@
1
+ require "benchmark/ips"
2
+
3
+ class A
4
+ end
5
+
6
+ a = A.new
7
+
8
+ Benchmark.ips do |x|
9
+ x.report("instance_of?") do
10
+ a.instance_of? A
11
+ end
12
+
13
+ x.report("is_a?") do
14
+ a.is_a? A
15
+ end
16
+
17
+ x.report("class ==") do
18
+ a.class == A
19
+ end
20
+
21
+ x.report("class.equal?") do
22
+ a.class.equal?(A)
23
+ end
24
+
25
+ x.compare!
26
+ end
@@ -0,0 +1,20 @@
1
+ require "benchmark/ips"
2
+
3
+ class A
4
+ def m
5
+ end
6
+ end
7
+
8
+ a = A.new
9
+
10
+ Benchmark.ips do |x|
11
+ x.report("respond_to?") do
12
+ a.respond_to? :m
13
+ end
14
+
15
+ x.report("calling method") do
16
+ a.m
17
+ end
18
+
19
+ x.compare!
20
+ end
@@ -6,4 +6,4 @@ gem "rake", "~> 13.0"
6
6
  gem "rspec", "~> 3.0"
7
7
  gem "rspec-rails"
8
8
 
9
- gem 'rails', '~> 6.1.0'
9
+ gem 'rails', '~> 7.2.0'
@@ -6,4 +6,4 @@ gem "rake", "~> 13.0"
6
6
  gem "rspec", "~> 3.0"
7
7
  gem "rspec-rails"
8
8
 
9
- gem 'rails', '~> 7.0.0'
9
+ gem 'rails', '~> 8.0.0'
@@ -3,5 +3,9 @@ module Camille
3
3
  def as_json options = nil
4
4
  transform_keys{|k, _| Camille::KeyConverter.convert_response_key(k)}.as_json
5
5
  end
6
+
7
+ def to_json options = nil
8
+ as_json.to_json
9
+ end
6
10
  end
7
11
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Camille
4
- VERSION = "0.5.16"
4
+ VERSION = "0.6.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camille
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.16
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
- - Alyssa
7
+ - merely
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-31 00:00:00.000000000 Z
11
+ date: 2024-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '6.1'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '8'
22
+ version: '8.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,10 +29,10 @@ dependencies:
29
29
  version: '6.1'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '8'
32
+ version: '8.1'
33
33
  description: ''
34
34
  email:
35
- - git@alyssa.fm
35
+ - git@merely.ca
36
36
  executables: []
37
37
  extensions: []
38
38
  extra_rdoc_files: []
@@ -43,11 +43,13 @@ files:
43
43
  - Gemfile.lock
44
44
  - README.md
45
45
  - Rakefile
46
+ - benchmarks/checking_class_of_object.rb
47
+ - benchmarks/checking_method_of_object.rb
46
48
  - benchmarks/returning_multiple_values.rb
47
49
  - bin/console
48
50
  - bin/setup
49
- - gemfiles/rails-6.1
50
- - gemfiles/rails-7.0
51
+ - gemfiles/rails-7.2
52
+ - gemfiles/rails-8.0
51
53
  - lib/camille.rb
52
54
  - lib/camille/basic_type.rb
53
55
  - lib/camille/code_generator.rb
@@ -116,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
118
  - !ruby/object:Gem::Version
117
119
  version: '0'
118
120
  requirements: []
119
- rubygems_version: 3.5.22
121
+ rubygems_version: 3.5.16
120
122
  signing_key:
121
123
  specification_version: 4
122
124
  summary: Typed API schema for Rails with TypeScript codegen