json-ld 1.0.1 → 1.0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54892ea3d40dc8dbea39f06ade6803302e8b01b0
4
- data.tar.gz: 002b2860c421d7a56ebb4493bf0b7942db6edd6d
3
+ metadata.gz: 97a3575f2cb93a3349fbf649fbe3f6e2bc76f309
4
+ data.tar.gz: 03bd6138b0f58510bf04e80cd0b303c0672ac30e
5
5
  SHA512:
6
- metadata.gz: 97bb1266a783b8f8a5e00df566185d40e13f4c0528599593c0fa0f2ecdecb277e90aaf29d31cf0a095bb0f712961545332c2b21cc1d0eac3912924cd733d2232
7
- data.tar.gz: 4a86e9c48172c8794149ea858091323c695a4e96a0f785534303353ba04c9d9992eff880f0e49447f91b9a65bf71bf7021e0daf30fc2072385bf70c38b7c3c28
6
+ metadata.gz: 31a098c284a903bcc42447954a9989e3d775d10c88dd91abdfd02c6c04e8714e6e0d81ac9daa01db96abb58b3acadc185da3331fee040aad9055c11e2d25b8f4
7
+ data.tar.gz: 5aa36012fdc65dce8d9129cff315b6ed828e3a8be3af7c4d093fe5becc100360c90ad0bd8e9bc1b30230c5ece62952dc339541485403a705cfaf071f7926b543
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [JSON-LD][] reader/writer for [RDF.rb][RDF.rb] and fully conforming [JSON-LD][] processor.
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/json-ld.png)](http://badge.fury.io/rb/json-ld)
6
- [![Build Status](https://secure.travis-ci.org/gkellogg/json-ld.png?branch=master)](http://travis-ci.org/gkellogg/json-ld)
6
+ [![Build Status](https://secure.travis-ci.org/ruby-rdf/json-ld.png?branch=master)](http://travis-ci.org/ruby-rdf/json-ld)
7
7
 
8
8
  ## Features
9
9
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.1.1
@@ -147,7 +147,6 @@ module JSON::LD
147
147
 
148
148
  # Finally, for each key-value pair property-value in element ordered by property perform the following steps:
149
149
  element.keys.sort.each do |property|
150
- #require 'debugger'; breakpoint
151
150
  value = element[property]
152
151
 
153
152
  # If property is a blank node identifier, replace it with a newly generated blank node identifier passing property for identifier.
@@ -1,6 +1,6 @@
1
1
  module JSON::LD::VERSION
2
2
  VERSION_FILE = File.join(File.expand_path(File.dirname(__FILE__)), "..", "..", "..", "VERSION")
3
- MAJOR, MINOR, TINY, EXTRA = File.read(VERSION_FILE).chop.split(".")
3
+ MAJOR, MINOR, TINY, EXTRA = File.read(VERSION_FILE).chomp.split(".")
4
4
 
5
5
  STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.')
6
6
 
@@ -94,7 +94,7 @@ module JSON::LD
94
94
  options[:base_uri] ||= options[:base] if options.has_key?(:base)
95
95
  options[:base] ||= options[:base_uri] if options.has_key?(:base_uri)
96
96
  super do
97
- @repo = RDF::Graph.new
97
+ @repo = RDF::Repository.new
98
98
 
99
99
  if block_given?
100
100
  case block.arity
@@ -146,10 +146,8 @@ module JSON::LD
146
146
  def write_epilogue
147
147
  @debug = @options[:debug]
148
148
 
149
- # Turn graph into a triple array
150
- statements = @repo.each_statement.to_a
151
- debug("writer") { "serialize #{statements.length} statements, #{@options.inspect}"}
152
- result = API.fromRDF(statements, @options)
149
+ debug("writer") { "serialize #{@repo.count} statements, #{@options.inspect}"}
150
+ result = API.fromRDF(@repo, @options)
153
151
 
154
152
  # If we were provided a context, or prefixes, use them to compact the output
155
153
  context = RDF::Util::File.open_file(@options[:context]) if @options[:context].is_a?(String)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-ld
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.1.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: 2013-05-17 00:00:00.000000000 Z
11
+ date: 2013-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf
@@ -272,7 +272,7 @@ files:
272
272
  - spec/test-files/test-9-expanded.json
273
273
  - spec/test-files/test-9-input.json
274
274
  - bin/jsonld
275
- homepage: http://github.com/gkellogg/json-ld
275
+ homepage: http://github.com/ruby-rdf/json-ld
276
276
  licenses:
277
277
  - Public Domain
278
278
  metadata: {}