easytone 0.1.3 → 0.1.4

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: e96dcbc3f4299d26f587812b19cb9ad77ae1b852
4
- data.tar.gz: 793ee9f50ee23ff0f072aa68069c4930a5e06240
3
+ metadata.gz: bfd10027ce450d5c2b96e40ec148e441db05df36
4
+ data.tar.gz: 07535a2da88a976e51190de7729a283f725ec2aa
5
5
  SHA512:
6
- metadata.gz: ae4b09ebcae23ae609bd6436a3d918d5749553a0df4564e6b18765a7459acc2a0e865ff37a9be37da6519552344394778aa692886f917d6bb6972c831dea7892
7
- data.tar.gz: 1ab4aa3211c7e663fb38de0d016e0e87f1a0c56e3d8c3c756b620f019a602714ae2940a9132193a5c6376b8c76e57e5d812bb45b0eee5ee744cfc8e309aa2502
6
+ metadata.gz: 437b6f2cc2a3c4bc9cb18683e40e31128f8e7ee7c391d96f771c5b4ad6a60eaf5259e6109a92614a9b9e98f04bd13ce69f98829f384da327c4ce154df5752ed6
7
+ data.tar.gz: e2ac3c1678322bc5709c271e5d098e6bdfa706222c4e2323ef501f6f92d4a48efd7249d2e1ea0e586a032c26db4068e485f7dc011f787cbec2be23929a4e3c31
@@ -1,11 +1,11 @@
1
1
  require "easytone/version"
2
- require "tone.rb"
3
2
 
4
3
  module Easytone
5
-
6
- def self.tone(username, password, text, version = '2016-05-19')
7
- tone_url = "https://#{username}:#{password}@gateway.watsonplatform.net/tone-analyzer/api/v3/tone?version=#{version}&text=#{text}"
8
- response = JSON.parse(RestClient.get(tone_url))
9
- response["document_tone"]["tone_categories"][0]["tones"]
4
+ class tone_generator
5
+ def self.tone(username, password, text, version = '2016-05-19')
6
+ tone_url = "https://#{username}:#{password}@gateway.watsonplatform.net/tone-analyzer/api/v3/tone?version=#{version}&text=#{text}"
7
+ response = JSON.parse(RestClient.get(tone_url))
8
+ response["document_tone"]["tone_categories"][0]["tones"]
9
+ end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Easytone
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easytone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bowei Han
@@ -100,8 +100,6 @@ files:
100
100
  - easytone.gemspec
101
101
  - lib/easytone.rb
102
102
  - lib/easytone/version.rb
103
- - lib/test.rb
104
- - lib/tone.rb
105
103
  homepage: https://github.com/boweihan/easytone
106
104
  licenses:
107
105
  - MIT
@@ -1,3 +0,0 @@
1
- include './lib/easytone.rb'
2
-
3
- puts Easytone.tone
@@ -1,7 +0,0 @@
1
- class ToneClass
2
- def self.tone(username, password, text, version = '2016-05-19')
3
- tone_url = "https://#{username}:#{password}@gateway.watsonplatform.net/tone-analyzer/api/v3/tone?version=#{version}&text=#{text}"
4
- response = JSON.parse(RestClient.get(tone_url))
5
- response["document_tone"]["tone_categories"][0]["tones"]
6
- end
7
- end