detect_language 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@ module DetectLanguage
29
29
  response = http.request(request)
30
30
 
31
31
  case response
32
- when Net::HTTPSuccess then
32
+ when Net::HTTPSuccess, Net::HTTPUnauthorized then
33
33
  parse_response(response.body)
34
34
  else
35
35
  raise "Failure: #{response.class}"
@@ -1,3 +1,3 @@
1
1
  module DetectLanguage
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: detect_language
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-15 00:00:00.000000000 Z
12
+ date: 2013-02-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Language Detection API Client
15
15
  email:
@@ -45,12 +45,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
45
45
  - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
+ segments:
49
+ - 0
50
+ hash: -807280730191114243
48
51
  required_rubygems_version: !ruby/object:Gem::Requirement
49
52
  none: false
50
53
  requirements:
51
54
  - - ! '>='
52
55
  - !ruby/object:Gem::Version
53
56
  version: '0'
57
+ segments:
58
+ - 0
59
+ hash: -807280730191114243
54
60
  requirements: []
55
61
  rubyforge_project:
56
62
  rubygems_version: 1.8.24
@@ -60,4 +66,3 @@ summary: Detects language of given text. Returns detected language codes and sco
60
66
  test_files:
61
67
  - spec/detect_language_spec.rb
62
68
  - spec/spec_helper.rb
63
- has_rdoc: