codesake-commons 0.95.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e3b157ee2b5ac232e6c61688de3217ac7a7590db
4
+ data.tar.gz: 5cc26b192689dbc8753a7ed8dca1c773eaebeacc
5
+ SHA512:
6
+ metadata.gz: b7b0e5d2e618a81a07a6dadbffbfa0ef6e609a55c6cbf6891605b1ed1075a782dff3252a950b5616f075959af3a5618f91e8e2017437eb7f213346c41b6a2552
7
+ data.tar.gz: 222345cd084bc0006d8857e9525ceca3fb73ec343fc120988423507c1fcb5472b8e5289022d5570564ba74ccde2a70b19d09c30db94ea39f80b37f534a0e250c
@@ -37,7 +37,7 @@ module Codesake
37
37
  end
38
38
 
39
39
  def warn(msg)
40
- STDOUT.print Rainbow("#{Time.now.strftime("%H:%M:%S")} [!] #{@component}: #{msg}\n").yellow
40
+ STDOUT.print Rainbow("#{Time.now.strftime("%H:%M:%S")} [w] #{@component}: #{msg}\n").yellow
41
41
  send_to_syslog(msg, :warn)
42
42
  send_to_file(msg, :warn)
43
43
  end
@@ -70,6 +70,18 @@ module Codesake
70
70
  Codesake::Commons::Io.remove_pid_file(pid_file) unless pid_file.nil?
71
71
  end
72
72
 
73
+ def debug(msg)
74
+ STDOUT.print Rainbow("#{Time.now.strftime("%H:%M:%S")} [D] #{@component}: #{msg}\n").yellow.bright
75
+ send_to_syslog(msg, :debug)
76
+ send_to_file(msg, :debug)
77
+ end
78
+
79
+ def bug(msg)
80
+ STDERR.print Rainbow("#{Time.now.strftime("%H:%M:%S")} [%] #{@component}: - BUG - #{msg}\n").red.bright
81
+ send_to_syslog(msg, :debug)
82
+ send_to_file(msg, :debug)
83
+ end
84
+
73
85
  def toggle_silence
74
86
  @silencer = ! @silencer
75
87
  @verbose = ! @silencer
@@ -1,5 +1,5 @@
1
1
  module Codesake
2
2
  module Commons
3
- VERSION = "0.95.0"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codesake-commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.95.0
5
- prerelease:
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Paolo Perego
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-01-27 00:00:00.000000000 Z
11
+ date: 2014-04-17 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rainbow
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,33 +27,29 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: mechanize
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: nokogiri
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: codesake.com is an application security startup providing code review
@@ -89,27 +82,26 @@ files:
89
82
  - spec/spec_helper.rb
90
83
  homepage: http://codesake.com
91
84
  licenses: []
85
+ metadata: {}
92
86
  post_install_message:
93
87
  rdoc_options: []
94
88
  require_paths:
95
89
  - lib
96
90
  required_ruby_version: !ruby/object:Gem::Requirement
97
- none: false
98
91
  requirements:
99
- - - ! '>='
92
+ - - '>='
100
93
  - !ruby/object:Gem::Version
101
94
  version: '0'
102
95
  required_rubygems_version: !ruby/object:Gem::Requirement
103
- none: false
104
96
  requirements:
105
- - - ! '>='
97
+ - - '>='
106
98
  - !ruby/object:Gem::Version
107
99
  version: '0'
108
100
  requirements: []
109
101
  rubyforge_project:
110
- rubygems_version: 1.8.25
102
+ rubygems_version: 2.1.11
111
103
  signing_key:
112
- specification_version: 3
104
+ specification_version: 4
113
105
  summary: codesake_commons is the gem containing common ground routines useful across
114
106
  the codesake.com project
115
107
  test_files: