rdf-smart 0.0.155 → 0.0.160

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
  SHA1:
3
- metadata.gz: 0d1dec2ba4993bab2145872991ff235f0a34f5e9
4
- data.tar.gz: faa633f5f0d6742ac05d2efc5dfb73e555574564
3
+ metadata.gz: 78ede09b53e8ab4ee847a46ae53668ab4aae6c18
4
+ data.tar.gz: 93637364de62f557c0bfddbabbf338f7321e0be5
5
5
  SHA512:
6
- metadata.gz: 1e37a8322c631524f6322c0266c1598158f3f897d57967c39b7087fbf31e4dc589ebcc775b2feab6123c41ca79639cf21d4dabdc8ad081a8d01b45669c896597
7
- data.tar.gz: 693bb46d997d42a993800d37aeb28356eaa402db20047defdda48ecdbd1679b636ad30d6d1ef540947608f3ed2f873bd5df4a1849c999428b986a35f02fb3391
6
+ metadata.gz: 9ecd91d8fc820d0b4a326a3cfcf6f48350579b04ed2e358bada4362580aa9b1688bc818da1a336898f27ad1a3ca412f7de1c3aa05934b5ce04be228eac7e4f74
7
+ data.tar.gz: 13a3a5c2724d2efecf2c0027a1ed0e327d741787f681f6b3aa5812bdb1ef8c56b1a43d4d955e38ce1eb8669634df801b977db85da2891f485f8b9d792fb7e88a
data/ext/Makefile CHANGED
@@ -78,7 +78,7 @@ optflags = -O3 -fno-fast-math
78
78
  debugflags = -ggdb3
79
79
  warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
80
80
  CCDLFLAGS = -fPIC
81
- CFLAGS = $(CCDLFLAGS) -DRSM_VERSION=\"0.0.155\" -std=c99 -I/usr/include/rasqal -I/usr/include/raptor2 -g -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC $(ARCH_FLAG)
81
+ CFLAGS = $(CCDLFLAGS) -DRSM_VERSION=\"0.0.160\" -std=c99 -I/usr/include/rasqal -I/usr/include/raptor2 -g -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC $(ARCH_FLAG)
82
82
  INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
83
83
  DEFS =
84
84
  CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\" -D_FORTIFY_SOURCE=2 $(DEFS) $(cppflags)
data/ext/rsm.c CHANGED
@@ -1,9 +1,8 @@
1
1
  #include "rsm.h"
2
2
 
3
- /* -- */
4
- // ***********************************************************************************
3
+ // ************************************************************************************
5
4
  // GC
6
- // ***********************************************************************************
5
+ // ************************************************************************************
7
6
  void rsm_free(rsm_obj *prsm_obj) {
8
7
  if (prsm_obj != NULL) {
9
8
  free(prsm_obj);
@@ -321,6 +320,11 @@ VALUE rsm_execute(VALUE self, VALUE query) {
321
320
  return routput;
322
321
  }
323
322
 
323
+ /*
324
+ * [Document-method: +data_sources+]
325
+ *
326
+ * Method description here.
327
+ */
324
328
  VALUE rsm_data_sources(VALUE self) {
325
329
  rsm_obj *prsm_obj;
326
330
  Data_Get_Struct(self, rsm_obj, prsm_obj);
@@ -344,11 +348,14 @@ VALUE rsm_Smart;
344
348
  void Init_smart( void ) {
345
349
  rsm_RDF = rb_define_module( "RDF" );
346
350
  rsm_Smart = rb_define_class_under( rsm_RDF, "Smart", rb_cObject);
347
- rb_define_const(rsm_Smart, "VERSION", rb_str_new2(RSM_VERSION));
348
-
349
351
  rb_define_singleton_method(rsm_Smart, "new", (VALUE(*)(ANYARGS))rsm_new, -1);
350
352
  rb_define_method(rsm_Smart, "data_sources", (VALUE(*)(ANYARGS))rsm_data_sources, 0);
351
353
  rb_define_method(rsm_Smart, "namespaces", (VALUE(*)(ANYARGS))rsm_namespaces, 0);
352
354
  rb_define_private_method(rsm_Smart, "__execute", (VALUE(*)(ANYARGS))rsm_execute, 1);
355
+ /*
356
+ * Equals the current version number
357
+ */
358
+ rb_define_const(rsm_Smart, "VERSION", rb_str_new2(RSM_VERSION));
359
+
353
360
  }
354
361
 
data/ext/rsm.o CHANGED
Binary file
data/ext/smart.o ADDED
Binary file
data/ext/smart.so CHANGED
Binary file
data/lib/rdf/smart.rb CHANGED
@@ -1,7 +1,8 @@
1
- require File.dirname(__FILE__)+ '/../../ext/smart'
1
+ require File.dirname(__FILE__) + '/../../ext/smart'
2
2
  require 'json'
3
3
  require 'pp'
4
4
 
5
+
5
6
  ##
6
7
  # Main Module
7
8
  module RDF
@@ -9,7 +10,7 @@ module RDF
9
10
  # Creates a RDF::Smart Object.
10
11
  class Smart
11
12
  ##
12
- # Exetuces a +query+. +query+ is a string.
13
+ # Executes a +query+. +query+ is a string.
13
14
  #
14
15
  # An Error is raised if a +data_source+ does not exist
15
16
  ##
@@ -73,5 +74,11 @@ module RDF
73
74
  end
74
75
  res #}}}
75
76
  end
77
+ ##
78
+ # Returns the currently used version of rdf-smart.
79
+ ##
80
+ def version
81
+ VERSION
82
+ end
76
83
  end
77
84
  end
data/rdf-smart.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rdf-smart'
3
- s.version = '0.0.155'
3
+ s.version = '0.0.160'
4
4
  s.date = '2014-06-17'
5
5
  s.summary ="RDF.rb segfaults. A lot. We don't. RDF.rb has lots of features. We don't."
6
6
  s.description ="Minimal sparql support for ruby. Basically the roqet tool from http://librdf.org, with always guessing input type, and always json output."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-smart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.155
4
+ version: 0.0.160
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Stertz
@@ -29,6 +29,7 @@ files:
29
29
  - ext/rsm.c
30
30
  - ext/rsm.h
31
31
  - ext/rsm.o
32
+ - ext/smart.o
32
33
  - ext/smart.so
33
34
  - lib/rdf/smart.rb
34
35
  - rdf-smart.gemspec