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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55968a7fd384b067d32c78c60e3e608beb7524e0
4
- data.tar.gz: 052bed745e3c3b49c8b75bd91c47549aabf17860
3
+ metadata.gz: 1de84bea96838779186c2643887ba29598169a2f
4
+ data.tar.gz: 8da629b484a3781a7231d0163f1787cc640a45cf
5
5
  SHA512:
6
- metadata.gz: 781ee7f066121721bfc9b18a4c0ce59aa88d3ea3d12d45c1be3bdd4a32e82f4488ac96bdac01a5f466ed12b5d0515dae538420c3d7094564d9e306e94dcb07c0
7
- data.tar.gz: 9ae0d4de2bcfbf7955fa0664f30ff812f41808f6cfecf3f2127168c818b02a239d94f13a8b7005bf6dc10b1601dd3c946135b052622423aaf819b418b8edc582
6
+ metadata.gz: fd5f63e6ab4b74f9c7326455418c0ba1011ffedd7a95b9dd659cae3b036a7510c457bb4e3a364ec2c5f30408962d7aa72743a6964fef3d8607a6f5571ef6cf8b
7
+ data.tar.gz: fcd44777447817669688ab6b7e74b560000216df4b5b4b6586574005c1d682412e39943f652a04dae79d7d8c7ca11c29b235b488109ee5220be29d66a69d17f9
@@ -9,6 +9,9 @@ rvm:
9
9
  - 2.2.4-clang
10
10
  - 2.3.0
11
11
  - 2.3.0-clang
12
+ - 2.4.2
13
+ - 2.4.2-clang
14
+ - 2.5.0
12
15
  - ruby-head
13
16
  matrix:
14
17
  allow_failures:
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
@@ -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 = rb_str_new(NULL, result_length);
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
  }
@@ -1,3 +1,3 @@
1
1
  class Strptime
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-19 00:00:00.000000000 Z
11
+ date: 2017-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler