detect_language 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/detect_language.rb +1 -1
- data/lib/detect_language/client.rb +1 -1
- data/lib/detect_language/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc5fd49d8ac038b7cdba85373af25db35a0c2ef2
|
4
|
+
data.tar.gz: 32fd418fc9c9d28a4fa82009e25e1f7090a2585b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d92c0c5af430c9c476b77b37264e3f6b55743df12c579e697976a22850291dbd82d445ff4cfa21350c234f41c8af64a95a678556d7373b92dc3badba60197779
|
7
|
+
data.tar.gz: 88437b1b6483416bce8e1b114dbe4674394d556f1103ae91d63eed7dc919480bdd07724327c607a8c141cf775537bbbf96614376d981a5b33ac06c4f5e496ebb
|
data/README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
Detect Language API Client
|
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)
|
5
|
+
[![Build Status](https://secure.travis-ci.org/detectlanguage/detectlanguage-ruby.svg)](http://travis-ci.org/detectlanguage/detectlanguage-ruby)
|
6
|
+
|
7
|
+
|
4
8
|
Detects language of given text. Returns detected language codes and scores.
|
5
9
|
|
6
10
|
Before using Detect Language API client you have to setup your personal API key.
|
data/lib/detect_language.rb
CHANGED
@@ -32,7 +32,7 @@ module DetectLanguage
|
|
32
32
|
request.set_form_data(params)
|
33
33
|
end
|
34
34
|
|
35
|
-
request.add_field('Authorization', 'Bearer ' + configuration.api_key)
|
35
|
+
request.add_field('Authorization', 'Bearer ' + configuration.api_key.to_s)
|
36
36
|
request.add_field('User-Agent', configuration.user_agent)
|
37
37
|
|
38
38
|
response = http.request(request)
|
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.
|
4
|
+
version: 1.1.1
|
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-
|
11
|
+
date: 2018-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Language Detection API Client
|
14
14
|
email:
|