orthoses-rails 0.6.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -23
  3. data/examples/rails/{gemfiles/Gemfile_6_0 → Gemfile} +4 -4
  4. data/examples/rails/{gemfiles/Gemfile_7_0.lock → Gemfile.lock} +83 -76
  5. data/examples/rails/Rakefile +64 -51
  6. data/examples/rails/known_sig/actionpack/7.0/action_controller/metal.rbs +4 -0
  7. data/examples/rails/known_sig/activemodel/7.0/active_model/serialization.rbs +4 -0
  8. data/examples/rails/known_sig/activemodel/7.0/active_model/validations.rbs +4 -0
  9. data/examples/rails/known_sig/activerecord/6.0/_active_record_relation.rbs +49 -0
  10. data/examples/rails/known_sig/activerecord/6.0/_active_record_relation_class_methods.rbs +45 -0
  11. data/examples/rails/known_sig/activerecord/6.0/active_record/result.rbs +5 -0
  12. data/examples/rails/known_sig/activerecord/6.1/_active_record_relation.rbs +49 -0
  13. data/examples/rails/known_sig/activerecord/6.1/_active_record_relation_class_methods.rbs +45 -0
  14. data/examples/rails/known_sig/activerecord/6.1/active_record/result.rbs +5 -0
  15. data/examples/rails/known_sig/activerecord/7.0/_active_record_relation.rbs +49 -0
  16. data/examples/rails/known_sig/activerecord/7.0/_active_record_relation_class_methods.rbs +45 -0
  17. data/examples/rails/known_sig/activerecord/7.0/active_record/encryption/context.rbs +9 -0
  18. data/examples/rails/known_sig/activerecord/7.0/active_record/result.rbs +5 -0
  19. data/examples/rails/known_sig/activesupport/7.0/active_support/callbacks/callback_chain.rbs +9 -0
  20. data/examples/rails/known_sig/activesupport/7.0/active_support/duration.rbs +4 -0
  21. data/examples/rails/known_sig/activesupport/7.0/active_support/hash_with_indifferent_access.rbs +6 -0
  22. data/examples/rails/known_sig/activesupport/7.0/active_support/multibyte/chars.rbs +7 -0
  23. data/examples/rails/known_sig/activesupport/7.0/active_support/time_with_zone.rbs +5 -0
  24. data/examples/rails/known_sig/activesupport/7.0/active_support/time_zone.rbs +3 -0
  25. data/examples/rails/known_sig/activesupport/7.0/date.rbs +6 -0
  26. data/examples/rails/known_sig/activesupport/7.0/date_and_time/zones.rbs +4 -0
  27. data/examples/rails/known_sig/activesupport/7.0/hash_with_indifferent_access.rbs +2 -0
  28. data/examples/rails/known_sig/activesupport/7.0/integer.rbs +9 -0
  29. data/examples/rails/known_sig/activesupport/7.0/numeric.rbs +15 -0
  30. data/examples/rails/known_sig/activesupport/7.0/string.rbs +4 -0
  31. data/examples/rails/known_sig/activesupport/7.0/time.rbs +46 -0
  32. data/examples/rails/tasks/action_pack.rake +141 -0
  33. data/examples/rails/tasks/action_view.rake +77 -0
  34. data/examples/rails/tasks/active_job.rake +5 -1
  35. data/examples/rails/tasks/active_model.rake +1 -1
  36. data/examples/rails/tasks/active_record.rake +7 -2
  37. data/examples/rails/tasks/active_storage.rake +1 -1
  38. data/examples/rails/tasks/active_support.rake +7 -0
  39. data/examples/rails/tasks/railties.rake +34 -0
  40. data/lib/orthoses/active_model/has_secure_password.rb +2 -10
  41. data/lib/orthoses/active_record/delegated_type.rb +2 -8
  42. data/lib/orthoses/active_record/enum.rb +2 -2
  43. data/lib/orthoses/active_record/generated_attribute_methods.rb +1 -0
  44. data/lib/orthoses/active_record/scope.rb +2 -2
  45. data/lib/orthoses/active_support/class_attribute.rb +3 -10
  46. data/lib/orthoses/active_support/concern.rb +46 -0
  47. data/lib/orthoses/active_support/configurable.rb +3 -2
  48. data/lib/orthoses/active_support/delegation.rb +6 -14
  49. data/lib/orthoses/active_support/mattr_accessor.rb +4 -12
  50. data/lib/orthoses/active_support.rb +1 -15
  51. data/lib/orthoses/rails/version.rb +1 -1
  52. data/lib/orthoses/rails.rb +1 -0
  53. data/lib/orthoses/railties/mixin.rb +107 -0
  54. data/lib/orthoses/railties.rb +3 -0
  55. data/orthoses-rails.gemspec +1 -1
  56. metadata +40 -12
  57. data/examples/rails/gemfiles/Gemfile_6_0.lock +0 -172
  58. data/examples/rails/gemfiles/Gemfile_6_1 +0 -15
  59. data/examples/rails/gemfiles/Gemfile_6_1.lock +0 -173
  60. data/examples/rails/gemfiles/Gemfile_7_0 +0 -15
