thecore_dataentry_commons 2.1.0 → 2.1.1

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: 90c8c94f7a4672fe23a56984f36a46eee97853773e8af4578cb071b6f83f94dc
4
- data.tar.gz: e6f913a2c9d11451693c89b1752c34c2678418afc580ed91ccfd0d1222d3081f
3
+ metadata.gz: 65de3dec084035d8c289cca7cff463d7184b016917405dd75f6d0f8b03d2ce27
4
+ data.tar.gz: 006d2cc96db4c61edae16e7fa4a3c31eba5cc373edaeed34082fd3d69a55cd9a
5
5
  SHA512:
6
- metadata.gz: cc673fb4570215ec3bb73c85aedcf43f4da1103cea9ea439607b21a5d231df9de0e7bbbcf01b8cef9b3aa706b0ed1cc3fcc32bebc39ffdaf1e1e227be6fa2425
7
- data.tar.gz: e41ab02a87f66f78f723d5253c6111ed1ebd65eace5e3382dcb24b4a22978bf2c9a17a832a45c1f0bc9d2f4a90bb933bf488388a678b26f68725b905e672246f
6
+ metadata.gz: da788845de440271dda9ca0a5ccd8a341b27c8ba13cfcd9458203cc97a3e0d697954e20885a5320e3dcd7575419c7ef4b10a89bc62ab7534c1276522773a9388
7
+ data.tar.gz: e13fe08b073bdb1ae1d1e1901a7cce86f7f5a59c6180ae54d65c906ab233a8429d06fcfe1a788b6ed048f9aaf03299a80406715b88277cc5a3ed2c618f32812c
data/db/seeds.rb ADDED
@@ -0,0 +1,5 @@
1
+ puts "Loading ThecoreDataentryCommons seeds"
2
+ Settings.datawedge_kp_mode = "keypress"
3
+ # ws: WebSocket
4
+ # kp: KeyPress
5
+ Settings.datawedge_scan_mode = "auto" # or "kp"
@@ -8,6 +8,9 @@ module ThecoreDataentryCommons
8
8
  # app.middleware.use ::ActionDispatch::Static, "#{root}/app"
9
9
  # end
10
10
  initializer 'thecore_dataentry_commons.add_to_migrations' do |app|
11
+ # Adds the list of Thecore Engines, so to manage seeds loading, i.e.:
12
+ # Thecore::Base.thecore_engines.each { |engine| engine.load_seed }
13
+ Thecore::Base.thecore_engines << self.class
11
14
  unless app.root.to_s.match root.to_s
12
15
  # APPEND TO MAIN APP MIGRATIONS FROM THIS GEM
13
16
  config.paths['db/migrate'].expanded.each do |expanded_path|
@@ -1,3 +1,3 @@
1
1
  module ThecoreDataentryCommons
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_dataentry_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-12 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_ui_rails_admin
@@ -58,8 +58,7 @@ files:
58
58
  - app/views/thecore_utils/_html_helpers.html.erb
59
59
  - config/locales/en.thecore_datawedge_websocket_helpers.yml
60
60
  - config/locales/it.thecore_datawedge_websocket_helpers.yml
61
- - db/migrate/20170913192906_add_keymode_to_settings.rb
62
- - db/migrate/20171005162605_replace_with_auto_to_settings.rb
61
+ - db/seeds.rb
63
62
  - lib/thecore_dataentry_commons.rb
64
63
  - lib/thecore_dataentry_commons/engine.rb
65
64
  - lib/thecore_dataentry_commons/version.rb
@@ -1,7 +0,0 @@
1
- class AddKeymodeToSettings < ActiveRecord::Migration[5.1]
2
- def change
3
- # keyup
4
- # keypress
5
- Settings.datawedge_kp_mode = "keypress"
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- class ReplaceWithAutoToSettings < ActiveRecord::Migration[5.1]
2
- def change
3
- # ws: WebSocket
4
- # kp: KeyPress
5
- Settings.datawedge_scan_mode = "auto" # or "kp"
6
- end
7
- end