sinatra-linkeddata 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/README +53 -27
  3. data/VERSION +1 -1
  4. data/lib/sinatra/linkeddata.rb +2 -0
  5. metadata +28 -40
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7e3b3bc6acae92fde2ccde77fc8fb8752d0c2844
4
+ data.tar.gz: 52f1a1a5036b3258a3cea65ccb9fc6b08f4d3d7b
5
+ SHA512:
6
+ metadata.gz: 520ed7d8d84d902d3a29a117603569c785b7e7abc898f5ac671ef1340496063d765694c38a6590dbf46e5c66b0f3a0d20357a582c5331b5b08a8ba7df521ae81
7
+ data.tar.gz: b50d0507a8f1ad32aa6436e8bf61f655989e9f08a10712e0a8d76140253db35810843e0a5c288d180c372ce4b00c90603b4e0c1a58ed7ea6b062bdb7e1cb82d5
data/README CHANGED
@@ -1,21 +1,21 @@
1
- Linked Data Content Negotiation for Sinatra Applications
2
- ========================================================
1
+ # Linked Data Content Negotiation for Sinatra Applications
3
2
 
4
3
  This is a [Sinatra][] extension that provides [Linked Data][] content
5
4
  negotiation for Sinatra applications.
6
5
 
7
6
  * <http://github.com/datagraph/sinatra-linkeddata>
8
7
 
