acts-as-messageable 0.5.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +8 -0
  3. data/.github/workflows/test.yml +152 -0
  4. data/.rubocop.yml +14 -1
  5. data/.rubocop_todo.yml +49 -7
  6. data/.ruby-version +1 -0
  7. data/Appraisals +11 -0
  8. data/Dockerfile +2 -1
  9. data/Gemfile +19 -13
  10. data/Gemfile.lock +186 -97
  11. data/README.md +2 -3
  12. data/Rakefile +6 -1
  13. data/VERSION +1 -1
  14. data/acts-as-messageable.gemspec +193 -40
  15. data/bin/tapioca +29 -0
  16. data/docker-compose.yml +82 -71
  17. data/gemfiles/rails_3.2.gemfile +14 -9
  18. data/gemfiles/rails_4.2.gemfile +14 -9
  19. data/gemfiles/rails_5.2.gemfile +14 -9
  20. data/gemfiles/rails_6.0.gemfile +14 -9
  21. data/gemfiles/rails_7.0.gemfile +29 -0
  22. data/gemfiles/rails_master.gemfile +15 -9
  23. data/lib/acts-as-messageable.rb +1 -0
  24. data/lib/acts_as_messageable/message.rb +62 -5
  25. data/lib/acts_as_messageable/model.rb +71 -20
  26. data/lib/acts_as_messageable/rails3.rb +27 -2
  27. data/lib/acts_as_messageable/rails4.rb +31 -4
  28. data/lib/acts_as_messageable/rails6.rb +34 -2
  29. data/lib/acts_as_messageable/railtie.rb +1 -0
  30. data/lib/acts_as_messageable/relation.rb +18 -2
  31. data/lib/acts_as_messageable/scopes.rb +11 -0
  32. data/lib/acts_as_messageable.rb +18 -0
  33. data/lib/generators/acts_as_messageable/migration/migration_generator.rb +4 -0
  34. data/lib/generators/acts_as_messageable/migration/templates/migration.rb +1 -0
  35. data/lib/generators/acts_as_messageable/migration/templates/migration_indexes.rb +1 -0
  36. data/lib/generators/acts_as_messageable/migration/templates/migration_opened_as_datetime.rb +1 -0
  37. data/lib/generators/acts_as_messageable/migration/templates/migration_permanent.rb +1 -0
  38. data/sorbet/config +4 -0
  39. data/sorbet/rbi/annotations/actionpack.rbi +428 -0
  40. data/sorbet/rbi/annotations/actionview.rbi +77 -0
  41. data/sorbet/rbi/annotations/activerecord.rbi +18 -0
  42. data/sorbet/rbi/annotations/activesupport.rbi +52 -0
  43. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  44. data/sorbet/rbi/annotations/railties.rbi +58 -0
  45. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  46. data/sorbet/rbi/dsl/abstract_controller/caching/fragments.rbi +23 -0
  47. data/sorbet/rbi/dsl/abstract_controller/caching.rbi +30 -0
  48. data/sorbet/rbi/dsl/abstract_controller/callbacks.rbi +23 -0
  49. data/sorbet/rbi/dsl/abstract_controller/helpers.rbi +23 -0
  50. data/sorbet/rbi/dsl/abstract_controller/rendering.rbi +9 -0
  51. data/sorbet/rbi/dsl/abstract_controller/url_for.rbi +23 -0
  52. data/sorbet/rbi/dsl/action_controller/caching.rbi +29 -0
  53. data/sorbet/rbi/dsl/action_controller/conditional_get.rbi +23 -0
  54. data/sorbet/rbi/dsl/action_controller/content_security_policy.rbi +31 -0
  55. data/sorbet/rbi/dsl/action_controller/data_streaming.rbi +9 -0
  56. data/sorbet/rbi/dsl/action_controller/etag_with_flash.rbi +24 -0
  57. data/sorbet/rbi/dsl/action_controller/etag_with_template_digest.rbi +30 -0
  58. data/sorbet/rbi/dsl/action_controller/flash.rbi +19 -0
  59. data/sorbet/rbi/dsl/action_controller/form_builder.rbi +19 -0
  60. data/sorbet/rbi/dsl/action_controller/helpers.rbi +36 -0
  61. data/sorbet/rbi/dsl/action_controller/params_wrapper.rbi +23 -0
  62. data/sorbet/rbi/dsl/action_controller/redirecting.rbi +24 -0
  63. data/sorbet/rbi/dsl/action_controller/renderers/all.rbi +24 -0
  64. data/sorbet/rbi/dsl/action_controller/renderers.rbi +23 -0
  65. data/sorbet/rbi/dsl/action_controller/request_forgery_protection.rbi +31 -0
  66. data/sorbet/rbi/dsl/action_controller/rescue.rbi +24 -0
  67. data/sorbet/rbi/dsl/action_controller/test_case/behavior.rbi +24 -0
  68. data/sorbet/rbi/dsl/action_controller/url_for.rbi +24 -0
  69. data/sorbet/rbi/dsl/action_dispatch/routing/url_for.rbi +23 -0
  70. data/sorbet/rbi/dsl/action_view/helpers/form_helper.rbi +10 -0
  71. data/sorbet/rbi/dsl/action_view/helpers/form_tag_helper.rbi +10 -0
  72. data/sorbet/rbi/dsl/action_view/helpers/text_helper.rbi +9 -0
  73. data/sorbet/rbi/dsl/action_view/helpers.rbi +10 -0
  74. data/sorbet/rbi/dsl/action_view/layouts.rbi +24 -0
  75. data/sorbet/rbi/dsl/action_view/rendering.rbi +9 -0
  76. data/sorbet/rbi/dsl/active_model/attribute_methods.rbi +27 -0
  77. data/sorbet/rbi/dsl/active_model/attributes.rbi +34 -0
  78. data/sorbet/rbi/dsl/active_model/dirty.rbi +28 -0
  79. data/sorbet/rbi/dsl/active_model/serializers/json.rbi +22 -0
  80. data/sorbet/rbi/dsl/active_model/validations/callbacks.rbi +22 -0
  81. data/sorbet/rbi/dsl/active_model/validations.rbi +27 -0
  82. data/sorbet/rbi/dsl/active_record/attribute_methods/dirty.rbi +38 -0
  83. data/sorbet/rbi/dsl/active_record/attribute_methods/time_zone_conversion.rbi +32 -0
  84. data/sorbet/rbi/dsl/active_record/attribute_methods.rbi +53 -0
  85. data/sorbet/rbi/dsl/active_record/attributes.rbi +19 -0
  86. data/sorbet/rbi/dsl/active_record/callbacks.rbi +22 -0
  87. data/sorbet/rbi/dsl/active_record/core.rbi +55 -0
  88. data/sorbet/rbi/dsl/active_record/encryption/encryptable_record.rbi +23 -0
  89. data/sorbet/rbi/dsl/active_record/inheritance.rbi +27 -0
  90. data/sorbet/rbi/dsl/active_record/integration.rbi +32 -0
  91. data/sorbet/rbi/dsl/active_record/locking/optimistic.rbi +22 -0
  92. data/sorbet/rbi/dsl/active_record/model_schema.rbi +52 -0
  93. data/sorbet/rbi/dsl/active_record/nested_attributes.rbi +22 -0
  94. data/sorbet/rbi/dsl/active_record/readonly_attributes.rbi +19 -0
  95. data/sorbet/rbi/dsl/active_record/reflection.rbi +32 -0
  96. data/sorbet/rbi/dsl/active_record/scoping/default.rbi +23 -0
  97. data/sorbet/rbi/dsl/active_record/scoping.rbi +23 -0
  98. data/sorbet/rbi/dsl/active_record/serialization.rbi +22 -0
  99. data/sorbet/rbi/dsl/active_record/signed_id.rbi +22 -0
  100. data/sorbet/rbi/dsl/active_record/test_fixtures.rbi +58 -0
  101. data/sorbet/rbi/dsl/active_record/timestamp.rbi +23 -0
  102. data/sorbet/rbi/dsl/active_record/validations.rbi +28 -0
  103. data/sorbet/rbi/dsl/active_support/actionable_error.rbi +23 -0
  104. data/sorbet/rbi/dsl/active_support/callbacks.rbi +22 -0
  105. data/sorbet/rbi/dsl/active_support/rescuable.rbi +23 -0
  106. data/sorbet/rbi/dsl/active_support/testing/file_fixtures.rbi +22 -0
  107. data/sorbet/rbi/gems/actionpack@7.0.4.3.rbi +19265 -0
  108. data/sorbet/rbi/gems/actionview@7.0.4.3.rbi +15482 -0
  109. data/sorbet/rbi/gems/activemodel@7.0.4.3.rbi +6025 -0
  110. data/sorbet/rbi/gems/activerecord@7.0.4.3.rbi +37852 -0
  111. data/sorbet/rbi/gems/activesupport@7.0.4.3.rbi +18788 -0
  112. data/sorbet/rbi/gems/addressable@2.4.0.rbi +8 -0
  113. data/sorbet/rbi/gems/appraisal@2.4.1.rbi +584 -0
  114. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  115. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  116. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
  117. data/sorbet/rbi/gems/commander@4.6.0.rbi +8 -0
  118. data/sorbet/rbi/gems/concurrent-ruby@1.2.2.rbi +11545 -0
  119. data/sorbet/rbi/gems/coveralls_reborn@0.27.0.rbi +8 -0
  120. data/sorbet/rbi/gems/crass@1.0.6.rbi +622 -0
  121. data/sorbet/rbi/gems/descendants_tracker@0.0.4.rbi +8 -0
  122. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1079 -0
  123. data/sorbet/rbi/gems/docile@1.4.0.rbi +8 -0
  124. data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
  125. data/sorbet/rbi/gems/faraday@0.9.2.rbi +964 -0
  126. data/sorbet/rbi/gems/git@1.11.0.rbi +2700 -0
  127. data/sorbet/rbi/gems/github_api@0.16.0.rbi +8 -0
  128. data/sorbet/rbi/gems/hashie@5.0.0.rbi +8 -0
  129. data/sorbet/rbi/gems/highline@2.0.3.rbi +8 -0
  130. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  131. data/sorbet/rbi/gems/jeweler@2.3.9.rbi +1591 -0
  132. data/sorbet/rbi/gems/json@2.6.3.rbi +1541 -0
  133. data/sorbet/rbi/gems/jwt@2.5.0.rbi +8 -0
  134. data/sorbet/rbi/gems/loofah@2.19.1.rbi +904 -0
  135. data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
  136. data/sorbet/rbi/gems/mime-types@2.99.3.rbi +8 -0
  137. data/sorbet/rbi/gems/minitest@5.18.0.rbi +1491 -0
  138. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +8 -0
  139. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +8 -0
  140. data/sorbet/rbi/gems/multipart-post@2.2.3.rbi +8 -0
  141. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  142. data/sorbet/rbi/gems/nokogiri@1.14.2.rbi +7244 -0
  143. data/sorbet/rbi/gems/oauth2@1.4.8.rbi +8 -0
  144. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  145. data/sorbet/rbi/gems/pg@1.4.6.rbi +2574 -0
  146. data/sorbet/rbi/gems/polyfill@1.9.0.rbi +8 -0
  147. data/sorbet/rbi/gems/pry@0.14.2.rbi +10081 -0
  148. data/sorbet/rbi/gems/psych@4.0.6.rbi +1819 -0
  149. data/sorbet/rbi/gems/racc@1.6.2.rbi +155 -0
  150. data/sorbet/rbi/gems/rack-test@2.0.2.rbi +943 -0
  151. data/sorbet/rbi/gems/rack@2.2.6.4.rbi +5659 -0
  152. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +455 -0
  153. data/sorbet/rbi/gems/rails-html-sanitizer@1.5.0.rbi +685 -0
  154. data/sorbet/rbi/gems/railties@7.0.4.3.rbi +4553 -0
  155. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +8 -0
  156. data/sorbet/rbi/gems/rake@13.0.6.rbi +2959 -0
  157. data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
  158. data/sorbet/rbi/gems/rbs@2.8.0.rbi +8 -0
  159. data/sorbet/rbi/gems/rchardet@1.8.0.rbi +1078 -0
  160. data/sorbet/rbi/gems/rdoc@6.5.0.rbi +12441 -0
  161. data/sorbet/rbi/gems/regexp_parser@2.7.0.rbi +8 -0
  162. data/sorbet/rbi/gems/rexml@3.2.5.rbi +8 -0
  163. data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10798 -0
  164. data/sorbet/rbi/gems/rspec-expectations@3.12.0.rbi +8090 -0
  165. data/sorbet/rbi/gems/rspec-mocks@3.12.0.rbi +5296 -0
  166. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1617 -0
  167. data/sorbet/rbi/gems/rspec@3.12.0.rbi +88 -0
  168. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +8 -0
  169. data/sorbet/rbi/gems/safe_type@1.1.1.rbi +8 -0
  170. data/sorbet/rbi/gems/semver2@3.4.2.rbi +8 -0
  171. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +8 -0
  172. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +8 -0
  173. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
  174. data/sorbet/rbi/gems/sorbet-coerce@0.7.0.rbi +8 -0
  175. data/sorbet/rbi/gems/stringio@3.0.2.rbi +8 -0
  176. data/sorbet/rbi/gems/sync@0.5.0.rbi +8 -0
  177. data/sorbet/rbi/gems/term-ansicolor@1.7.1.rbi +8 -0
  178. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  179. data/sorbet/rbi/gems/thread_safe@0.3.6.rbi +8 -0
  180. data/sorbet/rbi/gems/timecop@0.9.6.rbi +361 -0
  181. data/sorbet/rbi/gems/tins@1.32.1.rbi +8 -0
  182. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5917 -0
  183. data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +8 -0
  184. data/sorbet/rbi/gems/unparser@0.6.7.rbi +4515 -0
  185. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2553 -0
  186. data/sorbet/rbi/gems/yard@0.9.28.rbi +17954 -0
  187. data/sorbet/rbi/gems/zeitwerk@2.6.7.rbi +966 -0
  188. data/sorbet/rbi/models/acts-as-messageable/message.rbi +668 -0
  189. data/sorbet/rbi/models/acts-as-messageable/user.rbi +343 -0
  190. data/sorbet/rbi/rails-rbi/active_record_base.rbi +119 -0
  191. data/sorbet/rbi/rails-rbi/active_record_relation.rbi +180 -0
  192. data/sorbet/rbi/shims/activerecord.rbi +4 -0
  193. data/sorbet/rbi/shims/model.rbi +9 -0
  194. data/sorbet/tapioca/config.yml +10 -0
  195. data/sorbet/tapioca/pre_require.rb +5 -0
  196. data/sorbet/tapioca/require.rb +10 -0
  197. data/spec/acts_as_messageable_spec.rb +7 -4
  198. data/spec/custom_class_spec.rb +1 -0
  199. data/spec/custom_required_spec.rb +8 -4
  200. data/spec/group_messages_spec.rb +1 -0
  201. data/spec/migrations_spec.rb +2 -1
  202. data/spec/spec_helper.rb +19 -9
  203. data/spec/support/admin.rb +3 -0
  204. data/spec/support/custom_message.rb +3 -0
  205. data/spec/support/custom_message_uuid.rb +1 -0
  206. data/spec/support/custom_search_user.rb +3 -0
  207. data/spec/support/men.rb +1 -0
  208. data/spec/support/send_message.rb +8 -1
  209. data/spec/support/table_schema.rb +7 -6
  210. data/spec/support/user.rb +3 -0
  211. data/spec/support/uuid_user.rb +3 -0
  212. data/tasks/types.rake +46 -0
  213. metadata +261 -11
  214. data/.travis.yml +0 -55
