ncs_mdes_warehouse 0.15.0.pre3 → 0.15.0.pre4

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,10 @@ NCS Navigator MDES Warehouse History
10
10
  - Add drop_not_null option: Drop NOT NULL constraints for all, but
11
11
  the primary key colums in the database (#4316)
12
12
 
13
+ - Fix trh_meter_calibration's equip_id foreign key reference (#4586)
14
+
15
+ - Update XmlEmitter to work with latest Thor (#4589)
16
+
13
17
  0.14.0
14
18
  ------
15
19
 
@@ -17,7 +17,7 @@ module NcsNavigator::Warehouse::Models::ThreePointOne
17
17
  'NcsNavigator::Warehouse::Models::ThreePointOne::SrscInfo',
18
18
  :child_key => [ :srsc_id ], :required => true
19
19
  belongs_to :equip,
20
- 'NcsNavigator::Warehouse::Models::ThreePointOne::SpecEquipment',
20
+ 'NcsNavigator::Warehouse::Models::ThreePointOne::EnvEquipment',
21
21
  :child_key => [ :equip_id ], :required => true
22
22
  belongs_to :staff,
23
23
  'NcsNavigator::Warehouse::Models::ThreePointOne::Staff',
@@ -17,7 +17,7 @@ module NcsNavigator::Warehouse::Models::ThreePointThree
17
17
  'NcsNavigator::Warehouse::Models::ThreePointThree::SrscInfo',
18
18
  :child_key => [ :srsc_id ], :required => true
19
19
  belongs_to :equip,
20
- 'NcsNavigator::Warehouse::Models::ThreePointThree::SpecEquipment',
20
+ 'NcsNavigator::Warehouse::Models::ThreePointThree::EnvEquipment',
21
21
  :child_key => [ :equip_id ], :required => true
22
22
  belongs_to :staff,
23
23
  'NcsNavigator::Warehouse::Models::ThreePointThree::Staff',
@@ -17,7 +17,7 @@ module NcsNavigator::Warehouse::Models::ThreePointTwo
17
17
  'NcsNavigator::Warehouse::Models::ThreePointTwo::SrscInfo',
18
18
  :child_key => [ :srsc_id ], :required => true
19
19
  belongs_to :equip,
20
- 'NcsNavigator::Warehouse::Models::ThreePointTwo::SpecEquipment',
20
+ 'NcsNavigator::Warehouse::Models::ThreePointTwo::EnvEquipment',
21
21
  :child_key => [ :equip_id ], :required => true
22
22
  belongs_to :staff,
23
23
  'NcsNavigator::Warehouse::Models::ThreePointTwo::Staff',
@@ -17,7 +17,7 @@ module NcsNavigator::Warehouse::Models::ThreePointZero
17
17
  'NcsNavigator::Warehouse::Models::ThreePointZero::SrscInfo',
18
18
  :child_key => [ :srsc_id ], :required => true
19
19
  belongs_to :equip,
20
- 'NcsNavigator::Warehouse::Models::ThreePointZero::SpecEquipment',
20
+ 'NcsNavigator::Warehouse::Models::ThreePointZero::EnvEquipment',
21
21
  :child_key => [ :equip_id ], :required => true
22
22
  belongs_to :staff,
23
23
  'NcsNavigator::Warehouse::Models::ThreePointZero::Staff',
@@ -17,7 +17,7 @@ module NcsNavigator::Warehouse::Models::TwoPointOne
17
17
  'NcsNavigator::Warehouse::Models::TwoPointOne::SrscInfo',
18
18
  :child_key => [ :srsc_id ], :required => true
19
19
  belongs_to :equip,
20
- 'NcsNavigator::Warehouse::Models::TwoPointOne::SpecEquipment',
20
+ 'NcsNavigator::Warehouse::Models::TwoPointOne::EnvEquipment',
21
21
  :child_key => [ :equip_id ], :required => true
22
22
  belongs_to :staff,
23
23
  'NcsNavigator::Warehouse::Models::TwoPointOne::Staff',
@@ -17,7 +17,7 @@ module NcsNavigator::Warehouse::Models::TwoPointTwo
17
17
  'NcsNavigator::Warehouse::Models::TwoPointTwo::SrscInfo',
18
18
  :child_key => [ :srsc_id ], :required => true
19
19
  belongs_to :equip,
20
- 'NcsNavigator::Warehouse::Models::TwoPointTwo::SpecEquipment',
20
+ 'NcsNavigator::Warehouse::Models::TwoPointTwo::EnvEquipment',
21
21
  :child_key => [ :equip_id ], :required => true
22
22
  belongs_to :staff,
23
23
  'NcsNavigator::Warehouse::Models::TwoPointTwo::Staff',
@@ -17,7 +17,7 @@ module NcsNavigator::Warehouse::Models::TwoPointZero
17
17
  'NcsNavigator::Warehouse::Models::TwoPointZero::SrscInfo',
18
18
  :child_key => [ :srsc_id ], :required => true
19
19
  belongs_to :equip,
20
- 'NcsNavigator::Warehouse::Models::TwoPointZero::SpecEquipment',
20
+ 'NcsNavigator::Warehouse::Models::TwoPointZero::EnvEquipment',
21
21
  :child_key => [ :equip_id ], :required => true
22
22
  belongs_to :staff,
23
23
  'NcsNavigator::Warehouse::Models::TwoPointZero::Staff',
@@ -1,5 +1,5 @@
1
1
  module NcsNavigator
2
2
  module Warehouse
3
- VERSION = '0.15.0.pre3'
3
+ VERSION = '0.15.0.pre4'
4
4
  end
5
5
  end
@@ -106,7 +106,7 @@ XML
106
106
  # `:filters=>nil` in the options.
107
107
  def initialize(config, filename, options={})
108
108
  @configuration = config
109
- @zip = options.has_key?(:zip) ? options[:zip] : true
109
+ @zip = options.has_key?('zip') ? options['zip'] : true
110
110
 
111
111
  @xml_files = determine_files_to_create(filename, options)
112
112
 
@@ -116,8 +116,8 @@ XML
116
116
  @content_enumerator = options[:content]
117
117
  else
118
118
  filter_names =
119
- if options.has_key?(:filters)
120
- options[:filters] ? options[:filters] : []
119
+ if options.has_key?('filters')
120
+ options['filters'] ? options['filters'] : []
121
121
  else
122
122
  [config.default_xml_filter_set].compact
123
123
  end
@@ -5,7 +5,7 @@ require 'zip/zip'
5
5
  module NcsNavigator::Warehouse
6
6
  describe XmlEmitter, :use_mdes do
7
7
  let(:filename) { tmpdir + 'export.xml' }
8
- let(:options) { { :zip => false } }
8
+ let(:options) { { 'zip' => false } }
9
9
  let(:emitter) { XmlEmitter.new(spec_config, filename, options) }
10
10
  let(:xml) {
11
11
  emitter.emit_xml
@@ -246,19 +246,19 @@ module NcsNavigator::Warehouse
246
246
  end
247
247
 
248
248
  it 'is used when there are no filters in the options' do
249
- options.delete(:filters)
249
+ options.delete('filters')
250
250
 
251
251
  person_names.should == %w(nitneuQ reivaX)
252
252
  end
253
253
 
254
254
  it 'is not used when a different filter is in the options' do
255
- options[:filters] = ['upcaser']
255
+ options['filters'] = ['upcaser']
256
256
 
257
257
  person_names.should == %w(QUENTIN XAVIER)
258
258
  end
259
259
 
260
260
  it 'is not used when explicitly disabled' do
261
- options[:filters] = nil
261
+ options['filters'] = nil
262
262
 
263
263
  person_names.should == %w(Quentin Xavier)
264
264
  end
@@ -266,19 +266,19 @@ module NcsNavigator::Warehouse
266
266
 
267
267
  describe 'when there is no default XML filter in the configuration' do
268
268
  it 'applies no filters when none are specified' do
269
- options.delete(:filters)
269
+ options.delete('filters')
270
270
 
271
271
  person_names.should == %w(Quentin Xavier)
272
272
  end
273
273
 
274
274
  it 'applies no filters when an absence of filters is specified' do
275
- options[:filters] = nil
275
+ options['filters'] = nil
276
276
 
277
277
  person_names.should == %w(Quentin Xavier)
278
278
  end
279
279
 
280
280
  it 'applies specified filters, if any' do
281
- options[:filters] = ['upcaser', 'reverser']
281
+ options['filters'] = ['upcaser', 'reverser']
282
282
 
283
283
  person_names.should == %w(NITNEUQ REIVAX)
284
284
  end
@@ -345,12 +345,12 @@ module NcsNavigator::Warehouse
345
345
  end
346
346
 
347
347
  it 'exists if explicitly requested' do
348
- options[:zip] = true
348
+ options['zip'] = true
349
349
  actual.should be_readable
350
350
  end
351
351
 
352
352
  it 'does not exist when excluded' do
353
- options[:zip] = false
353
+ options['zip'] = false
354
354
  actual.exist?.should be_false
355
355
  end
356
356
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ncs_mdes_warehouse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0.pre3
4
+ version: 0.15.0.pre4
5
5
  prerelease: 7
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-26 00:00:00.000000000 Z
12
+ date: 2013-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ncs_mdes
@@ -3670,7 +3670,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
3670
3670
  version: '0'
3671
3671
  segments:
3672
3672
  - 0
3673
- hash: 1848761035843935953
3673
+ hash: -1051607949
3674
3674
  required_rubygems_version: !ruby/object:Gem::Requirement
3675
3675
  none: false
3676
3676
  requirements:
@@ -3679,7 +3679,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
3679
3679
  version: 1.3.1
3680
3680
  requirements: []
3681
3681
  rubyforge_project:
3682
- rubygems_version: 1.8.25
3682
+ rubygems_version: 1.8.23
3683
3683
  signing_key:
3684
3684
  specification_version: 3
3685
3685
  summary: Scripts and models for building and maintaining the MDES-based reporting