parliament-ntriple 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 8bca56b0fd2e5d632150f373039d94c28902225e3fcc9394b0b6b8cab5184329
4
- data.tar.gz: c05ec7fe015bc0eba75973167b870ea2425fdaef96d4bc60aeda72fd06c9194c
2
+ SHA1:
3
+ metadata.gz: 58076a3cb96c4eb41355de2a7f6f02d0952b75d2
4
+ data.tar.gz: 76346c7dd62059a3249f5e2cc383a5763918cad2
5
5
  SHA512:
6
- metadata.gz: d9ffb8c15378f94485bf2ba9dc16a7d987731d6edff3edb463f4414736d780ad97666dfe4512434e5ec448889e98c01ddc392c17863bf7c8357aaf91c8ed2691
7
- data.tar.gz: 1d9e477300e2575ce4e2b4622af3923c35445c5e6eb5d147e3a6b5f360f048b5325e2ab5a7df70f55db9033a80e7b1003976943005d1285b13c44230285f47fb
6
+ metadata.gz: 2e8736b6f9ef1d28049aa2f1c46d903df91e1c6dcb68acfc962eeaf8e27cbfc497e7c8206339082496efec8b3f0fa650d2448fe81404df08d7ee059ec23083c2
7
+ data.tar.gz: 4e68672e9d5a993c42e344749242c3bd19df6c36f0387e62015382f217722467e944bb5a577b11aaf7afa17710241952d37c574148cf195cc6fde474b3a1a4db
data/README.md CHANGED
@@ -11,9 +11,8 @@
11
11
 
12
12
  ## Installation
13
13
 
14
- This gem is currently not available on RubyGems. To use it in an application, install it directly from GitHub via your Gemfile
15
14
  ```bash
16
- gem 'parliament-ntriple', git: 'https://github.com/ukparliament/parliament-ntriple.git', branch: 'master'
15
+ gem 'parliament-ntriple'
17
16
  ```
18
17
 
19
18
  ## Usage
@@ -10,6 +10,7 @@ module Parliament
10
10
  #
11
11
  # @param [HTTPResponse] response an HTTP response containing n-triple data.
12
12
  # @param [Module] decorators the decorator module to provide alias methods to the resulting objects.
13
+ #
13
14
  # @example Using the Grom Decorators module
14
15
  # Parliament::Builder::NTripleResponseBuilder.new(response: <#HTTPResponse>, decorators: Parliament::Grom::Decorator)
15
16
  def initialize(response:, decorators: nil)
@@ -32,7 +33,7 @@ module Parliament
32
33
 
33
34
  private
34
35
 
35
- # Encodes HTTP response body to UTF-8
36
+ # Encodes HTTP response body to UTF-8.
36
37
  #
37
38
  # @param [String] HTTP response string containing n-triple data.
38
39
  # @return [String] a UTF-8 response body string.
@@ -40,7 +41,7 @@ module Parliament
40
41
  response_body.force_encoding('UTF-8')
41
42
  end
42
43
 
43
- # Removes byte order mark (BOM) from UTF-8 response body string
44
+ # Removes byte order mark (BOM) from UTF-8 response body string.
44
45
  #
45
46
  # @param [String] UTF-8 HTTP response string containing BOM and n-triple data.
46
47
  # @return [String] a UTF-8 response body string without BOM.
@@ -1,11 +1,11 @@
1
1
  module Parliament
2
2
  module NTriple
3
- # Namespace for helper methods used with parliament-ruby.
3
+ # Namespace for helper methods.
4
4
  #
5
5
  # @since 0.6.0
6
6
  module Utils
7
7
  # Sort an Array of Objects in ascending order. The major difference between this implementation of sort_by and the
8
- # standard one is that our implementation includes objects that return nil for our parameter values.
8
+ # standard one is that our implementation will sort objects that return nil for our parameter values.
9
9
  #
10
10
  # @see Parliament::NTriple::Utils.reverse_sort_by
11
11
  #
@@ -1,5 +1,5 @@
1
1
  module Parliament
2
2
  module NTriple
3
- VERSION = '0.5.0'.freeze
3
+ VERSION = '0.5.1'.freeze
4
4
  end
5
5
  end
@@ -8,7 +8,7 @@ module Parliament
8
8
  #
9
9
  # @since 0.1.0
10
10
  #
11
- # @see Parliament::Response::BaseReponse#initialize
11
+ # @see Parliament::Response::BaseResponse#initialize
12
12
  #
13
13
  # @attr_reader [Array<Grom::Node>] nodes Graph nodes.
14
14
  class NTripleResponse < Parliament::Response::BaseResponse
@@ -99,7 +99,7 @@ module Parliament
99
99
 
100
100
  # Sort the Parliament::Response nodes in ascending order by a set of attributes on each node.
101
101
  #
102
- # @see Parliament::Utils.sort_by
102
+ # @see Parliament::NTriple::Utils.sort_by
103
103
  #
104
104
  # @since 0.1.0
105
105
  #
@@ -116,7 +116,7 @@ module Parliament
116
116
 
117
117
  # Sort the Parliament::Response nodes in ascending or descending order by a set of attributes on each node.
118
118
  #
119
- # @see Parliament::Utils.multi_direction_sort
119
+ # @see Parliament::NTriple::Utils.multi_direction_sort
120
120
  #
121
121
  # @since 0.1.2
122
122
  #
@@ -133,7 +133,7 @@ module Parliament
133
133
 
134
134
  # Sort the Parliament::Response nodes in descending order by a set of attributes on each node.
135
135
  #
136
- # @see Parliament::Utils.reverse_sort_by
136
+ # @see Parliament::NTriple::Utils.reverse_sort_by
137
137
  #
138
138
  # @since 0.1.0
139
139
  #
@@ -6,7 +6,7 @@ require 'parliament/ntriple/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'parliament-ntriple'
8
8
  spec.version = Parliament::NTriple::VERSION
9
- spec.authors = ['Rebecca Appleyard']
9
+ spec.authors = ['Rebecca Appleyard', 'Matt Rayner']
10
10
  spec.email = ['rklappleyard@gmail.com']
11
11
 
12
12
  spec.summary = %q{Parliamentary NTriple response builder}
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parliament-ntriple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rebecca Appleyard
8
+ - Matt Rayner
8
9
  autorequire:
9
10
  bindir: exe
10
11
  cert_chain: []
11
- date: 2018-11-21 00:00:00.000000000 Z
12
+ date: 2019-02-13 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: grom
@@ -159,7 +160,6 @@ extra_rdoc_files: []
159
160
  files:
160
161
  - ".gitignore"
161
162
  - ".hound.yml"
162
- - ".idea/vcs.xml"
163
163
  - ".rspec"
164
164
  - ".rubocop.yml"
165
165
  - ".travis.yml"
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  version: '0'
198
198
  requirements: []
199
199
  rubyforge_project:
200
- rubygems_version: 2.7.6
200
+ rubygems_version: 2.6.8
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Parliamentary NTriple response builder