Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ The following default gems are updated.
* resolv 0.6.3
* stringio 3.1.9.dev
* strscan 3.1.6.dev
* timeout 0.4.4
* timeout 0.5.0
* uri 1.1.1
* weakref 0.1.4
* zlib 3.2.2
Expand Down
15 changes: 0 additions & 15 deletions ext/-test-/time/leap_second.c

This file was deleted.

4 changes: 0 additions & 4 deletions include/ruby/backward.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
#include "ruby/internal/interpreter.h"
#include "ruby/backward/2/attributes.h"

#define RBIMPL_ATTR_DEPRECATED_SINCE(ver) RBIMPL_ATTR_DEPRECATED(("since " #ver))
#define RBIMPL_ATTR_DEPRECATED_INTERNAL(ver) RBIMPL_ATTR_DEPRECATED(("since "#ver", also internal"))
#define RBIMPL_ATTR_DEPRECATED_INTERNAL_ONLY() RBIMPL_ATTR_DEPRECATED(("only for internal use"))

RBIMPL_ATTR_DEPRECATED_INTERNAL_ONLY() void rb_clear_constant_cache(void);

/* from version.c */
Expand Down
7 changes: 7 additions & 0 deletions include/ruby/internal/attr/deprecated.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,11 @@
# define RBIMPL_ATTR_DEPRECATED_EXT(msg) RBIMPL_ATTR_DEPRECATED(msg)
#endif

#define RBIMPL_ATTR_DEPRECATED_SINCE(ver) \
RBIMPL_ATTR_DEPRECATED(("since " #ver))
#define RBIMPL_ATTR_DEPRECATED_INTERNAL(ver) \
RBIMPL_ATTR_DEPRECATED(("since "#ver", also internal"))
#define RBIMPL_ATTR_DEPRECATED_INTERNAL_ONLY() \
RBIMPL_ATTR_DEPRECATED(("only for internal use"))

#endif /* RBIMPL_ATTR_DEPRECATED_H */
2 changes: 0 additions & 2 deletions include/ruby/internal/intern/vm.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ VALUE rb_check_funcall(VALUE recv, ID mid, int argc, const VALUE *argv);
*/
VALUE rb_check_funcall_kw(VALUE recv, ID mid, int argc, const VALUE *argv, int kw_splat);

#ifdef RBIMPL_ATTR_DEPRECATED_INTERNAL
/**
* This API is practically a variant of rb_proc_call_kw() now. Historically
* when there still was a concept called `$SAFE`, this was an API for that.
Expand All @@ -112,7 +111,6 @@ VALUE rb_check_funcall_kw(VALUE recv, ID mid, int argc, const VALUE *argv, int k
*/
RBIMPL_ATTR_DEPRECATED_INTERNAL(4.0)
VALUE rb_eval_cmd_kw(VALUE cmd, VALUE arg, int kw_splat);
#endif

/**
* Identical to rb_funcallv(), except it takes Ruby's array instead of C's.
Expand Down
7 changes: 2 additions & 5 deletions internal/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,8 @@ struct timeval rb_time_timeval(VALUE);

RUBY_SYMBOL_EXPORT_BEGIN
/* time.c (export) */
void ruby_reset_leap_second_info(void);
#ifdef RBIMPL_ATTR_DEPRECATED_INTERNAL_ONLY
RBIMPL_ATTR_DEPRECATED_INTERNAL_ONLY()
#endif
void ruby_reset_timezone(const char *);
RUBY_SYMBOL_EXPORT_END

void ruby_reset_timezone(const char *);

#endif /* INTERNAL_TIME_H */
2 changes: 1 addition & 1 deletion lib/timeout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

module Timeout
# The version
VERSION = "0.4.4"
VERSION = "0.5.0"

# Internal error raised to when a timeout is triggered.
class ExitException < Exception
Expand Down
1 change: 0 additions & 1 deletion test/ruby/test_time_tz.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: false
require 'test/unit'
require '-test-/time'

class TestTimeTZ < Test::Unit::TestCase
has_right_tz = true
Expand Down
2 changes: 2 additions & 0 deletions time.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,8 @@ get_tzname(int dst)
}
#endif

static void ruby_reset_leap_second_info(void);

void
ruby_reset_timezone(const char *val)
{
Expand Down