chakin-rb 0.1.0 → 0.1.1

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
- SHA256:
3
- metadata.gz: 0c29f5d7e52fff4041261147ae8045b6e88521bbd166d1b311ffb719f291f446
4
- data.tar.gz: 316b44e8d644ef6f83a5c938db10de66931c9872ed2aaf5b30f1ff975bae915c
2
+ SHA1:
3
+ metadata.gz: 101e6f71bf9445e30473598577f9a34d769ef86b
4
+ data.tar.gz: c7c00f11e8fda927e65f89320a50358b9412ed25
5
5
  SHA512:
6
- metadata.gz: 06bae0cd7aa9919134ccbacf995a1d99a191045241f5e512a84297d3f1ce1c1e0b64064f364432c56730c4f3d13997de4554c0f2e3ed8b802349060c459b75d1
7
- data.tar.gz: c87eeba3da4685889f9370a425dcaec4f1ef81af73493315c19b286e48c8e3c8a5840a23b091bdbb52604fff29ecb0e1777bbcae5eee8852cb7713d8081e276e
6
+ metadata.gz: 3e3f3a0d0450c78d76173c6e934a94909b6b8c25286bf4124600a42f82f0c35672c2b01fb72dc57e4a625bbb327fb078ebc47c1e8952945a3e2c8870e53e238c
7
+ data.tar.gz: bf4d328fb293a305fe28a21c9ec5f67fc3cad769adbb1c589f68d4705c5fafa837e6a998a7af4dcd0d6a354617bd73b1f00509bf6e4dce742a71109322c04f38
data/.gitignore CHANGED
@@ -9,3 +9,5 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+
13
+ Gemfile.lock
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chakin-rb (0.1.0)
4
+ chakin-rb (0.1.1)
5
5
  daru
6
6
  ruby-progressbar
7
7
 
@@ -44,11 +44,11 @@ PLATFORMS
44
44
  ruby
45
45
 
46
46
  DEPENDENCIES
47
- bundler (~> 1.17)
47
+ bundler
48
48
  chakin-rb!
49
49
  pry-byebug
50
50
  rake (~> 10.0)
51
51
  rspec (~> 3.0)
52
52
 
53
53
  BUNDLED WITH
54
- 1.17.2
54
+ 2.0.1
data/chakin-rb.gemspec CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
  spec.require_paths = ["lib"]
37
37
  spec.add_dependency "daru"
38
38
  spec.add_dependency "ruby-progressbar"
39
- spec.add_development_dependency "bundler", "~> 1.17"
39
+ spec.add_development_dependency "bundler"
40
40
  spec.add_development_dependency "rake", "~> 10.0"
41
41
  spec.add_development_dependency "rspec", "~> 3.0"
42
42
  spec.add_development_dependency "pry-byebug"
@@ -3,6 +3,7 @@ require 'csv'
3
3
  require 'daru'
4
4
  require 'ruby-progressbar'
5
5
  require 'net/http'
6
+ require 'fileutils'
6
7
 
7
8
  module Chakin
8
9
  class Error < StandardError; end
@@ -28,7 +29,7 @@ module Chakin
28
29
  progressbar = ProgressBar.create
29
30
  file_name = url.split('/')[-1]
30
31
 
31
- File.mkdir(save_dir) unless File.exist?(save_dir)
32
+ FileUtils.mkdir_p(save_dir) unless File.exist?(save_dir)
32
33
 
33
34
  save_path = File.join(save_dir, file_name)
34
35
 
@@ -1,3 +1,3 @@
1
1
  module Chakin
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chakin-rb
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
  - Joseph Emmanuel Dayo
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '1.17'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '1.17'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -139,7 +139,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
- rubygems_version: 3.0.3
142
+ rubyforge_project:
143
+ rubygems_version: 2.6.10
143
144
  signing_key:
144
145
  specification_version: 4
145
146
  summary: A port of the python chakin library that downloads pre-trained word vectors