spira 3.2.0 → 3.3.0

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
2
  SHA256:
3
- metadata.gz: 97fddc3a248df0d23723ea8967034dab05e28d23ccced070f1e87b910896adcf
4
- data.tar.gz: e0828af26e91756329cbf511785d005dc528d0971683f992547fe2dde76f03cb
3
+ metadata.gz: 69eaabc1d3987f239c8d6e0a1b7f5ce341135cb980d6ef904c5fd283c4cbc9a6
4
+ data.tar.gz: 84d1c1b5e08b5711e0f8d6966477bda4e49a386fdb5ca35210e77116bbebbfa0
5
5
  SHA512:
6
- metadata.gz: 5c146fef9d47e59add48611de4e460c290f60a410efbefeadf9f64e76e5b56be97a3d5ad1257640c657dcbfe805035edd435f697651f037214971faebc41c139
7
- data.tar.gz: 5c69eca5680a622992a4bd7ab0647b6308fe2daaf5c9c651cd14207f870c4d79efcc227768cc974dde9e04f859a33cc1240dafba694eed7dc45b241ba67f5f97
6
+ metadata.gz: cecb27f0e923138e35b00d2ca03178310a8d46431381a0c88597872bafbc8ed69aec2d0c320fcb1b9e9c270d938e293cb310ade86a4be79e0a5a502335fa8c70
7
+ data.tar.gz: e88cdbda4eb0256311d575ec1075905ce7739d9512dbf9be7be922342f8d4e74922dab0f7720c0fe838655284ef339259fb20ec190072b7d95387687ee9f1faa
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Spira
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/spira.png)](https://badge.fury.io/rb/spira)
3
+ [![Gem Version](https://badge.fury.io/rb/spira.svg)](https://badge.fury.io/rb/spira)
4
4
  [![Build Status](https://github.com/ruby-rdf/spira/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/spira/actions?query=workflow%3ACI)
5
5
  [![Coverage Status](https://coveralls.io/repos/ruby-rdf/spira/badge.png?branch=develop)](https://coveralls.io/r/ruby-rdf/spira)
6
6
  [![Code Climate](https://codeclimate.com/github/ruby-rdf/spira.png)](https://codeclimate.com/github/ruby-rdf/spira)
@@ -226,7 +226,7 @@ end
226
226
  Spira.repository = RDF::Repository.new
227
227
 
228
228
  rolling_stones = Album.for RDF::URI.new('http://example.org/cds/rolling-stones-hits')
229
- # See RDF.rb at https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Enumerable.html for more information about #has_predicate?
229
+ # See RDF.rb at https://ruby-rdf.github.io/rdf/RDF/Enumerable.html for more information about #has_predicate?
230
230
  rolling_stones.has_predicate?(RDF.type) #=> true
231
231
  Album.type #=> RDF::URI('http://example.org/types/album')
232
232
  ```
@@ -392,7 +392,7 @@ are implemented:
392
392
 
393
393
  The default type for a Spira property is `Spira::Types::Any`, which uses
394
394
  `RDF::Literal`'s automatic boxing/unboxing of XSD types as best it can.
395
- See [`RDF::Literal`](https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html) for more information.
395
+ See [`RDF::Literal`](https://ruby-rdf.github.io/rdf/RDF/Literal.html) for more information.
396
396
 
397
397
  You can implement your own types as well. Your class' serialize method should
398
398
  turn an RDF::Value into a ruby object, and vice versa.
@@ -477,7 +477,7 @@ level. You can also access attributes that are not defined as properties.
477
477
 
478
478
  ## Documentation
479
479
 
480
- <https://www.rubydoc.info/github/ruby-rdf/spira>
480
+ <https://ruby-rdf.github.io/spira>
481
481
 
482
482
  ## Support
483
483
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.0
1
+ 3.3.0
@@ -171,7 +171,7 @@ module Spira
171
171
  # @yield [self] Executes a given block and calls `#save!`
172
172
  # @yieldparam [self] self The newly created instance
173
173
  # @return [Spira::Base] The newly created instance
174
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/URI.html
174
+ # @see https://ruby-rdf.github.io/rdf/RDF/URI.html
175
175
  def for(identifier, attributes = {}, &block)
176
176
  self.project(id_for(identifier), attributes, &block)
177
177
  end
@@ -205,7 +205,7 @@ module Spira
205
205
  # @param [Any] identifier
206
206
  # @return [RDF::URI, RDF::Node]
207
207
  # @raise [ArgumentError] If this class cannot create an identifier from the given argument
208
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/URI.html
208
+ # @see https://ruby-rdf.github.io/rdf/RDF/URI.html
209
209
  # @see Spira.base_uri
210
210
  # @see Spira.for
211
211
  def id_for(identifier)
@@ -303,10 +303,10 @@ module Spira
303
303
  ##
304
304
  # Enumerate each RDF statement that makes up this projection. This makes
305
305
  # each instance an `RDF::Enumerable`, with all of the nifty benefits
306
- # thereof. See <https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Enumerable.html> for
306
+ # thereof. See <https://ruby-rdf.github.io/rdf/RDF/Enumerable.html> for
307
307
  # information on arguments.
308
308
  #
309
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Enumerable.html
309
+ # @see https://ruby-rdf.github.io/rdf/RDF/Enumerable.html
310
310
  def each
311
311
  if block_given?
312
312
  self.class.properties.each do |name, property|
@@ -333,7 +333,7 @@ module Spira
333
333
  ##
334
334
  # The number of RDF::Statements this projection has.
335
335
  #
336
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Enumerable.html#count
336
+ # @see https://ruby-rdf.github.io/rdf/RDF/Enumerable.html#count
337
337
  def count
338
338
  each.count
339
339
  end
data/lib/spira/type.rb CHANGED
@@ -32,7 +32,7 @@ module Spira
32
32
  # `Spira::Type`s include the RDF namespace and thus have all of the base RDF
33
33
  # vocabularies available to them without the `RDF::` prefix.
34
34
  #
35
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Value.html
35
+ # @see https://ruby-rdf.github.io/rdf/RDF/Value.html
36
36
  # @see Spira::Resource
37
37
  module Type
38
38
 
@@ -6,7 +6,7 @@ module Spira::Types
6
6
  # Its behavior is defined as 'What `RDF::Literal` does' for a given value.
7
7
  #
8
8
  # @see Spira::Type
9
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
9
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
10
10
  class Any
11
11
 
12
12
  include Spira::Type
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::AnyURI`, `AnyURI`, or `XSD.anyURI`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class AnyURI
13
13
 
14
14
  include Spira::Type
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::Boolean`, `Boolean`, or `XSD.boolean`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class Boolean
13
13
 
14
14
  include Spira::Type
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::Date`, `Date`, or `XSD.date`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class Date
13
13
  include Spira::Type
14
14
 
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::DateTime`, `DateTime`, or `XSD.dateTime`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class DateTime
13
13
  include Spira::Type
14
14
 
@@ -10,7 +10,7 @@ module Spira::Types
10
10
  # `Spira::Types::Integer`, `Integer`, or `XSD.integer`.
11
11
  #
12
12
  # @see Spira::Type
13
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
13
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
14
14
  class Decimal
15
15
  include Spira::Type
16
16
 
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::Double`, `Double`, or `XSD.double`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class Double
13
13
 
14
14
  include Spira::Type
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::Float`, `Float`, or `XSD.float`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class Float
13
13
 
14
14
  include Spira::Type
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::GYear`, `GYear`, or `XSD.gYear`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class GYear
13
13
  include Spira::Type
14
14
 
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::Int`, `Int`, or `XSD.int`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class Int
13
13
 
14
14
  include Spira::Type
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::Integer`, `Integer`, or `XSD.integer`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class Integer
13
13
 
14
14
  include Spira::Type
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::Long`, `Long`, or `XSD.long`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class Long
13
13
 
14
14
  include Spira::Type
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::NegativeInteger`, `NegativeInteger`, or `XSD.negativeInteger`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class NegativeInteger
13
13
 
14
14
  include Spira::Type
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::NonNegativeInteger`, `NonNegativeInteger`, or `XSD.nonNegativeInteger`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class NonNegativeInteger
13
13
 
14
14
  include Spira::Type
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::NonPositiveInteger`, `NonPositiveInteger`, or `XSD.nonPositiveInteger`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class NonPositiveInteger
13
13
 
14
14
  include Spira::Type
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::PositiveInteger`, `PositiveInteger`, or `XSD.positiveInteger`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class PositiveInteger
13
13
 
14
14
  include Spira::Type
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::String`, `String`, or `XSD.string`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class String
13
13
 
14
14
  include Spira::Type
@@ -8,7 +8,7 @@ module Spira::Types
8
8
  # `Spira::Types::Time`, `Time`, or `XSD.time`.
9
9
  #
10
10
  # @see Spira::Type
11
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/Literal.html
11
+ # @see https://ruby-rdf.github.io/rdf/RDF/Literal.html
12
12
  class Time
13
13
  include Spira::Type
14
14
 
@@ -5,7 +5,7 @@ module Spira::Types
5
5
  # ruby representation.
6
6
  #
7
7
  # @see Spira::Type
8
- # @see https://www.rubydoc.info/github/ruby-rdf/rdf/RDF/URI.html
8
+ # @see https://ruby-rdf.github.io/rdf/RDF/URI.html
9
9
  class URI
10
10
 
11
11
  include Spira::Type
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spira
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Lavender
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-29 00:00:00.000000000 Z
11
+ date: 2023-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.2'
19
+ version: '3.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.2'
26
+ version: '3.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rdf-isomorphic
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.2'
33
+ version: '3.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '3.2'
40
+ version: '3.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: promise
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,98 +58,98 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '6.1'
61
+ version: '7.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '6.1'
68
+ version: '7.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '6.1'
75
+ version: '7.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '6.1'
82
+ version: '7.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: i18n
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.8'
89
+ version: '1.14'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.8'
96
+ version: '1.14'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rdf-spec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '3.2'
103
+ version: '3.3'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '3.2'
110
+ version: '3.3'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rdf-turtle
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '3.2'
117
+ version: '3.3'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '3.2'
124
+ version: '3.3'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rdf-vocab
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '3.2'
131
+ version: '3.3'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '3.2'
138
+ version: '3.3'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '3.10'
145
+ version: '3.12'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '3.10'
152
+ version: '3.12'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rspec-its
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -224,10 +224,15 @@ files:
224
224
  - lib/spira/validations.rb
225
225
  - lib/spira/validations/uniqueness.rb
226
226
  - lib/spira/version.rb
227
- homepage: https://ruby-rdf.github.io/spira/
227
+ homepage: https://github.com/ruby-rdf/spira
228
228
  licenses:
229
229
  - Unlicense
230
- metadata: {}
230
+ metadata:
231
+ documentation_uri: https://ruby-rdf.github.io/spira
232
+ bug_tracker_uri: https://github.com/ruby-rdf/spira/issues
233
+ homepage_uri: https://github.com/ruby-rdf/spira
234
+ mailing_list_uri: https://lists.w3.org/Archives/Public/public-rdf-ruby/
235
+ source_code_uri: https://github.com/ruby-rdf/spira
231
236
  post_install_message:
232
237
  rdoc_options: []
233
238
  require_paths:
@@ -236,14 +241,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
236
241
  requirements:
237
242
  - - ">="
238
243
  - !ruby/object:Gem::Version
239
- version: '2.6'
244
+ version: '3.0'
240
245
  required_rubygems_version: !ruby/object:Gem::Requirement
241
246
  requirements:
242
247
  - - ">="
243
248
  - !ruby/object:Gem::Version
244
249
  version: '0'
245
250
  requirements: []
246
- rubygems_version: 3.3.3
251
+ rubygems_version: 3.2.33
247
252
  signing_key:
248
253
  specification_version: 4
249
254
  summary: A framework for using the information in RDF.rb repositories as model objects.