parliament-ruby 0.5.16 → 0.5.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +15 -0
- data/README.md +3 -3
- data/lib/parliament/version.rb +1 -1
- metadata +3 -3
- data/Rakefile +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b3c8c824743e8fc39a983cca382e33f4b60d51c
|
4
|
+
data.tar.gz: 519ba032619e1efce25f5d1879257326bab01fec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e807d62ce5a058cc4aac67975d64040455af7a6e1583496f3f576e3cb70eeae5c2f675b64c2af0db3d0cf1a24d34f6bd293e7600cc29aa90a8e4719759bf951c
|
7
|
+
data.tar.gz: 339d5a6f9ce41bfe1ff9cef9a75688d25e31a0d668307b73c18b4649f6c6e8565dadc8071978aa661aeca18da5cac0115e632f42db2790b75ea6295086fa147f
|
data/Makefile
ADDED
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
|
|
@@ -72,7 +72,7 @@ Parliament::Request.new.base_url #=> 'http://example.com'
|
|
72
72
|
### Building an 'endpoint'
|
73
73
|
Now that we have a `base_url` set, we will want to build an 'endpoint' such as: `http://test.com/parties/current`.
|
74
74
|
|
75
|
-
An endpoint is effectively just a full URL to an n-triple file on a remote server
|
75
|
+
An endpoint is effectively just a full URL to an n-triple file on a remote server..
|
76
76
|
|
77
77
|
Building an endpoint is simple, once you have a Parliament::Request object, you do something like this:
|
78
78
|
```ruby
|
@@ -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/lib/parliament/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Rayner
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grom
|
@@ -138,8 +138,8 @@ files:
|
|
138
138
|
- CODE_OF_CONDUCT.md
|
139
139
|
- Gemfile
|
140
140
|
- LICENSE
|
141
|
+
- Makefile
|
141
142
|
- README.md
|
142
|
-
- Rakefile
|
143
143
|
- bin/console
|
144
144
|
- bin/setup
|
145
145
|
- lib/parliament.rb
|
data/Rakefile
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
require 'bundler/gem_tasks'
|
2
|
-
require 'rspec/core/rake_task'
|
3
|
-
require_relative 'lib/parliament/version'
|
4
|
-
require 'open3'
|
5
|
-
|
6
|
-
RSpec::Core::RakeTask.new(:spec)
|
7
|
-
|
8
|
-
VERSION = Parliament::VERSION
|
9
|
-
|
10
|
-
def run_command(cmd)
|
11
|
-
Open3.popen3(cmd) do |stdin, stdout, stderr, wait_thr|
|
12
|
-
exit_status = wait_thr.value
|
13
|
-
unless exit_status.success?
|
14
|
-
abort "#{cmd} FAILED !!!"
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
task :build do
|
20
|
-
run_command("gem build parliament-ruby.gemspec")
|
21
|
-
end
|
22
|
-
|
23
|
-
task :push do
|
24
|
-
run_command("gem push parliament-ruby-#{VERSION}.gem")
|
25
|
-
end
|
26
|
-
|
27
|
-
task :clean do
|
28
|
-
run_command("rm parliament-ruby-#{VERSION}.gem")
|
29
|
-
end
|
30
|
-
|
31
|
-
#task default: :build
|
32
|
-
task :spec => :build
|
33
|
-
task :push => :spec
|
34
|
-
task :clean => :push
|
35
|
-
task default: :clean
|
36
|
-
|