translate_me 0.1.0 → 0.1.2

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: 336d323051902217623167a469a3a73dd1781999
4
- data.tar.gz: c720cb637373c8e5f2b340048358eed22235c339
3
+ metadata.gz: b41082666467a0202969aecc5597aaec42e104c7
4
+ data.tar.gz: 54c729fc7f5e8151063258beaa011a0fd74df7cb
5
5
  SHA512:
6
- metadata.gz: 2fc9e11c7ec1f56e3a70bcab55937125904e48c0be2a2a558dbc0607b719637a6aa3ef733cd1b8b00d86c6d42cd8d97a9e1c2dbbcbae6275e42049733531a3e0
7
- data.tar.gz: d5538e8d056280ba148874e53e4b9e035d0cd82c6738444533274c0b878b11c059458aa914727eafe05d0eaedbf1818bf109e3bf5376b41c3bf95dc8c302ff5f
6
+ metadata.gz: f6909ddecce73d09ac12880e5896f72ceec47ac9338c3390e89fd97c392cfbb6d379c8fdd4d2d8a1e8958328d4cdf5b03633c7fd26d9757dfc3db34221e877a9
7
+ data.tar.gz: 0612e7dfc02f1c13cad59d69867fa425853d4e6b08324c7b815d0f2020fe1c62410e2750edb03109036bdf2a01073d0ac354e9527734bdde3e5dd5678bb9b74c
data/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ [![Stories in Ready](https://badge.waffle.io/basestylo/translate_me.png?label=ready&title=Ready)](https://waffle.io/basestylo/translate_me)
2
+ [![Stories in Ready](https://badge.waffle.io/basestylo/translate_me.png?label=ready&title=Ready)](https://waffle.io/basestylo/translate_me)
3
+ [![Gem Version](https://badge.fury.io/rb/translate_me.svg)](https://badge.fury.io/rb/translate_me)
1
4
  # TranslateMe
2
5
 
3
6
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/translate_me`. To experiment with that code, run `bin/console` for an interactive prompt.
@@ -13,14 +13,15 @@ module TranslateMe
13
13
  html = Nokogiri::HTML(JSON.parse(google_response.body).last.last)
14
14
  response = {
15
15
  word: html.css("span")[3].children.text,
16
- synonyms: html.css(".tw-bilingual-translation").map{|e| e.text}
17
- }
16
+ synonyms: html.css(".tw-bilingual-translation").map{|e| e.text},
17
+ source_language: html.css("span")[5].text
18
+ }
18
19
  rescue JSON::ParserError => e
19
20
  puts e.message
20
21
  puts e.backtrace
21
22
  puts "URL: " + url
22
23
  puts "Body: " + body
23
- end
24
+ end
24
25
  return response || nil
25
26
  end
26
27
 
@@ -0,0 +1,5 @@
1
+ - V0.1.0 Google translate API working
2
+
3
+ - V0.1.1 Source Language detection
4
+
5
+ - v0.1.2 up version after yank
@@ -1,3 +1,3 @@
1
1
  module TranslateMe
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: translate_me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Martin Garcia
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-12 00:00:00.000000000 Z
11
+ date: 2016-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -104,6 +104,7 @@ files:
104
104
  - bin/console
105
105
  - bin/setup
106
106
  - lib/translate_me.rb
107
+ - lib/translate_me/CHANGELOG.md
107
108
  - lib/translate_me/version.rb
108
109
  - translate_me.gemspec
109
110
  homepage: https://github.com/basestylo/translate_me.
@@ -126,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
127
  version: '0'
127
128
  requirements: []
128
129
  rubyforge_project:
129
- rubygems_version: 2.4.8
130
+ rubygems_version: 2.5.1
130
131
  signing_key:
131
132
  specification_version: 4
132
133
  summary: Google translate for dummies.