timestamp 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/timestamp/Timestamp.c +4 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78c7793d3e2680e44126c4207f5cd63bb0512fd4
4
- data.tar.gz: 96b79c986ecf33a16d2afbe65328c3fc1bf80b38
3
+ metadata.gz: 87727f69d7ba11cdc52c27a1c150730806402a0d
4
+ data.tar.gz: 4ac070bc75d8891c1a3871282d9f241de96f6057
5
5
  SHA512:
6
- metadata.gz: f25c1018ae1c1685e0d77ed7ee2fe04485ee600be9be5921ac771d9fdad08c4e042c28b0082d5a7a4badb4234264fea93b1b2b18b8dccbcd3d2e903d7ce09e88
7
- data.tar.gz: 709781e765b47843f91096ffb43fa442c7e0d8cd126dab87a9e9c0a0c55139af4cdcc9309240ee76dcc8b66cf09c18df867b7f54c14893ade047b53983c043db
6
+ metadata.gz: 01a39507bbee1925a209ab243f2227125ff5b919b9ba944742b0ed1b3e6a77267638e39a294dbf0e7bb719a3bd092c43dba242034bdd854ec7856744290003d2
7
+ data.tar.gz: 78945ed73f03e5aa91202560e07ef065775f2ebc47a12e2227dab25bcaa296a8b897ac750526d6230776b9617137f301d17a2d0889a242e599300e071df7509d
@@ -1,13 +1,16 @@
1
1
  #include "ruby.h"
2
+ #include <time.h>
2
3
 
3
4
  /*
4
5
  * call-seq:
5
6
  * Time.current_timestamp -> int
7
+ * Time.timestamp -> int
6
8
  *
7
9
  * Returns the current time as an integer number of seconds
8
10
  * since the Epoch.
9
11
  *
10
12
  * Time.current_timestamp #=> 1363352771
13
+ * Time.timestamp #=> 1363352771
11
14
  */
12
15
 
13
16
  static VALUE
@@ -18,4 +21,5 @@ time_s_current_timestamp(VALUE klass)
18
21
 
19
22
  void Init_timestamp() {
20
23
  rb_define_singleton_method(rb_cTime, "current_timestamp", time_s_current_timestamp, 0);
24
+ rb_define_singleton_method(rb_cTime, "timestamp", time_s_current_timestamp, 0);
21
25
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timestamp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Kerwin