sixarm_ruby_time_stamp 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,82 @@
1
+ # SixArm.com » Ruby » <br> Time.stamp method for ISO RFC date and time stamp
2
+
3
+ * Docs: <http://sixarm.com/sixarm_ruby_time_stamp/doc>
4
+ * Repo: <http://github.com/sixarm/sixarm_ruby_time_stamp>
5
+ * Email: Joel Parker Henderson, <joel@sixarm.com>
6
+
7
+ ## Introduction
8
+
9
+ Provides timestamp methods Time.stamp and Time#stamp
10
+
11
+ For docs go to <http://sixarm.com/sixarm_ruby_time_stamp/doc>
12
+
13
+ Want to help? We're happy to get pull requests.
14
+
15
+
16
+ ## Quickstart
17
+
18
+ Install:
19
+
20
+ gem install sixarm_ruby_time_stamp
21
+
22
+ Bundler:
23
+
24
+ gem "sixarm_ruby_time_stamp", "=1.1.0"
25
+
26
+ Require:
27
+
28
+ require "sixarm_ruby_time_stamp"
29
+
30
+
31
+ ## High Security (Optional)
32
+
33
+ To enable high security for all our gems:
34
+
35
+ wget http://sixarm.com/sixarm.pem
36
+ gem cert --add sixarm.pem
37
+ gem sources --add http://sixarm.com
38
+
39
+ To install with high security:
40
+
41
+ gem install sixarm_ruby_time_stamp --test --trust-policy HighSecurity
42
+
43
+
44
+ ## Examples
45
+
46
+ puts Time.stamp #=> "2010-12-31 12:59:59Z"
47
+ puts Time.now.stamp #=> "2010-12-31 12:59:59Z"
48
+
49
+
50
+ ## Changes
51
+
52
+ * 2012-03-16 1.1.0 Upgrade for Ruby 1.9.3, minitest/spec, and improved docs.
53
+ * 2011-11-07 1.0.0 Copied from sixarm_ruby_ramp to this independent gem
54
+
55
+
56
+ ## License
57
+
58
+ You may choose any of these open source licenses:
59
+
60
+ * Apache License
61
+ * BSD License
62
+ * CreativeCommons License, Non-commercial Share Alike
63
+ * GNU General Public License Version 2 (GPL 2)
64
+ * GNU Lesser General Public License (LGPL)
65
+ * MIT License
66
+ * Perl Artistic License
67
+ * Ruby License
68
+
69
+ The software is provided "as is", without warranty of any kind,
70
+ express or implied, including but not limited to the warranties of
71
+ merchantability, fitness for a particular purpose and noninfringement.
72
+
73
+ In no event shall the authors or copyright holders be liable for any
74
+ claim, damages or other liability, whether in an action of contract,
75
+ tort or otherwise, arising from, out of or in connection with the
76
+ software or the use or other dealings in the software.
77
+
78
+ This license is for the included software that is created by SixArm;
79
+ some of the included software may have its own licenses, copyrights,
80
+ authors, etc. and these do take precedence over the SixArm license.
81
+
82
+ Copyright (c) 2005-2013 Joel Parker Henderson
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  =begin rdoc
3
- Please see README.rdoc
3
+ Please see README
4
4
  =end
5
5
 
6
6
 
@@ -1,20 +1,22 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'test/unit'
2
+ require 'minitest/autorun'
3
3
  require 'simplecov'
4
4
  SimpleCov.start
5
5
  require 'sixarm_ruby_time_stamp'
6
6
 
7
- class TimeTest < Test::Unit::TestCase
7
+ describe Time do
8
8
 
9
- def test_stamp_with_class_method
10
- t=Time.stamp
11
- assert(t=~/^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\dZ$/,t)
12
- end
9
+ describe "#stamp" do
13
10
 
14
- def test_stamp_with_instance_method
15
- t=Time.now.stamp
16
- assert(t=~/^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\dZ$/,t)
17
- end
11
+ it "with class method" do
12
+ Time.stamp.must_match /^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\dZ$/
13
+ end
14
+
15
+ it "with instance method" do
16
+ Time.now.stamp.must_match /^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\dZ$/
17
+ end
18
18
 
19
+ end
20
+
19
21
  end
