rdf-tabular 0.1.3 → 0.1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rdf/tabular/metadata.rb +3 -1
- data/spec/suite_helper.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2189e4adf74c8a835eacf720cb18503b2b2868d4
|
4
|
+
data.tar.gz: 3bef719174d7c0aad7c451dbb56cdb403b16c2d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57774f8b44da2007a7d4774b8735d27e47bb45efc78bfc9a2b24b52f7ab2aa6637a61b25e7965ae475bfeae4c68f2aa99299d5af62a6412e126a99dfbf0df672
|
7
|
+
data.tar.gz: b466541a80110f1377f64a0021f282ae6bc00f5aab3a85625735443583a3e8100d520afdb73e426ae9891cf68df20ff617a612e5326cb40ed30159f60a310959
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.3
|
1
|
+
0.1.3.1
|
data/lib/rdf/tabular/metadata.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
1
3
|
require 'json'
|
2
4
|
require 'json/ld'
|
3
5
|
require 'bcp47'
|
@@ -1166,7 +1168,7 @@ module RDF::Tabular
|
|
1166
1168
|
content = {"@type" => "TableGroup", "tables" => [self]}
|
1167
1169
|
content['@context'] = object.delete(:@context) if object[:@context]
|
1168
1170
|
ctx = @context
|
1169
|
-
|
1171
|
+
remove_instance_variable(:@context) if instance_variables.include?(:@context)
|
1170
1172
|
tg = TableGroup.new(content, context: ctx, filenames: @filenames, base: base)
|
1171
1173
|
@parent = tg # Link from parent
|
1172
1174
|
tg
|
data/spec/suite_helper.rb
CHANGED
@@ -24,11 +24,11 @@ module RDF::Util
|
|
24
24
|
# @return [IO] File stream
|
25
25
|
# @yield [IO] File stream
|
26
26
|
def self.open_file(filename_or_url, options = {}, &block)
|
27
|
-
case
|
28
|
-
when /^file:/
|
27
|
+
case
|
28
|
+
when filename_or_url.to_s =~ /^file:/
|
29
29
|
path = filename_or_url.to_s[5..-1]
|
30
30
|
Kernel.open(path.to_s, &block)
|
31
|
-
when
|
31
|
+
when (filename_or_url.to_s =~ %r{^#{REMOTE_PATH}} && ::File.exist?(filename_or_url.to_s.sub(REMOTE_PATH, LOCAL_PATH)))
|
32
32
|
begin
|
33
33
|
#puts "attempt to open #{filename_or_url} locally"
|
34
34
|
localpath = filename_or_url.to_s.sub(REMOTE_PATH, LOCAL_PATH)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-tabular
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.3
|
4
|
+
version: 0.1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcp47
|
@@ -247,7 +247,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
247
247
|
requirements:
|
248
248
|
- - ">="
|
249
249
|
- !ruby/object:Gem::Version
|
250
|
-
version:
|
250
|
+
version: 1.9.3
|
251
251
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
252
252
|
requirements:
|
253
253
|
- - ">="
|