Skip to content

Commit 617566c

Browse files
committed
Add direct dependency on rest-client, and rest-client-components.
1 parent 4deb263 commit 617566c

6 files changed

Lines changed: 23 additions & 20 deletions

File tree

Gemfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ group :development, :test do
2828
gem 'rake'
2929
end
3030

31-
# Becuase rest-client-commonents doesn't seem like it's going to be updated:
32-
gem 'rest-client-components', git: "https://github.com/amatriain/rest-client-components", branch: "rest-client-2-compatibility"
33-
3431
gem 'jsonlint', git: "https://github.com/dougbarth/jsonlint"
3532

3633
group :debug do

Gemfile.lock

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
GIT
2-
remote: https://github.com/amatriain/rest-client-components
3-
revision: 236ac31ed1a061d479332ff179bf78fcb11edb74
4-
branch: rest-client-2-compatibility
5-
specs:
6-
rest-client-components (1.4.0)
7-
rack (>= 1.0.1)
8-
rest-client (>= 1.6.0)
9-
101
GIT
112
remote: https://github.com/dougbarth/jsonlint
123
revision: 7bbfa062b9d06b4a1ad491c9dad60db0e088f10b
@@ -17,10 +8,10 @@ GIT
178

189
GIT
1910
remote: https://github.com/dryruby/ebnf
20-
revision: cb84726cc68ca1e3225d8f90ea9e1c397b811a84
11+
revision: 425d81b33fa4a47050a9120270f8e38928f4c741
2112
branch: develop
2213
specs:
23-
ebnf (2.3.4)
14+
ebnf (2.3.5)
2415
htmlentities (~> 4.3)
2516
rdf (~> 3.2)
2617
scanf (~> 1.0)
@@ -29,7 +20,7 @@ GIT
2920

3021
GIT
3122
remote: https://github.com/ruby-rdf/json-ld
32-
revision: d7c54afa47406b5a9d1c11e1acde713fd2da9f84
23+
revision: 4a13da952b2fcd713bce4d0eb5123ca6c7fd3bbe
3324
branch: develop
3425
specs:
3526
json-ld (3.2.5)
@@ -102,7 +93,7 @@ GIT
10293

10394
GIT
10495
remote: https://github.com/ruby-rdf/rdf-rdfxml
105-
revision: 8c579c668af4c8ea9fb8232d1fb7eb429ace5f84
96+
revision: a48659d92dac957ef8b375cb4afd7284948ac070
10697
branch: develop
10798
specs:
10899
rdf-rdfxml (3.2.1)
@@ -136,7 +127,7 @@ GIT
136127

137128
GIT
138129
remote: https://github.com/ruby-rdf/rdf-turtle
139-
revision: ce802788195845d207c4c86209de7f48147bb3be
130+
revision: b005c590dc7a74314f304b19277f4e1be3b6d412
140131
branch: develop
141132
specs:
142133
rdf-turtle (3.2.1)
@@ -153,7 +144,7 @@ GIT
153144

154145
GIT
155146
remote: https://github.com/ruby-rdf/rdf-xsd
156-
revision: e71d9c3063fd4aad2b9174396e86b84df2266e27
147+
revision: 5d5bea8070a3345b945713d2d41899b87a6d977c
157148
branch: develop
158149
specs:
159150
rdf-xsd (3.2.1)
@@ -190,6 +181,8 @@ PATH
190181
rdf-turtle (~> 3.2)
191182
rdf-vocab (~> 3.2)
192183
rdf-xsd (~> 3.2)
184+
rest-client (~> 2.1)
185+
rest-client-components (~> 1.5)
193186
sass (~> 3.7)
194187
sinatra (~> 3.0)
195188
sinatra-rdf (~> 3.2)
@@ -266,7 +259,7 @@ GEM
266259
nio4r (~> 2.0)
267260
racc (1.7.1)
268261
rack (2.2.7)
269-
rack-cache (1.13.0)
262+
rack-cache (1.14.0)
270263
rack (>= 0.4)
271264
rack-protection (3.0.6)
272265
rack
@@ -285,6 +278,9 @@ GEM
285278
http-cookie (>= 1.0.2, < 2.0)
286279
mime-types (>= 1.16, < 4.0)
287280
netrc (~> 0.8)
281+
rest-client-components (1.5.0)
282+
rack (>= 1.0.1)
283+
rest-client (>= 1.6.0)
288284
rexml (3.2.5)
289285
rouge (4.1.2)
290286
rspec (3.12.0)
@@ -371,7 +367,6 @@ DEPENDENCIES
371367
rdf-turtle!
372368
rdf-vocab!
373369
rdf-xsd!
374-
rest-client-components!
375370
rspec (~> 3.12)
376371
rspec-its (~> 1.3)
377372
shotgun (>= 0.9.2)

Rakefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ namespace :doc do
1010
end
1111
end
1212

13+
namespace :cache do
14+
desc 'Clear document cache'
15+
task :clear do
16+
FileUtils.rm_rf File.expand_path("../cache", __FILE__)
17+
end
18+
end
19+
1320
# https://raw.githubusercontent.com/schemaorg/schemaorg/sdo-callisto/data/releases/3.3/all-layers.nq
1421
schema_base = ENV.fetch("schema_base", "https://raw.githubusercontent.com/schemaorg/schemaorg/main/data")
1522
schema_version = ENV.fetch("schema_version", "22.0")

config.ru

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ require 'rubygems' || Gem.clear_paths
33
require 'bundler'
44
Bundler.setup(:default)
55

6+
require 'restclient/components'
67
require 'rack/cache'
78
require 'sinatra'
89
require 'sinatra/base'

linter.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ Gem::Specification.new do |gem|
4545
gem.add_runtime_dependency 'haml', '~> 5.2'
4646
gem.add_runtime_dependency 'json-ld-preloaded', '~> 3.2'
4747
gem.add_runtime_dependency "rack", '~> 2.2'
48+
gem.add_runtime_dependency 'rest-client', '~> 2.1'
49+
gem.add_runtime_dependency 'rest-client-components', '~> 1.5'
4850
gem.add_runtime_dependency 'rack-cache', '~> 1.13'
4951
gem.add_runtime_dependency 'nokogiri', '~> 1.14'
5052

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
require 'rubygems'
66
require 'rspec'
77
require 'rspec/its'
8+
require 'restclient/components'
89
require 'rack/cache'
910
require 'sinatra'
1011
require 'matchers'

0 commit comments

Comments
 (0)