20
22
 
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- x��-8j�%I5���Ɯ��$���)���:9f"��4��]@TE$c�8".Z��=f���3S�ӌywH��{�6�A��Djl��h��� _7�^P���sN�o�ʻGp)m�� �,=�c
1
+ FbZ N�Z��t�Zn��?*hdX(�\�igx[7� ����Ǯ�SeqE�Ǿ��0̭<�
2
+ ��)�a�|��ùh��\�L յ��
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sixarm_ruby_time_stamp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -35,7 +35,7 @@ cert_chain:
35
35
  L2RORkllUkVIekVSClpEUlFZTXFydTlURU1uYTZIRDl6cGNzdEY3dndUaEdv
36
36
  dmxPUSszWTZwbFE0bk16aXBYY1o5VEhxczY1UElMMHEKZWFid3BDYkFvcG89
37
37
  Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
38
- date: 2011-11-08 00:00:00.000000000 Z
38
+ date: 2012-03-16 00:00:00.000000000 Z
39
39
  dependencies: []
40
40
  description:
41
41
  email: sixarm@sixarm.com
@@ -44,11 +44,8 @@ extensions: []
44
44
  extra_rdoc_files: []
45
45
  files:
46
46
  - .gemtest
47
- - CHANGELOG.txt
48
- - INSTALL.txt
49
- - LICENSE.txt
50
47
  - Rakefile
51
- - README.rdoc
48
+ - README.md
52
49
  - VERSION
53
50
  - lib/sixarm_ruby_time_stamp.rb
54
51
  - test/sixarm_ruby_time_stamp_test.rb
metadata.gz.sig CHANGED
@@ -1 +1 @@
1
- ~z���y}]m*@PF�1`�-�< ,d�C�e�|�.@������j6R5�Q��J��I*���i�s��=�5�5�ݵ�f�@B]+̮W��e)����/��j��nS�z�Z��#�'�j��
1
+ WD)#nӳ�S����w�>Z%H6�J3��T��y��+A���#|���%W Zp��/��/�ݟn��hqv�/1���N��o}���㏠N'�>ʬ�ȵ��rI�&|�gbx����]�?���e �
data/CHANGELOG.txt DELETED
@@ -1,3 +0,0 @@
1
- CHANGELOG
2
-
3
- 2011-11-07 1.0.0 Copied from sixarm_ruby_ramp to this independent gem
data/INSTALL.txt DELETED
@@ -1,32 +0,0 @@
1
-
2
- = SixArm.com Ruby Gem Install
3
-
4
-
5
- First-time users: add our gem certificate and source.
6
- When you do this once, it works for all our gems.
7
-
8
- sudo wget http://sixarm.com/sixarm.pem
9
- sudo gem cert --add sixarm.pem
10
- sudo gem sources --add http://sixarm.com
11
-
12
- Install the gem with advanced options.
13
-
14
- sudo gem install sixarm_ruby_time_stamp --test --trust-policy HighSecurity
15
-
16
-
17
- == Notes
18
-
19
- Do you have any questions, comments, suggestions, or feedback?
20
- Let us know, we're happy to help. Our email is sixarm@sixarm.com
21
-
22
- Do you want to create your own high security gems?
23
- Learn how at http://www.rubygems.org/read/chapter/21
24
-
25
- To see your current gem certificate list:
26
-
27
- sudo gem cert --list
28
-
29
- Our cert looks like this:
30
-
31
- /C=US/ST=California/L=San Francisco/O=SixArm/CN=sixarm.com
32
-
data/LICENSE.txt DELETED
@@ -1,12 +0,0 @@
1
- LICENSE
2
-
3
- You may choose any of these licenses:
4
-
5
- - CreativeCommons License, Non-commercial Share Alike
6
- - LGPL, GNU Lesser General Public License
7
- - MIT License
8
- - Ruby License
9
-
10
- THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
11
- IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
12
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
data/README.rdoc DELETED
@@ -1,7 +0,0 @@
1
- = SixArm.com » Ruby » Time.stamp method for ISO RFC date and time stamp
2
-
3
- Author:: Joel Parker Henderson, joel@joelparkerhenderson.com
4
- Copyright:: Copyright (c) 2006-2011 Joel Parker Henderson
5
- License:: See LICENSE.txt file
6
-
7
-