toolx 0.2.1 → 0.2.2
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/lib/tasks/types.rake +16 -0
- data/lib/templates/types.rb +4 -0
- data/lib/toolx/core/operation/params_wrapper.rb +2 -0
- data/lib/toolx/core/operation/response_wrapper.rb +2 -0
- data/lib/toolx/version.rb +1 -1
- data/lib/toolx.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9155a4cd82106186e76da35529769fffb623cd797e5f2475835830a4c835655
|
4
|
+
data.tar.gz: cb4c8e54f4ffc0b163cdb5e9774bb17e5b759600d7e8a79b719f1067aa041783
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e5c3dd888e0962f0f89d7cb14f4e11a2ddc84a3695814ca0a9e4a23ec5ebc63694d2593ad3ef63e3ea9b6e444ac02a4d0b259b71a4ced70b5b8c0557c9795ad
|
7
|
+
data.tar.gz: a553bd9dc0cdc781153ea8c8d25773900d0448bff3b380c235cb42e2c66b1cee85af7dbfa6a8def379f0cb0c89fb1298eae489dc7d12fb9ec6f44be82da9f92e
|
@@ -0,0 +1,16 @@
|
|
1
|
+
namespace :toolx do
|
2
|
+
namespace :types do
|
3
|
+
desc 'Generate types.rb initializer for custom types (operations, etc.)'
|
4
|
+
task :generate do
|
5
|
+
file_name = Rails.root.join('config', 'initializers', 'types.rb')
|
6
|
+
next puts "Already executed" if File.exist?(file_name)
|
7
|
+
|
8
|
+
template_root_path = File.expand_path("../templates", __dir__)
|
9
|
+
source_file_name = 'types.rb'
|
10
|
+
source = File.read(File.join(template_root_path, source_file_name), trim_mode: '-')
|
11
|
+
File.write(Rails.root.join(file_name).to_s, source)
|
12
|
+
|
13
|
+
puts "Types generated at #{Pathname.new(file_name).relative_path_from(Rails.root)}"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/toolx/version.rb
CHANGED
data/lib/toolx.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toolx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pawel Niemczyk
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-06-
|
10
|
+
date: 2025-06-29 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: statesman
|
@@ -281,10 +281,12 @@ files:
|
|
281
281
|
- lib/tasks/aliases.rake
|
282
282
|
- lib/tasks/annotate_rb.rake
|
283
283
|
- lib/tasks/stateman.rake
|
284
|
+
- lib/tasks/types.rake
|
284
285
|
- lib/templates/.annotaterb.yml
|
285
286
|
- lib/templates/stateman/migration.rb.erb
|
286
287
|
- lib/templates/stateman/state_machine.rb.erb
|
287
288
|
- lib/templates/stateman/transition.rb.erb
|
289
|
+
- lib/templates/types.rb
|
288
290
|
- lib/toolx.rb
|
289
291
|
- lib/toolx/core/concerns/custom_identifier.rb
|
290
292
|
- lib/toolx/core/concerns/date_time_to_boolean.rb
|