thecore_print_commons 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f2974a085359b92727a6ec3494bde504080b2f50f7ceae6e4ca90e288ae7274
4
- data.tar.gz: 82d1e631096d0b1b1a26b41688eb8bc3ce5e8b091189db4f4f957db5e47fa1bb
3
+ metadata.gz: 20490e2bec2c6919724f04c00661c14d12f204586d72ac01d9bd7f3c45530cc0
4
+ data.tar.gz: 1d7557c8e12cd17654946c8c349f2a4599f19ace38d24aff12bb0b96b5bfab89
5
5
  SHA512:
6
- metadata.gz: 6940e7eaa8b0a23f53be43345247805ef1b33184f2536e1169b5756b50a6704580e50afc2e8af2f1a2703b367e75e6a108123e6488766c5b2f80fdf7af8e9e57
7
- data.tar.gz: c813296335885f5454b403ba6e0e949d7c163a735443071fb7308d4d00e39a82022d6ea3832b471e235ab323b1f0592f1e8dd2445dcf79b89ad696aa0b914a43
6
+ metadata.gz: 27956ae172465597f1d504728d57ca1fcfbc993e20baec5eccd47c174934fea7fba9aae3218cc4c693e99075c5ba5fdc7a28b04fb47cbcdd9dfa0a259a34df5d
7
+ data.tar.gz: c0018f9793689d4ca15539869c3701afd7773d0f333fa6fda133cc86c80b1305dc7cbc3e7537a9fbf2076e776f5dd0d503e91df2276779e0af82ed6581c618c0
data/db/seeds.rb ADDED
@@ -0,0 +1,2 @@
1
+ puts "Loading ThecorePrintCommons seeds"
2
+ Settings.ns(:printer_commons).cups_server = 'localhost'
@@ -2,6 +2,9 @@ module ThecorePrintCommons
2
2
  class Engine < ::Rails::Engine
3
3
 
4
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
5
8
  unless app.root.to_s.match root.to_s
6
9
  # APPEND TO MAIN APP MIGRATIONS FROM THIS GEM
7
10
  config.paths['db/migrate'].expanded.each do |expanded_path|
@@ -1,3 +1,3 @@
1
1
  module ThecorePrintCommons
2
- VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`}"
2
+ VERSION = "#{`git describe --tags $(git rev-list --tags --max-count=1)`.chomp}"
3
3
  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.0.3
4
+ version: 2.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: 2020-11-03 00:00:00.000000000 Z
11
+ date: 2021-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_background_jobs
@@ -61,7 +61,7 @@ files:
61
61
  - db/migrate/20160323152041_create_printers.rb
62
62
  - db/migrate/20160413115407_add_temperature_to_printer.rb
63
63
  - db/migrate/20160629140729_add_default_to_printer.rb
64
- - db/migrate/20181106141858_add_remote_server_setting.rb
64
+ - db/seeds.rb
65
65
  - lib/tasks/thecore_print_commons_tasks.rake
66
66
  - lib/thecore_print_commons.rb
67
67
  - lib/thecore_print_commons/engine.rb
@@ -1,6 +0,0 @@
1
- class AddRemoteServerSetting < ActiveRecord::Migration[5.2]
2
- def up
3
- Settings.ns(:printer_commons).cups_server = 'localhost'
4
- end
5
- end
6
-