moj_tribunals_config 1.2.0 → 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
  SHA1:
3
- metadata.gz: 1ea6878f2a46f6128119a80c74469df94327f96d
4
- data.tar.gz: 621da8ca509f4f2f01aded4f0cd2b11ce67a1f2f
3
+ metadata.gz: d02d5fb38563be68481307a38c030be16edb7713
4
+ data.tar.gz: b38315184634b5470c91b1c6e1559e49b058b5a7
5
5
  SHA512:
6
- metadata.gz: 4add6626e932fd8e9ba2657cc35b7d37dd25a90daef4c163a1b5cdd132c204305f193f122d1f5f23aeb662ef2257fae2fe8c91943508b6a872cabcdc6da8e39a
7
- data.tar.gz: 04e637972ef3a4a112a96b5bd360b7a62f465e1525974e3d054141d486d8cb769ceae21d84ed1394d7b1931fc45b8b35b28c785da96bdb4a46717040e2c7d4f4
6
+ metadata.gz: 8dfd9a3d8e796aa0b45c6dd0ccbc693a361dc64fc8b0672d8066d0bbd0beeeb539f781927cf1f2f009881e13917281d69547d72a21c431f2c4a74f6051390bda
7
+ data.tar.gz: e2f8829ac128a0b5510b572b3bc24ba6f47ddb843effb6c5c1ccddadf768421b86b38b2b31e112a2ea57b607a8e19008fb942efe946bf04b47be8c1c6c7e9c34
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.3.0
@@ -1,4 +1,4 @@
1
- care-standards:
1
+ tribunal:
2
2
  name: care-standards
3
3
  title: Care Standards Tribunal
4
4
  search_params:
@@ -1,4 +1,4 @@
1
- eat:
1
+ tribunal:
2
2
  name: eat
3
3
  title: Employment Access Tribunal
4
4
  search_params:
@@ -1,4 +1,4 @@
1
- ftt-tax:
1
+ tribunal:
2
2
  name: ftt-tax
3
3
  title: Finance and Tax Tribunals
4
4
  search_params:
@@ -1,4 +1,4 @@
1
- utiac:
1
+ tribunal:
2
2
  name: utiac
3
3
  title: Upper Tribunal Immigration and Asylum Chamber
4
4
  search_params:
@@ -14,7 +14,8 @@ module Moj
14
14
  config_files.each do |file|
15
15
  name = File.basename(file).split('.').first.to_sym
16
16
 
17
- data.merge!( load_file(file) )
17
+ loaded_config = load_file(file)
18
+ data[name] = loaded_config['tribunal']
18
19
  end
19
20
  data
20
21
  end
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: moj_tribunals_config 1.2.0 ruby lib
5
+ # stub: moj_tribunals_config 1.3.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "moj_tribunals_config"
9
- s.version = "1.2.0"
9
+ s.version = "1.3.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -79,9 +79,9 @@ describe Moj::Tribunals::ConfigLoader do
79
79
  expect(result.keys.map(&:to_sym)).to eq( tribunals )
80
80
  end
81
81
 
82
- it 'has second-level keys for each value in the YAML file' do
82
+ it 'has second-level keys for each tribunal attribute in the YAML file' do
83
83
  tribunals.each do |tribunal|
84
- expect(result[tribunal.to_s].keys.map(&:to_sym)).to include( :name, :title, :search_params )
84
+ expect(result[tribunal].keys.map(&:to_sym)).to include( :name, :title, :search_params )
85
85
  end
86
86
  end
87
87
  end
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'rspec'
2
+ require 'byebug'
2
3
 
3
4
  require 'simplecov'
4
5
  SimpleCov.start
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moj_tribunals_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Al Davidson