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 +5 -5
- data/.gitignore +2 -0
- data/Gemfile.lock +3 -3
- data/chakin-rb.gemspec +1 -1
- data/lib/chakin-rb/chakin.rb +2 -1
- data/lib/chakin-rb/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 101e6f71bf9445e30473598577f9a34d769ef86b
|
4
|
+
data.tar.gz: c7c00f11e8fda927e65f89320a50358b9412ed25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e3f3a0d0450c78d76173c6e934a94909b6b8c25286bf4124600a42f82f0c35672c2b01fb72dc57e4a625bbb327fb078ebc47c1e8952945a3e2c8870e53e238c
|
7
|
+
data.tar.gz: bf4d328fb293a305fe28a21c9ec5f67fc3cad769adbb1c589f68d4705c5fafa837e6a998a7af4dcd0d6a354617bd73b1f00509bf6e4dce742a71109322c04f38
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
chakin-rb (0.1.
|
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
|
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
|
-
|
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"
|
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"
|
data/lib/chakin-rb/chakin.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/lib/chakin-rb/version.rb
CHANGED
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.
|
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: '
|
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: '
|
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
|
-
|
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
|