ipa_phonetics 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: 05d2e03a2443d98c6b035a5754d65f9aa4105addaf563d85a606d07b151494e3
4
- data.tar.gz: e98e10dfc840794f02abef931538a232019f6b65f01e9c8a98cc3029723ebbcb
3
+ metadata.gz: 71cc65fd25ea601bc9be909f50be39d157652bbc8bae6253bd72efaf2ba9c317
4
+ data.tar.gz: 6c2165fadec8d901cb9f645988c5ee5b95606ba79760b750be1c9819ffd767b8
5
5
  SHA512:
6
- metadata.gz: 182fccf5e77a6fa7b3b21d454e04e58c7d67268865724bd9d709de3664a244e778a2a62797d0b7ca2deac5200c5010a06cdd8c8dab0f6e5a2765662a4f3cb20d
7
- data.tar.gz: ba2fdf5e8b8d1676cd1388f1ab80a73e829810c9d1cd208ffa9740a364f0cb590f5603c557bd82250860521c184aea87cd399a3241e784f80cad8c3d3cf1e57e
6
+ metadata.gz: 783f4ea1773dcae93b5535ea881ac5fcdc7e747c008e6157c54dc43a378f4b81aff54b8a1d88849f1877cedd615c1610d67ddd2c18e40a9839d9d9ef2bae474f
7
+ data.tar.gz: 6d96ec933d103e02994037a9acab5777a12e98677ab26be5615049671cbc50c3d8be30633437c92aea3ce592dd17223c10b51eea8c7b3f1c3aa678a0431f7796
@@ -4,7 +4,7 @@ require "ipa_phonetics/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "ipa_phonetics"
7
- spec.version = "0.1.4"
7
+ spec.version = "0.1.5"
8
8
  spec.authors = ["nico_lrx"]
9
9
  spec.email = ["nicolas.leroux@sciencespo.fr"]
10
10
 
data/lib/ipa_phonetics.rb CHANGED
@@ -9,12 +9,14 @@ module IpaPhonetics
9
9
 
10
10
  @timeout = 1
11
11
 
12
+ ROOT = File.expand_path("../..", __FILE__)
13
+
12
14
  def IpaPhonetics.parseCSV(path)
13
- Hash[File.open("../data/#{path}.csv").read.split("\n").map {|ligne| ligne.split("#")}]
15
+ Hash[File.open("#{ROOT}/data/#{path}.csv").read.split("\n").map {|ligne| ligne.split("#")}]
14
16
  end
15
17
 
16
18
  def IpaPhonetics.exceptions
17
- @exceptions ||= JSON.parse(File.read("../data/dict.json"))
19
+ @exceptions ||= JSON.parse(File.read("#{ROOT}/data/dict.json"))
18
20
  end
19
21
 
20
22
  def IpaPhonetics.conversion
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ipa_phonetics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - nico_lrx