@@ -1,3 +1,4 @@
1
+ # typed: ignore
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'spec_helper'
@@ -335,9 +336,11 @@ describe 'ActsAsMessageable' do
335
336
  let(:message) { ActsAsMessageable::Message.create!(topic: 'topic', body: 'body') }
336
337
 
337
338
  before do
338
- # Use clean version of Message class
339
- ActsAsMessageable.instance_eval { remove_const 'Message' }
340
- load 'acts_as_messageable/message.rb'
339
+ # Use clean version of Message class we used here remove_const before
340
+ # but it doesn't work with sorbet so we use this hack to clear side effects
341
+ ActsAsMessageable::Message.table_name = 'messages'
342
+ ActsAsMessageable::Message.required = []
343
+ ActsAsMessageable::Message.clear_validators! if ActsAsMessageable::Message.respond_to?(:clear_validators!)
341
344
  end
342
345
 
343
346
  it 'returns root of the conversation' do
@@ -345,7 +348,7 @@ describe 'ActsAsMessageable' do
345
348
  end
346
349
  end
347
350
 
348
- describe 'user primary key is uuid type', rails: [5, 6] do # GH#107
351
+ describe 'user primary key is uuid type', rails: [5, 6, 7] do # GH#107
349
352
  let(:bob) { UuidUser.create(id: SecureRandom.uuid, email: 'bob@example.com') }
