LVS-JSONService 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: LVS-JSONService
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  require_paths:
6
6
  - lib
7
7
  platform: ruby
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{JSONService}
5
- s.version = "0.2.4"
5
+ s.version = "0.2.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["LVS"]
9
- s.date = %q{2009-07-06}
9
+ s.date = %q{2009-07-29}
10
10
  s.email = %q{info@lvs.co.uk}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
@@ -15,8 +15,6 @@ module LVS
15
15
 
16
16
  uri = URI.parse(service)
17
17
 
18
- http = Net::HTTP.new(uri.host, uri.port)
19
-
20
18
  http = Net::HTTP.new(uri.host, uri.port)
21
19
  if options[:encrypted] || require_ssl?
22
20
  http.use_ssl = true
@@ -92,7 +90,7 @@ module LVS
92
90
  timing = ("%.1f" % ((Time.now - start) * 1000)) + "ms"
93
91
  end
94
92
 
95
- if response.body.size < 1024
93
+ if response.body.size < 1024 || options[:debug]
96
94
  LVS::JsonService::Logger.debug "Response (#{timing}): #{response.body.gsub(/\n/, '')}"
97
95
  else
98
96
  LVS::JsonService::Logger.debug "Response Snippet (#{timing}): #{response.body.gsub(/\n/, '')[0..1024]}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: LVS-JSONService
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - LVS
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-06 00:00:00 -07:00
12
+ date: 2009-07-29 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -44,6 +44,7 @@ files:
44
44
  - spec/spec_helper.rb
45
45
  has_rdoc: false
46
46
  homepage: http://github.com/lvs/JSONService
47
+ licenses:
47
48
  post_install_message:
48
49
  rdoc_options:
49
50
  - --charset=UTF-8
@@ -64,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
65
  requirements: []
65
66
 
66
67
  rubyforge_project:
67
- rubygems_version: 1.2.0
68
+ rubygems_version: 1.3.5
68
69
  signing_key:
69
70
  specification_version: 3
70
71
  summary: A Ruby library for interacting with external JSON services