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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0db63ee7f925fd594cb1b5b1afa8145bd42403734efe23d9a5304961fdcaa318
4
- data.tar.gz: 395b713f8f0714126ca144c5c20ce9d069fe6431b3d9666b169986d6fb6be1a5
3
+ metadata.gz: '08804bb07882f73d29469e7dc6eb3b660e9db4664938ce33bb21dd64503141c3'
4
+ data.tar.gz: d1f9152a07f9db0238dd2de2fb0e5af4fb3f788cffa214c92f934399613b2c48
5
5
  SHA512:
6
- metadata.gz: a334e5825719b123191f6214e6b7a4e1c5ccab1cd41e91251fb86a7c8ea18743933bef8e6a285fa89781e2266a14e2468904a54d47724b5e551c83e985ab53be
7
- data.tar.gz: 1efb343a8dc72384b93d1ac654e10daef57a62456c61d0e551a58121b274e90828a431973b950c1045cd02fad75879b62b2a4a9e1d02dc35cd07d64b274beb48
6
+ metadata.gz: b794b7321b4eba17a8f72d5dc51cb521920478a19bb0711e077e91e3c7131ff236dc7f07280a3279a426fcf10fbcb8017f1435f53b53e8d45555c8fb118ac125
7
+ data.tar.gz: dc575f9881a90ca262b16f513c78b6c4a249646a0acde2891f0e6fac9e49d1d43e8858af0033edc1d01262703a097ee035e09692f8fe7986520a168b5fdb59b8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rdatasets (0.3.0)
4
+ rdatasets (0.3.1)
5
5
  daru
6
6
 
7
7
  GEM
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
@@ -1,3 +1,3 @@
1
1
  module RDatasets
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
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.0
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-16 00:00:00.000000000 Z
11
+ date: 2019-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daru