9
- Features
10
- --------
8
+ [![Gem Version](https://badge.fury.io/rb/sinatra-linkeddata.png)](http://badge.fury.io/rb/sinatra-linkeddata)
9
+ [![Build Status](https://travis-ci.org/ruby-rdf/sinatra-linkeddata.png?branch=master)](http://travis-ci.org/ruby-rdf/sinatra-linkeddata)
10
+
11
+ ## Features
11
12
 
12
13
  * Implements [HTTP content negotiation][conneg] for RDF content types using
13
14
  the [`Rack::LinkedData`][Rack::LinkedData] middleware.
14
15
  * Supports all [RDF.rb][]-compatible serialization formats.
15
16
  * Supports both classic and modular Sinatra applications.
16
17
 
17
- Examples
18
- --------
18
+ ## Examples
19
19
 
20
20
  ### Adding Linked Data content negotiation to a classic Sinatra application
21
21
 
@@ -73,15 +73,14 @@ Examples
73
73
 
74
74
  $ rackup doc/examples/config.ru
75
75
 
76
- $ curl -iH "Accept: text/plain" http://localhost:9292/hello
77
- $ curl -iH "Accept: text/turtle" http://localhost:9292/hello
76
+ $ curl -iH "Accept: application/n-triples" http://localhost:9292/hello
77
+ $ curl -iH "Accept: application/turtle" http://localhost:9292/hello
78
78
  $ curl -iH "Accept: application/rdf+xml" http://localhost:9292/hello
79
79
  $ curl -iH "Accept: application/json" http://localhost:9292/hello
80
80
  $ curl -iH "Accept: application/trix" http://localhost:9292/hello
81
81
  $ curl -iH "Accept: */*" http://localhost:9292/hello
82
82
 
83
- Description
84
- -----------
83
+ ## Description
85
84
 
86
85
  `Sinatra::LinkedData` is a thin Sinatra-specific wrapper around the
87
86
  [`Rack::LinkedData`][Rack::LinkedData] middleware, which implements Linked
@@ -104,29 +103,25 @@ to doing the following manually in a Sinatra application:
104
103
  See the `Rack::LinkedData` documentation for more information on the
105
104
  operation and details of the content negotiation.
106
105
 
107
- Documentation
108
- -------------
106
+ ## Documentation
109
107
 
110
- <http://datagraph.rubyforge.org/sinatra-linkeddata/>
108
+ <http://rubydoc.info/github/ruby-rdf/sinatra-linkeddata/>
111
109
 
112
110
  * {Sinatra::LinkedData}
113
111
 
114
- Dependencies
115
- ------------
112
+ ## Dependencies
116
113
 
117
- * [Sinatra](http://rubygems.org/gems/sinatra) (>= 1.0)
118
- * [Rack::LinkedData](http://rubygems.org/gems/rack-linkeddata) (>= 1.0)
114
+ * [Sinatra](http://rubygems.org/gems/sinatra) (>= 1.4.4)
115
+ * [Rack::LinkedData](http://rubygems.org/gems/rack-linkeddata) (>= 1.1.0)
119
116
 
120
- Installation
121
- ------------
117
+ ## Installation
122
118
 
123
119
  The recommended installation method is via [RubyGems](http://rubygems.org/).
124
120
  To install the latest official release of the gem, do:
125
121
 
126
122
  % [sudo] gem install sinatra-linkeddata
127
123
 
128
- Download
129
- --------
124
+ ## Download
130
125
 
131
126
  To get a local working copy of the development repository, do:
132
127
 
@@ -137,8 +132,22 @@ as follows:
137
132
 
138
133
  % wget http://github.com/ruby-rdf/sinatra-linkeddata/tarball/master
139
134
 
140
- References
141
- ----------
135
+ ##Contributing
136
+ This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange development and release activity. All submissions _must_ be on a feature branch based on the _develop_ branch to ease staging and integration.
137
+
138
+ * Do your best to adhere to the existing coding conventions and idioms.
139
+ * Don't use hard tabs, and don't leave trailing whitespace on any line.
140
+ * Do document every method you add using [YARD][] annotations. Read the
141
+ [tutorial][YARD-GS] or just look at the existing code for examples.
142
+ * Don't touch the `.gemspec`, `VERSION` or `AUTHORS` files. If you need to
143
+ change them, do so on your private branch only.
144
+ * Do feel free to add yourself to the `CREDITS` file and the corresponding
145
+ list in the the `README`. Alphabetical order applies.
146
+ * Do note that in order for us to merge any non-trivial changes (as a rule
147
+ of thumb, additions larger than about 15 lines of code), we need an
148
+ explicit [public domain dedication][PDD] on record from you.
149
+
150
+ ## References
142
151
 
143
152
  * <http://www.w3.org/DesignIssues/LinkedData.html>
144
153
  * <http://linkeddata.org/docs/how-to-publish>
@@ -147,13 +156,27 @@ References
147
156
  * <http://www.w3.org/TR/swbp-vocab-pub/>
148
157
  * <http://patterns.dataincubator.org/book/publishing-patterns.html>
149
158
 
150
- Authors
151
- -------
159
+ ## Authors
152
160
 
153
161
  * [Arto Bendiken](http://github.com/bendiken) - <http://ar.to/>
162
+ * [Gregg Kellogg](http://github.com/gkellogg) - <http://greggkellogg.net/>
163
+
164
+ ## Contributing
165
+ This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange development and release activity. All submissions _must_ be on a feature branch based on the _develop_ branch to ease staging and integration.
166
+
167
+ * Do your best to adhere to the existing coding conventions and idioms.
168
+ * Don't use hard tabs, and don't leave trailing whitespace on any line.
169
+ * Do document every method you add using [YARD][] annotations. Read the
170
+ [tutorial][YARD-GS] or just look at the existing code for examples.
171
+ * Don't touch the `.gemspec`, `VERSION` or `AUTHORS` files. If you need to
172
+ change them, do so on your private branch only.
173
+ * Do feel free to add yourself to the `CREDITS` file and the corresponding
174
+ list in the the `README`. Alphabetical order applies.
175
+ * Do note that in order for us to merge any non-trivial changes (as a rule
176
+ of thumb, additions larger than about 15 lines of code), we need an
177
+ explicit [public domain dedication][PDD] on record from you.
154
178
 
155
- License
156
- -------
179
+ ## License
157
180
 
158
181
  `Sinatra::LinkedData` is free and unencumbered public domain software. For more
159
182
  information, see <http://unlicense.org/> or the accompanying UNLICENSE file.
@@ -164,3 +187,6 @@ information, see <http://unlicense.org/> or the accompanying UNLICENSE file.
164
187
  [Rack::LinkedData]: http://datagraph.rubyforge.org/rack-linkeddata/
165
188
  [Linked Data]: http://linkeddata.org/
166
189
  [conneg]: http://en.wikipedia.org/wiki/Content_negotiation
190
+ [YARD]: http://yardoc.org/
191
+ [YARD-GS]: http://rubydoc.info/docs/yard/file/docs/GettingStarted.md
192
+ [PDD]: http://unlicense.org/#unlicensing-contributions
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -3,6 +3,8 @@ require 'rack/linkeddata'
3
3
 
4
4
  module Sinatra
5
5
  ##
6
+ # To override negotiation on Content-Type, set :format in `linkeddata_options` to a RDF Format class, or symbol identifying a format.
7
+ #
6
8
  # @see http://www.sinatrarb.com/extensions.html
7
9
  module LinkedData
8
10
  autoload :VERSION, 'sinatra/linkeddata/version'
metadata CHANGED
@@ -1,96 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-linkeddata
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Arto Bendiken
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-20 00:00:00.000000000 Z
11
+ date: 2013-11-14 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rack-linkeddata
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
- version: '1.0'
19
+ version: 1.1.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
- version: '1.0'
26
+ version: 1.1.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: sinatra
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
- version: 1.3.3
33
+ version: 1.4.4
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
- version: 1.3.3
40
+ version: 1.4.4
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: yard
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
- version: 0.8.3
47
+ version: '0.8'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
- version: 0.8.3
54
+ version: '0.8'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
- version: 2.12.0
61
+ version: '2.14'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
- version: 2.12.0
68
+ version: '2.14'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rack-test
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
- version: 0.6.2
75
+ version: '0.6'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
- version: 0.6.2
82
+ version: '0.6'
94
83
  description: Sinatra extension for Linked Data content negotiation.
95
84
  email: public-rdf-ruby@w3.org
96
85
  executables: []
@@ -107,27 +96,26 @@ files:
107
96
  homepage: http://ruby-rdf.github.com/sinatra-linkeddata
108
97
  licenses:
109
98
  - Public Domain
99
+ metadata: {}
110
100
  post_install_message:
111
101
  rdoc_options: []
112
102
  require_paths:
113
103
  - lib
114
104
  required_ruby_version: !ruby/object:Gem::Requirement
115
- none: false
116
105
  requirements:
117
- - - ! '>='
106
+ - - '>='
118
107
  - !ruby/object:Gem::Version
119
- version: 1.8.1
108
+ version: 1.9.2
120
109
  required_rubygems_version: !ruby/object:Gem::Requirement
121
- none: false
122
110
  requirements:
123
- - - ! '>='
111
+ - - '>='
124
112
  - !ruby/object:Gem::Version
125
113
  version: '0'
126
114
  requirements: []
127
115
  rubyforge_project: datagraph
128
- rubygems_version: 1.8.24
116
+ rubygems_version: 2.1.11
129
117
  signing_key:
130
- specification_version: 3
118
+ specification_version: 4
131
119
  summary: Linked Data content negotiation for Sinatra applications.
132
120
  test_files: []
133
121
  has_rdoc: false