strptime 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/Rakefile +1 -1
- data/ext/strptime/strftime.c +3 -1
- data/lib/strptime/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1de84bea96838779186c2643887ba29598169a2f
|
4
|
+
data.tar.gz: 8da629b484a3781a7231d0163f1787cc640a45cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd5f63e6ab4b74f9c7326455418c0ba1011ffedd7a95b9dd659cae3b036a7510c457bb4e3a364ec2c5f30408962d7aa72743a6964fef3d8607a6f5571ef6cf8b
|
7
|
+
data.tar.gz: fcd44777447817669688ab6b7e74b560000216df4b5b4b6586574005c1d682412e39943f652a04dae79d7d8c7ca11c29b235b488109ee5220be29d66a69d17f9
|
data/.travis.yml
CHANGED
data/Rakefile
CHANGED
@@ -31,6 +31,6 @@ namespace :build do
|
|
31
31
|
desc 'Build gems for Windows per rake-compiler-dock'
|
32
32
|
task :windows do
|
33
33
|
require 'rake_compiler_dock'
|
34
|
-
RakeCompilerDock.sh 'bundle && rake cross native gem RUBY_CC_VERSION=2.0.0:2.1.6:2.2.2:2.3.0:2.4.0'
|
34
|
+
RakeCompilerDock.sh 'bundle && rake cross native gem RUBY_CC_VERSION=2.0.0:2.1.6:2.2.2:2.3.0:2.4.0:2.5.0'
|
35
35
|
end
|
36
36
|
end
|
data/ext/strptime/strftime.c
CHANGED
@@ -74,7 +74,7 @@ strftime_exec0(void **pc, VALUE fmt, struct timespec *tsp, int gmtoff, size_t re
|
|
74
74
|
return Qnil;
|
75
75
|
}
|
76
76
|
|
77
|
-
result =
|
77
|
+
result = rb_enc_str_new(NULL, result_length, rb_enc_get(fmt));
|
78
78
|
p = RSTRING_PTR(result);
|
79
79
|
|
80
80
|
tsp->tv_sec += gmtoff;
|
@@ -491,5 +491,7 @@ Init_strftime(void)
|
|
491
491
|
rb_define_method(rb_cStrftime, "exec", strftime_exec, 1);
|
492
492
|
rb_define_method(rb_cStrftime, "execi", strftime_execi, 1);
|
493
493
|
rb_define_method(rb_cStrftime, "source", strftime_source, 0);
|
494
|
+
#ifndef HAVE_RB_TIME_UTC_OFFSET
|
494
495
|
id_gmtoff = rb_intern("gmtoff");
|
496
|
+
#endif
|
495
497
|
}
|
data/lib/strptime/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strptime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NARUSE, Yui
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|