parliamentarian 0.9.0 → 0.10.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
  SHA256:
3
- metadata.gz: abc1c18e10a9b730253ef89418b8a41f23a536abb4cc71bf92994cd3ee00b036
4
- data.tar.gz: a0ab9f0d96adcb030c7bdd137d055b3445767f46c5945c9778fca790ba55b00d
3
+ metadata.gz: b928acb8a6e88083ffbe6c127f1794f6660ecd30d38385eb0ea3687072a86108
4
+ data.tar.gz: 786715a8264ef2b19bbd3d5c084f1a3d0ad806e0a8b3528457bd58751662b7b4
5
5
  SHA512:
6
- metadata.gz: eefa05d120b1e295ed88ef26a9890d95506bacb6b0d7bd4c50ad3cdd13addb8bc0aab8b640641de8edcb44ed42027591a8ee13a10241c03ac3826d18e5e29eae
7
- data.tar.gz: 9263f573247b1ab11f0c21c7b8aa8c5c8dc37ac98a4015cde228d92e1d336f1367d2f091b2057e1a0ab832ee5cd30bc36fdd61b64d8695e05eee8f734c5bf017
6
+ metadata.gz: 105528e4970127f256548e81dc982195d791334842514938c0b7369ebfd7b955643a5def2a2447bd97625883430e86c4087970127276fe1282bf61835d6c6de3
7
+ data.tar.gz: 7b6ae76e8393ab8c0c651ba970fa78a53e3257deffc79ad10ba083fe9817833ff8b65df1e851d828b6f4218be510f9723c44d51d86ee310b6c963f0d49b4b60e
data/CHANGELOG CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  ## 20260913
4
4
 
5
+ 0.10.0: /Parliamentarian/parliamentarian/
6
+
7
+ 1. lib/Parliamentarian.rb --> lib/parliamentarian.rb. The gem is parliamentarian, so `require 'parliamentarian'` looks for lib/parliamentarian.rb; the published 0.8.5 gem holds lib/Parliamentarian.rb and nothing else of that name, so the require has been failing on any filesystem which distinguishes the two. Here it has always resolved, this one not distinguishing them.
8
+ 2. test: 3 files read `require 'Parliamentarian'`, which the rename would have broken for the same reason. Now `require 'parliamentarian'`.
9
+ 3. A minor rather than a patch: the rename does not only make `require 'parliamentarian'` work, it stops `require 'Parliamentarian'` working, which is the spelling that resolves today on a filesystem which distinguishes them.
10
+ 4. ~ parliamentarian.gemspec: spec.homepage, and ~ README.md: the fork URL, the repository being renamed to match.
11
+ 5. The namespace directory lib/Parliamentarian/ keeps its capital, naming the module rather than the gem, as does test/Parliamentarian.rb, which is the runner.
12
+ 6. ~ Parliamentarian::VERSION: /0.9.1/0.10.0/
13
+
14
+ 0.9.1: - the blank line inside each class and module, and above each closing end.
15
+
16
+ 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.
17
+ 2. ~ Parliamentarian::VERSION: /0.9.0/0.9.1/
18
+
5
19
  0.9.0: + README.md, CHANGELOG, Rakefile.
6
20
 
7
21
  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.
data/README.md CHANGED
@@ -88,7 +88,7 @@ fetched, so the same method serves both.
88
88
 
89
89
  ## Contributing
90
90
 
91
- 1. Fork it: `https://github.com/thoran/Parliamentarian/fork`
91
+ 1. Fork it: `https://github.com/thoran/parliamentarian/fork`
92
92
  2. Create your feature branch: `git checkout -b my-new-feature`
93
93
  3. Commit your changes: `git commit -am 'Add some feature'`
94
94
  4. Push to the branch: `git push origin my-new-feature`
@@ -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.10.0'
5
3
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.author = 'thoran'
12
12
  spec.email = 'code@thoran.com'
13
- spec.homepage = 'http://github.com/thoran/Parliamentarian'
13
+ spec.homepage = 'http://github.com/thoran/parliamentarian'
14
14
  spec.license = 'MIT'
15
15
 
16
16
  spec.files = [
@@ -9,7 +9,7 @@ WebMock.disable_net_connect!(allow_localhost: true)
9
9
  lib_dir = File.expand_path(File.join('..', '..', '..', '..', 'lib'), __FILE__)
10
10
  $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
11
11
 
12
- require 'Parliamentarian'
12
+ require 'parliamentarian'
13
13
 
14
14
  describe Parliamentarian::Australia::Federal do
15
15
  let(:senators_csv_filename) do
@@ -9,7 +9,7 @@ WebMock.disable_net_connect!(allow_localhost: true)
9
9
  lib_dir = File.expand_path(File.join('..', '..', '..', '..', 'lib'), __FILE__)
10
10
  $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
11
11
 
12
- require 'Parliamentarian'
12
+ require 'parliamentarian'
13
13
 
14
14
  describe Parliamentarian::Australia::Victoria do
15
15
  let(:legislative_councillors_csv_filename) do
@@ -6,7 +6,7 @@ require 'minitest-spec-context'
6
6
  lib_dir = File.expand_path(File.join('..', '..', '..', 'lib'), __FILE__)
7
7
  $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
8
8
 
9
- require 'Parliamentarian'
9
+ require 'parliamentarian'
10
10
 
11
11
  describe Parliamentarian do
12
12
  describe "VERSION" do
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.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -76,7 +76,6 @@ files:
76
76
  - lib/Numeric/blankQ.rb
77
77
  - lib/Object/blankQ.rb
78
78
  - lib/Object/default_to.rb
79
- - lib/Parliamentarian.rb
80
79
  - lib/Parliamentarian/Australia.rb
81
80
  - lib/Parliamentarian/Australia/Federal.rb
82
81
  - lib/Parliamentarian/Australia/Victoria.rb
@@ -90,12 +89,13 @@ files:
90
89
  - lib/TrueClass/blankQ.rb
91
90
  - lib/_meta/blankQ.rb
92
91
  - lib/_meta/default_to.rb
92
+ - lib/parliamentarian.rb
93
93
  - parliamentarian.gemspec
94
94
  - test/Parliamentarian.rb
95
95
  - test/Parliamentarian/Australia/Federal.rb
96
96
  - test/Parliamentarian/Australia/Victoria.rb
97
97
  - test/Parliamentarian/VERSION.rb
98
- homepage: http://github.com/thoran/Parliamentarian
98
+ homepage: http://github.com/thoran/parliamentarian
99
99
  licenses:
100
100
  - MIT
101
101
  metadata: {}
File without changes