rdatasets 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rdatasets.rb +2 -0
- data/lib/rdatasets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08804bb07882f73d29469e7dc6eb3b660e9db4664938ce33bb21dd64503141c3'
|
4
|
+
data.tar.gz: d1f9152a07f9db0238dd2de2fb0e5af4fb3f788cffa214c92f934399613b2c48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b794b7321b4eba17a8f72d5dc51cb521920478a19bb0711e077e91e3c7131ff236dc7f07280a3279a426fcf10fbcb8017f1435f53b53e8d45555c8fb118ac125
|
7
|
+
data.tar.gz: dc575f9881a90ca262b16f513c78b6c4a249646a0acde2891f0e6fac9e49d1d43e8858af0033edc1d01262703a097ee035e09692f8fe7986520a168b5fdb59b8
|
data/Gemfile.lock
CHANGED
data/lib/rdatasets.rb
CHANGED
@@ -20,6 +20,8 @@ module RDatasets
|
|
20
20
|
# @return [String]
|
21
21
|
def filepath(package_name, dataset_name)
|
22
22
|
rdata_directory = File.expand_path('../data', __dir__)
|
23
|
+
package_name = package_name.to_s if package_name.kind_of? Symbol
|
24
|
+
dataset_name = dataset_name.to_s if dataset_name.kind_of? Symbol
|
23
25
|
dataset_name << '.csv'
|
24
26
|
File.join(rdata_directory, package_name, dataset_name)
|
25
27
|
end
|
data/lib/rdatasets/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdatasets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kojix2
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: daru
|