rdf-do 1.99.0 → 1.99.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/rdf/do.rb +2 -0
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3802161e6db4773dc64f60c6b5b723dac84106ff
4
- data.tar.gz: d6ebd5979c580823d612bc9846eefbad20eb1837
3
+ metadata.gz: 573de1e4146e20046b5dd31c6673ea8f8b912573
4
+ data.tar.gz: ab36389f634218b16294fd8447c5b5500f90b8a4
5
5
  SHA512:
6
- metadata.gz: 7501062411761e66bd694a42d753522013d9e3490d42283086d1c1d5b9d3e731ac905c5685113fbab1137679febb7dd4d2d849d2e105cca68d3bcab4c2708760
7
- data.tar.gz: d54e69113b0f9e3a64473284acf5e0d03813cf399e07d3860ca8f2edb1e39eada8ed9f865fb3d178bdc92bf77bb3b7145918b4759bb52c44d82019d3bc0c2e15
6
+ metadata.gz: b8b57dfd0e5279e0cbc6d407671ed0fdbd5ddee38505dad9c7fc7a1c0ab84bc4ec707d8de4ea50637649734d33d31dccc78558ab18f7d4a41e3d720cb0894fe8
7
+ data.tar.gz: 0d75242e8b460229bfc6c779849391fa8e37dec584a6bc202703f62d08c55d6776c89bb2a57b83e7a5e47d4ce7ed8b30b7fd619f3a13a62738c2dba640651fe3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.99.0
1
+ 1.99.0.1
@@ -98,6 +98,7 @@ module RDF
98
98
  # @param [RDF::Statement] statement
99
99
  # @return [void]
100
100
  def insert_statement(statement)
101
+ raise ArgumentError, "Statement #{statement.inspect} is incomplete" if statement.incomplete?
101
102
  insert_statements [statement]
102
103
  end
103
104
 
@@ -118,6 +119,7 @@ module RDF
118
119
  # @param [Array<RDF::Statement>] statements
119
120
  # @return [void]
120
121
  def insert_statements(statements)
122
+ raise ArgumentError, "Some statement is incomplete" if statements.any?(&:incomplete?)
121
123
  if @adapter.respond_to?(:multiple_insert_sql)
122
124
  each = statements.respond_to?(:each_statement) ? :each_statement : :each
123
125
  args = []
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-do
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.99.0
4
+ version: 1.99.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Lavender
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-14 00:00:00.000000000 Z
11
+ date: 2015-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.1'
75
+ version: '1.99'
76
76
  type: :development
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: '1.1'
82
+ version: '1.99'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement