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 +5 -5
- data/ext/date/date_core.c +5 -5
- data/ext/date/extconf.rb +5 -0
- data/ext/date/prereq.mk +1 -1
- data/ext/date/zonetab.h +184 -191
- metadata +5 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0fa112c995a20e5310b0d736088be7c3abc5b3a6de817b4d511f65c957d6949e
|
4
|
+
data.tar.gz: ed868848f6cfa0f172296a511d1f1fe82e833ac469d4ba342ff8bd8f208ffc1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf7d8b67c199e8d4619893d5a4933663d64996a10d5baaf7381c6c9fe673cfed15d7ad04ff4df039f0704344568d5af2a469679cc670b208f3634125c456ba11
|
7
|
+
data.tar.gz: 9ce68c93915cf79ecddf6ed8a705b15fdc0a3555491e60dcc5ea7c8db7fb894adc5d8fc01e1c3247cb68012e9ff4d10f9d8621ddadb486a032ea5418d3a15248
|
data/ext/date/date_core.c
CHANGED
@@ -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
|
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 -
|
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(
|
7714
|
-
#ifdef
|
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 -
|
8250
|
+
* %Z - Equivalent to %:z (e.g. +09:00)
|
8251
8251
|
*
|
8252
8252
|
* Weekday:
|
8253
8253
|
* %A - The full weekday name (``Sunday'')
|
data/ext/date/extconf.rb
CHANGED
data/ext/date/prereq.mk
CHANGED
data/ext/date/zonetab.h
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* C code produced by gperf version 3.
|
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-
|
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
|
-
#
|
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
|
-
{
|
466
|
+
{gperf_offsetof(stringpool, 5), -5*3600},
|
474
467
|
#line 38 "zonetab.list"
|
475
|
-
{
|
468
|
+
{gperf_offsetof(stringpool, 6), -6*3600},
|
476
469
|
#line 24 "zonetab.list"
|
477
|
-
{
|
470
|
+
{gperf_offsetof(stringpool, 7), 4*3600},
|
478
471
|
{-1}, {-1}, {-1}, {-1}, {-1}, {-1},
|
479
472
|
#line 15 "zonetab.list"
|
480
|
-
{
|
473
|
+
{gperf_offsetof(stringpool, 14), -6*3600},
|
481
474
|
#line 16 "zonetab.list"
|
482
|
-
{
|
475
|
+
{gperf_offsetof(stringpool, 15), -5*3600},
|
483
476
|
#line 85 "zonetab.list"
|
484
|
-
{
|
477
|
+
{gperf_offsetof(stringpool, 16), 2*3600},
|
485
478
|
#line 71 "zonetab.list"
|
486
|
-
{
|
479
|
+
{gperf_offsetof(stringpool, 17), 1*3600},
|
487
480
|
#line 90 "zonetab.list"
|
488
|
-
{
|
481
|
+
{gperf_offsetof(stringpool, 18), 4*3600},
|
489
482
|
#line 79 "zonetab.list"
|
490
|
-
{
|
483
|
+
{gperf_offsetof(stringpool, 19), 2*3600},
|
491
484
|
#line 65 "zonetab.list"
|
492
|
-
{
|
485
|
+
{gperf_offsetof(stringpool, 20),-10*3600},
|
493
486
|
{-1},
|
494
487
|
#line 17 "zonetab.list"
|
495
|
-
{
|
488
|
+
{gperf_offsetof(stringpool, 22), -7*3600},
|
496
489
|
#line 18 "zonetab.list"
|
497
|
-
{
|
490
|
+
{gperf_offsetof(stringpool, 23), -6*3600},
|
498
491
|
#line 84 "zonetab.list"
|
499
|
-
{
|
492
|
+
{gperf_offsetof(stringpool, 24), 2*3600},
|
500
493
|
#line 73 "zonetab.list"
|
501
|
-
{
|
494
|
+
{gperf_offsetof(stringpool, 25), 1*3600},
|
502
495
|
{-1},
|
503
496
|
#line 82 "zonetab.list"
|
504
|
-
{
|
497
|
+
{gperf_offsetof(stringpool, 27), 2*3600},
|
505
498
|
{-1}, {-1},
|
506
499
|
#line 47 "zonetab.list"
|
507
|
-
{
|
500
|
+
{gperf_offsetof(stringpool, 30), 0*3600},
|
508
501
|
#line 128 "zonetab.list"
|
509
|
-
{
|
502
|
+
{gperf_offsetof(stringpool, 31), -43200},
|
510
503
|
#line 78 "zonetab.list"
|
511
|
-
{
|
504
|
+
{gperf_offsetof(stringpool, 32), 1*3600},
|
512
505
|
#line 77 "zonetab.list"
|
513
|
-
{
|
506
|
+
{gperf_offsetof(stringpool, 33), 1*3600},
|
514
507
|
{-1},
|
515
508
|
#line 95 "zonetab.list"
|
516
|
-
{
|
509
|
+
{gperf_offsetof(stringpool, 35), 7*3600},
|
517
510
|
#line 98 "zonetab.list"
|
518
|
-
{
|
511
|
+
{gperf_offsetof(stringpool, 36), 8*3600},
|
519
512
|
#line 25 "zonetab.list"
|
520
|
-
{
|
513
|
+
{gperf_offsetof(stringpool, 37), 5*3600},
|
521
514
|
#line 123 "zonetab.list"
|
522
|
-
{
|
515
|
+
{gperf_offsetof(stringpool, 38), 3600},
|
523
516
|
#line 122 "zonetab.list"
|
524
|
-
{
|
517
|
+
{gperf_offsetof(stringpool, 39), 21600},
|
525
518
|
#line 178 "zonetab.list"
|
526
|
-
{
|
519
|
+
{gperf_offsetof(stringpool, 40), 18000},
|
527
520
|
#line 120 "zonetab.list"
|
528
|
-
{
|
521
|
+
{gperf_offsetof(stringpool, 41), 34200},
|
529
522
|
#line 121 "zonetab.list"
|
530
|
-
{
|
523
|
+
{gperf_offsetof(stringpool, 42), -21600},
|
531
524
|
{-1},
|
532
525
|
#line 13 "zonetab.list"
|
533
|
-
{
|
526
|
+
{gperf_offsetof(stringpool, 44), -5*3600},
|
534
527
|
#line 14 "zonetab.list"
|
535
|
-
{
|
528
|
+
{gperf_offsetof(stringpool, 45), -4*3600},
|
536
529
|
#line 124 "zonetab.list"
|
537
|
-
{
|
530
|
+
{gperf_offsetof(stringpool, 46), 3600},
|
538
531
|
#line 80 "zonetab.list"
|
539
|
-
{
|
532
|
+
{gperf_offsetof(stringpool, 47), 2*3600},
|
540
533
|
#line 164 "zonetab.list"
|
541
|
-
{
|
534
|
+
{gperf_offsetof(stringpool, 48), 25200},
|
542
535
|
#line 88 "zonetab.list"
|
543
|
-
{
|
536
|
+
{gperf_offsetof(stringpool, 49), 3*3600},
|
544
537
|
#line 87 "zonetab.list"
|
545
|
-
{
|
538
|
+
{gperf_offsetof(stringpool, 50), 3*3600},
|
546
539
|
#line 45 "zonetab.list"
|
547
|
-
{
|
540
|
+
{gperf_offsetof(stringpool, 51), 0*3600},
|
548
541
|
#line 101 "zonetab.list"
|
549
|
-
{
|
542
|
+
{gperf_offsetof(stringpool, 52),10*3600},
|
550
543
|
#line 103 "zonetab.list"
|
551
|
-
{
|
544
|
+
{gperf_offsetof(stringpool, 53),11*3600},
|
552
545
|
#line 160 "zonetab.list"
|
553
|
-
{
|
546
|
+
{gperf_offsetof(stringpool, 54), -10800},
|
554
547
|
#line 177 "zonetab.list"
|
555
|
-
{
|
548
|
+
{gperf_offsetof(stringpool, 55), 3600},
|
556
549
|
#line 23 "zonetab.list"
|
557
|
-
{
|
550
|
+
{gperf_offsetof(stringpool, 56), 3*3600},
|
558
551
|
#line 63 "zonetab.list"
|
559
|
-
{
|
552
|
+
{gperf_offsetof(stringpool, 57), -9*3600},
|
560
553
|
#line 59 "zonetab.list"
|
561
|
-
{
|
554
|
+
{gperf_offsetof(stringpool, 58), -8*3600},
|
562
555
|
#line 100 "zonetab.list"
|
563
|
-
{
|
556
|
+
{gperf_offsetof(stringpool, 59), 9*3600},
|
564
557
|
#line 57 "zonetab.list"
|
565
|
-
{
|
558
|
+
{gperf_offsetof(stringpool, 60), -4*3600},
|
566
559
|
#line 133 "zonetab.list"
|
567
|
-
{
|
560
|
+
{gperf_offsetof(stringpool, 61), -18000},
|
568
561
|
#line 54 "zonetab.list"
|
569
|
-
{
|
562
|
+
{gperf_offsetof(stringpool, 62),-3*3600},
|
570
563
|
#line 86 "zonetab.list"
|
571
|
-
{
|
564
|
+
{gperf_offsetof(stringpool, 63), 3*3600},
|
572
565
|
#line 175 "zonetab.list"
|
573
|
-
{
|
566
|
+
{gperf_offsetof(stringpool, 64), 28800},
|
574
567
|
#line 70 "zonetab.list"
|
575
|
-
{
|
568
|
+
{gperf_offsetof(stringpool, 65), 1*3600},
|
576
569
|
#line 96 "zonetab.list"
|
577
|
-
{
|
570
|
+
{gperf_offsetof(stringpool, 66), 8*3600},
|
578
571
|
#line 53 "zonetab.list"
|
579
|
-
{
|
572
|
+
{gperf_offsetof(stringpool, 67), -3*3600},
|
580
573
|
{-1},
|
581
574
|
#line 49 "zonetab.list"
|
582
|
-
{
|
575
|
+
{gperf_offsetof(stringpool, 69),-2*3600},
|
583
576
|
{-1},
|
584
577
|
#line 21 "zonetab.list"
|
585
|
-
{
|
578
|
+
{gperf_offsetof(stringpool, 71), 1*3600},
|
586
579
|
#line 131 "zonetab.list"
|
587
|
-
{
|
580
|
+
{gperf_offsetof(stringpool, 72), 7200},
|
588
581
|
#line 48 "zonetab.list"
|
589
|
-
{
|
582
|
+
{gperf_offsetof(stringpool, 73), -2*3600},
|
590
583
|
#line 126 "zonetab.list"
|
591
|
-
{
|
584
|
+
{gperf_offsetof(stringpool, 74), -21600},
|
592
585
|
#line 56 "zonetab.list"
|
593
|
-
{
|
586
|
+
{gperf_offsetof(stringpool, 75), -4*3600},
|
594
587
|
#line 52 "zonetab.list"
|
595
|
-
{
|
588
|
+
{gperf_offsetof(stringpool, 76), -3*3600},
|
596
589
|
#line 51 "zonetab.list"
|
597
|
-
{
|
590
|
+
{gperf_offsetof(stringpool, 77), -3*3600},
|
598
591
|
#line 129 "zonetab.list"
|
599
|
-
{
|
592
|
+
{gperf_offsetof(stringpool, 78), 10800},
|
600
593
|
#line 132 "zonetab.list"
|
601
|
-
{
|
594
|
+
{gperf_offsetof(stringpool, 79), -10800},
|
602
595
|
#line 99 "zonetab.list"
|
603
|
-
{
|
596
|
+
{gperf_offsetof(stringpool, 80), 9*3600},
|
604
597
|
#line 130 "zonetab.list"
|
605
|
-
{
|
598
|
+
{gperf_offsetof(stringpool, 81), 36000},
|
606
599
|
#line 39 "zonetab.list"
|
607
|
-
{
|
600
|
+
{gperf_offsetof(stringpool, 82), -7*3600},
|
608
601
|
#line 68 "zonetab.list"
|
609
|
-
{
|
602
|
+
{gperf_offsetof(stringpool, 83), -11*3600},
|
610
603
|
#line 33 "zonetab.list"
|
611
|
-
{
|
604
|
+
{gperf_offsetof(stringpool, 84), -1*3600},
|
612
605
|
#line 55 "zonetab.list"
|
613
|
-
{
|
606
|
+
{gperf_offsetof(stringpool, 85), -(3*3600+1800)},
|
614
607
|
#line 50 "zonetab.list"
|
615
|
-
{
|
608
|
+
{gperf_offsetof(stringpool, 86), -(2*3600+1800)},
|
616
609
|
#line 117 "zonetab.list"
|
617
|
-
{
|
610
|
+
{gperf_offsetof(stringpool, 87), -21600},
|
618
611
|
#line 125 "zonetab.list"
|
619
|
-
{
|
612
|
+
{gperf_offsetof(stringpool, 88), 39600},
|
620
613
|
#line 179 "zonetab.list"
|
621
|
-
{
|
614
|
+
{gperf_offsetof(stringpool, 89), 36000},
|
622
615
|
#line 67 "zonetab.list"
|
623
|
-
{
|
616
|
+
{gperf_offsetof(stringpool, 90),-10*3600},
|
624
617
|
#line 62 "zonetab.list"
|
625
|
-
{
|
618
|
+
{gperf_offsetof(stringpool, 91), -9*3600},
|
626
619
|
{-1},
|
627
620
|
#line 165 "zonetab.list"
|
628
|
-
{
|
621
|
+
{gperf_offsetof(stringpool, 93), 28800},
|
629
622
|
{-1},
|
630
623
|
#line 94 "zonetab.list"
|
631
|
-
{
|
624
|
+
{gperf_offsetof(stringpool, 95), 6*3600},
|
632
625
|
{-1},
|
633
626
|
#line 159 "zonetab.list"
|
634
|
-
{
|
627
|
+
{gperf_offsetof(stringpool, 97), 10800},
|
635
628
|
#line 66 "zonetab.list"
|
636
|
-
{
|
629
|
+
{gperf_offsetof(stringpool, 98),-10*3600},
|
637
630
|
#line 61 "zonetab.list"
|
638
|
-
{
|
631
|
+
{gperf_offsetof(stringpool, 99),-9*3600},
|
639
632
|
#line 102 "zonetab.list"
|
640
|
-
{
|
633
|
+
{gperf_offsetof(stringpool, 100), 10*3600},
|
641
634
|
#line 92 "zonetab.list"
|
642
|
-
{
|
635
|
+
{gperf_offsetof(stringpool, 101), 5*3600},
|
643
636
|
#line 93 "zonetab.list"
|
644
|
-
{
|
637
|
+
{gperf_offsetof(stringpool, 102), (5*3600+1800)},
|
645
638
|
#line 76 "zonetab.list"
|
646
|
-
{
|
639
|
+
{gperf_offsetof(stringpool, 103), 1*3600},
|
647
640
|
#line 42 "zonetab.list"
|
648
|
-
{
|
641
|
+
{gperf_offsetof(stringpool, 104), -10*3600},
|
649
642
|
#line 91 "zonetab.list"
|
650
|
-
{
|
643
|
+
{gperf_offsetof(stringpool, 105), 4*3600},
|
651
644
|
{-1},
|
652
645
|
#line 75 "zonetab.list"
|
653
|
-
{
|
646
|
+
{gperf_offsetof(stringpool, 107), 1*3600},
|
654
647
|
#line 118 "zonetab.list"
|
655
|
-
{
|
648
|
+
{gperf_offsetof(stringpool, 108), -3600},
|
656
649
|
#line 83 "zonetab.list"
|
657
|
-
{
|
650
|
+
{gperf_offsetof(stringpool, 109), 2*3600},
|
658
651
|
#line 138 "zonetab.list"
|
659
|
-
{
|
652
|
+
{gperf_offsetof(stringpool, 110), -10800},
|
660
653
|
{-1},
|
661
654
|
#line 43 "zonetab.list"
|
662
|
-
{
|
655
|
+
{gperf_offsetof(stringpool, 112), -11*3600},
|
663
656
|
{-1},
|
664
657
|
#line 74 "zonetab.list"
|
665
|
-
{
|
658
|
+
{gperf_offsetof(stringpool, 114), 1*3600},
|
666
659
|
#line 176 "zonetab.list"
|
667
|
-
{
|
660
|
+
{gperf_offsetof(stringpool, 115), 3600},
|
668
661
|
#line 30 "zonetab.list"
|
669
|
-
{
|
662
|
+
{gperf_offsetof(stringpool, 116), 10*3600},
|
670
663
|
#line 22 "zonetab.list"
|
671
|
-
{
|
664
|
+
{gperf_offsetof(stringpool, 117), 2*3600},
|
672
665
|
{-1},
|
673
666
|
#line 32 "zonetab.list"
|
674
|
-
{
|
667
|
+
{gperf_offsetof(stringpool, 119), 12*3600},
|
675
668
|
#line 167 "zonetab.list"
|
676
|
-
{
|
669
|
+
{gperf_offsetof(stringpool, 120), 21600},
|
677
670
|
{-1},
|
678
671
|
#line 81 "zonetab.list"
|
679
|
-
{
|
672
|
+
{gperf_offsetof(stringpool, 122), 2*3600},
|
680
673
|
{-1},
|
681
674
|
#line 143 "zonetab.list"
|
682
|
-
{
|
675
|
+
{gperf_offsetof(stringpool, 124), 12600},
|
683
676
|
#line 97 "zonetab.list"
|
684
|
-
{
|
677
|
+
{gperf_offsetof(stringpool, 125), 8*3600},
|
685
678
|
#line 11 "zonetab.list"
|
686
|
-
{
|
679
|
+
{gperf_offsetof(stringpool, 126), 0*3600},
|
687
680
|
{-1},
|
688
681
|
#line 36 "zonetab.list"
|
689
|
-
{
|
682
|
+
{gperf_offsetof(stringpool, 128), -4*3600},
|
690
683
|
#line 106 "zonetab.list"
|
691
|
-
{
|
684
|
+
{gperf_offsetof(stringpool, 129), 12*3600},
|
692
685
|
{-1},
|
693
686
|
#line 105 "zonetab.list"
|
694
|
-
{
|
687
|
+
{gperf_offsetof(stringpool, 131),12*3600},
|
695
688
|
#line 107 "zonetab.list"
|
696
|
-
{
|
689
|
+
{gperf_offsetof(stringpool, 132),13*3600},
|
697
690
|
#line 149 "zonetab.list"
|
698
|
-
{
|
691
|
+
{gperf_offsetof(stringpool, 133), 23400},
|
699
692
|
{-1},
|
700
693
|
#line 109 "zonetab.list"
|
701
|
-
{
|
694
|
+
{gperf_offsetof(stringpool, 135), -32400},
|
702
695
|
#line 19 "zonetab.list"
|
703
|
-
{
|
696
|
+
{gperf_offsetof(stringpool, 136), -8*3600},
|
704
697
|
#line 20 "zonetab.list"
|
705
|
-
{
|
698
|
+
{gperf_offsetof(stringpool, 137), -7*3600},
|
706
699
|
#line 162 "zonetab.list"
|
707
|
-
{
|
700
|
+
{gperf_offsetof(stringpool, 138), -14400},
|
708
701
|
#line 145 "zonetab.list"
|
709
|
-
{
|
702
|
+
{gperf_offsetof(stringpool, 139), 32400},
|
710
703
|
{-1}, {-1},
|
711
704
|
#line 44 "zonetab.list"
|
712
|
-
{
|
705
|
+
{gperf_offsetof(stringpool, 142), -12*3600},
|
713
706
|
#line 26 "zonetab.list"
|
714
|
-
{
|
707
|
+
{gperf_offsetof(stringpool, 143), 6*3600},
|
715
708
|
#line 60 "zonetab.list"
|
716
|
-
{
|
709
|
+
{gperf_offsetof(stringpool, 144),-9*3600},
|
717
710
|
#line 58 "zonetab.list"
|
718
|
-
{
|
711
|
+
{gperf_offsetof(stringpool, 145),-8*3600},
|
719
712
|
{-1}, {-1},
|
720
713
|
#line 119 "zonetab.list"
|
721
|
-
{
|
714
|
+
{gperf_offsetof(stringpool, 148), 14400},
|
722
715
|
{-1},
|
723
716
|
#line 89 "zonetab.list"
|
724
|
-
{
|
717
|
+
{gperf_offsetof(stringpool, 150), 3*3600},
|
725
718
|
#line 104 "zonetab.list"
|
726
|
-
{
|
719
|
+
{gperf_offsetof(stringpool, 151),12*3600},
|
727
720
|
{-1},
|
728
721
|
#line 111 "zonetab.list"
|
729
|
-
{
|
722
|
+
{gperf_offsetof(stringpool, 153), 14400},
|
730
723
|
{-1},
|
731
724
|
#line 34 "zonetab.list"
|
732
|
-
{
|
725
|
+
{gperf_offsetof(stringpool, 155), -2*3600},
|
733
726
|
#line 31 "zonetab.list"
|
734
|
-
{
|
727
|
+
{gperf_offsetof(stringpool, 156), 11*3600},
|
735
728
|
#line 147 "zonetab.list"
|
736
|
-
{
|
729
|
+
{gperf_offsetof(stringpool, 157), -7200},
|
737
730
|
{-1}, {-1},
|
738
731
|
#line 172 "zonetab.list"
|
739
|
-
{
|
732
|
+
{gperf_offsetof(stringpool, 160), -18000},
|
740
733
|
{-1}, {-1}, {-1},
|
741
734
|
#line 64 "zonetab.list"
|
742
|
-
{
|
735
|
+
{gperf_offsetof(stringpool, 164),-10*3600},
|
743
736
|
{-1}, {-1},
|
744
737
|
#line 28 "zonetab.list"
|
745
|
-
{
|
738
|
+
{gperf_offsetof(stringpool, 167), 8*3600},
|
746
739
|
#line 137 "zonetab.list"
|
747
|
-
{
|
740
|
+
{gperf_offsetof(stringpool, 168), 7200},
|
748
741
|
#line 29 "zonetab.list"
|
749
|
-
{
|
742
|
+
{gperf_offsetof(stringpool, 169), 9*3600},
|
750
743
|
#line 155 "zonetab.list"
|
751
|
-
{
|
744
|
+
{gperf_offsetof(stringpool, 170), 25200},
|
752
745
|
#line 150 "zonetab.list"
|
753
|
-
{
|
746
|
+
{gperf_offsetof(stringpool, 171), 21600},
|
754
747
|
#line 154 "zonetab.list"
|
755
|
-
{
|
748
|
+
{gperf_offsetof(stringpool, 172), 28800},
|
756
749
|
{-1},
|
757
750
|
#line 161 "zonetab.list"
|
758
|
-
{
|
751
|
+
{gperf_offsetof(stringpool, 174), -18000},
|
759
752
|
{-1}, {-1},
|
760
753
|
#line 166 "zonetab.list"
|
761
|
-
{
|
754
|
+
{gperf_offsetof(stringpool, 177), 7200},
|
762
755
|
{-1}, {-1}, {-1},
|
763
756
|
#line 115 "zonetab.list"
|
764
|
-
{
|
757
|
+
{gperf_offsetof(stringpool, 181), 36000},
|
765
758
|
#line 113 "zonetab.list"
|
766
|
-
{
|
759
|
+
{gperf_offsetof(stringpool, 182), -14400},
|
767
760
|
{-1}, {-1}, {-1},
|
768
761
|
#line 146 "zonetab.list"
|
769
|
-
{
|
762
|
+
{gperf_offsetof(stringpool, 186), -21600},
|
770
763
|
{-1},
|
771
764
|
#line 148 "zonetab.list"
|
772
|
-
{
|
765
|
+
{gperf_offsetof(stringpool, 188), -25200},
|
773
766
|
{-1},
|
774
767
|
#line 127 "zonetab.list"
|
775
|
-
{
|
768
|
+
{gperf_offsetof(stringpool, 190), 28800},
|
776
769
|
#line 116 "zonetab.list"
|
777
|
-
{
|
770
|
+
{gperf_offsetof(stringpool, 191), -3600},
|
778
771
|
#line 142 "zonetab.list"
|
779
|
-
{
|
772
|
+
{gperf_offsetof(stringpool, 192), 19800},
|
780
773
|
{-1},
|
781
774
|
#line 40 "zonetab.list"
|
782
|
-
{
|
775
|
+
{gperf_offsetof(stringpool, 194), -8*3600},
|
783
776
|
#line 112 "zonetab.list"
|
784
|
-
{
|
777
|
+
{gperf_offsetof(stringpool, 195), 10800},
|
785
778
|
#line 139 "zonetab.list"
|
786
|
-
{
|
779
|
+
{gperf_offsetof(stringpool, 196), 0},
|
787
780
|
#line 152 "zonetab.list"
|
788
|
-
{
|
781
|
+
{gperf_offsetof(stringpool, 197), 43200},
|
789
782
|
#line 141 "zonetab.list"
|
790
|
-
{
|
783
|
+
{gperf_offsetof(stringpool, 198), -36000},
|
791
784
|
#line 27 "zonetab.list"
|
792
|
-
{
|
785
|
+
{gperf_offsetof(stringpool, 199), 7*3600},
|
793
786
|
#line 158 "zonetab.list"
|
794
|
-
{
|
787
|
+
{gperf_offsetof(stringpool, 200), 3600},
|
795
788
|
{-1}, {-1},
|
796
789
|
#line 110 "zonetab.list"
|
797
|
-
{
|
790
|
+
{gperf_offsetof(stringpool, 203), 10800},
|
798
791
|
#line 163 "zonetab.list"
|
799
|
-
{
|
792
|
+
{gperf_offsetof(stringpool, 204), -39600},
|
800
793
|
#line 41 "zonetab.list"
|
801
|
-
{
|
794
|
+
{gperf_offsetof(stringpool, 205), -9*3600},
|
802
795
|
#line 35 "zonetab.list"
|
803
|
-
{
|
796
|
+
{gperf_offsetof(stringpool, 206), -3*3600},
|
804
797
|
#line 12 "zonetab.list"
|
805
|
-
{
|
798
|
+
{gperf_offsetof(stringpool, 207), 0*3600},
|
806
799
|
#line 169 "zonetab.list"
|
807
|
-
{
|
800
|
+
{gperf_offsetof(stringpool, 208), 36000},
|
808
801
|
#line 72 "zonetab.list"
|
809
|
-
{
|
802
|
+
{gperf_offsetof(stringpool, 209), 1*3600},
|
810
803
|
{-1},
|
811
804
|
#line 153 "zonetab.list"
|
812
|
-
{
|
805
|
+
{gperf_offsetof(stringpool, 211), -12600},
|
813
806
|
{-1}, {-1}, {-1}, {-1}, {-1},
|
814
807
|
#line 151 "zonetab.list"
|
815
|
-
{
|
808
|
+
{gperf_offsetof(stringpool, 217), 20700},
|
816
809
|
#line 114 "zonetab.list"
|
817
|
-
{
|
810
|
+
{gperf_offsetof(stringpool, 218), 34200},
|
818
811
|
{-1}, {-1},
|
819
812
|
#line 140 "zonetab.list"
|
820
|
-
{
|
813
|
+
{gperf_offsetof(stringpool, 221), 7200},
|
821
814
|
{-1},
|
822
815
|
#line 174 "zonetab.list"
|
823
|
-
{
|
816
|
+
{gperf_offsetof(stringpool, 223), 36000},
|
824
817
|
{-1}, {-1}, {-1}, {-1}, {-1},
|
825
818
|
#line 46 "zonetab.list"
|
826
|
-
{
|
819
|
+
{gperf_offsetof(stringpool, 229), 0*3600},
|
827
820
|
{-1}, {-1}, {-1},
|
828
821
|
#line 135 "zonetab.list"
|
829
|
-
{
|
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
|
-
{
|
828
|
+
{gperf_offsetof(stringpool, 265), -25200},
|
836
829
|
{-1}, {-1}, {-1},
|
837
830
|
#line 144 "zonetab.list"
|
838
|
-
{
|
831
|
+
{gperf_offsetof(stringpool, 269), 7200},
|
839
832
|
{-1}, {-1},
|
840
833
|
#line 180 "zonetab.list"
|
841
|
-
{
|
834
|
+
{gperf_offsetof(stringpool, 272), 32400},
|
842
835
|
{-1}, {-1}, {-1}, {-1}, {-1}, {-1},
|
843
836
|
#line 156 "zonetab.list"
|
844
|
-
{
|
837
|
+
{gperf_offsetof(stringpool, 279), -14400},
|
845
838
|
{-1}, {-1},
|
846
839
|
#line 171 "zonetab.list"
|
847
|
-
{
|
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
|
-
{
|
846
|
+
{gperf_offsetof(stringpool, 314), 16200},
|
854
847
|
{-1}, {-1}, {-1}, {-1},
|
855
848
|
#line 69 "zonetab.list"
|
856
|
-
{
|
849
|
+
{gperf_offsetof(stringpool, 319),-12*3600},
|
857
850
|
{-1}, {-1},
|
858
851
|
#line 157 "zonetab.list"
|
859
|
-
{
|
852
|
+
{gperf_offsetof(stringpool, 322), -28800},
|
860
853
|
{-1}, {-1}, {-1}, {-1},
|
861
854
|
#line 168 "zonetab.list"
|
862
|
-
{
|
855
|
+
{gperf_offsetof(stringpool, 327), 28800},
|
863
856
|
#line 134 "zonetab.list"
|
864
|
-
{
|
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
|
-
{
|
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
|
-
{
|
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
|
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
|
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-
|
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://
|
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.
|
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.
|
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.
|