350
353
  let(:alice) { UuidUser.create(id: SecureRandom.uuid, email: 'alice@example.com') }
351
354
 
@@ -1,3 +1,4 @@
1
+ # typed: ignore
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'spec_helper'
@@ -1,12 +1,16 @@
1
+ # typed: ignore
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'spec_helper'
4
5
 
5
6
  describe 'custom require' do
6
- before(:each) do
7
- # Use clean version of Message class
8
- ActsAsMessageable.instance_eval { remove_const 'Message' }
9
- load 'acts_as_messageable/message.rb'
7
+ before do
8
+ # Use clean version of Message class we used here remove_const before
9
+ # but it doesn't work with sorbet so we use this hack to clear side effects
10
+ ActsAsMessageable::Message.table_name = 'messages'
11
+ ActsAsMessageable::Message.required = []
12
+ ActsAsMessageable::Message.clear_validators! if ActsAsMessageable::Message.respond_to?(:clear_validators!)
13
+ ActsAsMessageable::Message.reset_callbacks(:validate)
10
14
  end
11
15
 
12
16
  it 'should work with non-array require' do
@@ -1,3 +1,4 @@
1
+ # typed: ignore
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'spec_helper'
@@ -1,3 +1,4 @@
1
+ # typed: ignore
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'spec_helper'
@@ -5,7 +6,7 @@ require 'spec_helper'
5
6
  def create_dummy_app
