moj_tribunals_config 1.0.0 → 1.2.0

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
  SHA1:
3
- metadata.gz: 1233d2f0e695bc9ade2a8cf697017068fcf9ea32
4
- data.tar.gz: be82f47ed17884dbc5182197da556f95098675cc
3
+ metadata.gz: 1ea6878f2a46f6128119a80c74469df94327f96d
4
+ data.tar.gz: 621da8ca509f4f2f01aded4f0cd2b11ce67a1f2f
5
5
  SHA512:
6
- metadata.gz: b6d4d277011b5c155f564091c370962f46e5aeb91130065a56e851f37b196cea3b466c59fbf8201bb12fd4c1df635a7301d94cece6f83e7c68cf046f15a51fe0
7
- data.tar.gz: 375aa81fa53ac6d44bcaaeafff2668c824bd5664e00a96a32480fdbbb6fb19a2e2a56e288b4bfa2d1bb4718e0e1991283faf58bc4dd795e3f9e3162cdad29f5f
6
+ metadata.gz: 4add6626e932fd8e9ba2657cc35b7d37dd25a90daef4c163a1b5cdd132c204305f193f122d1f5f23aeb662ef2257fae2fe8c91943508b6a872cabcdc6da8e39a
7
+ data.tar.gz: 04e637972ef3a4a112a96b5bd360b7a62f465e1525974e3d054141d486d8cb769ceae21d84ed1394d7b1931fc45b8b35b28c785da96bdb4a46717040e2c7d4f4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.2.0
@@ -1,112 +1,113 @@
1
- name: care-standards
2
- title: Care Standards Tribunal
3
- search_params:
4
- - query
5
- - search_field
6
- - reported
7
- - unreported
8
- - country_guidance
9
- - page
10
- - sort_by
11
- - judge_ids
12
- - country_ids
13
- - category_ids
14
- - date_from
15
- - date_to
16
- allowed_snippet_tags:
17
- - mark
18
- - br
19
- sort_columns:
20
- promulgated_on:
21
- directions:
22
- desc:
23
- text: Newest first
24
- _score:
25
- directions:
26
- desc:
27
- text: Relevance
28
- date_facet_help_text: A judgement can be used as case law from the promulgation date.
29
- facets:
30
- category:
31
- text: Schedule
32
- collection: categories
33
- ids: category_ids
34
- all_link_text: All Schedules
35
- help_text:
36
- judge:
37
- text: Chairman
38
- collection: judges
39
- ids: judge_ids
40
- all_link_text: All Chairman
41
- help_text:
42
- table_view_properties:
43
- appeal_number:
44
- property: appeal_number
45
- text: Appeal number
46
- chairman:
47
- property: judges
48
- text: Chairman
49
- formatters:
50
- fetch:
51
- method_name: fetch
52
- args: "name"
53
- applicant:
54
- property: appellants
55
- text: Applicant names
56
- formatters:
57
- fetch:
58
- method_name: fetch
59
- args: "name"
60
- respondent:
61
- property: respondents
62
- text: Respondent names
63
- formatters:
64
- fetch:
65
- method_name: fetch
66
- args: "name"
67
- category:
68
- property: categories
69
- text: Schedule
70
- formatters:
71
- fetch:
72
- method_name: fetch
73
- args: "name"
74
- decision_date:
75
- property: promulgated_on
76
- text: Promulgation date
77
- formatters:
78
- to_date:
79
- method_name: to_date
80
- args:
81
- strftime:
82
- method_name: strftime
83
- args: "%d/%m/%Y"
84
- detail_view_properties:
85
- appeal_number:
86
- property: appeal_number
87
- text: Appeal number
88
- chairman:
89
- property: judge_names
90
- text: Chairman
91
- applicant:
92
- property: appellant_names
93
- text: Applicant names
94
- respondent:
95
- property: respondent_names
96
- text: Respondent names
97
- category:
98
- property: category_names
99
- text: Schedule
100
- decision_date:
101
- property: promulgated_on
102
- text: Promulgation date
103
- formatters:
104
- to_date:
105
- method_name: to_date
106
- args:
107
- strftime:
108
- method_name: strftime
109
- args: "%d/%m/%Y"
110
- notes:
111
- property: notes
112
- text: Notes
1
+ care-standards:
2
+ name: care-standards
3
+ title: Care Standards Tribunal
4
+ search_params:
5
+ - query
6
+ - search_field
7
+ - reported
8
+ - unreported
9
+ - country_guidance
10
+ - page
11
+ - sort_by
12
+ - judge_ids
13
+ - country_ids
14
+ - category_ids
15
+ - date_from
16
+ - date_to
17
+ allowed_snippet_tags:
18
+ - mark
19
+ - br
20
+ sort_columns:
21
+ promulgated_on:
22
+ directions:
23
+ desc:
24
+ text: Newest first
25
+ _score:
26
+ directions:
27
+ desc:
28
+ text: Relevance
29
+ date_facet_help_text: A judgement can be used as case law from the promulgation date.
30
+ facets:
31
+ category:
32
+ text: Schedule
33
+ collection: categories
34
+ ids: category_ids
35
+ all_link_text: All Schedules
36
+ help_text:
37
+ judge:
38
+ text: Chairman
39
+ collection: judges
40
+ ids: judge_ids
41
+ all_link_text: All Chairman
42
+ help_text:
43
+ table_view_properties:
44
+ appeal_number:
45
+ property: appeal_number
46
+ text: Appeal number
47
+ chairman:
48
+ property: judges
49
+ text: Chairman
50
+ formatters:
51
+ fetch:
52
+ method_name: fetch
53
+ args: "name"
54
+ applicant:
55
+ property: appellants
56
+ text: Applicant names
57
+ formatters:
58
+ fetch:
59
+ method_name: fetch
60
+ args: "name"
61
+ respondent:
62
+ property: respondents
63
+ text: Respondent names
64
+ formatters:
65
+ fetch:
66
+ method_name: fetch
67
+ args: "name"
68
+ category:
69
+ property: categories
70
+ text: Schedule
71
+ formatters:
72
+ fetch:
73
+ method_name: fetch
74
+ args: "name"
75
+ decision_date:
76
+ property: promulgated_on
77
+ text: Promulgation date
78
+ formatters:
79
+ to_date:
80
+ method_name: to_date
81
+ args:
82
+ strftime:
83
+ method_name: strftime
84
+ args: "%d/%m/%Y"
85
+ detail_view_properties:
86
+ appeal_number:
87
+ property: appeal_number
88
+ text: Appeal number
89
+ chairman:
90
+ property: judge_names
91
+ text: Chairman
92
+ applicant:
93
+ property: appellant_names
94
+ text: Applicant names
95
+ respondent:
96
+ property: respondent_names
97
+ text: Respondent names
98
+ category:
99
+ property: category_names
100
+ text: Schedule
101
+ decision_date:
102
+ property: promulgated_on
103
+ text: Promulgation date
104
+ formatters:
105
+ to_date:
106
+ method_name: to_date
107
+ args:
108
+ strftime:
109
+ method_name: strftime
110
+ args: "%d/%m/%Y"
111
+ notes:
112
+ property: notes
113
+ text: Notes
@@ -1,78 +1,79 @@
1
- name: eat
2
- title: Employment Access Tribunal
3
- search_params:
4
- - query
5
- - search_field
6
- - reported
7
- - unreported
8
- - country_guidance
9
- - page
10
- - sort_by
11
- - judge_ids
12
- - country_ids
13
- - category_ids
14
- - date_from
15
- - date_to
16
- allowed_snippet_tags:
17
- - mark
18
- - br
19
- sort_columns:
20
- promulgated_on:
21
- directions:
22
- desc:
23
- text: Newest first
24
- _score:
25
- directions:
26
- desc:
27
- text: Relevance
28
- facets:
29
- country:
30
- text: Country
31
- collection: countries
32
- ids: country_ids
33
- all_link_text: All Countries
34
- judge:
35
- text: Judge
36
- collection: judges
37
- ids: judge_ids
38
- all_link_text: All Judges
39
- tabs:
40
- reported:
41
- text: Reported
42
- count_method: reported_count
43
- default: true
44
- country_guidance:
45
- text: Country Guidance
46
- count_method: country_guidance_count
47
- default: false
48
- unreported:
49
- text: Unreported
50
- count_method: unreported_count
51
- default: false
52
- table_view_properties:
53
- case_title:
54
- property: case_title
55
- text: Case title
56
- keywords:
57
- property: keywords
58
- text: Keywords
59
- promulgated_on:
60
- property: promulgated_on
61
- text: Promulgation date
62
- formatters:
63
- to_date:
64
- method_name: to_date
65
- args:
66
- strftime:
67
- method_name: strftime
68
- args: "%d/%m/%Y"
69
- country_name:
70
- property: country_name
71
- text: Country of Appellant
72
- keywords:
73
- property: keywords
74
- text: keywords
75
- detail_view_properties:
76
- case_title:
77
- property: case_title
78
- text: Case title
1
+ eat:
2
+ name: eat
3
+ title: Employment Access Tribunal
4
+ search_params:
5
+ - query
6
+ - search_field
7
+ - reported
8
+ - unreported
9
+ - country_guidance
10
+ - page
11
+ - sort_by
12
+ - judge_ids
13
+ - country_ids
14
+ - category_ids
15
+ - date_from
16
+ - date_to
17
+ allowed_snippet_tags:
18
+ - mark
19
+ - br
20
+ sort_columns:
21
+ promulgated_on:
22
+ directions:
23
+ desc:
24
+ text: Newest first
25
+ _score:
26
+ directions:
27
+ desc:
28
+ text: Relevance
29
+ facets:
30
+ country:
31
+ text: Country
32
+ collection: countries
33
+ ids: country_ids
34
+ all_link_text: All Countries
35
+ judge:
36
+ text: Judge
37
+ collection: judges
38
+ ids: judge_ids
39
+ all_link_text: All Judges
40
+ tabs:
41
+ reported:
42
+ text: Reported
43
+ count_method: reported_count
44
+ default: true
45
+ country_guidance:
46
+ text: Country Guidance
47
+ count_method: country_guidance_count
48
+ default: false
49
+ unreported:
50
+ text: Unreported
51
+ count_method: unreported_count
52
+ default: false
53
+ table_view_properties:
54
+ case_title:
55
+ property: case_title
56
+ text: Case title
57
+ keywords:
58
+ property: keywords
59
+ text: Keywords
60
+ promulgated_on:
61
+ property: promulgated_on
62
+ text: Promulgation date
63
+ formatters:
64
+ to_date:
65
+ method_name: to_date
66
+ args:
67
+ strftime:
68
+ method_name: strftime
69
+ args: "%d/%m/%Y"
70
+ country_name:
71
+ property: country_name
72
+ text: Country of Appellant
73
+ keywords:
74
+ property: keywords
75
+ text: keywords
76
+ detail_view_properties:
77
+ case_title:
78
+ property: case_title
79
+ text: Case title
@@ -1,98 +1,99 @@
1
- name: ftt-tax
2
- title: Finance and Tax Tribunals
3
- search_params:
4
- - query
5
- - search_field
6
- - reported
7
- - unreported
8
- - country_guidance
9
- - page
10
- - sort_by
11
- - judge_ids
12
- - category_ids
13
- - date_from
14
- - date_to
15
- allowed_snippet_tags:
16
- - mark
17
- - br
18
- sort_columns:
19
- promulgated_on:
20
- directions:
21
- desc:
22
- text: Newest first
23
- _score:
24
- directions:
25
- desc:
26
- text: Relevance
27
- date_facet_help_text: A judgement can be used as case law from the promulgation date.
28
- facets:
29
- category:
30
- text: Category
31
- collection: categories
32
- ids: category_ids
33
- all_link_text: All Categories
34
- help_text:
35
- judge:
36
- text: Judge
37
- collection: judges
38
- ids: judge_ids
39
- all_link_text: All Judges
40
- help_text:
41
- table_view_properties:
42
- case_title:
43
- property: case_title
44
- text: Case title
45
- file_number:
46
- property: decision_number
47
- text: File number
48
- category:
49
- property: category_names
50
- text: Category
51
- sub_category:
52
- property: subcategory_names
53
- text: Sub-category
54
- promulgated_on:
55
- property: promulgated_on
56
- text: Promulgation date
57
- formatters:
58
- to_date:
59
- method_name: to_date
60
- args:
61
- strftime:
62
- method_name: strftime
63
- args: "%d/%m/%Y"
64
- detail_view_properties:
65
- judges:
66
- property: judge_names
67
- text: Judges
68
- appellants:
69
- property: appellant_names
70
- text: Appellants
71
- respondents:
72
- property: respondent_names
73
- text: Respondents
74
- category:
75
- property: category_names
76
- text: Category
77
- sub_category:
78
- property: subcategory_names
79
- text: Sub-category
80
- appeal_number:
81
- property: appeal_number
82
- text: Appeal number
83
- file_number:
84
- property: decision_number
85
- text: File number
86
- promulgated_on:
87
- property: promulgated_on
88
- text: Promulgation date
89
- formatters:
90
- to_date:
91
- method_name: to_date
92
- args:
93
- strftime:
94
- method_name: strftime
95
- args: "%d/%m/%Y"
96
- notes:
97
- property: notes
98
- text: Notes
1
+ ftt-tax:
2
+ name: ftt-tax
3
+ title: Finance and Tax Tribunals
4
+ search_params:
5
+ - query
6
+ - search_field
7
+ - reported
8
+ - unreported
9
+ - country_guidance
10
+ - page
11
+ - sort_by
12
+ - judge_ids
13
+ - category_ids
14
+ - date_from
15
+ - date_to
16
+ allowed_snippet_tags:
17
+ - mark
18
+ - br
19
+ sort_columns:
20
+ promulgated_on:
21
+ directions:
22
+ desc:
23
+ text: Newest first
24
+ _score:
25
+ directions:
26
+ desc:
27
+ text: Relevance
28
+ date_facet_help_text: A judgement can be used as case law from the promulgation date.
29
+ facets:
30
+ category:
31
+ text: Category
32
+ collection: categories
33
+ ids: category_ids
34
+ all_link_text: All Categories
35
+ help_text:
36
+ judge:
37
+ text: Judge
38
+ collection: judges
39
+ ids: judge_ids
40
+ all_link_text: All Judges
41
+ help_text:
42
+ table_view_properties:
43
+ case_title:
44
+ property: case_title
45
+ text: Case title
46
+ file_number:
47
+ property: decision_number
48
+ text: File number
49
+ category:
50
+ property: category_names
51
+ text: Category
52
+ sub_category:
53
+ property: subcategory_names
54
+ text: Sub-category
55
+ promulgated_on:
56
+ property: promulgated_on
57
+ text: Promulgation date
58
+ formatters:
59
+ to_date:
60
+ method_name: to_date
61
+ args:
62
+ strftime:
63
+ method_name: strftime
64
+ args: "%d/%m/%Y"
65
+ detail_view_properties:
66
+ judges:
67
+ property: judge_names
68
+ text: Judges
69
+ appellants:
70
+ property: appellant_names
71
+ text: Appellants
72
+ respondents:
73
+ property: respondent_names
74
+ text: Respondents
75
+ category:
76
+ property: category_names
77
+ text: Category
78
+ sub_category:
79
+ property: subcategory_names
80
+ text: Sub-category
81
+ appeal_number:
82
+ property: appeal_number
83
+ text: Appeal number
84
+ file_number:
85
+ property: decision_number
86
+ text: File number
87
+ promulgated_on:
88
+ property: promulgated_on
89
+ text: Promulgation date
90
+ formatters:
91
+ to_date:
92
+ method_name: to_date
93
+ args:
94
+ strftime:
95
+ method_name: strftime
96
+ args: "%d/%m/%Y"
97
+ notes:
98
+ property: notes
99
+ text: Notes
@@ -1,118 +1,119 @@
1
- name: utiac
2
- title: Upper Tribunal Immigration and Asylum Chamber
3
- search_params:
4
- - query
5
- - search_field
6
- - reported
7
- - unreported
8
- - country_guidance
9
- - page
10
- - sort_by
11
- - judge_ids
12
- - country_ids
13
- - date_from
14
- - date_to
15
- allowed_snippet_tags:
16
- - mark
17
- - br
18
- sort_columns:
19
- promulgated_on:
20
- directions:
21
- desc:
22
- text: Newest first
23
- _score:
24
- directions:
25
- desc:
26
- text: Relevance
27
- date_facet_help_text: A judgement can be used as case law from the promulgation date.
28
- facets:
29
- country:
30
- text: Country
31
- collection: countries
32
- ids: country_ids
33
- all_link_text: All Countries
34
- help_text:
35
- judge:
36
- text: Judge
37
- collection: judges
38
- ids: judge_ids
39
- all_link_text: All Judges
40
- tabs:
41
- reported:
42
- text: Reported
43
- count_method: reported_count
44
- default: true
45
- help_text:
46
- country_guidance:
47
- text: Country Guidance
48
- count_method: country_guidance_count
49
- default: false
50
- help_text:
51
- unreported:
52
- text: Unreported
53
- count_method: unreported_count
54
- default: false
55
- help_text:
56
- table_view_properties:
57
- case_title:
58
- property: case_title
59
- text: Case title
60
- keywords:
61
- property: keywords
62
- text: Keywords
63
- promulgated_on:
64
- property: promulgated_on
65
- text: Promulgation date
66
- formatters:
67
- to_date:
68
- method_name: to_date
69
- args:
70
- strftime:
71
- method_name: strftime
72
- args: "%d/%m/%Y"
73
- country_name:
74
- property: country_name
75
- text: Country of Appellant
76
- keywords:
77
- property: keywords
78
- text: Keywords
79
- detail_view_properties:
80
- appeal_number:
81
- property: appeal_number
82
- text: Appeal number
83
- ncn:
84
- property: ncn
85
- text: Neutral Citation Number
86
- Status:
87
- property: status
88
- text: Status
89
- country_name:
90
- property: country_name
91
- text: Country
92
- country_guidance:
93
- property: country_guidance
94
- text: Used as country guidance
95
- formatters:
96
- present?:
97
- method_name: present?
98
- humanize:
99
- method_name: humanize
100
- keywords:
101
- property: keywords
102
- text: Keywords
103
- judges:
104
- property: judge_names
105
- text: Judges
106
- hearing_date:
107
- property: hearing_date
108
- text: Hearing Date
109
- promulgated_on:
110
- property: promulgated_on
111
- text: Promulgation date
112
- formatters:
113
- to_date:
114
- method_name: to_date
115
- args:
116
- strftime:
117
- method_name: strftime
118
- args: "%d/%m/%Y"
1
+ utiac:
2
+ name: utiac
3
+ title: Upper Tribunal Immigration and Asylum Chamber
4
+ search_params:
5
+ - query
6
+ - search_field
7
+ - reported
8
+ - unreported
9
+ - country_guidance
10
+ - page
11
+ - sort_by
12
+ - judge_ids
13
+ - country_ids
14
+ - date_from
15
+ - date_to
16
+ allowed_snippet_tags:
17
+ - mark
18
+ - br
19
+ sort_columns:
20
+ promulgated_on:
21
+ directions:
22
+ desc:
23
+ text: Newest first
24
+ _score:
25
+ directions:
26
+ desc:
27
+ text: Relevance
28
+ date_facet_help_text: A judgement can be used as case law from the promulgation date.
29
+ facets:
30
+ country:
31
+ text: Country
32
+ collection: countries
33
+ ids: country_ids
34
+ all_link_text: All Countries
35
+ help_text:
36
+ judge:
37
+ text: Judge
38
+ collection: judges
39
+ ids: judge_ids
40
+ all_link_text: All Judges
41
+ tabs:
42
+ reported:
43
+ text: Reported
44
+ count_method: reported_count
45
+ default: true
46
+ help_text:
47
+ country_guidance:
48
+ text: Country Guidance
49
+ count_method: country_guidance_count
50
+ default: false
51
+ help_text:
52
+ unreported:
53
+ text: Unreported
54
+ count_method: unreported_count
55
+ default: false
56
+ help_text:
57
+ table_view_properties:
58
+ case_title:
59
+ property: case_title
60
+ text: Case title
61
+ keywords:
62
+ property: keywords
63
+ text: Keywords
64
+ promulgated_on:
65
+ property: promulgated_on
66
+ text: Promulgation date
67
+ formatters:
68
+ to_date:
69
+ method_name: to_date
70
+ args:
71
+ strftime:
72
+ method_name: strftime
73
+ args: "%d/%m/%Y"
74
+ country_name:
75
+ property: country_name
76
+ text: Country of Appellant
77
+ keywords:
78
+ property: keywords
79
+ text: Keywords
80
+ detail_view_properties:
81
+ appeal_number:
82
+ property: appeal_number
83
+ text: Appeal number
84
+ ncn:
85
+ property: ncn
86
+ text: Neutral Citation Number
87
+ Status:
88
+ property: status
89
+ text: Status
90
+ country_name:
91
+ property: country_name
92
+ text: Country
93
+ country_guidance:
94
+ property: country_guidance
95
+ text: Used as country guidance
96
+ formatters:
97
+ present?:
98
+ method_name: present?
99
+ humanize:
100
+ method_name: humanize
101
+ keywords:
102
+ property: keywords
103
+ text: Keywords
104
+ judges:
105
+ property: judge_names
106
+ text: Judges
107
+ hearing_date:
108
+ property: hearing_date
109
+ text: Hearing Date
110
+ promulgated_on:
111
+ property: promulgated_on
112
+ text: Promulgation date
113
+ formatters:
114
+ to_date:
115
+ method_name: to_date
116
+ args:
117
+ strftime:
118
+ method_name: strftime
119
+ args: "%d/%m/%Y"
@@ -14,7 +14,7 @@ module Moj
14
14
  config_files.each do |file|
15
15
  name = File.basename(file).split('.').first.to_sym
16
16
 
17
- data[name] = load_file(file)
17
+ data.merge!( load_file(file) )
18
18
  end
19
19
  data
20
20
  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.0.0 ruby lib
5
+ # stub: moj_tribunals_config 1.2.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "moj_tribunals_config"
9
- s.version = "1.0.0"
9
+ s.version = "1.2.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"]
@@ -76,12 +76,12 @@ describe Moj::Tribunals::ConfigLoader do
76
76
  let(:tribunals){ [:'care-standards', :eat, :'ftt-tax', :utiac] }
77
77
 
78
78
  it 'has a top-level key' do
79
- expect(result.keys).to eq( tribunals )
79
+ expect(result.keys.map(&:to_sym)).to eq( tribunals )
80
80
  end
81
81
 
82
82
  it 'has second-level keys for each value in the YAML file' do
83
83
  tribunals.each do |tribunal|
84
- expect(result[tribunal].keys.map(&:to_sym)).to include( :name, :title, :search_params )
84
+ expect(result[tribunal.to_s].keys.map(&:to_sym)).to include( :name, :title, :search_params )
85
85
  end
86
86
  end
87
87
  end
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.0.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Al Davidson