parliamentarian 0.9.0 → 0.9.1
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 +4 -4
- data/CHANGELOG +5 -0
- data/lib/Parliamentarian/Australia/Federal.rb +0 -4
- data/lib/Parliamentarian/Australia/Victoria.rb +0 -4
- data/lib/Parliamentarian/VERSION.rb +1 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ff846997b701058c50dc24d29f18106586be4a3405417fd4a2ffb262041b531
|
|
4
|
+
data.tar.gz: a9a038f780eb9444252d78ab066919d7c74f51f2cbc3f2dd358fc54717ecbc00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de73f8b0eceec430f89e1628af8b85c67c6ff238f17d74d065c730e73eed67e2848d8d47a4215329e726cb4e666b26491bc8feb0850d9466fdeafdf64be02e83
|
|
7
|
+
data.tar.gz: bc79f6da0a5dec2b2c8af6533cf2967853629a79ee04e077eb7f870f8be0d1b5b25db1718a372d20fe75326916fdf15ce29388a3fc526586f620af4d7c28e7fd
|
data/CHANGELOG
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## 20260913
|
|
4
4
|
|
|
5
|
+
0.9.1: - the blank line inside each class and module, and above each closing end.
|
|
6
|
+
|
|
7
|
+
1. lib: - 10 blank lines, across Australia/Federal.rb, Australia/Victoria.rb and VERSION.rb, each immediately inside a class or module line or above a closing end.
|
|
8
|
+
2. ~ Parliamentarian::VERSION: /0.9.0/0.9.1/
|
|
9
|
+
|
|
5
10
|
0.9.0: + README.md, CHANGELOG, Rakefile.
|
|
6
11
|
|
|
7
12
|
1. + README.md: what the library does, the two parliaments it covers, the method per chamber, and that a row's attributes are the CSV's own headings underscored. 31 of the 32 gems here carry one and this was the exception.
|
|
@@ -8,12 +8,10 @@ require 'String/underscore'
|
|
|
8
8
|
module Parliamentarian
|
|
9
9
|
module Australia
|
|
10
10
|
class Federal
|
|
11
|
-
|
|
12
11
|
SENATE_URL = 'https://www.aph.gov.au/~/media/03%20Senators%20and%20Members/Address%20Labels%20and%20CSV%20files/Senators/allsenel.csv?la=en'
|
|
13
12
|
HOUSE_OF_REPRESENTATIVES_URL = 'https://www.aph.gov.au/~/media/03%20Senators%20and%20Members/Address%20Labels%20and%20CSV%20files/SurnameRepsCSV.csv?la=en'
|
|
14
13
|
|
|
15
14
|
class << self
|
|
16
|
-
|
|
17
15
|
def fetch(csv_file_location)
|
|
18
16
|
raw_csv = if ['http', 'https'].include?(URI.parse(csv_file_location).scheme)
|
|
19
17
|
URI.open(csv_file_location)
|
|
@@ -42,7 +40,6 @@ module Parliamentarian
|
|
|
42
40
|
)
|
|
43
41
|
end
|
|
44
42
|
alias_method :house_of_representatives, :members
|
|
45
|
-
|
|
46
43
|
end # class << self
|
|
47
44
|
|
|
48
45
|
def initialize(row)
|
|
@@ -89,7 +86,6 @@ module Parliamentarian
|
|
|
89
86
|
end
|
|
90
87
|
)
|
|
91
88
|
end
|
|
92
|
-
|
|
93
89
|
end
|
|
94
90
|
end
|
|
95
91
|
end
|
|
@@ -8,12 +8,10 @@ require 'String/underscore'
|
|
|
8
8
|
module Parliamentarian
|
|
9
9
|
module Australia
|
|
10
10
|
class Victoria
|
|
11
|
-
|
|
12
11
|
LEGISLATIVE_COUNCIL_URL = 'https://www.parliament.vic.gov.au/images/members/councilmembers.csv'
|
|
13
12
|
LEGISLATIVE_ASSEMBLY_URL = 'https://www.parliament.vic.gov.au/images/members/assemblymembers.csv'
|
|
14
13
|
|
|
15
14
|
class << self
|
|
16
|
-
|
|
17
15
|
def fetch(csv_file_location)
|
|
18
16
|
raw_csv = if ['http', 'https'].include?(URI.parse(csv_file_location).scheme)
|
|
19
17
|
URI.open(csv_file_location)
|
|
@@ -40,7 +38,6 @@ module Parliamentarian
|
|
|
40
38
|
fetch(csv_file_location).collect{|row| self.new(row)}
|
|
41
39
|
)
|
|
42
40
|
end
|
|
43
|
-
|
|
44
41
|
end # class << self
|
|
45
42
|
|
|
46
43
|
def initialize(row)
|
|
@@ -68,7 +65,6 @@ module Parliamentarian
|
|
|
68
65
|
self.class.send(:attr_accessor, 'postcode')
|
|
69
66
|
self.postcode = eo_address.split.last
|
|
70
67
|
end
|
|
71
|
-
|
|
72
68
|
end
|
|
73
69
|
end
|
|
74
70
|
end
|