6
7
  system <<-COMMAND
7
8
  bundle exec rails new dummy --skip-test-unit --skip-spring --skip-webpack-install --skip-bootsnap \
8
- --skip-active-storage --skip-active-job -d sqlite3
9
+ --skip-active-storage --skip-active-job --skip-action-cable --skip-javascript --skip-action-mailer -d sqlite3
9
10
  COMMAND
10
11
  end
11
12
 
data/spec/spec_helper.rb CHANGED
@@ -1,10 +1,15 @@
1
+ # typed: ignore
1
2
  # frozen_string_literal: true
2
3
 
4
+ require 'sorbet-runtime'
5
+ T::Configuration.default_checked_level = :tests
6
+ T::Configuration.enable_checking_for_sigs_marked_checked_tests
7
+
3
8
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
4
9
  $LOAD_PATH.unshift(File.dirname(__FILE__))
5
10
  require 'rspec'
6
11
  require 'active_record/railtie'
7
- ActiveRecord::Base.logger = Logger.new(STDERR)
12
+ ActiveRecord::Base.logger = Logger.new($stderr)
8
13
  ActiveRecord::Base.logger.level = 3
9
14
 
10
15
  require 'coveralls'
@@ -24,10 +29,7 @@ ActiveRecord::Migration.verbose = false
24
29
 
25
30
  RSpec.configure do |config|
26
31
  config.before(:all) do
27
- ActiveRecord::Base.establish_connection(
28
- adapter: ENV.fetch('DATABASE_ADAPTER', 'sqlite3'),
29
- database: ENV.fetch('DATABASE_NAME', ':memory:')
30
- )
32
+ establish_connection
31
33
  create_database
32
34
 
33
35
  @alice = User.create email: 'alice@example.com'
@@ -47,17 +49,25 @@ RSpec.configure do |config|
47
49
  end
48
50
 
49
51
  config.around(:each) do |example|
50
- supported_rails = Array.wrap(example.metadata[:rails]).presence || [3, 4, 5, 6]
52
+ supported_rails = Array.wrap(example.metadata[:rails]).presence || [3, 4, 5, 6, 7]
51
53
 
52
54
  example.run if supported_rails.include?(Rails::VERSION::MAJOR)
53
55
  end
54
56
  end
55
57
 
58
+ def establish_connection
59
+ ActiveRecord::Base.establish_connection(
60
+ adapter: ENV.fetch('DATABASE_ADAPTER', 'sqlite3'),
61
+ database: ENV.fetch('DATABASE_NAME', ':memory:'),
62
+ password: ENV.fetch('DATABASE_PASSWORD', 'password'),
63
+ host: 'localhost',
64
+ user: 'postgres'
65
+ )
66
+ end
67
+
56
68
  def create_database
57
69
  ActiveRecord::Schema.define(version: 1) do
58
- if ENV.fetch('DATABASE_ADAPTER', '') == 'postgresql'
59
- enable_extension 'pgcrypto' unless extension_enabled?('pgcrypto')
60
- end
70
+ enable_extension 'pgcrypto' if ENV.fetch('DATABASE_ADAPTER', '') == 'postgresql' && !extension_enabled?('pgcrypto')
61
71
 
62
72
  create_table(:messages, &TABLE_SCHEMA)
63
73
  create_table(:custom_messages, &TABLE_SCHEMA)
@@ -1,5 +1,8 @@
1
+ # typed: strict
1
2
  # frozen_string_literal: true
2
3
 
3
4
  class Admin < ActiveRecord::Base
5
+ extend ActsAsMessageable::Model::ClassMethods
6
+
4
7
  acts_as_messageable
5
8
  end
@@ -1,5 +1,8 @@
1
+ # typed: strict
1
2
  # frozen_string_literal: true
2
3
 
3
4
  class CustomMessage < ActsAsMessageable::Message
5
+ extend T::Sig
6
+ sig { void }
4
7
  def custom_method; end
