date 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of date might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 76c531a81a5aaf0597367d8eaea3e7b2a7dd7847
4
- data.tar.gz: 384e9b0231e7888d79df4f3e85c1165bd4419563
2
+ SHA256:
3
+ metadata.gz: 0fa112c995a20e5310b0d736088be7c3abc5b3a6de817b4d511f65c957d6949e
4
+ data.tar.gz: ed868848f6cfa0f172296a511d1f1fe82e833ac469d4ba342ff8bd8f208ffc1a
5
5
  SHA512:
6
- metadata.gz: c9ea63e7c2271aef8be4cb3846beac070911af8a5e5c985932c7f415af23a08b70a878fee239a5cf09406e18749ca4ad1804c14ac420883ea3048620e54c5aff
7
- data.tar.gz: 89542c8337ab2b99f7aec9b51210149684501cf1021e875e32d292f7fd6fa756e773f947dc2018d721042f15fdfd74713e6ed395eee5bb6ee3990301633b896b
6
+ metadata.gz: cf7d8b67c199e8d4619893d5a4933663d64996a10d5baaf7381c6c9fe673cfed15d7ad04ff4df039f0704344568d5af2a469679cc670b208f3634125c456ba11
7
+ data.tar.gz: 9ce68c93915cf79ecddf6ed8a705b15fdc0a3555491e60dcc5ea7c8db7fb894adc5d8fc01e1c3247cb68012e9ff4d10f9d8621ddadb486a032ea5418d3a15248
@@ -6444,7 +6444,7 @@ d_lite_hash(VALUE self)
6444
6444
  h[2] = m_df(dat);
6445
6445
  h[3] = m_sf(dat);
6446
6446
  v = rb_memhash(h, sizeof(h));
6447
- return LONG2FIX(v);
6447
+ return ST2FIX(v);
6448
6448
  }
6449
6449
 
6450
6450
  #include "date_tmx.h"
