moj_tribunals_config 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.rdoc +5 -5
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/config/tribunals/care-standards.yml +7 -0
- data/config/tribunals/eat.yml +7 -0
- data/config/tribunals/ftt-tax.yml +7 -0
- data/config/tribunals/utiac.yml +19 -0
- data/moj_tribunals_config.gemspec +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8d4138f25d9a830b1e57e1edf3ad5cfbfc71c14
|
4
|
+
data.tar.gz: 82d5d199aa8530eaf1288fa2e7e9e69522d4538a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e5b3555b5f951e090ac7864302a0970219e80d79fec6543046a3daba3a9b6d9da82e78c60c78347b91ccdcfdf5b81f142a8ee5415050d38e3f0532f43503422
|
7
|
+
data.tar.gz: 42e8211147bdb0f58eb955ac104e40704a9c9d04096d53260f06d324762e1b076162d115560d4b32cf8453647d46d291f71a8e238f32e7c57d90654c6982560c
|
data/LICENSE.txt
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
|
3
3
|
This software is licensed under the Open Government Licence v2.0. To
|
4
4
|
view this licence, visit
|
5
|
-
www.nationalarchives.gov.uk/doc/open-government-licence/
|
5
|
+
www.nationalarchives.gov.uk/doc/open-government-licence/fieldset/2 or
|
6
6
|
write to the Information Policy Team, The National Archives, Kew,
|
7
7
|
Richmond, Surrey, TW9 4DU.
|
data/README.rdoc
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
== To use:
|
7
7
|
|
8
8
|
# add this line to your Gemfile:
|
9
|
-
|
9
|
+
|
10
10
|
gem 'moj_tribunals_config'
|
11
11
|
|
12
12
|
# in an initializer, add the following code:
|
@@ -18,7 +18,7 @@
|
|
18
18
|
This will load the default config files from the gem.
|
19
19
|
|
20
20
|
|
21
|
-
To load different files, you can provide an alternative path
|
21
|
+
To load different files, you can provide an alternative path
|
22
22
|
to the ConfigLoader.new method, e.g.
|
23
23
|
|
24
24
|
my_config = Moj::Tribunals::ConfigLoader.new('/my/alternative/config/path').load
|
@@ -38,14 +38,14 @@ If you're using the RailsConfig gem, your intializer can just do something like:
|
|
38
38
|
Settings.reload!
|
39
39
|
|
40
40
|
== Contributing to moj_tribunals_config
|
41
|
-
|
41
|
+
|
42
42
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
43
43
|
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
44
44
|
* Fork the project.
|
45
45
|
* Start a feature/bugfix branch.
|
46
46
|
* Commit and push until you are happy with your contribution.
|
47
|
-
* Make sure to add tests for it. This is important so I don't break it in a future
|
48
|
-
* Please try not to mess with the Rakefile,
|
47
|
+
* Make sure to add tests for it. This is important so I don't break it in a future fieldset unintentionally.
|
48
|
+
* Please try not to mess with the Rakefile, fieldset, or history. If you want to have your own fieldset, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
49
49
|
|
50
50
|
== Copyright
|
51
51
|
|
data/Rakefile
CHANGED
@@ -31,7 +31,7 @@ Jeweler::Tasks.new do |gem|
|
|
31
31
|
This will load the default config files from the gem.
|
32
32
|
|
33
33
|
|
34
|
-
To load different files, you can provide an alternative path
|
34
|
+
To load different files, you can provide an alternative path
|
35
35
|
to the ConfigLoader.new method, e.g.
|
36
36
|
|
37
37
|
my_config = Moj::Tribunals::ConfigLoader.new('/my/alternative/config/path').load
|
@@ -76,10 +76,10 @@ task :default => :spec
|
|
76
76
|
|
77
77
|
require 'rdoc/task'
|
78
78
|
Rake::RDocTask.new do |rdoc|
|
79
|
-
|
79
|
+
fieldset = File.exist?('fieldset') ? File.read('fieldset') : ""
|
80
80
|
|
81
81
|
rdoc.rdoc_dir = 'rdoc'
|
82
|
-
rdoc.title = "moj_tribunals_config #{
|
82
|
+
rdoc.title = "moj_tribunals_config #{fieldset}"
|
83
83
|
rdoc.rdoc_files.include('README*')
|
84
84
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
85
85
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.4.0
|
data/config/tribunals/eat.yml
CHANGED
data/config/tribunals/utiac.yml
CHANGED
@@ -1,6 +1,25 @@
|
|
1
1
|
tribunal:
|
2
2
|
name: utiac
|
3
3
|
title: Upper Tribunal Immigration and Asylum Chamber
|
4
|
+
optional_metadata:
|
5
|
+
reported_count:
|
6
|
+
text: reported_count
|
7
|
+
facet: reported
|
8
|
+
term_value: T
|
9
|
+
unreported_count:
|
10
|
+
text: unreported_count
|
11
|
+
facet: reported
|
12
|
+
term_value: F
|
13
|
+
country_guidance_count:
|
14
|
+
text: country_guidance_count
|
15
|
+
facet: country_guidance
|
16
|
+
term_value: T
|
17
|
+
countries:
|
18
|
+
text: countries
|
19
|
+
facet: country_hash
|
20
|
+
judges:
|
21
|
+
text: judges
|
22
|
+
facet: judge_hashes
|
4
23
|
search_params:
|
5
24
|
- query
|
6
25
|
- search_field
|
@@ -2,17 +2,17 @@
|
|
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.
|
5
|
+
# stub: moj_tribunals_config 1.4.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "moj_tribunals_config"
|
9
|
-
s.version = "1.
|
9
|
+
s.version = "1.4.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"]
|
13
13
|
s.authors = ["Al Davidson"]
|
14
|
-
s.date = "2015-02-
|
15
|
-
s.description = "Used by tribunals_frontend and tribunals_api to share configuration.\n To use:\n\n 1) add \"gem 'moj_tribunals_config'\" to your Gemfile\n 2) in an initializer, add the following code:\n\n require 'moj_tribunals_config'\n\n my_config = Moj::Tribunals::ConfigLoader.new.load\n\n This will load the default config files from the gem.\n\n\n To load different files, you can provide an alternative path
|
14
|
+
s.date = "2015-02-06"
|
15
|
+
s.description = "Used by tribunals_frontend and tribunals_api to share configuration.\n To use:\n\n 1) add \"gem 'moj_tribunals_config'\" to your Gemfile\n 2) in an initializer, add the following code:\n\n require 'moj_tribunals_config'\n\n my_config = Moj::Tribunals::ConfigLoader.new.load\n\n This will load the default config files from the gem.\n\n\n To load different files, you can provide an alternative path\n to the ConfigLoader.new method, e.g.\n\n my_config = Moj::Tribunals::ConfigLoader.new('/my/alternative/config/path').load\n\n To just load config for a specific tribunal, you can do:\n\n config_loader = Moj::Tribunals::ConfigLoader.new\n config_file = config_loader.config_file_for('utiac')\n config_loader.load_file( config_file )\n\n RailsConfig integration\n =======================\n\n If you're using the RailsConfig gem, your intializer can just do something like:\n\n files = Moj::Tribunals::ConfigLoader.new.config_files\n files.each{ |f| Settings.add_source!( f ) }\n Settings.reload!\n "
|
16
16
|
s.email = "apdavidson@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
18
18
|
"LICENSE.txt",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moj_tribunals_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Al Davidson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shoulda
|
@@ -113,7 +113,7 @@ description: "Used by tribunals_frontend and tribunals_api to share configuratio
|
|
113
113
|
in an initializer, add the following code:\n\n require 'moj_tribunals_config'\n\n
|
114
114
|
\ my_config = Moj::Tribunals::ConfigLoader.new.load\n\n This will load the
|
115
115
|
default config files from the gem.\n\n\n To load different files, you can provide
|
116
|
-
an alternative path
|
116
|
+
an alternative path\n to the ConfigLoader.new method, e.g.\n\n my_config
|
117
117
|
= Moj::Tribunals::ConfigLoader.new('/my/alternative/config/path').load\n\n To
|
118
118
|
just load config for a specific tribunal, you can do:\n\n config_loader = Moj::Tribunals::ConfigLoader.new\n
|
119
119
|
\ config_file = config_loader.config_file_for('utiac')\n config_loader.load_file(
|