5
8
  end
@@ -1,3 +1,4 @@
1
+ # typed: strict
1
2
  # frozen_string_literal: true
2
3
 
3
4
  class CustomMessageUUID < ActsAsMessageable::Message
@@ -1,5 +1,8 @@
1
+ # typed: strict
1
2
  # frozen_string_literal: true
2
3
 
3
4
  class CustomSearchUser < ActiveRecord::Base
5
+ extend ActsAsMessageable::Model::ClassMethods
6
+
4
7
  acts_as_messageable search_scope: :custom_search, class_name: 'CustomMessage'
5
8
  end
data/spec/support/men.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # typed: strict
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require_relative './user'
@@ -1,5 +1,12 @@
1
+ # typed: true
1
2
  # frozen_string_literal: true
2
3
 
3
- def send_message(from = @bob, to = @alice, topic = 'Topic', body = 'Body')
4
+ extend T::Sig
5
+
6
+ sig do
7
+ params(from: ActiveRecord::Base, to: ActiveRecord::Base, topic: String,
8
+ body: String).returns(ActsAsMessageable::Message)
9
+ end
10
+ def send_message(from = T.unsafe(@bob), to = T.unsafe(@alice), topic = 'Topic', body = 'Body')
4
11
  from.send_message(to, topic, body)
5
12
  end
@@ -1,6 +1,7 @@
1
+ # typed: strict
1
2
  # frozen_string_literal: true
2
3
 
3
- TABLE_SCHEMA = lambda do |t|
4
+ TABLE_SCHEMA = T.let(lambda do |t|
4
5
  t.string :topic
5
6
  t.text :body
6
7
  t.references :received_messageable, polymorphic: true, index: false
@@ -13,9 +14,9 @@ TABLE_SCHEMA = lambda do |t|
13
14
  t.datetime :opened_at, :datetime
14
15
  t.string :ancestry
15
16
  t.timestamps
16
- end
17
+ end, T.untyped)
17
18
 
18
- TABLE_SCHEMA_UUID = lambda do |t|
19
+ TABLE_SCHEMA_UUID = T.let(lambda do |t|
19
20
  t.string :topic
20
21
  t.text :body
21
22
  t.references :received_messageable, polymorphic: true, index: false, type: :uuid
@@ -28,8 +29,8 @@ TABLE_SCHEMA_UUID = lambda do |t|
28
29
  t.datetime :opened_at, :datetime
29
30
  t.string :ancestry
30
31
  t.timestamps
31
- end
32
+ end, T.untyped)
32
33
 
33
- USER_SCHEMA = lambda do |t|
34
+ USER_SCHEMA = T.let(lambda do |t|
34
35
  t.string :email
35
- end
36
+ end, T.untyped)
data/spec/support/user.rb CHANGED
@@ -1,5 +1,8 @@
1
+ # typed: strict
1
2
  # frozen_string_literal: true
2
3
 
3
4
  class User < ActiveRecord::Base
5
+ extend ActsAsMessageable::Model::ClassMethods
6
+
4
7
  acts_as_messageable
5
8
  end
@@ -1,6 +1,9 @@
1
+ # typed: strict
1
2
  # frozen_string_literal: true
2
3
 
3
4
  class UuidUser < ActiveRecord::Base
5
+ extend ActsAsMessageable::Model::ClassMethods
6
+
4
7
  acts_as_messageable class_name: 'CustomMessageUUID', table_name: 'custom_messages_uuid'
5
8
  self.table_name = :uuid_users
6
9
  end
data/tasks/types.rake ADDED
@@ -0,0 +1,46 @@
1
+ # typed: ignore
2
+ # frozen_string_literal: true
3
+
4
+ def generate_type(model, model_name, file_name)
5
+ establish_connection
6
+ create_database
7
+
8
+ formatter = SorbetRails::ModelRbiFormatter.new(model, Set.new([model_name]))
9
+ file_path = File.expand_path("../sorbet/rbi/models/acts-as-messageable/#{file_name}.rbi", __dir__)
10
+ FileUtils.mkdir_p(File.dirname(file_path))
11
+ File.write(file_path, formatter.generate_rbi)
12
+
13
+ drop_database
14
+ end
15
+
16
+ def generate_types_for_active_record_runtime
17
+ establish_connection
18
+ create_database
19
+
20
+ dir_path = File.expand_path('../sorbet/rbi/rails-rbi/', __dir__)
21
+ FileUtils.mkdir_p(dir_path)
22
+
23
+ formatter = SorbetRails::ActiveRecordRbiFormatter.new
24
+
25
+ file_path = File.expand_path('../sorbet/rbi/rails-rbi/active_record_base.rbi', __dir__)
26
+ File.write(file_path, formatter.generate_active_record_base_rbi)
27
+
28
+ file_path = File.expand_path('../sorbet/rbi/rails-rbi/active_record_relation.rbi', __dir__)
29
+ File.write(file_path, formatter.generate_active_record_relation_rbi)
30
+
31
+ drop_database
32
+ end
33
+
34
+ desc 'Generate types for model'
35
+ task :generate_rbi_for_model do
36
+ require_relative '../spec/spec_helper'
37
+ require 'active_support/core_ext/string'
38
+ require 'sorbet-rails'
39
+ require 'sorbet-rails/active_record_rbi_formatter'
40
+
41
+ SorbetRails.configure {} # rubocop:disable Lint/EmptyBlock
42
+
43
+ generate_type(ActsAsMessageable::Message, 'ActsAsMessageable::Message', 'message')
44
+ generate_type(CustomSearchUser, 'CustomSearchUser', 'user')
45
+ generate_types_for_active_record_runtime
46
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts-as-messageable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Nielacny
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-13 00:00:00.000000000 Z
11
+ date: 2023-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -66,6 +66,34 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sorbet-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: sorbet-static-and-runtime
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: appraisal
71
99
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +109,7 @@ dependencies:
81
109
  - !ruby/object:Gem::Version
