thecore_print_commons 2.3.1 → 3.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f0b1b571fa094d8b1b266d24f6ea7ae229c57c2364952dff65355d744da507e
4
- data.tar.gz: f96a79855b594b66e390cdfceef995faba318fd47e1975cfbdcc12074efd7005
3
+ metadata.gz: 50d6d7b2f2b791faade51232bbd6ce53b0f6e6dc1e535f449f388671b50b5c5c
4
+ data.tar.gz: 9917b2fc7ab55d383d2e11ab9792caf6e5e577eea0cfb77a62c76a6303de6c28
5
5
  SHA512:
6
- metadata.gz: fc9fd513300b2dab275b0702bc6c01ac87edf5a04616f2afc03ecb591e7b3cfddc9a7b93300d9a9445e46e11ef11d2a97cab4763a59ef0a59a7b57deb0e3ced8
7
- data.tar.gz: ffdd5c9dd4ac4ca21ee5b25b6fb1278295d451e1c0e2ce51a4091fdb6a99555beb54d67ce29d2a817e9f4ce63a461f6687cbbf7472009306049d77fc1a5e6368
6
+ metadata.gz: ed4df94fdb20c98468afa43eac81e33c2766579b319bcd47b72100257f36d2a66ba9f4f4745680a9c652148a4bfb4c84590a27c727e377106132f17af89d3eab
7
+ data.tar.gz: a6c34863c12ea2d634b8c4df3c0259d17cc46af16ab71afca23d97eaaef1e6db9e653e02de1162f61f7ddfa0dddf6cc603944c9e3c34b8fc48769563d86ea19e
@@ -14,7 +14,12 @@ module RailsAdmin::Printer
14
14
  9100
15
15
  end
16
16
  end
17
- field :default, :toggle
17
+
18
+ if Object.const_defined?('RailsAdminToggleable')
19
+ field :default, :toggle
20
+ else
21
+ field :default
22
+ end
18
23
 
19
24
  show do
20
25
  field :temperature
@@ -25,7 +30,7 @@ module RailsAdmin::Printer
25
30
  field :temperature
26
31
  field :description
27
32
  end
28
-
33
+
29
34
  field :is_online do
30
35
  read_only true
31
36
  formatted_value do # used in form views
@@ -0,0 +1,2 @@
1
+
2
+ Rails.application.config.paths['db/migrate'] << File.expand_path("../../db/migrate", __dir__)
@@ -1,17 +1,4 @@
1
1
  module ThecorePrintCommons
2
2
  class Engine < ::Rails::Engine
3
-
4
- initializer 'thecore_print_commons.add_to_migrations' do |app|
5
- # Adds the list of Thecore Engines, so to manage seeds loading, i.e.:
6
- # Thecore::Base.thecore_engines.each { |engine| engine.load_seed }
7
- Thecore::Base.thecore_engines << self.class
8
- unless app.root.to_s.match root.to_s
9
- # APPEND TO MAIN APP MIGRATIONS FROM THIS GEM
10
- config.paths['db/migrate'].expanded.each do |expanded_path|
11
- app.config.paths['db/migrate'] << expanded_path
12
- end
13
- end
14
- end
15
-
16
3
  end
17
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_print_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-29 00:00:00.000000000 Z
11
+ date: 2023-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_background_jobs
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.2'
19
+ version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.2'
26
+ version: '3.0'
27
27
  description: Thecorized thecore_print_commons full description.
28
28
  email:
29
29
  - gabriele.tassoni@gmail.com
@@ -43,6 +43,7 @@ files:
43
43
  - app/models/printer.rb
44
44
  - app/workers/print_worker.rb
45
45
  - config/initializers/abilities_thecore_print_commons_concern.rb
46
+ - config/initializers/add_to_db_migrate.rb
46
47
  - config/initializers/after_initialize_for_thecore_print_commons.rb
47
48
  - config/initializers/thecore_print_commons_static_links.rb
48
49
  - config/locales/telnet_print.activerecord.it.yml
@@ -79,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
80
  - !ruby/object:Gem::Version
80
81
  version: '0'
81
82
  requirements: []
82
- rubygems_version: 3.0.3.1
83
+ rubygems_version: 3.3.26
83
84
  signing_key:
84
85
  specification_version: 4
85
86
  summary: Thecorized thecore_print_commons