parliament-ruby 0.5.12 → 0.5.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/Rakefile +1 -20
- data/lib/parliament/decorators/person.rb +8 -0
- data/lib/parliament/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a7bda8e3289538e95886667e18046c87b847e4e
|
4
|
+
data.tar.gz: ed3ff016be7cc9c66de0234a9bf568935c19fabf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb2e57f9ace4d33b2b715db6634cf25d1d18ffdb9c06760e4da51082ca5450849a9cebdce96f1f1160eb899a137c9bc913c276a5c777b2089feb0f02a83e04cd
|
7
|
+
data.tar.gz: e2a4fdef7aae9d6a1e2d474555a768dcce42d5c43147d8f690292bde56b9bd878973e0d653d8f83f968d5d5999640e15698a0f40c9907ac15354a91d4a1ba968
|
data/README.md
CHANGED
@@ -59,7 +59,7 @@ Parliament::Request.new.base_url #=> 'http://test.com'
|
|
59
59
|
Parliament::Request.new(base_url: 'http://example.com').base_url #=> 'http://example.com'
|
60
60
|
```
|
61
61
|
|
62
|
-
Alternatively, you can set the environment variable `PARLIAMENT_BASE_URL` on your machine and we will automatically use that
|
62
|
+
Alternatively, you can set the environment variable `PARLIAMENT_BASE_URL` on your machine and we will automatically use that.
|
63
63
|
```ruby
|
64
64
|
ENV['PARLIAMENT_BASE_URL'] #=> 'http://example.com'
|
65
65
|
|
@@ -119,7 +119,7 @@ If you wish to submit a bug fix or feature, you can create a pull request and it
|
|
119
119
|
|
120
120
|
|
121
121
|
## License
|
122
|
-
[parliament-ruby][parliament-ruby] is licensed under the [Open Parliament Licence][info-license]
|
122
|
+
[parliament-ruby][parliament-ruby] is licensed under the [Open Parliament Licence][info-license].
|
123
123
|
|
124
124
|
[ruby]: https://www.ruby-lang.org/en/
|
125
125
|
[bundler]: http://bundler.io
|
data/Rakefile
CHANGED
@@ -1,25 +1,6 @@
|
|
1
1
|
require 'bundler/gem_tasks'
|
2
2
|
require 'rspec/core/rake_task'
|
3
|
-
require_relative 'lib/parliament/version'
|
4
3
|
|
5
4
|
RSpec::Core::RakeTask.new(:spec)
|
6
5
|
|
7
|
-
|
8
|
-
|
9
|
-
task :build do
|
10
|
-
p 'build started'
|
11
|
-
`gem build parliament-ruby.gemspec`
|
12
|
-
p 'build ended'
|
13
|
-
p "parliament-ruby gem built with version #{Parliament::VERSION}"
|
14
|
-
end
|
15
|
-
|
16
|
-
task :push do
|
17
|
-
%x(gem push parliament-ruby-"#{VERSION}")
|
18
|
-
p 'gem pushed'
|
19
|
-
end
|
20
|
-
|
21
|
-
#task default: :build
|
22
|
-
task :spec => :build
|
23
|
-
task :push => :spec
|
24
|
-
task default: :push
|
25
|
-
|
6
|
+
task default: :spec
|
@@ -122,6 +122,14 @@ module Parliament
|
|
122
122
|
@statuses = statuses
|
123
123
|
end
|
124
124
|
|
125
|
+
def full_title
|
126
|
+
respond_to?(:D79B0BAC513C4A9A87C9D5AFF1FC632F) ? self.D79B0BAC513C4A9A87C9D5AFF1FC632F : ''
|
127
|
+
end
|
128
|
+
|
129
|
+
def display_name
|
130
|
+
respond_to?(:F31CBD81AD8343898B49DC65743F0BDF) ? self.F31CBD81AD8343898B49DC65743F0BDF : ''
|
131
|
+
end
|
132
|
+
|
125
133
|
private
|
126
134
|
|
127
135
|
def house_membership_status
|
data/lib/parliament/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parliament-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Rayner
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
184
|
rubyforge_project:
|
185
|
-
rubygems_version: 2.
|
185
|
+
rubygems_version: 2.6.6
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: Internal parliamentary data API wrapper for ruby
|