82
110
  version: '0'
83
111
  - !ruby/object:Gem::Dependency
84
- name: coveralls
112
+ name: coveralls_reborn
85
113
  requirement: !ruby/object:Gem::Requirement
86
114
  requirements:
87
115
  - - ">="
@@ -164,6 +192,34 @@ dependencies:
164
192
  - - ">="
165
193
  - !ruby/object:Gem::Version
166
194
  version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: rubocop-sorbet
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: sord
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
167
223
  - !ruby/object:Gem::Dependency
168
224
  name: sqlite3
169
225
  requirement: !ruby/object:Gem::Requirement
@@ -178,6 +234,20 @@ dependencies:
178
234
  - - ">="
179
235
  - !ruby/object:Gem::Version
180
236
  version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: tapioca
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
181
251
  - !ruby/object:Gem::Dependency
182
252
  name: timecop
183
253
  requirement: !ruby/object:Gem::Requirement
@@ -192,6 +262,20 @@ dependencies:
192
262
  - - ">="
193
263
  - !ruby/object:Gem::Version
194
264
  version: '0'
265
+ - !ruby/object:Gem::Dependency
266
+ name: unparser
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ type: :development
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
195
279
  - !ruby/object:Gem::Dependency
196
280
  name: yard
197
281
  requirement: !ruby/object:Gem::Requirement
@@ -206,19 +290,22 @@ dependencies:
206
290
  - - ">="
207
291
  - !ruby/object:Gem::Version
208
292
  version: '0'
209
- description:
293
+ description:
210
294
  email: piotr.nielacny@gmail.com
211
- executables: []
295
+ executables:
296
+ - tapioca
212
297
  extensions: []
213
298
  extra_rdoc_files:
214
299
  - README.md
215
300
  files:
216
301
  - ".coveralls.yml"
217
302
  - ".dockerignore"
303
+ - ".github/dependabot.yml"
304
+ - ".github/workflows/test.yml"
218
305
  - ".rspec"
219
306
  - ".rubocop.yml"
220
307
  - ".rubocop_todo.yml"
221
- - ".travis.yml"
308
+ - ".ruby-version"
222
309
  - Appraisals
223
310
  - Dockerfile
224
311
  - Gemfile
@@ -228,11 +315,13 @@ files:
228
315
  - Rakefile
229
316
  - VERSION
230
317
  - acts-as-messageable.gemspec
318
+ - bin/tapioca
231
319
  - docker-compose.yml
232
320
  - gemfiles/rails_3.2.gemfile
233
321
  - gemfiles/rails_4.2.gemfile
234
322
  - gemfiles/rails_5.2.gemfile
235
323
  - gemfiles/rails_6.0.gemfile
324
+ - gemfiles/rails_7.0.gemfile
236
325
  - gemfiles/rails_master.gemfile
237
326
  - lib/acts-as-messageable.rb
238
327
  - lib/acts_as_messageable.rb
@@ -249,6 +338,165 @@ files:
249
338
  - lib/generators/acts_as_messageable/migration/templates/migration_indexes.rb
250
339
  - lib/generators/acts_as_messageable/migration/templates/migration_opened_as_datetime.rb
251
340
  - lib/generators/acts_as_messageable/migration/templates/migration_permanent.rb
