propel_api 0.3.1.6 → 0.3.3

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.
@@ -189,6 +189,13 @@ class <%= class_name %>Test < ActiveSupport::TestCase
189
189
  excluded_patterns = /\A(description|content|body|notes|comment|bio|about|summary|created_at|updated_at|deleted_at|password|digest|token|secret|key|salt|encrypted|confirmation|unlock|reset|api_key|access_token|refresh_token)\z/i
190
190
  security_patterns = /(password|digest|token|secret|key|salt|encrypted|confirmation|unlock|reset|api_key)/i
191
191
 
192
+ # Include all boolean fields except specific ones that shouldn't be in short facet
193
+ if attr.type == :boolean
194
+ excluded_boolean_fields = %w[internal_flag system_generated admin_only debug_mode test_mode]
195
+ next false if excluded_boolean_fields.include?(attr.name.to_s)
196
+ next attr
197
+ end
198
+
192
199
  identifying_fields.include?(attr.name.to_s) ||
193
200
  (simple_types.include?(attr.type) &&
194
201
  attr.name.to_s !~ excluded_patterns &&
data/lib/propel_api.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module PropelApi
2
- VERSION = "0.3.1.6"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: propel_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1.6
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Martin, Rafael Pivato, Chi Putera
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-09-13 00:00:00.000000000 Z
11
+ date: 2025-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -51,8 +51,9 @@ dependencies:
51
51
  - !ruby/object:Gem::Version
52
52
  version: '10.0'
53
53
  description: A comprehensive Rails generator that creates complete API resources with
54
- models, controllers, tests, and realistic seed data. Supports both JSON Facet and
55
- Graphiti serialization engines.
54
+ models, controllers, tests, and realistic seed data. Features automatic URL query
55
+ string filtering and scoping using the has_scope gem with support for all data types
56
+ and database-agnostic implementation.
56
57
  email:
57
58
  - admin@propelhq.dev
58
59
  executables: []
@@ -72,12 +73,17 @@ files:
72
73
  - lib/generators/propel_api/core/relationship_inferrer.rb
73
74
  - lib/generators/propel_api/install/install_generator.rb
74
75
  - lib/generators/propel_api/resource/resource_generator.rb
76
+ - lib/generators/propel_api/templates/concerns/propel_controller_filters_concern.rb
77
+ - lib/generators/propel_api/templates/concerns/propel_model_filters_concern.rb
75
78
  - lib/generators/propel_api/templates/config/propel_api.rb.tt
76
79
  - lib/generators/propel_api/templates/controllers/api_base_controller.rb
77
80
  - lib/generators/propel_api/templates/controllers/api_controller_graphiti.rb
78
81
  - lib/generators/propel_api/templates/controllers/api_controller_propel_facets.rb
79
82
  - lib/generators/propel_api/templates/controllers/example_controller.rb.tt
80
83
  - lib/generators/propel_api/templates/errors/propel_api_csrf_error.rb
84
+ - lib/generators/propel_api/templates/lib/XX_dynamic_scope_generator.rb
85
+ - lib/generators/propel_api/templates/lib/propel_dynamic_scope_generator.rb
86
+ - lib/generators/propel_api/templates/lib/propel_filter_operators.rb
81
87
  - lib/generators/propel_api/templates/scaffold/facet_controller_template.rb.tt
82
88
  - lib/generators/propel_api/templates/scaffold/facet_model_template.rb.tt
83
89
  - lib/generators/propel_api/templates/scaffold/graphiti_controller_template.rb.tt
@@ -115,5 +121,5 @@ requirements: []
115
121
  rubygems_version: 3.4.19
116
122
  signing_key:
117
123
  specification_version: 4
118
- summary: Rails generator for API resources with JSON Facet and Graphiti support
124
+ summary: Rails generator for API resources with comprehensive dynamic filtering system
119
125
  test_files: []