tripod 0.10.0 → 0.10.1

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: cc6eabb51253efb188e06ee368e07a0a889e3879
4
- data.tar.gz: c714ca5b1320c2fd26669951cc318b0c89a27cb6
3
+ metadata.gz: cf5ee82a24a76f06e5248e5b426ac4a42509c4af
4
+ data.tar.gz: c80b843c3a335becb51280f2155145870e1934ac
5
5
  SHA512:
6
- metadata.gz: 2adbfe9b6a9bcb9dae25e1550c06db0d249dc99ce9e00cf27b6923402f4fddc9eb8f0da52a75f69e115a64950c1b0efdeb4e4bb3925182de78ea6263048bd2e3
7
- data.tar.gz: 0485201ce47c65d4db7470f4c5ffe3603aa545cd730cbd154de1293ff736f36eab86ec5c1c90752fada3acfb0e86350ef6c1419a4c3c7374305704df24b692fe
6
+ metadata.gz: c57a039cb6f3cf9119c386ca375f92bdd26b34783b3a5935022655c835c736dddbbf8405f6ce2e590260e3e8039066e17d8bd540c4334beb3046a4dc0bced154
7
+ data.tar.gz: 429b738487156269de8b09359d7772a4bedba98300cbd0d0d2d6f38ff42b0e254b661a3e1c6e814de7e90242197aca47d1ebdb4b7f2d8b84ff96318fdedd3db8
@@ -24,7 +24,7 @@ module Tripod::SparqlClient
24
24
  # Hash.to_query from active support core extensions
25
25
  stream_data = -> {
26
26
  Tripod.logger.debug "TRIPOD: About to run query: #{sparql}"
27
- Tripod.logger.debug "TRIPOD: Streaming fron url: #{request_url}"
27
+ Tripod.logger.debug "TRIPOD: Streaming from url: #{request_url}"
28
28
  Tripod.logger.debug "TRIPOD: Streaming opts: #{streaming_opts.inspect}"
29
29
 
30
30
  Tripod::Streaming.get_data(request_url, params, streaming_opts)
@@ -17,7 +17,7 @@ module Tripod::Validations
17
17
  end
18
18
  return false unless ['http', 'https', 'mailto'].include?(uri.scheme)
19
19
  unless uri.scheme == "mailto"
20
- return false unless uri.host && uri.host.split('.').length > 1
20
+ return false unless uri.host && (uri.host.split('.').length > 1 || uri.host.split('.')[0] == 'localhost')
21
21
  end
22
22
  true
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module Tripod
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
@@ -27,4 +27,9 @@ describe Tripod::Validations::IsUrlValidator do
27
27
  person.father = 'http://bob'
28
28
  person.should_not be_valid
29
29
  end
30
+
31
+ it "should be valid with a port in the host" do
32
+ person.father = 'http://localhost:3000/bob'
33
+ person.should be_valid
34
+ end
30
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tripod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Roberts
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-12-03 00:00:00.000000000 Z
13
+ date: 2014-12-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client