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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abc1c18e10a9b730253ef89418b8a41f23a536abb4cc71bf92994cd3ee00b036
4
- data.tar.gz: a0ab9f0d96adcb030c7bdd137d055b3445767f46c5945c9778fca790ba55b00d
3
+ metadata.gz: 3ff846997b701058c50dc24d29f18106586be4a3405417fd4a2ffb262041b531
4
+ data.tar.gz: a9a038f780eb9444252d78ab066919d7c74f51f2cbc3f2dd358fc54717ecbc00
5
5
  SHA512:
6
- metadata.gz: eefa05d120b1e295ed88ef26a9890d95506bacb6b0d7bd4c50ad3cdd13addb8bc0aab8b640641de8edcb44ed42027591a8ee13a10241c03ac3826d18e5e29eae
7
- data.tar.gz: 9263f573247b1ab11f0c21c7b8aa8c5c8dc37ac98a4015cde228d92e1d336f1367d2f091b2057e1a0ab832ee5cd30bc36fdd61b64d8695e05eee8f734c5bf017
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
@@ -1,5 +1,3 @@
1
1
  module Parliamentarian
2
-
3
- VERSION = '0.9.0'
4
-
2
+ VERSION = '0.9.1'
5
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parliamentarian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran