ndr_workflow 1.2.5 → 1.3.0

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: 3222ceba0ab6c26802391cce5268e1e414b142f0463ae18a7c9ebea06e4e0ae9
4
- data.tar.gz: 66c4bcb8152c2a0734968bb4f121324b3535ca2888f72e98dc4bb4b669a259ff
3
+ metadata.gz: cd4aaf588302312b357a077bca5bd9018c74035d0bd3e1df8a595897a4c86198
4
+ data.tar.gz: ce79a771e43f9570fa90e6fafe2e0ec82f1e3a210373057ceead9677de4443f1
5
5
  SHA512:
6
- metadata.gz: 23d8b24e27d6c9ab8e3f306eed4d9301068d6c1966707cb53abdf440dfcb6baacc3e805deba4f4c32280f6871945e825cd20f840efab5d4533912e519f0f0e10
7
- data.tar.gz: cf6d925666512f0db92e6045cc84054cd394ba2dc82ba2d387f614001981a39e10fd1fdf1afbc1d8b64c7b77f717367f7638efc9f1dc17d0b762552bf9ca3a96
6
+ metadata.gz: 0c43bbf1532c4675dc76fe718b59acdf8c675f2ee428fd6248d5857cb49f6b8bf4663ecd247750765f6ab55c9e6f0ed405f3b03ecc6fd835c4a479928aa9d2d7
7
+ data.tar.gz: 45f54af21b01ab6a40dd7d67d614d1a3578a7ffa9d7e31b6b07fc4902122318329bfb8a240594fbe8475ee70e8559ddde104ca800735dd85a79af18191cd242d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  ## [Unreleased]
2
2
  * No unreleased changes
3
3
 
4
+ ## 1.3.0 / 2026-10-09
5
+ ### Fixed
6
+ * Removed unused global constants
7
+
4
8
  ## 1.2.5 / 2026-07-13
5
9
  ### Fixed
6
10
  * Support Ruby 3.4. Drop support for Rails 7.0, Ruby 3.1
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NdrWorkflow
4
- VERSION = '1.2.5'
4
+ VERSION = '1.3.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ndr_workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - NCRS Development team
@@ -111,7 +111,6 @@ files:
111
111
  - README.rdoc
112
112
  - Rakefile
113
113
  - SECURITY.md
114
- - app/constants/esource_constants.rb
115
114
  - app/models/e_action.rb
116
115
  - app/models/e_batch.rb
117
116
  - app/models/e_workflow.rb
@@ -1,51 +0,0 @@
1
- # Make this exist, so autoloaders are happy
2
- module EsourceConstants; end
3
-
4
- # Constants that are used in a number of e-source-related programs.
5
- # The model classes corresponding to 'e_type' strings in e_batch records
6
- PERMITTED_LISTS_FROM_LOOKUPS = [:laterality] unless defined?(PERMITTED_LISTS_FROM_LOOKUPS)
7
-
8
- ERROR_INFO = {
9
- :started => ['Action in progress', 'The action has been started by someone else.'],
10
- :nobatch => ['Invalid batch', 'Unable to find certain batch in database.'],
11
- :nocommit => ['Invalid access', "You didn't specify an valid operation."],
12
- :perform => ['Invalid operation', "You didn't specify an valid operation."],
13
- :yaml => ['Yaml file', 'Failed to load mapping file.'],
14
- :wrongdate => ['Invalid date', 'Incorrect file received date.'],
15
- :nofile => ['Invalid file', 'No file selected.'],
16
- :nolibrary => ['Missing software', 'Cannot understand this file as no software driver was found.'],
17
- :wrongformat => ['Invalid file format', 'File format is not accepted by this source.'],
18
- :fileexisted => ['File existed', 'The file is currently being processed.'],
19
- :digest => ['File existed', 'File with same digest has been found in repository.'],
20
- :extinrep => ['File existed', 'File with same name has been found in repository.'],
21
- :batch => ['Create Batch', 'Failed to create a batch record.'],
22
- :action_create => ['Create Action', 'Failed to create an action record.'],
23
- :action_update => ['Update Action', 'Failed to update an action record.'],
24
- :imported => ['Import', 'This table has already been imported.'],
25
- :pattern => ['Pattern error', "Data doesn't match the pattern specified in yaml file."],
26
- :nomapping => ['Unrecognised batch', 'No columns mapping provided for this source.'],
27
- :nodatereference => ['Invalid date', 'Unspecified date reference.'],
28
- :baddatereference => ['Invalid date', 'Bad date(s) specified in Date Reference field. '],
29
- :password => ['Invalid password', "Password doesn't match selected xls file."],
30
- :blankfile => ['Blank file', 'No data found in specified file.'],
31
- :header => ['Header line error', 'No header line found or header line conflicts with specified source'],
32
- :difference => ['Uneven records', 'Some records have at least 3 columns less than others in that batch']
33
- } unless defined?(ERROR_INFO)
34
-
35
- DATA_MEDIA = ['Email', 'Floppy Disk', 'CD/DVD', 'Others'] unless defined?(DATA_MEDIA)
36
-
37
- MATCH_STATUS = {
38
- :perfect => 'Definite Match', # AMCH_STATUS
39
- :possible => 'Possible Matches', # AMCH_STATUS
40
- :none => 'No Match', # AMCH_STATUS
41
- :alias => 'Alias', # MMCH_STATUS
42
- :new => 'New', # MMCH_STATUS & DEDU_STATUS
43
- :manual => 'Manual', # MMCH_STATUS & DEDU_STATUS
44
- :match => 'Match', # MMCH_STATUS & DEDU_STATUS
45
- :reset => nil # MMCH_STATUS & DEDU_STATUS, used for "change this decision"
46
- } unless defined?(MATCH_STATUS)
47
-
48
- # Batch stats default timeline base
49
- # If the typical_batch_interval is 1.month,
50
- # Then the default timeline is 3 * 1.month = 3 months
51
- BATCH_STATS_TIMELINE_BASE = 3 unless defined?(BATCH_STATS_TIMELINE_BASE)