341
+ - sorbet/config
342
+ - sorbet/rbi/annotations/actionpack.rbi
343
+ - sorbet/rbi/annotations/actionview.rbi
344
+ - sorbet/rbi/annotations/activerecord.rbi
345
+ - sorbet/rbi/annotations/activesupport.rbi
346
+ - sorbet/rbi/annotations/faraday.rbi
347
+ - sorbet/rbi/annotations/railties.rbi
348
+ - sorbet/rbi/annotations/rainbow.rbi
349
+ - sorbet/rbi/dsl/abstract_controller/caching.rbi
350
+ - sorbet/rbi/dsl/abstract_controller/caching/fragments.rbi
351
+ - sorbet/rbi/dsl/abstract_controller/callbacks.rbi
352
+ - sorbet/rbi/dsl/abstract_controller/helpers.rbi
353
+ - sorbet/rbi/dsl/abstract_controller/rendering.rbi
354
+ - sorbet/rbi/dsl/abstract_controller/url_for.rbi
355
+ - sorbet/rbi/dsl/action_controller/caching.rbi
356
+ - sorbet/rbi/dsl/action_controller/conditional_get.rbi
357
+ - sorbet/rbi/dsl/action_controller/content_security_policy.rbi
358
+ - sorbet/rbi/dsl/action_controller/data_streaming.rbi
359
+ - sorbet/rbi/dsl/action_controller/etag_with_flash.rbi
360
+ - sorbet/rbi/dsl/action_controller/etag_with_template_digest.rbi
361
+ - sorbet/rbi/dsl/action_controller/flash.rbi
362
+ - sorbet/rbi/dsl/action_controller/form_builder.rbi
363
+ - sorbet/rbi/dsl/action_controller/helpers.rbi
364
+ - sorbet/rbi/dsl/action_controller/params_wrapper.rbi
365
+ - sorbet/rbi/dsl/action_controller/redirecting.rbi
366
+ - sorbet/rbi/dsl/action_controller/renderers.rbi
367
+ - sorbet/rbi/dsl/action_controller/renderers/all.rbi
368
+ - sorbet/rbi/dsl/action_controller/request_forgery_protection.rbi
369
+ - sorbet/rbi/dsl/action_controller/rescue.rbi
370
+ - sorbet/rbi/dsl/action_controller/test_case/behavior.rbi
371
+ - sorbet/rbi/dsl/action_controller/url_for.rbi
372
+ - sorbet/rbi/dsl/action_dispatch/routing/url_for.rbi
373
+ - sorbet/rbi/dsl/action_view/helpers.rbi
374
+ - sorbet/rbi/dsl/action_view/helpers/form_helper.rbi
375
+ - sorbet/rbi/dsl/action_view/helpers/form_tag_helper.rbi
376
+ - sorbet/rbi/dsl/action_view/helpers/text_helper.rbi
377
+ - sorbet/rbi/dsl/action_view/layouts.rbi
378
+ - sorbet/rbi/dsl/action_view/rendering.rbi
379
+ - sorbet/rbi/dsl/active_model/attribute_methods.rbi
380
+ - sorbet/rbi/dsl/active_model/attributes.rbi
381
+ - sorbet/rbi/dsl/active_model/dirty.rbi
382
+ - sorbet/rbi/dsl/active_model/serializers/json.rbi
383
+ - sorbet/rbi/dsl/active_model/validations.rbi
384
+ - sorbet/rbi/dsl/active_model/validations/callbacks.rbi
385
+ - sorbet/rbi/dsl/active_record/attribute_methods.rbi
386
+ - sorbet/rbi/dsl/active_record/attribute_methods/dirty.rbi
387
+ - sorbet/rbi/dsl/active_record/attribute_methods/time_zone_conversion.rbi
388
+ - sorbet/rbi/dsl/active_record/attributes.rbi
389
+ - sorbet/rbi/dsl/active_record/callbacks.rbi
390
+ - sorbet/rbi/dsl/active_record/core.rbi
391
+ - sorbet/rbi/dsl/active_record/encryption/encryptable_record.rbi
392
+ - sorbet/rbi/dsl/active_record/inheritance.rbi
393
+ - sorbet/rbi/dsl/active_record/integration.rbi
394
+ - sorbet/rbi/dsl/active_record/locking/optimistic.rbi
395
+ - sorbet/rbi/dsl/active_record/model_schema.rbi
396
+ - sorbet/rbi/dsl/active_record/nested_attributes.rbi
397
+ - sorbet/rbi/dsl/active_record/readonly_attributes.rbi
398
+ - sorbet/rbi/dsl/active_record/reflection.rbi
399
+ - sorbet/rbi/dsl/active_record/scoping.rbi
400
+ - sorbet/rbi/dsl/active_record/scoping/default.rbi
401
+ - sorbet/rbi/dsl/active_record/serialization.rbi
402
+ - sorbet/rbi/dsl/active_record/signed_id.rbi
403
+ - sorbet/rbi/dsl/active_record/test_fixtures.rbi
404
+ - sorbet/rbi/dsl/active_record/timestamp.rbi
405
+ - sorbet/rbi/dsl/active_record/validations.rbi
406
+ - sorbet/rbi/dsl/active_support/actionable_error.rbi
407
+ - sorbet/rbi/dsl/active_support/callbacks.rbi
408
+ - sorbet/rbi/dsl/active_support/rescuable.rbi
409
+ - sorbet/rbi/dsl/active_support/testing/file_fixtures.rbi
410
+ - sorbet/rbi/gems/actionpack@7.0.4.3.rbi
411
+ - sorbet/rbi/gems/actionview@7.0.4.3.rbi
412
+ - sorbet/rbi/gems/activemodel@7.0.4.3.rbi
413
+ - sorbet/rbi/gems/activerecord@7.0.4.3.rbi
414
+ - sorbet/rbi/gems/activesupport@7.0.4.3.rbi
415
+ - sorbet/rbi/gems/addressable@2.4.0.rbi
416
+ - sorbet/rbi/gems/appraisal@2.4.1.rbi
417
+ - sorbet/rbi/gems/ast@2.4.2.rbi
418
+ - sorbet/rbi/gems/builder@3.2.4.rbi
419
+ - sorbet/rbi/gems/coderay@1.1.3.rbi
420
+ - sorbet/rbi/gems/commander@4.6.0.rbi
421
+ - sorbet/rbi/gems/concurrent-ruby@1.2.2.rbi
422
+ - sorbet/rbi/gems/coveralls_reborn@0.27.0.rbi
423
+ - sorbet/rbi/gems/crass@1.0.6.rbi
424
+ - sorbet/rbi/gems/descendants_tracker@0.0.4.rbi
425
+ - sorbet/rbi/gems/diff-lcs@1.5.0.rbi
426
+ - sorbet/rbi/gems/docile@1.4.0.rbi
427
+ - sorbet/rbi/gems/erubi@1.12.0.rbi
428
+ - sorbet/rbi/gems/faraday@0.9.2.rbi
429
+ - sorbet/rbi/gems/git@1.11.0.rbi
430
+ - sorbet/rbi/gems/github_api@0.16.0.rbi
431
+ - sorbet/rbi/gems/hashie@5.0.0.rbi
432
+ - sorbet/rbi/gems/highline@2.0.3.rbi
433
+ - sorbet/rbi/gems/i18n@1.12.0.rbi
434
+ - sorbet/rbi/gems/jeweler@2.3.9.rbi
435
+ - sorbet/rbi/gems/json@2.6.3.rbi
436
+ - sorbet/rbi/gems/jwt@2.5.0.rbi
437
+ - sorbet/rbi/gems/loofah@2.19.1.rbi
438
+ - sorbet/rbi/gems/method_source@1.0.0.rbi
439
+ - sorbet/rbi/gems/mime-types@2.99.3.rbi
440
+ - sorbet/rbi/gems/minitest@5.18.0.rbi
441
+ - sorbet/rbi/gems/multi_json@1.15.0.rbi
442
+ - sorbet/rbi/gems/multi_xml@0.6.0.rbi
443
+ - sorbet/rbi/gems/multipart-post@2.2.3.rbi
444
+ - sorbet/rbi/gems/netrc@0.11.0.rbi
445
+ - sorbet/rbi/gems/nokogiri@1.14.2.rbi
446
+ - sorbet/rbi/gems/oauth2@1.4.8.rbi
447
+ - sorbet/rbi/gems/parallel@1.22.1.rbi
448
+ - sorbet/rbi/gems/pg@1.4.6.rbi
449
+ - sorbet/rbi/gems/polyfill@1.9.0.rbi
450
+ - sorbet/rbi/gems/pry@0.14.2.rbi
451
+ - sorbet/rbi/gems/psych@4.0.6.rbi
452
+ - sorbet/rbi/gems/racc@1.6.2.rbi
453
+ - sorbet/rbi/gems/rack-test@2.0.2.rbi
454
+ - sorbet/rbi/gems/rack@2.2.6.4.rbi
455
+ - sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi
456
+ - sorbet/rbi/gems/rails-html-sanitizer@1.5.0.rbi
457
+ - sorbet/rbi/gems/railties@7.0.4.3.rbi
458
+ - sorbet/rbi/gems/rainbow@3.1.1.rbi
459
+ - sorbet/rbi/gems/rake@13.0.6.rbi
460
+ - sorbet/rbi/gems/rbi@0.0.16.rbi
461
+ - sorbet/rbi/gems/rbs@2.8.0.rbi
462
+ - sorbet/rbi/gems/rchardet@1.8.0.rbi
463
+ - sorbet/rbi/gems/rdoc@6.5.0.rbi
464
+ - sorbet/rbi/gems/regexp_parser@2.7.0.rbi
465
+ - sorbet/rbi/gems/rexml@3.2.5.rbi
466
+ - sorbet/rbi/gems/rspec-core@3.12.0.rbi
467
+ - sorbet/rbi/gems/rspec-expectations@3.12.0.rbi
468
+ - sorbet/rbi/gems/rspec-mocks@3.12.0.rbi
469
+ - sorbet/rbi/gems/rspec-support@3.12.0.rbi
470
+ - sorbet/rbi/gems/rspec@3.12.0.rbi
471
+ - sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi
472
+ - sorbet/rbi/gems/safe_type@1.1.1.rbi
473
+ - sorbet/rbi/gems/semver2@3.4.2.rbi
474
+ - sorbet/rbi/gems/simplecov-html@0.12.3.rbi
475
+ - sorbet/rbi/gems/simplecov@0.22.0.rbi
476
+ - sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi
477
+ - sorbet/rbi/gems/sorbet-coerce@0.7.0.rbi
478
+ - sorbet/rbi/gems/stringio@3.0.2.rbi
479
+ - sorbet/rbi/gems/sync@0.5.0.rbi
480
+ - sorbet/rbi/gems/term-ansicolor@1.7.1.rbi
481
+ - sorbet/rbi/gems/thor@1.2.1.rbi
482
+ - sorbet/rbi/gems/thread_safe@0.3.6.rbi
483
+ - sorbet/rbi/gems/timecop@0.9.6.rbi
484
+ - sorbet/rbi/gems/tins@1.32.1.rbi
485
+ - sorbet/rbi/gems/tzinfo@2.0.6.rbi
486
+ - sorbet/rbi/gems/unicode-display_width@2.4.2.rbi
487
+ - sorbet/rbi/gems/unparser@0.6.7.rbi
488
+ - sorbet/rbi/gems/webrick@1.7.0.rbi
489
+ - sorbet/rbi/gems/yard@0.9.28.rbi
490
+ - sorbet/rbi/gems/zeitwerk@2.6.7.rbi
491
+ - sorbet/rbi/models/acts-as-messageable/message.rbi
492
+ - sorbet/rbi/models/acts-as-messageable/user.rbi
493
+ - sorbet/rbi/rails-rbi/active_record_base.rbi
494
+ - sorbet/rbi/rails-rbi/active_record_relation.rbi
495
+ - sorbet/rbi/shims/activerecord.rbi
496
+ - sorbet/rbi/shims/model.rbi
497
+ - sorbet/tapioca/config.yml
498
+ - sorbet/tapioca/pre_require.rb
499
+ - sorbet/tapioca/require.rb
252
500
  - spec/acts_as_messageable_spec.rb
253
501
  - spec/custom_class_spec.rb
254
502
  - spec/custom_required_spec.rb
@@ -264,10 +512,12 @@ files:
264
512
  - spec/support/table_schema.rb
265
513
  - spec/support/user.rb
266
514
  - spec/support/uuid_user.rb
515
+ - tasks/types.rake
267
516
  homepage: http://github.com/LTe/acts-as-messageable
268
517
  licenses: []
269
- metadata: {}
270
- post_install_message:
518
+ metadata:
519
+ rubygems_mfa_required: 'true'
520
+ post_install_message:
271
521
  rdoc_options: []
272
522
  require_paths:
273
523
  - lib
@@ -282,8 +532,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
532
  - !ruby/object:Gem::Version
283
533
  version: '0'
284
534
  requirements: []
285
- rubygems_version: 3.1.3
286
- signing_key:
535
+ rubygems_version: 3.4.1
536
+ signing_key:
287
537
  specification_version: 4
288
538
  summary: Make user messageable!;-)
289
539
  test_files: []