@@ -1,172 +0,0 @@
1
- PATH
2
- remote: ../../..
3
- specs:
4
- orthoses-rails (0.4.0)
5
- orthoses (>= 0.10)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (6.0.5)
11
- actionpack (= 6.0.5)
12
- nio4r (~> 2.0)
13
- websocket-driver (>= 0.6.1)
14
- actionmailbox (6.0.5)
15
- actionpack (= 6.0.5)
16
- activejob (= 6.0.5)
17
- activerecord (= 6.0.5)
18
- activestorage (= 6.0.5)
19
- activesupport (= 6.0.5)
20
- mail (>= 2.7.1)
21
- actionmailer (6.0.5)
22
- actionpack (= 6.0.5)
23
- actionview (= 6.0.5)
24
- activejob (= 6.0.5)
25
- mail (~> 2.5, >= 2.5.4)
26
- rails-dom-testing (~> 2.0)
27
- actionpack (6.0.5)
28
- actionview (= 6.0.5)
29
- activesupport (= 6.0.5)
30
- rack (~> 2.0, >= 2.0.8)
31
- rack-test (>= 0.6.3)
32
- rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
- actiontext (6.0.5)
35
- actionpack (= 6.0.5)
36
- activerecord (= 6.0.5)
37
- activestorage (= 6.0.5)
38
- activesupport (= 6.0.5)
39
- nokogiri (>= 1.8.5)
40
- actionview (6.0.5)
41
- activesupport (= 6.0.5)
42
- builder (~> 3.1)
43
- erubi (~> 1.4)
44
- rails-dom-testing (~> 2.0)
45
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
- activejob (6.0.5)
47
- activesupport (= 6.0.5)
48
- globalid (>= 0.3.6)
49
- activemodel (6.0.5)
50
- activesupport (= 6.0.5)
51
- activerecord (6.0.5)
52
- activemodel (= 6.0.5)
53
- activesupport (= 6.0.5)
54
- activestorage (6.0.5)
55
- actionpack (= 6.0.5)
56
- activejob (= 6.0.5)
57
- activerecord (= 6.0.5)
58
- marcel (~> 1.0)
59
- activesupport (6.0.5)
60
- concurrent-ruby (~> 1.0, >= 1.0.2)
61
- i18n (>= 0.7, < 2)
62
- minitest (~> 5.1)
63
- tzinfo (~> 1.1)
64
- zeitwerk (~> 2.2, >= 2.2.2)
65
- builder (3.2.4)
66
- concurrent-ruby (1.1.10)
67
- crass (1.0.6)
68
- digest (3.1.0)
69
- erubi (1.10.0)
70
- globalid (1.0.0)
71
- activesupport (>= 5.0)
72
- i18n (1.10.0)
73
- concurrent-ruby (~> 1.0)
74
- loofah (2.18.0)
75
- crass (~> 1.0.2)
76
- nokogiri (>= 1.5.9)
77
- mail (2.7.1)
78
- mini_mime (>= 0.1.1)
79
- marcel (1.0.2)
80
- method_source (1.0.0)
81
- mini_mime (1.1.2)
82
- mini_portile2 (2.8.0)
83
- minitest (5.16.1)
84
- net-imap (0.2.3)
85
- digest
86
- net-protocol
87
- strscan
88
- net-pop (0.1.1)
89
- digest
90
- net-protocol
91
- timeout
92
- net-protocol (0.1.3)
93
- timeout
94
- net-smtp (0.3.1)
95
- digest
96
- net-protocol
97
- timeout
98
- nio4r (2.5.8)
99
- nokogiri (1.13.6)
100
- mini_portile2 (~> 2.8.0)
101
- racc (~> 1.4)
102
- orthoses (0.10.0)
103
- rbs (~> 2.0)
104
- psych (3.3.2)
105
- racc (1.6.0)
106
- rack (2.2.3.1)
107
- rack-test (2.0.0)
108
- rack (>= 1.3)
109
- rails (6.0.5)
110
- actioncable (= 6.0.5)
111
- actionmailbox (= 6.0.5)
112
- actionmailer (= 6.0.5)
113
- actionpack (= 6.0.5)
114
- actiontext (= 6.0.5)
115
- actionview (= 6.0.5)
116
- activejob (= 6.0.5)
117
- activemodel (= 6.0.5)
118
- activerecord (= 6.0.5)
119
- activestorage (= 6.0.5)
120
- activesupport (= 6.0.5)
121
- bundler (>= 1.3.0)
122
- railties (= 6.0.5)
123
- sprockets-rails (>= 2.0.0)
124
- rails-dom-testing (2.0.3)
125
- activesupport (>= 4.2.0)
126
- nokogiri (>= 1.6)
127
- rails-html-sanitizer (1.4.3)
128
- loofah (~> 2.3)
129
- railties (6.0.5)
130
- actionpack (= 6.0.5)
131
- activesupport (= 6.0.5)
132
- method_source
133
- rake (>= 0.8.7)
134
- thor (>= 0.20.3, < 2.0)
135
- rake (13.0.6)
136
- rbs (2.6.0)
137
- sprockets (4.1.0)
138
- concurrent-ruby (~> 1.0)
139
- rack (> 1, < 3)
140
- sprockets-rails (3.4.2)
141
- actionpack (>= 5.2)
142
- activesupport (>= 5.2)
143
- sprockets (>= 3.0.0)
144
- sqlite3 (1.4.4)
145
- strscan (3.0.3)
146
- thor (1.2.1)
147
- thread_safe (0.3.6)
148
- timeout (0.3.0)
149
- tzinfo (1.2.9)
150
- thread_safe (~> 0.1)
151
- websocket-driver (0.7.5)
152
- websocket-extensions (>= 0.1.0)
153
- websocket-extensions (0.1.5)
154
- zeitwerk (2.6.0)
155
-
156
- PLATFORMS
157
- ruby
158
-
159
- DEPENDENCIES
160
- net-imap
161
- net-pop
162
- net-smtp
163
- orthoses-rails!
164
- psych (~> 3)
165
- rails (>= 6.0, < 6.1)
166
- sqlite3
167
-
168
- RUBY VERSION
169
- ruby 3.1.1p18
170
-
171
- BUNDLED WITH
172
- 2.3.9
@@ -1,15 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- ruby "~> 3.1.0"
4
-
5
- gemspec path: '../../../'
6
-
7
- gem "rails", ">= 6.1", "< 7"
8
- gem "sqlite3"
9
- # gem "orthoses", path: "../../../../orthoses"
10
-
11
- if RUBY_VERSION >= "3.1"
12
- gem "net-smtp", require: false
13
- gem "net-imap", require: false
14
- gem "net-pop", require: false
15
- end
@@ -1,173 +0,0 @@
1
- PATH
2
- remote: ../../..
3
- specs:
4
- orthoses-rails (0.4.0)
5
- orthoses (>= 0.10)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (6.1.6)
11
- actionpack (= 6.1.6)
12
- activesupport (= 6.1.6)
13
- nio4r (~> 2.0)
14
- websocket-driver (>= 0.6.1)
15
- actionmailbox (6.1.6)
16
- actionpack (= 6.1.6)
17
- activejob (= 6.1.6)
18
- activerecord (= 6.1.6)
19
- activestorage (= 6.1.6)
20
- activesupport (= 6.1.6)
21
- mail (>= 2.7.1)
22
- actionmailer (6.1.6)
23
- actionpack (= 6.1.6)
24
- actionview (= 6.1.6)
25
- activejob (= 6.1.6)
26
- activesupport (= 6.1.6)
27
- mail (~> 2.5, >= 2.5.4)
28
- rails-dom-testing (~> 2.0)
29
- actionpack (6.1.6)
30
- actionview (= 6.1.6)
31
- activesupport (= 6.1.6)
32
- rack (~> 2.0, >= 2.0.9)
33
- rack-test (>= 0.6.3)
34
- rails-dom-testing (~> 2.0)
35
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
- actiontext (6.1.6)
37
- actionpack (= 6.1.6)
38
- activerecord (= 6.1.6)
39
- activestorage (= 6.1.6)
40
- activesupport (= 6.1.6)
41
- nokogiri (>= 1.8.5)
42
- actionview (6.1.6)
43
- activesupport (= 6.1.6)
44
- builder (~> 3.1)
45
- erubi (~> 1.4)
46
- rails-dom-testing (~> 2.0)
47
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
- activejob (6.1.6)
49
- activesupport (= 6.1.6)
50
- globalid (>= 0.3.6)
51
- activemodel (6.1.6)
52
- activesupport (= 6.1.6)
53
- activerecord (6.1.6)
54
- activemodel (= 6.1.6)
55
- activesupport (= 6.1.6)
56
- activestorage (6.1.6)
57
- actionpack (= 6.1.6)
58
- activejob (= 6.1.6)
59
- activerecord (= 6.1.6)
60
- activesupport (= 6.1.6)
61
- marcel (~> 1.0)
62
- mini_mime (>= 1.1.0)
63
- activesupport (6.1.6)
64
- concurrent-ruby (~> 1.0, >= 1.0.2)
65
- i18n (>= 1.6, < 2)
66
- minitest (>= 5.1)
67
- tzinfo (~> 2.0)
68
- zeitwerk (~> 2.3)
69
- builder (3.2.4)
70
- concurrent-ruby (1.1.10)
71
- crass (1.0.6)
72
- digest (3.1.0)
73
- erubi (1.10.0)
74
- globalid (1.0.0)
75
- activesupport (>= 5.0)
76
- i18n (1.10.0)
77
- concurrent-ruby (~> 1.0)
78
- loofah (2.18.0)
79
- crass (~> 1.0.2)
80
- nokogiri (>= 1.5.9)
81
- mail (2.7.1)
82
- mini_mime (>= 0.1.1)
83
- marcel (1.0.2)
84
- method_source (1.0.0)
85
- mini_mime (1.1.2)
86
- mini_portile2 (2.8.0)
87
- minitest (5.16.1)
88
- net-imap (0.2.3)
89
- digest
90
- net-protocol
91
- strscan
92
- net-pop (0.1.1)
93
- digest
94
- net-protocol
95
- timeout
96
- net-protocol (0.1.3)
97
- timeout
98
- net-smtp (0.3.1)
99
- digest
100
- net-protocol
101
- timeout
102
- nio4r (2.5.8)
103
- nokogiri (1.13.6)
104
- mini_portile2 (~> 2.8.0)
105
- racc (~> 1.4)
106
- orthoses (0.10.0)
107
- rbs (~> 2.0)
108
- racc (1.6.0)
109
- rack (2.2.3.1)
110
- rack-test (2.0.0)
111
- rack (>= 1.3)
112
- rails (6.1.6)
113
- actioncable (= 6.1.6)
114
- actionmailbox (= 6.1.6)
115
- actionmailer (= 6.1.6)
116
- actionpack (= 6.1.6)
117
- actiontext (= 6.1.6)
118
- actionview (= 6.1.6)
119
- activejob (= 6.1.6)
120
- activemodel (= 6.1.6)
121
- activerecord (= 6.1.6)
122
- activestorage (= 6.1.6)
123
- activesupport (= 6.1.6)
124
- bundler (>= 1.15.0)
125
- railties (= 6.1.6)
126
- sprockets-rails (>= 2.0.0)
127
- rails-dom-testing (2.0.3)
128
- activesupport (>= 4.2.0)
129
- nokogiri (>= 1.6)
130
- rails-html-sanitizer (1.4.3)
131
- loofah (~> 2.3)
132
- railties (6.1.6)
133
- actionpack (= 6.1.6)
134
- activesupport (= 6.1.6)
135
- method_source
136
- rake (>= 12.2)
137
- thor (~> 1.0)
138
- rake (13.0.6)
139
- rbs (2.6.0)
140
- sprockets (4.1.0)
141
- concurrent-ruby (~> 1.0)
142
- rack (> 1, < 3)
143
- sprockets-rails (3.4.2)
144
- actionpack (>= 5.2)
145
- activesupport (>= 5.2)
146
- sprockets (>= 3.0.0)
147
- sqlite3 (1.4.4)
148
- strscan (3.0.3)
149
- thor (1.2.1)
150
- timeout (0.3.0)
151
- tzinfo (2.0.4)
152
- concurrent-ruby (~> 1.0)
153
- websocket-driver (0.7.5)
154
- websocket-extensions (>= 0.1.0)
155
- websocket-extensions (0.1.5)
156
- zeitwerk (2.6.0)
157
-
158
- PLATFORMS
159
- ruby
160
-
161
- DEPENDENCIES
162
- net-imap
163
- net-pop
164
- net-smtp
165
- orthoses-rails!
166
- rails (>= 6.1, < 7)
167
- sqlite3
168
-
169
- RUBY VERSION
170
- ruby 3.1.1p18
171
-
172
- BUNDLED WITH
173
- 2.3.9
@@ -1,15 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- ruby "~> 3.1.0"
4
-
5
- gemspec path: '../../../'
6
-
7
- gem "rails", ">= 7.0", "< 7.1"
8
- gem "sqlite3"
9
- # gem "orthoses", path: "../../../../orthoses"
10
-
11
- if RUBY_VERSION >= "3.1"
12
- gem "net-smtp", require: false
13
- gem "net-imap", require: false
14
- gem "net-pop", require: false
15
- end