sixarm_ruby_vital 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 675dc502d761b436e7b1bbc2bd9ebacd73dfa2b8
4
+ data.tar.gz: e0a07b5a5a528c39166a84cedb7167b4fa7b9142
5
+ SHA512:
6
+ metadata.gz: 33ce35d8dbfbd2a5a69ba58b7e44d6471c794e5ed6fd6207dde65d6ae3be66a9d099529e0f7e5e71cdb44662990e3b8c095487ca2aea1861fdfa0dee93f6f7b7
7
+ data.tar.gz: 0e93bbb280861e70f77c2ac0428e8c04b7a9205ad933cf2848d8b07831a30904fc3c1cc32afc6afa7880d5163a46505b94912af18950ee26358977db964ffa8d
checksums.yaml.gz.sig ADDED
Binary file
data.tar.gz.sig ADDED
Binary file
data/.gemtest ADDED
File without changes
data/CHANGES.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changes
2
+
3
+ * 2015-07-07 1.0.4 Update gemspec to use file manifest
4
+ * 2012-03-14 1.0.3 Update docs, tests
5
+ * 2011-10-06 1.0.2 Updates for gem publishing
data/LICENSE.md ADDED
@@ -0,0 +1,28 @@
1
+ # License
2
+
3
+ You may choose any of these open source licenses:
4
+
5
+ * Apache License
6
+ * BSD License
7
+ * CreativeCommons License, Non-commercial Share Alike
8
+ * GNU Affero General Public License (AGPL)
9
+ * GNU General Public License Version (GPL)
10
+ * GNU Lesser General Public License (LGPL)
11
+ * MIT License
12
+ * Perl Artistic License
13
+ * Ruby License
14
+
15
+ The software is provided "as is", without warranty of any kind,
16
+ express or implied, including but not limited to the warranties of
17
+ merchantability, fitness for a particular purpose and noninfringement.
18
+
19
+ In no event shall the authors or copyright holders be liable for any
20
+ claim, damages or other liability, whether in an action of contract,
21
+ tort or otherwise, arising from, out of or in connection with the
22
+ software or the use or other dealings in the software.
23
+
24
+ This license is for the included software that is created by SixArm.
25
+ Some of the included software may have its own licenses, copyrights,
26
+ authors, etc. and these may take precedence over the SixArm license.
27
+
28
+ Copyright (c) Joel Parker Henderson
data/README.md ADDED
@@ -0,0 +1,55 @@
1
+ # Ruby » <br> Vital signs logger for Ruby
2
+
3
+ * Doc: <http://sixarm.com/sixarm_ruby_vital/doc>
4
+ * Gem: <http://rubygems.org/gems/sixarm_ruby_vital>
5
+ * Repo: <http://github.com/sixarm/sixarm_ruby_vital>
6
+ * Email: Joel Parker Henderson, <joel@sixarm.com>
7
+
8
+
9
+ ## Introduction
10
+
11
+ Vital has several methods to help with Ruby's typical logger.
12
+
13
+ The methods automatically prepend helpful debugging information
14
+ to each log message:
15
+
16
+ * timestamp
17
+ * class name
18
+ * method name
19
+ * process information
20
+ * the original message
21
+
22
+ The methods log using tab separated values, which make the
23
+ log files easier to parse in our other tools (i.e. awk).
24
+
25
+ For docs go to <http://sixarm.com/sixarm_ruby_vital/doc>
26
+
27
+ Want to help? We're happy to get pull requests.
28
+
29
+
30
+ ## Install quickstart
31
+
32
+ Install:
33
+
34
+ gem install sixarm_ruby_vital
35
+
36
+ Bundler:
37
+
38
+ gem "sixarm_ruby_vital", "~>1.0.2"
39
+
40
+ Require:
41
+
42
+ require "sixarm_ruby_vital"
43
+
44
+
45
+ ## Install with security (optional)
46
+
47
+ To enable high security for all our gems:
48
+
49
+ wget http://sixarm.com/sixarm.pem
50
+ gem cert --add sixarm.pem
51
+ gem sources --add http://sixarm.com
52
+
53
+ To install with high security:
54
+
55
+ gem install sixarm_ruby_vital --trust-policy HighSecurity
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # -*- coding: utf-8 -*-
2
+ require "rake"
3
+ require "rake/testtask"
4
+
5
+ Rake::TestTask.new(:test) do |t|
6
+ t.libs << 'lib' << 'test'
7
+ t.pattern = 'test/*.rb'
8
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.2
@@ -0,0 +1,49 @@
1
+ # -*- coding: utf-8 -*-
2
+ =begin rdoc
3
+ Please see README
4
+ =end
5
+
6
+ require "sixarm_ruby_ramp"
7
+
8
+ module Vital
9
+
10
+
11
+ # Log a message with timestamp, calling class, method name, process info, etc.
12
+ #
13
+ # ==Example
14
+ # vital("hello")
15
+ # => logger.info 2010-12-31 class_name method_name process_info ... hello
16
+ def vital(msg='',ops={})
17
+ method_name = ops[:method_name]||method_name_of_caller
18
+ logger.info [Time.stamp,self.class.name,method_name,Process.ps_tdf].join("\t")+"\t"+msg
19
+ end
20
+
21
+
22
+ # Log a message that is intended to open (i.e. begin) a topic.
23
+ #
24
+ # This simply calls _vital_ with "+" prepended to
25
+ # the message, which is our indicator of a new topic.
26
+ #
27
+ # Example:
28
+ # vital_open("hello")
29
+ # => logger.info 2010-12-31 class_name method_name process_info ... +hello
30
+
31
+ def vital_open(msg='',ops={})
32
+ vital('+'+msg,ops.merge({:method_name=>method_name_of_caller}))
33
+ end
34
+
35
+
36
+ # Log a message that is intended to shut (i.e. end) a topic.
37
+ #
38
+ # This simply calls _vital_ with "+" prepended to
39
+ # the message, which is our indicator of a new topic.
40
+ #
41
+ # Example:
42
+ # vital_open("hello")
43
+ # => logger.info 2010-12-31 class_name method_name process_info ... -hello
44
+
45
+ def vital_shut(msg='',ops={})
46
+ vital('-'+msg,ops.merge({:method_name=>method_name_of_caller}))
47
+ end
48
+
49
+ end
@@ -0,0 +1,16 @@
1
+ # -*- coding: utf-8 -*-
2
+ require "minitest/autorun"
3
+ require "simplecov"
4
+ SimpleCov.start
5
+ require "sixarm_ruby_vital"
6
+
7
+ class Testing < Test::Unit::TestCase
8
+
9
+ def test_vital
10
+ ps=Process.ps
11
+ assert(ps!=nil,"ps != nil")
12
+ stamp=Time.stamp
13
+ assert(stamp!=nil,"time stamp != nil")
14
+ end
15
+
16
+ end
metadata ADDED
@@ -0,0 +1,112 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sixarm_ruby_vital
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.4
5
+ platform: ruby
6
+ authors:
7
+ - SixArm
8
+ autorequire:
9
+ bindir: bin
10
+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Zhv1fu3P+RWHDSYhnZSCJSCdxPzQJ1mG5T5ahiL3HvCZ
44
+ 2AC9FOGkybW6DJEFSFFMlNk0IILsa/gNp8ufGuTVLWF9FUUdMNK+TMbghnifT8/1
45
+ n+ES/gQPOnvmVkLDGw==
46
+ -----END CERTIFICATE-----
47
+ date: 2015-07-08 00:00:00.000000000 Z
48
+ dependencies:
49
+ - !ruby/object:Gem::Dependency
50
+ name: sixarm_ruby_ramp
51
+ requirement: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 4.2.2
56
+ - - "<"
57
+ - !ruby/object:Gem::Version
58
+ version: '5'
59
+ type: :runtime
60
+ prerelease: false
61
+ version_requirements: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: 4.2.2
66
+ - - "<"
67
+ - !ruby/object:Gem::Version
68
+ version: '5'
69
+ description: Vital class for debugging, logging, profiling, etc.
70
+ email: sixarm@sixarm.com
71
+ executables: []
72
+ extensions: []
73
+ extra_rdoc_files: []
74
+ files:
75
+ - ".gemtest"
76
+ - CHANGES.md
77
+ - LICENSE.md
78
+ - README.md
79
+ - Rakefile
80
+ - VERSION
81
+ - lib/sixarm_ruby_vital.rb
82
+ - test/sixarm_ruby_vital_test.rb
83
+ homepage: http://sixarm.com/
84
+ licenses:
85
+ - BSD
86
+ - GPL
87
+ - MIT
88
+ - PAL
89
+ - Various
90
+ metadata: {}
91
+ post_install_message:
92
+ rdoc_options: []
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ requirements: []
106
+ rubyforge_project:
107
+ rubygems_version: 2.4.8
108
+ signing_key:
109
+ specification_version: 4
110
+ summary: SixArm.com » Ruby » Vital
111
+ test_files:
112
+ - test/sixarm_ruby_vital_test.rb
metadata.gz.sig ADDED
Binary file