sixarm_ruby_time_terse 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -0,0 +1,83 @@
1
+ # SixArm.com » Ruby » <br> Time.terse method for ISO RFC date and time terse
2
+
3
+ * Docs: <http://sixarm.com/sixarm_ruby_time_terse/doc>
4
+ * Repo: <http://github.com/sixarm/sixarm_ruby_time_terse>
5
+ * Email: Joel Parker Henderson, <joel@sixarm.com>
6
+
7
+
8
+ ## Introduction
9
+
10
+ Provides timestamp methods Time.terse and Time#terse
11
+
12
+ For docs go to <http://sixarm.com/sixarm_ruby_time_terse/doc>
13
+
14
+ Want to help? We're happy to get pull requests.
15
+
16
+
17
+ ## Quickstart
18
+
19
+ Install:
20
+
21
+ gem install sixarm_ruby_time_terse
22
+
23
+ Bundler:
24
+
25
+ gem "sixarm_ruby_time_terse", "=1.1.0"
26
+
27
+ Require:
28
+
29
+ require "sixarm_ruby_time_terse"
30
+
31
+
32
+ ## High Security (Optional)
33
+
34
+ To enable high security for all our gems:
35
+
36
+ wget http://sixarm.com/sixarm.pem
37
+ gem cert --add sixarm.pem
38
+ gem sources --add http://sixarm.com
39
+
40
+ To install with high security:
41
+
42
+ gem install sixarm_ruby_time_terse --test --trust-policy HighSecurity
43
+
44
+
45
+ ## Examples
46
+
47
+ puts Time.terse #=> "20101231125959"
48
+ puts Time.now.terse #=> "20101231125959"
49
+
50
+
51
+ ## Changes
52
+
53
+ * 2012-03-16 1.1.0 Upgrade for Ruby 1.9.3, minitest/spec, and improved docs.
54
+ * 2011-11-07 1.0.0 Copied from sixarm_ruby_ramp to this independent gem
55
+
56
+
57
+ ## License
58
+
59
+ You may choose any of these open source licenses:
60
+
61
+ * Apache License
62
+ * BSD License
63
+ * CreativeCommons License, Non-commercial Share Alike
64
+ * GNU General Public License Version 2 (GPL 2)
65
+ * GNU Lesser General Public License (LGPL)
66
+ * MIT License
67
+ * Perl Artistic License
68
+ * Ruby License
69
+
70
+ The software is provided "as is", without warranty of any kind,
71
+ express or implied, including but not limited to the warranties of
72
+ merchantability, fitness for a particular purpose and noninfringement.
73
+
74
+ In no event shall the authors or copyright holders be liable for any
75
+ claim, damages or other liability, whether in an action of contract,
76
+ tort or otherwise, arising from, out of or in connection with the
77
+ software or the use or other dealings in the software.
78
+
79
+ This license is for the included software that is created by SixArm;
80
+ some of the included software may have its own licenses, copyrights,
81
+ authors, etc. and these do take precedence over the SixArm license.
82
+
83
+ Copyright (c) 2005-2013 Joel Parker Henderson
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -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_terse'
6
6
 
7
- class TimeTest < Test::Unit::TestCase
7
+ describe Time do
8
8
 
9
- def test_terse_with_class_method
10
- t=Time.terse
11
- assert(t=~/^\d\d\d\d\d\d\d\d\d\d\d\d\d\d$/,t)
12
- end
9
+ describe "#terse" do
10
+
11
+ it "with class method" do
12
+ Time.terse.must_match /^\d\d\d\d\d\d\d\d\d\d\d\d\d\d$/
13
+ end
14
+
15
+ it "with instance method" do
16
+ Time.now.terse.must_match /^\d\d\d\d\d\d\d\d\d\d\d\d\d\d$/
17
+ end
18
+
19
+ end
13
20
 
14
- def test_terse_with_instance_method
15
- t=Time.now.terse
16
- assert(t=~/^\d\d\d\d\d\d\d\d\d\d\d\d\d\d$/,t)
17
- end
18
-
19
21
  end
20
22
 
metadata CHANGED
@@ -1,93 +1,78 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sixarm_ruby_time_terse
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 0
10
- version: 1.0.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - SixArm
14
9
  autorequire:
15
10
  bindir: bin
