detect_language 1.1.1 → 1.1.2

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: cc5fd49d8ac038b7cdba85373af25db35a0c2ef2
4
- data.tar.gz: 32fd418fc9c9d28a4fa82009e25e1f7090a2585b
3
+ metadata.gz: a8385ba646ee0a0ea95962ec93d3aaa14eeaa4ac
4
+ data.tar.gz: 260c92bba19c8b68387f0e68267fa96c8c112d7d
5
5
  SHA512:
6
- metadata.gz: d92c0c5af430c9c476b77b37264e3f6b55743df12c579e697976a22850291dbd82d445ff4cfa21350c234f41c8af64a95a678556d7373b92dc3badba60197779
7
- data.tar.gz: 88437b1b6483416bce8e1b114dbe4674394d556f1103ae91d63eed7dc919480bdd07724327c607a8c141cf775537bbbf96614376d981a5b33ac06c4f5e496ebb
6
+ metadata.gz: c9fe63bc8ed34fd9debbba9b0e88b2298c04036fa62ae41ac1adf0ed3ca852c9f94d060c422202ca348c40d4bd9add27c57bde7c2931a55be74ebea896e227dd
7
+ data.tar.gz: 0ab29b1b5087cc0b3b282a8d5ba0593c68c1f49b7251b71ae8844cdbc8eb0e7fa2f0a6e7092a317b357b168b4da4f793ee67c3443559413401b7ec860f7decd4
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Detect Language API Client
2
2
  ========
3
3
 
4
- [![Gem](https://img.shields.io/gem/v/detect_language.svg)](https://rubygems.org/gems/detect_language)
4
+ [![Gem Version](https://badge.fury.io/rb/detect_language.svg)](https://badge.fury.io/rb/detect_language)
5
5
  [![Build Status](https://secure.travis-ci.org/detectlanguage/detectlanguage-ruby.svg)](http://travis-ci.org/detectlanguage/detectlanguage-ruby)
6
6
 
7
7
 
@@ -32,8 +32,8 @@ module DetectLanguage
32
32
  request.set_form_data(params)
33
33
  end
34
34
 
35
- request.add_field('Authorization', 'Bearer ' + configuration.api_key.to_s)
36
- request.add_field('User-Agent', configuration.user_agent)
35
+ request['Authorization'] = 'Bearer ' + configuration.api_key.to_s
36
+ request['User-Agent'] = configuration.user_agent
37
37
 
38
38
  response = http.request(request)
39
39
 
@@ -44,7 +44,7 @@ module DetectLanguage
44
44
  @api_key = nil
45
45
  @api_version = "0.2"
46
46
  @host = "ws.detectlanguage.com"
47
- @user_agent = "Detect Language API ruby gem"
47
+ @user_agent = "detectlanguage-ruby/#{VERSION}"
48
48
  end
49
49
 
50
50
  def protocol
@@ -80,4 +80,4 @@ module DetectLanguage
80
80
  end
81
81
 
82
82
  end
83
- end
83
+ end
@@ -1,3 +1,3 @@
1
1
  module DetectLanguage
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
@@ -14,15 +14,7 @@ describe DetectLanguage do
14
14
  it "should have default configuration values" do
15
15
  subject.configuration.api_version.should == '0.2'
16
16
  subject.configuration.host.should == 'ws.detectlanguage.com'
17
- subject.configuration.user_agent.should == 'Detect Language API ruby gem'
18
- end
19
-
20
- it "should allow configuring" do
21
- subject.configure do |config|
22
- config.user_agent = "Detect Language testing"
23
- end
24
-
25
- subject.configuration.user_agent.should == "Detect Language testing"
17
+ subject.configuration.user_agent.should == "detectlanguage-ruby/#{DetectLanguage::VERSION}"
26
18
  end
27
19
  end
28
20
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: detect_language
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurynas Butkus
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-24 00:00:00.000000000 Z
11
+ date: 2018-07-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Language Detection API Client
14
14
  email: