timesteps 0.9.7 → 0.9.9

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: bac0d24992c8693974390e294212ee592b8b1974486d8ffe95704550810ade9e
4
- data.tar.gz: e1da906f7b7e7adc85e597dfc14dc8229ff3625f2be3652c599f56a476a10e95
3
+ metadata.gz: b5e250a6b62bd9f9ac48c4a23390fd8dbc50a887c65c020a8e5a31c34231699c
4
+ data.tar.gz: b0e3d2bd61e0ca504eb904398092f575a0e75ac12e2b34b7c5e52afc97a97749
5
5
  SHA512:
6
- metadata.gz: e2e1b74b4052d4c16d2c4538c98f7328591a317494c6937a7a48d09c751037693d4235cd4a6cf73fb24f993f8a6d35a24cbcef0f4862b6b7e31ec965e552f725
7
- data.tar.gz: c7beea6d38d54bfda596c8f5ea4b77f8ebc68660bc3cf1d7fe7c2305a6a63a7966a925caa8b579538010e14cee370934f7c68a115276a9c64b67d04fa0a69dc5
6
+ metadata.gz: 4b41b5827d9535d55a86b30e2bf8e64d95ea7d9db62282af44b2b0bc6ed89c640f6261232cab56e294355b65b6092db40ba32397681b99d38b9c591ef2dd6a68
7
+ data.tar.gz: 349f595b0f3d10c5babdc26aec689b7cf0826de7e1a4cd879af7a6cdf3ccbc6cb77ad86bf983cfa6913ac4595bed076efd4ec7fc5dd0774f6476054d27b7bba8
@@ -0,0 +1 @@
1
+ --no-private
data/NEWS.md ADDED
@@ -0,0 +1,8 @@
1
+ NEWS
2
+ ====
3
+
4
+ 0.9.8 -> 0.9.9
5
+ --------------
6
+
7
+ * [Mod] TimeStep::Range.new was modified to accept `start` and `last` argument of mixed type (Integer, DateTime, DateTimeLike, String).
8
+
@@ -13,16 +13,15 @@ class TimeStep::Range
13
13
  if last
14
14
  case start
15
15
  when Numeric
16
- raise "start and last types doesn't match" unless last.is_a?(Numeric)
17
16
  when DateTime, DateTimeLike, String
18
- if last.is_a?(Integer)
19
- start = timestep.index_at(start)
20
- last = start + last - 1
21
- else
22
- raise "start and last types doesn't match" unless last.is_a?(start.class)
23
- start = timestep.index_at(start)
24
- last = timestep.index_at(last)
25
- end
17
+ start = timestep.index_at(start)
18
+ else
19
+ raise "unknown type of argument"
20
+ end
21
+ case last
22
+ when Numeric
23
+ when DateTime, DateTimeLike, String
24
+ last = timestep.index_at(last)
26
25
  else
27
26
  raise "unknown argument"
28
27
  end
@@ -1,8 +1,8 @@
1
1
 
2
2
  Gem::Specification::new do |s|
3
- version = "0.9.7"
3
+ version = "0.9.9"
4
4
 
5
- files = Dir.glob("**/*") - [
5
+ files = Dir.glob("**/*") + [".yardopts"] - [
6
6
  Dir.glob("timesteps-*.gem"),
7
7
  Dir.glob("doc/**/*"),
8
8
  Dir.glob("examples/**/*"),
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timesteps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroki Motoyoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-05 00:00:00.000000000 Z
11
+ date: 2020-07-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: " A library for time conversion and intercomparison of multiple time
14
14
  series data \n in the case of handling time series data of the type that specifies
@@ -22,7 +22,9 @@ executables: []
22
22
  extensions: []
23
23
  extra_rdoc_files: []
24
24
  files:
25
+ - ".yardopts"
25
26
  - LICENSES
27
+ - NEWS.md
26
28
  - Note.ja.md
27
29
  - README.md
28
30
  - Rakefile