phonetics 3.0.4 → 3.0.5

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
  SHA256:
3
- metadata.gz: df982a39ea84bcad837697929c9ca98dbc210fced8c8e736510096dd292479a7
4
- data.tar.gz: b4e36c077459700b05aa52f051e3545862625417e183f33ddd4fe6412ae79f93
3
+ metadata.gz: 94481afa417879a8512b0527cfa7b120dde840a5d0df59800591160a8651f43c
4
+ data.tar.gz: e0ffd0cacb7ca1a79d88d7509c8a98dd10b86ef33c45991c31dde37f8b909d45
5
5
  SHA512:
6
- metadata.gz: 4d6706c00c080eb80f01eb160326cad6ddbc4c787d78699c647f0f303889c9967c4623ce0504b388202b4120463abaf913dce90736b598863712385d062454d6
7
- data.tar.gz: a27512423f6161224e726c5c18a746c12ea6a305a7378beb11f40fa518ed90adaa953dc73d7c3c8788dd3eafbd56c543fbdefc0f6e5db5688beffd6c0631c13b
6
+ metadata.gz: eb8566f0c4043fab8bd4d9183ccb0b9aa20a8a4fcd3dfbf0de250584dd69ce057382cd3cc1e2584ee48c83422cc8cabc56cb4a35a8b0a8f7330ae620f67eb9c1
7
+ data.tar.gz: 244c9dd1d10c343ed3051d2f2d039af9e39ade146f4b48cf6f05e666f95e856ec2956170cfeaf6bb05fef54fd79852866e3d5300a9049e6073babc18261e08ca
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.4
1
+ 3.0.5
@@ -4,8 +4,8 @@ require 'open-uri'
4
4
  require 'json'
5
5
 
6
6
  module Phonetics
7
- def self.transcription_for(word)
8
- Transcriptions[word]
7
+ def self.transcription_for(phrase)
8
+ phrase.downcase.split(' ').map { |word| Transcriptions[word] }.join
9
9
  end
10
10
 
11
11
  module Transcriptions
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phonetics
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Danger