sixarm_ruby_ramp 5.0.1 → 5.0.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
  SHA256:
3
- metadata.gz: b8377c28e20dd8a37ea6f3a9e03c58e23663f4dd2a2866f2b2269557afc0b164
4
- data.tar.gz: be2b8beafb9a9bc5817a56d09d89eec03cb150705e47bc9ce30236974f545bbb
3
+ metadata.gz: 839c3265f75b901d0ad6b61eb8a7a7e8e2eb4b5c6e3114176f37aff9c6746aa4
4
+ data.tar.gz: 93064e3e776927e88e37fe17deaf54b0ebf6e9dcb6b4ce2609b1e0ce35ba3ee6
5
5
  SHA512:
6
- metadata.gz: cd7786198c1c85f6b337bb92b899bc397f81721820fd84bf39cd49058e5ff3f9083094124322de9f00faabcecd37c50ee4b47e991d60b2c96c31287e4058442e
7
- data.tar.gz: ed7663c2c576374315ac23eb3222bdbcdf41af5e2e8c38deda07f8e3acc21dacdf3a41e2eb2e1bb422bbabe9d1698aab64ff93c8200c3a00b93c1e02d04c58a2
6
+ metadata.gz: 964f63b618b580f50e1d3a33e62a6c1f1d52d98ec01e4f676f67f4ce99389204715ddd5415f2bac5ee5ee791699675ecbf39e343d6e28847749f62cdc76c313f
7
+ data.tar.gz: eff91d25db6ea9a07bfd572d30a0ac649d615cb6e3cd9cba73b6474e822cc9c5113c71a0a068cf642e7a85972ccf1a894492f13fcf7f2deadefbcd85eff9b9ce
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -23,13 +23,13 @@ class Class
23
23
  saved_private_instance_methods = self.private_instance_methods
24
24
  saved_protected_instance_methods = self.protected_instance_methods
25
25
  self.class_eval {
26
- public *saved_private_instance_methods
27
- public *saved_protected_instance_methods
26
+ public(*saved_private_instance_methods)
27
+ public(*saved_protected_instance_methods)
28
28
  }
29
29
  yield
30
30
  self.class_eval {
31
- private *saved_private_instance_methods
32
- protected *saved_protected_instance_methods
31
+ private(*saved_private_instance_methods)
32
+ protected(*saved_protected_instance_methods)
33
33
  }
34
34
  end
35
35
 
@@ -4,35 +4,6 @@
4
4
 
5
5
  class Time
6
6
 
7
-
8
- # @return [String] a time stamp string in standard format: "YYYY-MM-DD HH:MM:SSZ"
9
- #
10
- # This standard format is specified in IETF RFC 3339 and ISO 8601.
11
- #
12
- # @see http://www.ietf.org/rfc/rfc3339.txt
13
- #
14
- # @example
15
- # Time.now.stamp
16
- # => "2010-12-31 12:59:59Z"
17
-
18
- def stamp
19
- getutc.strftime('%Y-%m-%d %H:%M:%SZ')
20
- end
21
-
22
-
23
- # Shorthand for Time.now.stamp
24
- #
25
- # @example
26
- # Time.stamp
27
- # => "2010-12-31 12:59:59Z"
28
- #
29
- # @return [String] Time.now.stamp
30
-
31
- def self.stamp
32
- now.stamp
33
- end
34
-
35
-
36
7
  # @return [String] time packed into a short string: "YYYYMMDDHHMMSS"
37
8
  #
38
9
  # The time is converted to UTC.
@@ -3,16 +3,6 @@ require "sixarm_ruby_ramp_test"
3
3
 
4
4
  class TimeTest < Minitest::Test
5
5
 
6
- def test_stamp_with_class_method
7
- t=Time.stamp
8
- assert(t=~/^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\dZ$/,t)
9
- end
10
-
11
- def test_stamp_with_instance_method
12
- t=Time.now.stamp
13
- assert(t=~/^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\dZ$/,t)
14
- end
15
-
16
6
  def test_pack_with_class_method
17
7
  t=Time.pack
18
8
  assert(t=~/^\d\d\d\d\d\d\d\d\d\d\d\d\d\d$/,t)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sixarm_ruby_ramp
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - SixArm
@@ -39,7 +39,7 @@ cert_chain:
39
39
  tzpk/VnZXj7Ek/earx+N/Z+Wtnl2xENm5IF8SFPeI1HFa9NH47pqtxF1YKpNIEVc
40
40
  2xa2BNHSePe7tys/2hbmZuyMu8X5ERmovsabSXB3a+YwtJh5c2jhA21wF7986s0q
41
41
  -----END CERTIFICATE-----
42
- date: 2019-01-28 00:00:00.000000000 Z
42
+ date: 2019-05-01 00:00:00.000000000 Z
43
43
  dependencies:
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: sixarm_ruby_rexml
@@ -370,7 +370,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
370
370
  - !ruby/object:Gem::Version
371
371
  version: '0'
372
372
  requirements: []
373
- rubygems_version: 3.0.2
373
+ rubygems_version: 3.0.3
374
374
  signing_key:
375
375
  specification_version: 4
376
376
  summary: SixArm.com → Ruby → Ramp provides base extensions to ruby classes.
metadata.gz.sig CHANGED
Binary file