16
- cert_chain:
17
- - |
18
- -----BEGIN CERTIFICATE-----
19
- MIIDBDCCAm2gAwIBAgIJAKPwEETU5bHoMA0GCSqGSIb3DQEBBQUAMGAxCzAJBgNV
20
- BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNp
21
- c2NvMQ8wDQYDVQQKEwZTaXhBcm0xEzARBgNVBAMTCnNpeGFybS5jb20wHhcNMTAx
22
- MjEzMjMyNzEzWhcNMTMwOTA4MjMyNzEzWjBgMQswCQYDVQQGEwJVUzETMBEGA1UE
23
- CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEPMA0GA1UEChMG
24
- U2l4QXJtMRMwEQYDVQQDEwpzaXhhcm0uY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GN
25
- ADCBiQKBgQC94mD9JDwBsunsOI0VR3CXXbOWg9cWaWciwFyJNFiM7A9I8KPLfXUw
26
- QC4czUe5ZuG4WHvinrWhkrCK+1dWBqoEClxdF/FoKO5a+tonGCjjmfy81JmFjjyx
27
- eTsjsHyvw+Qik9kpf9aj6+pnkNrVswgNHVea2o9yabbEiS6VSeJWoQIDAQABo4HF
28
- MIHCMB0GA1UdDgQWBBQzPJtqmSgc53eDN7aSzDQwr9TALDCBkgYDVR0jBIGKMIGH
29
- gBQzPJtqmSgc53eDN7aSzDQwr9TALKFkpGIwYDELMAkGA1UEBhMCVVMxEzARBgNV
30
- BAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xDzANBgNVBAoT
31
- BlNpeEFybTETMBEGA1UEAxMKc2l4YXJtLmNvbYIJAKPwEETU5bHoMAwGA1UdEwQF
32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nqam1meTgx
25
+ Sm1Gamp5eAplVHNqc0h5dncrUWlrOWtwZjlhajYrcG5rTnJWc3dnTkhWZWEy
26
+ bzl5YWJiRWlTNlZTZUpXb1FJREFRQUJvNEhGCk1JSENNQjBHQTFVZERnUVdC
27
+ QlF6UEp0cW1TZ2M1M2VETjdhU3pEUXdyOVRBTERDQmtnWURWUjBqQklHS01J
28
+ R0gKZ0JRelBKdHFtU2djNTNlRE43YVN6RFF3cjlUQUxLRmtwR0l3WURFTE1B
29
+ a0dBMVVFQmhNQ1ZWTXhFekFSQmdOVgpCQWdUQ2tOaGJHbG1iM0p1YVdFeEZq
30
+ QVVCZ05WQkFjVERWTmhiaUJHY21GdVkybHpZMjh4RHpBTkJnTlZCQW9UCkJs
31
+ TnBlRUZ5YlRFVE1CRUdBMVVFQXhNS2MybDRZWEp0TG1OdmJZSUpBS1B3RUVU
32
+ VTViSG9NQXdHQTFVZEV3UUYKTUFNQkFmOHdEUVlKS29aSWh2Y05BUUVGQlFB
33
+ RGdZRUFvb0VleFAvb1BhbTFUUDcxU3l1aHhNYit1VHJaYlNRZQpqVkIrRXhS
34
+ d1dhZEd3YU5QVUE1NmQzOXF3YXZ3UCtpdSszSnBlb25OTVZ2YldYRjVuYUNY
35
+ L2RORkllUkVIekVSClpEUlFZTXFydTlURU1uYTZIRDl6cGNzdEY3dndUaEdv
36
+ dmxPUSszWTZwbFE0bk16aXBYY1o5VEhxczY1UElMMHEKZWFid3BDYkFvcG89
37
+ Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
38
+ date: 2012-03-16 00:00:00.000000000 Z
39
39
  dependencies: []
40
-
41
40
  description:
42
41
  email: sixarm@sixarm.com
43
42
  executables: []
44
-
45
43
  extensions: []
46
-
47
44
  extra_rdoc_files: []
48
-
49
- files:
45
+ files:
50
46
  - .gemtest
51
- - CHANGELOG.txt
52
- - INSTALL.txt
53
- - LICENSE.txt
54
47
  - Rakefile
55
- - README.rdoc
48
+ - README.md
56
49
  - VERSION
57
50
  - lib/sixarm_ruby_time_terse.rb
58
51
  - test/sixarm_ruby_time_terse_test.rb
59
52
  homepage: http://sixarm.com/
60
53
  licenses: []
61
-
62
54
  post_install_message:
63
55
  rdoc_options: []
64
-
65
- require_paths:
56
+ require_paths:
66
57
  - lib
67
- required_ruby_version: !ruby/object:Gem::Requirement
58
+ required_ruby_version: !ruby/object:Gem::Requirement
68
59
  none: false
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- hash: 3
73
- segments:
74
- - 0
75
- version: "0"
76
- required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
65
  none: false
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- hash: 3
82
- segments:
83
- - 0
84
- version: "0"
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
85
70
  requirements: []
86
-
87
71
  rubyforge_project:
88
72
  rubygems_version: 1.8.11
89
73
  signing_key:
90
74
  specification_version: 3
91
- summary: "SixArm.com \xC2\xBB Ruby \xC2\xBB Time.terse method to get YYYYMMDDHHMMSS string"
92
- test_files:
75
+ summary: SixArm.com » Ruby » Time.terse method to get YYYYMMDDHHMMSS string
76
+ test_files:
93
77
  - test/sixarm_ruby_time_terse_test.rb
78
+ has_rdoc: true
metadata.gz.sig CHANGED
Binary file
@@ -1,3 +0,0 @@
1
- CHANGELOG
2
-
3
- 2011-11-07 1.0.0 Copied from sixarm_ruby_ramp to this independent gem
@@ -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_terse --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
-
@@ -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.
@@ -1,7 +0,0 @@
1
- = SixArm.com » Ruby » Time.terse method for ISO RFC date and time terse
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
-