@@ -6802,7 +6802,7 @@ date_strftime_internal(int argc, VALUE *argv, VALUE self,
6802
6802
  * %::z - hour, minute and second offset from UTC (e.g. +09:00:00)
6803
6803
  * %:::z - hour, minute and second offset from UTC
6804
6804
  * (e.g. +09, +09:30, +09:30:30)
6805
- * %Z - Time zone abbreviation name or something similar information.
6805
+ * %Z - Equivalent to %:z (e.g. +09:00)
6806
6806
  *
6807
6807
  * Weekday:
6808
6808
  * %A - The full weekday name (``Sunday'')
@@ -7710,8 +7710,8 @@ datetime_s_now(int argc, VALUE *argv, VALUE klass)
7710
7710
  s = 59;
7711
7711
  #ifdef HAVE_STRUCT_TM_TM_GMTOFF
7712
7712
  of = tm.tm_gmtoff;
7713
- #elif defined(HAVE_VAR_TIMEZONE)
7714
- #ifdef HAVE_VAR_ALTZONE
7713
+ #elif defined(HAVE_TIMEZONE)
7714
+ #ifdef HAVE_ALTZONE
7715
7715
  of = (long)-((tm.tm_isdst > 0) ? altzone : timezone);
7716
7716
  #else
7717
7717
  of = (long)-timezone;
@@ -8247,7 +8247,7 @@ dt_lite_to_s(VALUE self)
8247
8247
  * %::z - hour, minute and second offset from UTC (e.g. +09:00:00)
8248
8248
  * %:::z - hour, minute and second offset from UTC
8249
8249
  * (e.g. +09, +09:30, +09:30:30)
8250
- * %Z - Time zone abbreviation name or something similar information.
8250
+ * %Z - Equivalent to %:z (e.g. +09:00)
8251
8251
  *
8252
8252
  * Weekday:
8253
8253
  * %A - The full weekday name (``Sunday'')
@@ -1,4 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
  require 'mkmf'
3
+
3
4
  config_string("strict_warnflags") {|w| $warnflags += " #{w}"}
5
+
6
+ have_var("timezone", "time.h")
7
+ have_var("altzone", "time.h")
8
+
4
9
  create_makefile('date_core')
@@ -2,7 +2,7 @@
2
2
 
3
3
  .list.h:
4
4
  gperf -E -C -c -P -p -j1 -i 1 -g -o -t -N $(*F) $< \
5
- | sed 's/(int)(long)&((\(struct stringpool_t\) *\*)0)->\(stringpool_[a-z0-9]*\)/offsetof(\1, \2)/g' \
5
+ | sed -f $(top_srcdir)/tool/gperf.sed \
6
6
  > $(@F)
7
7
 
8
8
  zonetab.h: zonetab.list
@@ -1,4 +1,4 @@
1
- /* C code produced by gperf version 3.0.4 */
1
+ /* ANSI-C code produced by gperf version 3.1 */
2
2
  /* Command-line: gperf -E -C -c -P -p -j1 -i 1 -g -o -t -N zonetab zonetab.list */
3
3
  /* Computed positions: -k'1-4,$' */
4
4
 
@@ -26,9 +26,10 @@
26
26
  && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
27
27
  && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
28
28
  /* The character set is not based on ISO-646. */
29
- error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
29
+ #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gperf@gnu.org>."
30
30
  #endif
31
31
 
32
+ #define gperf_offsetof(s, n) (short)offsetof(struct s##_t, s##_str##n)
32
33
  #line 1 "zonetab.list"
33
34
 
34
35
  struct zone {
@@ -40,15 +41,15 @@ static const struct zone *zonetab();
40
41
  struct zone;
41
42
  /* maximum key range = 434, duplicates = 0 */
42
43
 
43
- #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)
44
- inline
45
- #elif defined(__GNUC__)
44
+ #ifdef __GNUC__
46
45
  __inline
46
+ #else
47
+ #ifdef __cplusplus
48
+ inline
49
+ #endif
47
50
  #endif
48
51
  static unsigned int
49
- hash (str, len)
50
- register const char *str;
51
- register unsigned int len;
52
+ hash (register const char *str, register size_t len)
52
53
  {
53
54
  static const unsigned short asso_values[] =
54
55
  {
@@ -79,7 +80,7 @@ hash (str, len)
79
80
  439, 439, 439, 439, 439, 439, 439, 439, 439, 439,
80
81
  439, 439, 439, 439, 439, 439, 439
81
82
  };
82
- register int hval = len;
83
+ register unsigned int hval = (unsigned int)len;
83
84
 
84
85
  switch (hval)
85
86
  {
@@ -96,7 +97,7 @@ hash (str, len)
96
97
  hval += asso_values[(unsigned char)str[0]+1];
97
98
  break;
98
99
  }
99
- return hval + asso_values[(unsigned char)str[len - 1]];
100
+ return (unsigned int)hval + asso_values[(unsigned char)str[len - 1]];
100
101
  }
101
102
 
102
103
  struct stringpool_t
@@ -446,16 +447,8 @@ static const struct stringpool_t stringpool_contents =
446
447
  "fiji"
447
448
  };
448
449
  #define stringpool ((const char *) &stringpool_contents)
449
- #ifdef __GNUC__
450
- __inline
451
- #if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
452
- __attribute__ ((__gnu_inline__))
453
- #endif
454
- #endif
455
450
  const struct zone *
456
- zonetab (str, len)
457
- register const char *str;
458
- register unsigned int len;
451
+ zonetab (register const char *str, register size_t len)
459
452
  {
460
453
  enum
461
454
  {
@@ -470,398 +463,398 @@ zonetab (str, len)
470
463
  {
471
464
  {-1}, {-1}, {-1}, {-1}, {-1},
472
465
  #line 37 "zonetab.list"
473
- {offsetof(struct stringpool_t, stringpool_str5), -5*3600},
466
+ {gperf_offsetof(stringpool, 5), -5*3600},
474
467
  #line 38 "zonetab.list"
475
- {offsetof(struct stringpool_t, stringpool_str6), -6*3600},
468
+ {gperf_offsetof(stringpool, 6), -6*3600},
476
469
  #line 24 "zonetab.list"
477
- {offsetof(struct stringpool_t, stringpool_str7), 4*3600},
470
+ {gperf_offsetof(stringpool, 7), 4*3600},
478
471
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
479
472
  #line 15 "zonetab.list"
480
- {offsetof(struct stringpool_t, stringpool_str14), -6*3600},
473
+ {gperf_offsetof(stringpool, 14), -6*3600},
481
474
  #line 16 "zonetab.list"
482
- {offsetof(struct stringpool_t, stringpool_str15), -5*3600},
475
+ {gperf_offsetof(stringpool, 15), -5*3600},
483
476
  #line 85 "zonetab.list"
484
- {offsetof(struct stringpool_t, stringpool_str16), 2*3600},
477
+ {gperf_offsetof(stringpool, 16), 2*3600},
485
478
  #line 71 "zonetab.list"
486
- {offsetof(struct stringpool_t, stringpool_str17), 1*3600},
479
+ {gperf_offsetof(stringpool, 17), 1*3600},
487
480
  #line 90 "zonetab.list"
488
- {offsetof(struct stringpool_t, stringpool_str18), 4*3600},
481
+ {gperf_offsetof(stringpool, 18), 4*3600},
489
482
  #line 79 "zonetab.list"
490
- {offsetof(struct stringpool_t, stringpool_str19), 2*3600},
483
+ {gperf_offsetof(stringpool, 19), 2*3600},
491
484
  #line 65 "zonetab.list"
492
- {offsetof(struct stringpool_t, stringpool_str20),-10*3600},
485
+ {gperf_offsetof(stringpool, 20),-10*3600},
493
486
  {-1},
494
487
  #line 17 "zonetab.list"
495
- {offsetof(struct stringpool_t, stringpool_str22), -7*3600},
488
+ {gperf_offsetof(stringpool, 22), -7*3600},
496
489
  #line 18 "zonetab.list"
497
- {offsetof(struct stringpool_t, stringpool_str23), -6*3600},
490
+ {gperf_offsetof(stringpool, 23), -6*3600},
498
491
  #line 84 "zonetab.list"
499
- {offsetof(struct stringpool_t, stringpool_str24), 2*3600},
492
+ {gperf_offsetof(stringpool, 24), 2*3600},
500
493
  #line 73 "zonetab.list"
501
- {offsetof(struct stringpool_t, stringpool_str25), 1*3600},
494
+ {gperf_offsetof(stringpool, 25), 1*3600},
502
495
  {-1},
503
496
  #line 82 "zonetab.list"
504
- {offsetof(struct stringpool_t, stringpool_str27), 2*3600},
497
+ {gperf_offsetof(stringpool, 27), 2*3600},
505
498
  {-1}, {-1},
506
499
  #line 47 "zonetab.list"
507
- {offsetof(struct stringpool_t, stringpool_str30), 0*3600},
500
+ {gperf_offsetof(stringpool, 30), 0*3600},
508
501
  #line 128 "zonetab.list"
509
- {offsetof(struct stringpool_t, stringpool_str31), -43200},
502
+ {gperf_offsetof(stringpool, 31), -43200},
510
503
  #line 78 "zonetab.list"
511
- {offsetof(struct stringpool_t, stringpool_str32), 1*3600},
504
+ {gperf_offsetof(stringpool, 32), 1*3600},
512
505
  #line 77 "zonetab.list"
513
- {offsetof(struct stringpool_t, stringpool_str33), 1*3600},
506
+ {gperf_offsetof(stringpool, 33), 1*3600},
514
507
  {-1},
515
508
  #line 95 "zonetab.list"
516
- {offsetof(struct stringpool_t, stringpool_str35), 7*3600},
509
+ {gperf_offsetof(stringpool, 35), 7*3600},
517
510
  #line 98 "zonetab.list"
518
- {offsetof(struct stringpool_t, stringpool_str36), 8*3600},
511
+ {gperf_offsetof(stringpool, 36), 8*3600},
519
512
  #line 25 "zonetab.list"
520
- {offsetof(struct stringpool_t, stringpool_str37), 5*3600},
513
+ {gperf_offsetof(stringpool, 37), 5*3600},
521
514
  #line 123 "zonetab.list"
522
- {offsetof(struct stringpool_t, stringpool_str38), 3600},
515
+ {gperf_offsetof(stringpool, 38), 3600},
523
516
  #line 122 "zonetab.list"
524
- {offsetof(struct stringpool_t, stringpool_str39), 21600},
517
+ {gperf_offsetof(stringpool, 39), 21600},
525
518
  #line 178 "zonetab.list"
526
- {offsetof(struct stringpool_t, stringpool_str40), 18000},
519
+ {gperf_offsetof(stringpool, 40), 18000},
527
520
  #line 120 "zonetab.list"
528
- {offsetof(struct stringpool_t, stringpool_str41), 34200},
521
+ {gperf_offsetof(stringpool, 41), 34200},
529
522
  #line 121 "zonetab.list"
530
- {offsetof(struct stringpool_t, stringpool_str42), -21600},
523
+ {gperf_offsetof(stringpool, 42), -21600},
531
524
  {-1},
532
525
  #line 13 "zonetab.list"
533
- {offsetof(struct stringpool_t, stringpool_str44), -5*3600},
526
+ {gperf_offsetof(stringpool, 44), -5*3600},
534
527
  #line 14 "zonetab.list"
535
- {offsetof(struct stringpool_t, stringpool_str45), -4*3600},
528
+ {gperf_offsetof(stringpool, 45), -4*3600},
536
529
  #line 124 "zonetab.list"
537
- {offsetof(struct stringpool_t, stringpool_str46), 3600},
530
+ {gperf_offsetof(stringpool, 46), 3600},
538
531
  #line 80 "zonetab.list"
539
- {offsetof(struct stringpool_t, stringpool_str47), 2*3600},
532
+ {gperf_offsetof(stringpool, 47), 2*3600},
540
533
  #line 164 "zonetab.list"
541
- {offsetof(struct stringpool_t, stringpool_str48), 25200},
534
+ {gperf_offsetof(stringpool, 48), 25200},
542
535
  #line 88 "zonetab.list"
543
- {offsetof(struct stringpool_t, stringpool_str49), 3*3600},
536
+ {gperf_offsetof(stringpool, 49), 3*3600},
544
537
  #line 87 "zonetab.list"
545
- {offsetof(struct stringpool_t, stringpool_str50), 3*3600},
538
+ {gperf_offsetof(stringpool, 50), 3*3600},
546
539
  #line 45 "zonetab.list"
547
- {offsetof(struct stringpool_t, stringpool_str51), 0*3600},
540
+ {gperf_offsetof(stringpool, 51), 0*3600},
548
541
  #line 101 "zonetab.list"
549
- {offsetof(struct stringpool_t, stringpool_str52),10*3600},
542
+ {gperf_offsetof(stringpool, 52),10*3600},
550
543
  #line 103 "zonetab.list"
551
- {offsetof(struct stringpool_t, stringpool_str53),11*3600},
544
+ {gperf_offsetof(stringpool, 53),11*3600},
552
545
  #line 160 "zonetab.list"
553
- {offsetof(struct stringpool_t, stringpool_str54), -10800},
546
+ {gperf_offsetof(stringpool, 54), -10800},
554
547
  #line 177 "zonetab.list"
555
- {offsetof(struct stringpool_t, stringpool_str55), 3600},
548
+ {gperf_offsetof(stringpool, 55), 3600},
556
549
  #line 23 "zonetab.list"
557
- {offsetof(struct stringpool_t, stringpool_str56), 3*3600},
550
+ {gperf_offsetof(stringpool, 56), 3*3600},
558
551
  #line 63 "zonetab.list"
559
- {offsetof(struct stringpool_t, stringpool_str57), -9*3600},
552
+ {gperf_offsetof(stringpool, 57), -9*3600},
560
553
  #line 59 "zonetab.list"
561
- {offsetof(struct stringpool_t, stringpool_str58), -8*3600},
554
+ {gperf_offsetof(stringpool, 58), -8*3600},
562
555
  #line 100 "zonetab.list"
563
- {offsetof(struct stringpool_t, stringpool_str59), 9*3600},
556
+ {gperf_offsetof(stringpool, 59), 9*3600},
564
557
  #line 57 "zonetab.list"
565
- {offsetof(struct stringpool_t, stringpool_str60), -4*3600},
558
+ {gperf_offsetof(stringpool, 60), -4*3600},
566
559
  #line 133 "zonetab.list"
567
- {offsetof(struct stringpool_t, stringpool_str61), -18000},
560
+ {gperf_offsetof(stringpool, 61), -18000},
568
561
  #line 54 "zonetab.list"
569
- {offsetof(struct stringpool_t, stringpool_str62),-3*3600},
562
+ {gperf_offsetof(stringpool, 62),-3*3600},
570
563
  #line 86 "zonetab.list"
571
- {offsetof(struct stringpool_t, stringpool_str63), 3*3600},
564
+ {gperf_offsetof(stringpool, 63), 3*3600},
572
565
  #line 175 "zonetab.list"
573
- {offsetof(struct stringpool_t, stringpool_str64), 28800},
566
+ {gperf_offsetof(stringpool, 64), 28800},
574
567
  #line 70 "zonetab.list"
575
- {offsetof(struct stringpool_t, stringpool_str65), 1*3600},
568
+ {gperf_offsetof(stringpool, 65), 1*3600},
576
569
  #line 96 "zonetab.list"
577
- {offsetof(struct stringpool_t, stringpool_str66), 8*3600},
570
+ {gperf_offsetof(stringpool, 66), 8*3600},
578
571
  #line 53 "zonetab.list"
579
- {offsetof(struct stringpool_t, stringpool_str67), -3*3600},
572
+ {gperf_offsetof(stringpool, 67), -3*3600},
580
573
  {-1},
581
574
  #line 49 "zonetab.list"
582
- {offsetof(struct stringpool_t, stringpool_str69),-2*3600},
575
+ {gperf_offsetof(stringpool, 69),-2*3600},
583
576
  {-1},
584
577
  #line 21 "zonetab.list"
585
- {offsetof(struct stringpool_t, stringpool_str71), 1*3600},
578
+ {gperf_offsetof(stringpool, 71), 1*3600},
586
579
  #line 131 "zonetab.list"
587
- {offsetof(struct stringpool_t, stringpool_str72), 7200},
580
+ {gperf_offsetof(stringpool, 72), 7200},
588
581
  #line 48 "zonetab.list"
589
- {offsetof(struct stringpool_t, stringpool_str73), -2*3600},
582
+ {gperf_offsetof(stringpool, 73), -2*3600},
590
583
  #line 126 "zonetab.list"
591
- {offsetof(struct stringpool_t, stringpool_str74), -21600},
584
+ {gperf_offsetof(stringpool, 74), -21600},
592
585
  #line 56 "zonetab.list"
593
- {offsetof(struct stringpool_t, stringpool_str75), -4*3600},
586
+ {gperf_offsetof(stringpool, 75), -4*3600},
594
587
  #line 52 "zonetab.list"
595
- {offsetof(struct stringpool_t, stringpool_str76), -3*3600},
588
+ {gperf_offsetof(stringpool, 76), -3*3600},
596
589
  #line 51 "zonetab.list"
597
- {offsetof(struct stringpool_t, stringpool_str77), -3*3600},
590
+ {gperf_offsetof(stringpool, 77), -3*3600},
598
591
  #line 129 "zonetab.list"
599
- {offsetof(struct stringpool_t, stringpool_str78), 10800},
592
+ {gperf_offsetof(stringpool, 78), 10800},
600
593
  #line 132 "zonetab.list"
601
- {offsetof(struct stringpool_t, stringpool_str79), -10800},
594
+ {gperf_offsetof(stringpool, 79), -10800},
602
595
  #line 99 "zonetab.list"
603
- {offsetof(struct stringpool_t, stringpool_str80), 9*3600},
596
+ {gperf_offsetof(stringpool, 80), 9*3600},
604
597
  #line 130 "zonetab.list"
605
- {offsetof(struct stringpool_t, stringpool_str81), 36000},
598
+ {gperf_offsetof(stringpool, 81), 36000},
606
599
  #line 39 "zonetab.list"
607
- {offsetof(struct stringpool_t, stringpool_str82), -7*3600},
600
+ {gperf_offsetof(stringpool, 82), -7*3600},
608
601
  #line 68 "zonetab.list"
609
- {offsetof(struct stringpool_t, stringpool_str83), -11*3600},
602
+ {gperf_offsetof(stringpool, 83), -11*3600},
610
603
  #line 33 "zonetab.list"
611
- {offsetof(struct stringpool_t, stringpool_str84), -1*3600},
604
+ {gperf_offsetof(stringpool, 84), -1*3600},
612
605
  #line 55 "zonetab.list"
613
- {offsetof(struct stringpool_t, stringpool_str85), -(3*3600+1800)},
606
+ {gperf_offsetof(stringpool, 85), -(3*3600+1800)},
614
607
  #line 50 "zonetab.list"
615
- {offsetof(struct stringpool_t, stringpool_str86), -(2*3600+1800)},
608
+ {gperf_offsetof(stringpool, 86), -(2*3600+1800)},
616
609
  #line 117 "zonetab.list"
617
- {offsetof(struct stringpool_t, stringpool_str87), -21600},
610
+ {gperf_offsetof(stringpool, 87), -21600},
618
611
  #line 125 "zonetab.list"
619
- {offsetof(struct stringpool_t, stringpool_str88), 39600},
612
+ {gperf_offsetof(stringpool, 88), 39600},
620
613
  #line 179 "zonetab.list"
621
- {offsetof(struct stringpool_t, stringpool_str89), 36000},
614
+ {gperf_offsetof(stringpool, 89), 36000},
622
615
  #line 67 "zonetab.list"
623
- {offsetof(struct stringpool_t, stringpool_str90),-10*3600},
616
+ {gperf_offsetof(stringpool, 90),-10*3600},
624
617
  #line 62 "zonetab.list"
625
- {offsetof(struct stringpool_t, stringpool_str91), -9*3600},
618
+ {gperf_offsetof(stringpool, 91), -9*3600},
626
619
  {-1},
627
620
  #line 165 "zonetab.list"
628
- {offsetof(struct stringpool_t, stringpool_str93), 28800},
621
+ {gperf_offsetof(stringpool, 93), 28800},
629
622
  {-1},
630
623
  #line 94 "zonetab.list"
631
- {offsetof(struct stringpool_t, stringpool_str95), 6*3600},
624
+ {gperf_offsetof(stringpool, 95), 6*3600},
632
625
  {-1},
633
626
  #line 159 "zonetab.list"
634
- {offsetof(struct stringpool_t, stringpool_str97), 10800},
627
+ {gperf_offsetof(stringpool, 97), 10800},
635
628
  #line 66 "zonetab.list"
636
- {offsetof(struct stringpool_t, stringpool_str98),-10*3600},
629
+ {gperf_offsetof(stringpool, 98),-10*3600},
637
630
  #line 61 "zonetab.list"
638
- {offsetof(struct stringpool_t, stringpool_str99),-9*3600},
631
+ {gperf_offsetof(stringpool, 99),-9*3600},
639
632
  #line 102 "zonetab.list"
640
- {offsetof(struct stringpool_t, stringpool_str100), 10*3600},
633
+ {gperf_offsetof(stringpool, 100), 10*3600},
641
634
  #line 92 "zonetab.list"
642
- {offsetof(struct stringpool_t, stringpool_str101), 5*3600},
635
+ {gperf_offsetof(stringpool, 101), 5*3600},
643
636
  #line 93 "zonetab.list"
644
- {offsetof(struct stringpool_t, stringpool_str102), (5*3600+1800)},
637
+ {gperf_offsetof(stringpool, 102), (5*3600+1800)},
645
638
  #line 76 "zonetab.list"
646
- {offsetof(struct stringpool_t, stringpool_str103), 1*3600},
639
+ {gperf_offsetof(stringpool, 103), 1*3600},
647
640
  #line 42 "zonetab.list"
648
- {offsetof(struct stringpool_t, stringpool_str104), -10*3600},
641
+ {gperf_offsetof(stringpool, 104), -10*3600},
649
642
  #line 91 "zonetab.list"
650
- {offsetof(struct stringpool_t, stringpool_str105), 4*3600},
643
+ {gperf_offsetof(stringpool, 105), 4*3600},
651
644
  {-1},
652
645
  #line 75 "zonetab.list"
653
- {offsetof(struct stringpool_t, stringpool_str107), 1*3600},
646
+ {gperf_offsetof(stringpool, 107), 1*3600},
654
647
  #line 118 "zonetab.list"
655
- {offsetof(struct stringpool_t, stringpool_str108), -3600},
648
+ {gperf_offsetof(stringpool, 108), -3600},
656
649
  #line 83 "zonetab.list"
657
- {offsetof(struct stringpool_t, stringpool_str109), 2*3600},
650
+ {gperf_offsetof(stringpool, 109), 2*3600},
658
651
  #line 138 "zonetab.list"
659
- {offsetof(struct stringpool_t, stringpool_str110), -10800},
652
+ {gperf_offsetof(stringpool, 110), -10800},
660
653
  {-1},
661
654
  #line 43 "zonetab.list"
662
- {offsetof(struct stringpool_t, stringpool_str112), -11*3600},
655
+ {gperf_offsetof(stringpool, 112), -11*3600},
663
656
  {-1},
664
657
  #line 74 "zonetab.list"
665
- {offsetof(struct stringpool_t, stringpool_str114), 1*3600},
658
+ {gperf_offsetof(stringpool, 114), 1*3600},
666
659
  #line 176 "zonetab.list"
667
- {offsetof(struct stringpool_t, stringpool_str115), 3600},
660
+ {gperf_offsetof(stringpool, 115), 3600},
668
661
  #line 30 "zonetab.list"
669
- {offsetof(struct stringpool_t, stringpool_str116), 10*3600},
662
+ {gperf_offsetof(stringpool, 116), 10*3600},
670
663
  #line 22 "zonetab.list"
671
- {offsetof(struct stringpool_t, stringpool_str117), 2*3600},
664
+ {gperf_offsetof(stringpool, 117), 2*3600},
672
665
  {-1},
673
666
  #line 32 "zonetab.list"
674
- {offsetof(struct stringpool_t, stringpool_str119), 12*3600},
667
+ {gperf_offsetof(stringpool, 119), 12*3600},
675
668
  #line 167 "zonetab.list"
676
- {offsetof(struct stringpool_t, stringpool_str120), 21600},
669
+ {gperf_offsetof(stringpool, 120), 21600},
677
670
  {-1},
678
671
  #line 81 "zonetab.list"
679
- {offsetof(struct stringpool_t, stringpool_str122), 2*3600},
672
+ {gperf_offsetof(stringpool, 122), 2*3600},
680
673
  {-1},
681
674
  #line 143 "zonetab.list"
682
- {offsetof(struct stringpool_t, stringpool_str124), 12600},
675
+ {gperf_offsetof(stringpool, 124), 12600},
683
676
  #line 97 "zonetab.list"
684
- {offsetof(struct stringpool_t, stringpool_str125), 8*3600},
677
+ {gperf_offsetof(stringpool, 125), 8*3600},
685
678
  #line 11 "zonetab.list"
686
- {offsetof(struct stringpool_t, stringpool_str126), 0*3600},
679
+ {gperf_offsetof(stringpool, 126), 0*3600},
687
680
  {-1},
688
681
  #line 36 "zonetab.list"
689
- {offsetof(struct stringpool_t, stringpool_str128), -4*3600},
682
+ {gperf_offsetof(stringpool, 128), -4*3600},
690
683
  #line 106 "zonetab.list"
691
- {offsetof(struct stringpool_t, stringpool_str129), 12*3600},
684
+ {gperf_offsetof(stringpool, 129), 12*3600},
692
685
  {-1},
693
686
  #line 105 "zonetab.list"
694
- {offsetof(struct stringpool_t, stringpool_str131),12*3600},
687
+ {gperf_offsetof(stringpool, 131),12*3600},
695
688
  #line 107 "zonetab.list"
696
- {offsetof(struct stringpool_t, stringpool_str132),13*3600},
689
+ {gperf_offsetof(stringpool, 132),13*3600},
697
690
  #line 149 "zonetab.list"
698
- {offsetof(struct stringpool_t, stringpool_str133), 23400},
691
+ {gperf_offsetof(stringpool, 133), 23400},
699
692
  {-1},
700
693
  #line 109 "zonetab.list"
701
- {offsetof(struct stringpool_t, stringpool_str135), -32400},
694
+ {gperf_offsetof(stringpool, 135), -32400},
702
695
  #line 19 "zonetab.list"
703
- {offsetof(struct stringpool_t, stringpool_str136), -8*3600},
696
+ {gperf_offsetof(stringpool, 136), -8*3600},
704
697
  #line 20 "zonetab.list"
705
- {offsetof(struct stringpool_t, stringpool_str137), -7*3600},
698
+ {gperf_offsetof(stringpool, 137), -7*3600},
706
699
  #line 162 "zonetab.list"
707
- {offsetof(struct stringpool_t, stringpool_str138), -14400},
700
+ {gperf_offsetof(stringpool, 138), -14400},
708
701
  #line 145 "zonetab.list"
709
- {offsetof(struct stringpool_t, stringpool_str139), 32400},
702
+ {gperf_offsetof(stringpool, 139), 32400},
710
703
  {-1}, {-1},
711
704
  #line 44 "zonetab.list"
712
- {offsetof(struct stringpool_t, stringpool_str142), -12*3600},
705
+ {gperf_offsetof(stringpool, 142), -12*3600},
713
706
  #line 26 "zonetab.list"
714
- {offsetof(struct stringpool_t, stringpool_str143), 6*3600},
707
+ {gperf_offsetof(stringpool, 143), 6*3600},
715
708
  #line 60 "zonetab.list"
716
- {offsetof(struct stringpool_t, stringpool_str144),-9*3600},
709
+ {gperf_offsetof(stringpool, 144),-9*3600},
717
710
  #line 58 "zonetab.list"
718
- {offsetof(struct stringpool_t, stringpool_str145),-8*3600},
711
+ {gperf_offsetof(stringpool, 145),-8*3600},
719
712
  {-1}, {-1},
720
713
  #line 119 "zonetab.list"
721
- {offsetof(struct stringpool_t, stringpool_str148), 14400},
714
+ {gperf_offsetof(stringpool, 148), 14400},
722
715
  {-1},
723
716
  #line 89 "zonetab.list"
724
- {offsetof(struct stringpool_t, stringpool_str150), 3*3600},
717
+ {gperf_offsetof(stringpool, 150), 3*3600},
725
718
  #line 104 "zonetab.list"
726
- {offsetof(struct stringpool_t, stringpool_str151),12*3600},
719
+ {gperf_offsetof(stringpool, 151),12*3600},
727
720
  {-1},
728
721
  #line 111 "zonetab.list"
729
- {offsetof(struct stringpool_t, stringpool_str153), 14400},
722
+ {gperf_offsetof(stringpool, 153), 14400},
730
723
  {-1},
731
724
  #line 34 "zonetab.list"
732
- {offsetof(struct stringpool_t, stringpool_str155), -2*3600},
725
+ {gperf_offsetof(stringpool, 155), -2*3600},
733
726
  #line 31 "zonetab.list"
734
- {offsetof(struct stringpool_t, stringpool_str156), 11*3600},
727
+ {gperf_offsetof(stringpool, 156), 11*3600},
735
728
  #line 147 "zonetab.list"
736
- {offsetof(struct stringpool_t, stringpool_str157), -7200},
729
+ {gperf_offsetof(stringpool, 157), -7200},
737
730
  {-1}, {-1},
738
731
  #line 172 "zonetab.list"
739
- {offsetof(struct stringpool_t, stringpool_str160), -18000},
732
+ {gperf_offsetof(stringpool, 160), -18000},
740
733
  {-1}, {-1}, {-1},
741
734
  #line 64 "zonetab.list"
742
- {offsetof(struct stringpool_t, stringpool_str164),-10*3600},
735
+ {gperf_offsetof(stringpool, 164),-10*3600},
743
736
  {-1}, {-1},
744
737
  #line 28 "zonetab.list"
745
- {offsetof(struct stringpool_t, stringpool_str167), 8*3600},
738
+ {gperf_offsetof(stringpool, 167), 8*3600},
746
739
  #line 137 "zonetab.list"
747
- {offsetof(struct stringpool_t, stringpool_str168), 7200},
740
+ {gperf_offsetof(stringpool, 168), 7200},
748
741
  #line 29 "zonetab.list"
749
- {offsetof(struct stringpool_t, stringpool_str169), 9*3600},
742
+ {gperf_offsetof(stringpool, 169), 9*3600},
750
743
  #line 155 "zonetab.list"
751
- {offsetof(struct stringpool_t, stringpool_str170), 25200},
744
+ {gperf_offsetof(stringpool, 170), 25200},
752
745
  #line 150 "zonetab.list"
753
- {offsetof(struct stringpool_t, stringpool_str171), 21600},
746
+ {gperf_offsetof(stringpool, 171), 21600},
754
747
  #line 154 "zonetab.list"
755
- {offsetof(struct stringpool_t, stringpool_str172), 28800},
748
+ {gperf_offsetof(stringpool, 172), 28800},
756
749
  {-1},
757
750
  #line 161 "zonetab.list"
758
- {offsetof(struct stringpool_t, stringpool_str174), -18000},
751
+ {gperf_offsetof(stringpool, 174), -18000},
759
752
  {-1}, {-1},
760
753
  #line 166 "zonetab.list"
761
- {offsetof(struct stringpool_t, stringpool_str177), 7200},
754
+ {gperf_offsetof(stringpool, 177), 7200},
762
755
  {-1}, {-1}, {-1},
763
756
  #line 115 "zonetab.list"
764
- {offsetof(struct stringpool_t, stringpool_str181), 36000},
757
+ {gperf_offsetof(stringpool, 181), 36000},
765
758
  #line 113 "zonetab.list"
766
- {offsetof(struct stringpool_t, stringpool_str182), -14400},
759
+ {gperf_offsetof(stringpool, 182), -14400},
767
760
  {-1}, {-1}, {-1},
768
761
  #line 146 "zonetab.list"
769
- {offsetof(struct stringpool_t, stringpool_str186), -21600},
762
+ {gperf_offsetof(stringpool, 186), -21600},
770
763
  {-1},
771
764
  #line 148 "zonetab.list"
772
- {offsetof(struct stringpool_t, stringpool_str188), -25200},
765
+ {gperf_offsetof(stringpool, 188), -25200},
773
766
  {-1},
774
767
  #line 127 "zonetab.list"
775
- {offsetof(struct stringpool_t, stringpool_str190), 28800},
768
+ {gperf_offsetof(stringpool, 190), 28800},
776
769
  #line 116 "zonetab.list"
777
- {offsetof(struct stringpool_t, stringpool_str191), -3600},
770
+ {gperf_offsetof(stringpool, 191), -3600},
778
771
  #line 142 "zonetab.list"
779
- {offsetof(struct stringpool_t, stringpool_str192), 19800},
772
+ {gperf_offsetof(stringpool, 192), 19800},
780
773
  {-1},
781
774
  #line 40 "zonetab.list"
782
- {offsetof(struct stringpool_t, stringpool_str194), -8*3600},
775
+ {gperf_offsetof(stringpool, 194), -8*3600},
783
776
  #line 112 "zonetab.list"
784
- {offsetof(struct stringpool_t, stringpool_str195), 10800},
777
+ {gperf_offsetof(stringpool, 195), 10800},
785
778
  #line 139 "zonetab.list"
786
- {offsetof(struct stringpool_t, stringpool_str196), 0},
779
+ {gperf_offsetof(stringpool, 196), 0},
787
780
  #line 152 "zonetab.list"
788
- {offsetof(struct stringpool_t, stringpool_str197), 43200},
781
+ {gperf_offsetof(stringpool, 197), 43200},
789
782
  #line 141 "zonetab.list"
790
- {offsetof(struct stringpool_t, stringpool_str198), -36000},
783
+ {gperf_offsetof(stringpool, 198), -36000},
791
784
  #line 27 "zonetab.list"
792
- {offsetof(struct stringpool_t, stringpool_str199), 7*3600},
785
+ {gperf_offsetof(stringpool, 199), 7*3600},
793
786
  #line 158 "zonetab.list"
794
- {offsetof(struct stringpool_t, stringpool_str200), 3600},
787
+ {gperf_offsetof(stringpool, 200), 3600},
795
788
  {-1}, {-1},
796
789
  #line 110 "zonetab.list"
797
- {offsetof(struct stringpool_t, stringpool_str203), 10800},
790
+ {gperf_offsetof(stringpool, 203), 10800},
798
791
  #line 163 "zonetab.list"
799
- {offsetof(struct stringpool_t, stringpool_str204), -39600},
792
+ {gperf_offsetof(stringpool, 204), -39600},
800
793
  #line 41 "zonetab.list"
801
- {offsetof(struct stringpool_t, stringpool_str205), -9*3600},
794
+ {gperf_offsetof(stringpool, 205), -9*3600},
802
795
  #line 35 "zonetab.list"
803
- {offsetof(struct stringpool_t, stringpool_str206), -3*3600},
796
+ {gperf_offsetof(stringpool, 206), -3*3600},
804
797
  #line 12 "zonetab.list"
805
- {offsetof(struct stringpool_t, stringpool_str207), 0*3600},
798
+ {gperf_offsetof(stringpool, 207), 0*3600},
806
799
  #line 169 "zonetab.list"
807
- {offsetof(struct stringpool_t, stringpool_str208), 36000},
800
+ {gperf_offsetof(stringpool, 208), 36000},
808
801
  #line 72 "zonetab.list"
809
- {offsetof(struct stringpool_t, stringpool_str209), 1*3600},
802
+ {gperf_offsetof(stringpool, 209), 1*3600},
810
803
  {-1},
811
804
  #line 153 "zonetab.list"
812
- {offsetof(struct stringpool_t, stringpool_str211), -12600},
805
+ {gperf_offsetof(stringpool, 211), -12600},
813
806
  {-1}, {-1}, {-1}, {-1}, {-1},
814
807
  #line 151 "zonetab.list"
815
- {offsetof(struct stringpool_t, stringpool_str217), 20700},
808
+ {gperf_offsetof(stringpool, 217), 20700},
816
809
  #line 114 "zonetab.list"
817
- {offsetof(struct stringpool_t, stringpool_str218), 34200},
810
+ {gperf_offsetof(stringpool, 218), 34200},
818
811
  {-1}, {-1},
819
812
  #line 140 "zonetab.list"
820
- {offsetof(struct stringpool_t, stringpool_str221), 7200},
813
+ {gperf_offsetof(stringpool, 221), 7200},
821
814
  {-1},
822
815
  #line 174 "zonetab.list"
823
- {offsetof(struct stringpool_t, stringpool_str223), 36000},
816
+ {gperf_offsetof(stringpool, 223), 36000},
824
817
  {-1}, {-1}, {-1}, {-1}, {-1},
825
818
  #line 46 "zonetab.list"
826
- {offsetof(struct stringpool_t, stringpool_str229), 0*3600},
819
+ {gperf_offsetof(stringpool, 229), 0*3600},
827
820
  {-1}, {-1}, {-1},
828
821
  #line 135 "zonetab.list"
829
- {offsetof(struct stringpool_t, stringpool_str233), 18000},
822
+ {gperf_offsetof(stringpool, 233), 18000},
830
823
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
831
824
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
832
825
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
833
826
  {-1}, {-1}, {-1}, {-1},
834
827
  #line 173 "zonetab.list"
835
- {offsetof(struct stringpool_t, stringpool_str265), -25200},
828
+ {gperf_offsetof(stringpool, 265), -25200},
836
829
  {-1}, {-1}, {-1},
837
830
  #line 144 "zonetab.list"
838
- {offsetof(struct stringpool_t, stringpool_str269), 7200},
831
+ {gperf_offsetof(stringpool, 269), 7200},
839
832
  {-1}, {-1},
840
833
  #line 180 "zonetab.list"
841
- {offsetof(struct stringpool_t, stringpool_str272), 32400},
834
+ {gperf_offsetof(stringpool, 272), 32400},
842
835
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
843
836
  #line 156 "zonetab.list"
844
- {offsetof(struct stringpool_t, stringpool_str279), -14400},
837
+ {gperf_offsetof(stringpool, 279), -14400},
845
838
  {-1}, {-1},
846
839
  #line 171 "zonetab.list"
847
- {offsetof(struct stringpool_t, stringpool_str282), 46800},
840
+ {gperf_offsetof(stringpool, 282), 46800},
848
841
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
849
842
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
850
843
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
851
844
  {-1}, {-1}, {-1}, {-1},
852
845
  #line 108 "zonetab.list"
853
- {offsetof(struct stringpool_t, stringpool_str314), 16200},
846
+ {gperf_offsetof(stringpool, 314), 16200},
854
847
  {-1}, {-1}, {-1}, {-1},
855
848
  #line 69 "zonetab.list"
856
- {offsetof(struct stringpool_t, stringpool_str319),-12*3600},
849
+ {gperf_offsetof(stringpool, 319),-12*3600},
857
850
  {-1}, {-1},
858
851
  #line 157 "zonetab.list"
859
- {offsetof(struct stringpool_t, stringpool_str322), -28800},
852
+ {gperf_offsetof(stringpool, 322), -28800},
860
853
  {-1}, {-1}, {-1}, {-1},
861
854
  #line 168 "zonetab.list"
862
- {offsetof(struct stringpool_t, stringpool_str327), 28800},
855
+ {gperf_offsetof(stringpool, 327), 28800},
863
856
  #line 134 "zonetab.list"
864
- {offsetof(struct stringpool_t, stringpool_str328), 7200},
857
+ {gperf_offsetof(stringpool, 328), 7200},
865
858
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
866
859
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
867
860
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
@@ -870,21 +863,21 @@ zonetab (str, len)
870
863
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
871
864
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
872
865
  #line 170 "zonetab.list"
873
- {offsetof(struct stringpool_t, stringpool_str392), 32400},
866
+ {gperf_offsetof(stringpool, 392), 32400},
874
867
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
875
868
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
876
869
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
877
870
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
878
871
  {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
879
872
  #line 136 "zonetab.list"
880
- {offsetof(struct stringpool_t, stringpool_str438), 43200}
873
+ {gperf_offsetof(stringpool, 438), 43200}
881
874
  };
882
875
 
883
876
  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
884
877
  {
885
- register int key = hash (str, len);
878
+ register unsigned int key = hash (str, len);
886
879
 
887
- if (key <= MAX_HASH_VALUE && key >= 0)
880
+ if (key <= MAX_HASH_VALUE)
888
881
  {
889
882
  register int o = wordlist[key].name;
890
883
  if (o >= 0)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: date
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tadayoshi Funaba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-02 00:00:00.000000000 Z
11
+ date: 2017-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: test-unit
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  description: A subclass of Object includes Comparable module for handling dates.
42
28
  email:
43
29
  -
@@ -56,7 +42,7 @@ files:
56
42
  - ext/date/zonetab.h
57
43
  - ext/date/zonetab.list
58
44
  - lib/date.rb
59
- homepage: https://www.ruby-lang.org
45
+ homepage: https://github.com/ruby/date
60
46
  licenses:
61
47
  - BSD-2-Clause
62
48
  metadata: {}
@@ -68,7 +54,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
54
  requirements:
69
55
  - - ">="
70
56
  - !ruby/object:Gem::Version
71
- version: 2.5.0dev
57
+ version: 2.4.0
72
58
  required_rubygems_version: !ruby/object:Gem::Requirement
73
59
  requirements:
74
60
  - - ">="
@@ -76,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
62
  version: '0'
77
63
  requirements: []
78
64
  rubyforge_project:
79
- rubygems_version: 2.6.12
65
+ rubygems_version: 2.7.3
80
66
  signing_key:
81
67
  specification_version: 4
82
68
  summary: A subclass of Object includes Comparable module for handling dates.