type_balancer_rails 0.2.2 → 0.2.4
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 +4 -4
- data/.rspec +4 -0
- data/.rubocop.yml +8 -23
- data/CHANGELOG.md +18 -3
- data/README.md +15 -0
- data/example/.dockerignore +51 -0
- data/example/.rspec +1 -0
- data/example/.rubocop.yml +132 -0
- data/example/Dockerfile +72 -0
- data/example/Gemfile +77 -0
- data/example/Gemfile.lock +449 -0
- data/example/README.md +42 -0
- data/example/Rakefile +6 -0
- data/example/app/assets/images/.keep +0 -0
- data/example/app/assets/stylesheets/application.css +10 -0
- data/example/app/controllers/application_controller.rb +4 -0
- data/example/app/controllers/concerns/.keep +0 -0
- data/example/app/controllers/contents_controller.rb +11 -0
- data/example/app/controllers/posts_controller.rb +5 -0
- data/example/app/helpers/application_helper.rb +2 -0
- data/example/app/helpers/contents_helper.rb +2 -0
- data/example/app/helpers/posts_helper.rb +2 -0
- data/example/app/jobs/application_job.rb +7 -0
- data/example/app/mailers/application_mailer.rb +4 -0
- data/example/app/models/application_record.rb +3 -0
- data/example/app/models/concerns/.keep +0 -0
- data/example/app/models/content.rb +3 -0
- data/example/app/models/post.rb +3 -0
- data/example/app/views/contents/balance_by_category.html.erb +27 -0
- data/example/app/views/contents/balance_by_content_type.html.erb +2 -0
- data/example/app/views/layouts/application.html.erb +27 -0
- data/example/app/views/layouts/mailer.html.erb +13 -0
- data/example/app/views/layouts/mailer.text.erb +1 -0
- data/example/app/views/posts/balance_by_category.html.erb +2 -0
- data/example/app/views/posts/index.html.erb +25 -0
- data/example/app/views/pwa/manifest.json.erb +22 -0
- data/example/app/views/pwa/service-worker.js +26 -0
- data/example/bin/brakeman +7 -0
- data/example/bin/dev +2 -0
- data/example/bin/docker-entrypoint +14 -0
- data/example/bin/rails +4 -0
- data/example/bin/rake +4 -0
- data/example/bin/rubocop +8 -0
- data/example/bin/setup +34 -0
- data/example/bin/thrust +5 -0
- data/example/config/application.rb +42 -0
- data/example/config/boot.rb +4 -0
- data/example/config/cable.yml +10 -0
- data/example/config/credentials.yml.enc +1 -0
- data/example/config/database.yml +41 -0
- data/example/config/environment.rb +5 -0
- data/example/config/environments/development.rb +72 -0
- data/example/config/environments/production.rb +89 -0
- data/example/config/environments/test.rb +53 -0
- data/example/config/initializers/assets.rb +7 -0
- data/example/config/initializers/content_security_policy.rb +25 -0
- data/example/config/initializers/filter_parameter_logging.rb +8 -0
- data/example/config/initializers/inflections.rb +16 -0
- data/example/config/locales/en.yml +31 -0
- data/example/config/master.key +1 -0
- data/example/config/puma.rb +41 -0
- data/example/config/routes.rb +8 -0
- data/example/config/storage.yml +34 -0
- data/example/config.ru +6 -0
- data/example/db/migrate/20250427174733_create_posts.rb +10 -0
- data/example/db/migrate/20250427174747_create_contents.rb +11 -0
- data/example/db/schema.rb +28 -0
- data/example/db/seeds.rb +9 -0
- data/example/lib/tasks/.keep +0 -0
- data/example/lib/tasks/dev_fixtures.rake +12 -0
- data/example/script/.keep +0 -0
- data/example/spec/controllers/contents_controller_spec.rb +27 -0
- data/example/spec/controllers/posts_controller_spec.rb +16 -0
- data/example/spec/features/contents_balancing_spec.rb +18 -0
- data/example/spec/features/posts_balancing_spec.rb +16 -0
- data/example/spec/fixtures/contents.yml +19 -0
- data/example/spec/fixtures/posts.yml +16 -0
- data/example/spec/models/content_spec.rb +51 -0
- data/example/spec/models/post_spec.rb +55 -0
- data/example/spec/rails_helper.rb +35 -0
- data/example/spec/spec_helper.rb +94 -0
- data/example/storage/.keep +0 -0
- data/example/storage/development.sqlite3 +0 -0
- data/example/storage/test.sqlite3 +0 -0
- data/example/test/fixtures/contents.yml +19 -0
- data/example/test/fixtures/posts.yml +16 -0
- data/example/vendor/.keep +0 -0
- data/lib/type_balancer/rails/active_record_extension.rb +9 -7
- data/lib/type_balancer/rails/collection_methods.rb +58 -33
- data/lib/type_balancer/rails/version.rb +1 -1
- data/type_balancer_rails.gemspec +1 -1
- metadata +87 -4
data/type_balancer_rails.gemspec
CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
# Runtime dependencies
|
33
33
|
spec.add_dependency 'activerecord', '>= 7.0', '< 9.0'
|
34
34
|
spec.add_dependency 'activesupport', '>= 7.0', '< 9.0'
|
35
|
-
spec.add_dependency 'type_balancer', '~> 0.1', '>= 0.1.
|
35
|
+
spec.add_dependency 'type_balancer', '~> 0.1', '>= 0.1.4'
|
36
36
|
|
37
37
|
# For more information and examples about making a new gem, check out our
|
38
38
|
# guide at: https://bundler.io/guides/creating_gem.html
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: type_balancer_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carl Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
version: '0.1'
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0.1.
|
62
|
+
version: 0.1.4
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -69,7 +69,7 @@ dependencies:
|
|
69
69
|
version: '0.1'
|
70
70
|
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: 0.1.
|
72
|
+
version: 0.1.4
|
73
73
|
description: Provides Rails integration for the type_balancer gem
|
74
74
|
email:
|
75
75
|
- carl@llwebconsulting.com
|
@@ -77,12 +77,95 @@ executables: []
|
|
77
77
|
extensions: []
|
78
78
|
extra_rdoc_files: []
|
79
79
|
files:
|
80
|
+
- ".rspec"
|
80
81
|
- ".rubocop.yml"
|
81
82
|
- CHANGELOG.md
|
82
83
|
- CODE_OF_CONDUCT.md
|
83
84
|
- LICENSE.txt
|
84
85
|
- README.md
|
85
86
|
- Rakefile
|
87
|
+
- example/.dockerignore
|
88
|
+
- example/.rspec
|
89
|
+
- example/.rubocop.yml
|
90
|
+
- example/Dockerfile
|
91
|
+
- example/Gemfile
|
92
|
+
- example/Gemfile.lock
|
93
|
+
- example/README.md
|
94
|
+
- example/Rakefile
|
95
|
+
- example/app/assets/images/.keep
|
96
|
+
- example/app/assets/stylesheets/application.css
|
97
|
+
- example/app/controllers/application_controller.rb
|
98
|
+
- example/app/controllers/concerns/.keep
|
99
|
+
- example/app/controllers/contents_controller.rb
|
100
|
+
- example/app/controllers/posts_controller.rb
|
101
|
+
- example/app/helpers/application_helper.rb
|
102
|
+
- example/app/helpers/contents_helper.rb
|
103
|
+
- example/app/helpers/posts_helper.rb
|
104
|
+
- example/app/jobs/application_job.rb
|
105
|
+
- example/app/mailers/application_mailer.rb
|
106
|
+
- example/app/models/application_record.rb
|
107
|
+
- example/app/models/concerns/.keep
|
108
|
+
- example/app/models/content.rb
|
109
|
+
- example/app/models/post.rb
|
110
|
+
- example/app/views/contents/balance_by_category.html.erb
|
111
|
+
- example/app/views/contents/balance_by_content_type.html.erb
|
112
|
+
- example/app/views/layouts/application.html.erb
|
113
|
+
- example/app/views/layouts/mailer.html.erb
|
114
|
+
- example/app/views/layouts/mailer.text.erb
|
115
|
+
- example/app/views/posts/balance_by_category.html.erb
|
116
|
+
- example/app/views/posts/index.html.erb
|
117
|
+
- example/app/views/pwa/manifest.json.erb
|
118
|
+
- example/app/views/pwa/service-worker.js
|
119
|
+
- example/bin/brakeman
|
120
|
+
- example/bin/dev
|
121
|
+
- example/bin/docker-entrypoint
|
122
|
+
- example/bin/rails
|
123
|
+
- example/bin/rake
|
124
|
+
- example/bin/rubocop
|
125
|
+
- example/bin/setup
|
126
|
+
- example/bin/thrust
|
127
|
+
- example/config.ru
|
128
|
+
- example/config/application.rb
|
129
|
+
- example/config/boot.rb
|
130
|
+
- example/config/cable.yml
|
131
|
+
- example/config/credentials.yml.enc
|
132
|
+
- example/config/database.yml
|
133
|
+
- example/config/environment.rb
|
134
|
+
- example/config/environments/development.rb
|
135
|
+
- example/config/environments/production.rb
|
136
|
+
- example/config/environments/test.rb
|
137
|
+
- example/config/initializers/assets.rb
|
138
|
+
- example/config/initializers/content_security_policy.rb
|
139
|
+
- example/config/initializers/filter_parameter_logging.rb
|
140
|
+
- example/config/initializers/inflections.rb
|
141
|
+
- example/config/locales/en.yml
|
142
|
+
- example/config/master.key
|
143
|
+
- example/config/puma.rb
|
144
|
+
- example/config/routes.rb
|
145
|
+
- example/config/storage.yml
|
146
|
+
- example/db/migrate/20250427174733_create_posts.rb
|
147
|
+
- example/db/migrate/20250427174747_create_contents.rb
|
148
|
+
- example/db/schema.rb
|
149
|
+
- example/db/seeds.rb
|
150
|
+
- example/lib/tasks/.keep
|
151
|
+
- example/lib/tasks/dev_fixtures.rake
|
152
|
+
- example/script/.keep
|
153
|
+
- example/spec/controllers/contents_controller_spec.rb
|
154
|
+
- example/spec/controllers/posts_controller_spec.rb
|
155
|
+
- example/spec/features/contents_balancing_spec.rb
|
156
|
+
- example/spec/features/posts_balancing_spec.rb
|
157
|
+
- example/spec/fixtures/contents.yml
|
158
|
+
- example/spec/fixtures/posts.yml
|
159
|
+
- example/spec/models/content_spec.rb
|
160
|
+
- example/spec/models/post_spec.rb
|
161
|
+
- example/spec/rails_helper.rb
|
162
|
+
- example/spec/spec_helper.rb
|
163
|
+
- example/storage/.keep
|
164
|
+
- example/storage/development.sqlite3
|
165
|
+
- example/storage/test.sqlite3
|
166
|
+
- example/test/fixtures/contents.yml
|
167
|
+
- example/test/fixtures/posts.yml
|
168
|
+
- example/vendor/.keep
|
86
169
|
- lib/generators/type_balancer/install/install_generator.rb
|
87
170
|
- lib/generators/type_balancer/install/templates/type_balancer.rb.erb
|
88
171
|
- lib/type_balancer/rails.rb
|