tongues 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6825c9c2ee360890acdc6776da6359a910b9ab65
4
- data.tar.gz: 945c1a44b60a9ae7b5b1b68c2a82983630b471f3
3
+ metadata.gz: abff62fd6559e6d62ff2dbc4fa45c1bf8c3f37ce
4
+ data.tar.gz: 6f73864caf4dd021362bee11a8d24194d65b30ec
5
5
  SHA512:
6
- metadata.gz: 1859b6f514514545d815fa57c20a35bbd1f3530f2ddd9bb5e54a9e677d01cc6db31ae01fbd803a75b457ef6d558ea90da15c8e1d16236bacfdffdad91bfac4a7
7
- data.tar.gz: ba6867cbaaea58c1bb670f84cd376924d32c55ec03b8b38f346189367073dcc4433b41cd2fef424be4b9cdbd86e82f800c20c78bc3e1977f0142cfc45f5cd612
6
+ metadata.gz: cef61e03a8adfaa87cb1a72f735fed8cf79504a61ae3af4a2d78d30458009cc7b24d1ae336117bd10f1dcdf74f474a216fccba2681d5fa90ad4aeaa90cd356b6
7
+ data.tar.gz: 583897699b3f7743bb80722f289cc436a3b5879cd0036a46e010a1058f20d3097249162ca8c5e417f636510119e6fcf7df6806890eed4bea389bc5ab0e843f58
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
@@ -1,3 +1,3 @@
1
1
  module Tongues
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -0,0 +1,178 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://ws.detectlanguage.com/0.2/detect?key=demo&q=this%20is%20an%20english%20text
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ Host:
17
+ - ws.detectlanguage.com
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - nginx/0.7.65
25
+ Date:
26
+ - Sun, 16 Mar 2014 04:14:11 GMT
27
+ Content-Type:
28
+ - application/json
29
+ Connection:
30
+ - keep-alive
31
+ Content-Length:
32
+ - '80'
33
+ body:
34
+ encoding: UTF-8
35
+ string: '{"data":{"detections":[{"language":"en","isReliable":true,"confidence":21.33}]}}'
36
+ http_version:
37
+ recorded_at: Sun, 16 Mar 2014 04:14:10 GMT
38
+ - request:
39
+ method: get
40
+ uri: http://ws.detectlanguage.com/0.2/detect?key=demo&q=ceci%20est%20un%20texte%20en%20fran%C3%A7ais
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ''
44
+ headers:
45
+ Accept-Encoding:
46
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
47
+ Accept:
48
+ - '*/*'
49
+ User-Agent:
50
+ - Ruby
51
+ Host:
52
+ - ws.detectlanguage.com
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ Server:
59
+ - nginx/0.7.65
60
+ Date:
61
+ - Sun, 16 Mar 2014 04:18:35 GMT
62
+ Content-Type:
63
+ - application/json
64
+ Connection:
65
+ - keep-alive
66
+ Content-Length:
67
+ - '79'
68
+ body:
69
+ encoding: UTF-8
70
+ string: '{"data":{"detections":[{"language":"fr","isReliable":true,"confidence":9.24}]}}'
71
+ http_version:
72
+ recorded_at: Sun, 16 Mar 2014 04:18:35 GMT
73
+ - request:
74
+ method: get
75
+ uri: http://ws.detectlanguage.com/0.2/detect?key=demo&q=este%20es%20un%20texto%20espa%C3%B1ol
76
+ body:
77
+ encoding: US-ASCII
78
+ string: ''
79
+ headers:
80
+ Accept-Encoding:
81
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
82
+ Accept:
83
+ - '*/*'
84
+ User-Agent:
85
+ - Ruby
86
+ Host:
87
+ - ws.detectlanguage.com
88
+ response:
89
+ status:
90
+ code: 200
91
+ message: OK
92
+ headers:
93
+ Server:
94
+ - nginx/0.7.65
95
+ Date:
96
+ - Sun, 16 Mar 2014 04:24:45 GMT
97
+ Content-Type:
98
+ - application/json
99
+ Connection:
100
+ - keep-alive
101
+ Content-Length:
102
+ - '80'
103
+ body:
104
+ encoding: UTF-8
105
+ string: '{"data":{"detections":[{"language":"es","isReliable":true,"confidence":19.29}]}}'
106
+ http_version:
107
+ recorded_at: Sun, 16 Mar 2014 04:24:45 GMT
108
+ - request:
109
+ method: get
110
+ uri: http://ws.detectlanguage.com/0.2/detect?key=demo&q=%D1%8D%D1%82%D0%BE%20%D1%8F%D0%B2%D0%BB%D1%8F%D0%B5%D1%82%D1%81%D1%8F%20%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9%20%D1%82%D0%B5%D0%BA%D1%81%D1%82
111
+ body:
112
+ encoding: US-ASCII
113
+ string: ''
114
+ headers:
115
+ Accept-Encoding:
116
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
117
+ Accept:
118
+ - '*/*'
119
+ User-Agent:
120
+ - Ruby
121
+ Host:
122
+ - ws.detectlanguage.com
123
+ response:
124
+ status:
125
+ code: 200
126
+ message: OK
127
+ headers:
128
+ Server:
129
+ - nginx/0.7.65
130
+ Date:
131
+ - Sun, 16 Mar 2014 04:26:58 GMT
132
+ Content-Type:
133
+ - application/json
134
+ Connection:
135
+ - keep-alive
136
+ Content-Length:
137
+ - '80'
138
+ body:
139
+ encoding: UTF-8
140
+ string: '{"data":{"detections":[{"language":"ru","isReliable":true,"confidence":12.69}]}}'
141
+ http_version:
142
+ recorded_at: Sun, 16 Mar 2014 04:26:58 GMT
143
+ - request:
144
+ method: get
145
+ uri: http://ws.detectlanguage.com/0.2/detect?key=demo&q=1234
146
+ body:
147
+ encoding: US-ASCII
148
+ string: ''
149
+ headers:
150
+ Accept-Encoding:
151
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
152
+ Accept:
153
+ - '*/*'
154
+ User-Agent:
155
+ - Ruby
156
+ Host:
157
+ - ws.detectlanguage.com
158
+ response:
159
+ status:
160
+ code: 200
161
+ message: OK
162
+ headers:
163
+ Server:
164
+ - nginx/0.7.65
165
+ Date:
166
+ - Sun, 16 Mar 2014 04:33:09 GMT
167
+ Content-Type:
168
+ - application/json
169
+ Connection:
170
+ - keep-alive
171
+ Content-Length:
172
+ - '26'
173
+ body:
174
+ encoding: UTF-8
175
+ string: '{"data":{"detections":[]}}'
176
+ http_version:
177
+ recorded_at: Sun, 16 Mar 2014 04:33:09 GMT
178
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,17 @@
1
+ require 'tongues'
2
+ require 'vcr'
3
+ require 'webmock'
4
+
5
+ VCR.configure do |c|
6
+ c.cassette_library_dir = 'spec/cassettes'
7
+ c.hook_into :webmock
8
+ c.default_cassette_options = {:record => :new_episodes}
9
+ end
10
+
11
+ RSpec.configure do |config|
12
+ config.treat_symbols_as_metadata_keys_with_true_values = true
13
+ config.run_all_when_everything_filtered = true
14
+ config.filter_run :focus
15
+
16
+ config.order = 'random'
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tongues
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Zicat
@@ -119,6 +119,7 @@ files:
119
119
  - .gitignore
120
120
  - .idea/scopes/scope_settings.xml
121
121
  - .idea/tongues.iml
122
+ - .rspec
122
123
  - Gemfile
123
124
  - LICENSE.txt
124
125
  - README.md
@@ -135,6 +136,8 @@ files:
135
136
  - lib/tongues/core_ext/symbol.rb
136
137
  - lib/tongues/tongue.rb
137
138
  - lib/tongues/version.rb
139
+ - spec/cassettes/tongues.yml
140
+ - spec/spec_helper.rb
138
141
  - spec/tongues_spec.rb
139
142
  - tongues.gemspec
140
143
  homepage: https://github.com/alexzicat
@@ -162,5 +165,7 @@ signing_key:
162
165
  specification_version: 4
163
166
  summary: Small language detection gem
164
167
  test_files:
168
+ - spec/cassettes/tongues.yml
169
+ - spec/spec_helper.rb
165
170
  - spec/tongues_spec.rb
166
171
  has_rdoc: