build-tool 0.3.3 → 0.4.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.
data/lib/mj/logging.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require 'ansi/code'
2
+ require 'logging'
3
+
1
4
  module MJ; module Logging;
2
5
 
3
6
  #
@@ -10,24 +13,31 @@ module MJ; module Logging;
10
13
  # REST => ''
11
14
  class BasicLayout < ::Logging::Layout
12
15
 
16
+ include ANSI::Code
17
+
13
18
  def format( event )
14
19
  obj = format_obj(event.data)
15
20
 
16
21
  return case event.level
17
22
 
18
- when ::Logging::level_num((:ERROR))
19
- sprintf("error: %s\n", obj)
23
+ when ::Logging::level_num(:ERROR)
24
+ red { sprintf("error: %s\n", obj) }
20
25
 
21
26
  when ::Logging::level_num((:WARN))
22
- sprintf("warning: %s\n", obj)
27
+ yellow { sprintf("warning: %s\n", obj) }
23
28
 
24
29
  else
25
- obj + "\n"
30
+ if obj.start_with?( '###')
31
+ blue { obj + "\n" }
32
+ else
33
+ obj + "\n"
34
+ end
26
35
  end
27
36
  end
28
37
 
29
38
  end # class BasicLayout
30
39
 
40
+
31
41
  # :TODO: Map the Logging Levels to Logger Levels instead of hardcoding them here.
32
42
  class LoggerAdapter
33
43
 
metadata CHANGED
@@ -1,21 +1,42 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: build-tool
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 3
9
- - 3
10
- version: 0.3.3
8
+ - 4
9
+ - 0
10
+ version: 0.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Jansen
14
14
  autorequire:
15
15
  bindir: bin
16
- cert_chain: []
16
+ cert_chain:
17
+ - |
18
+ -----BEGIN CERTIFICATE-----
19
+ MIIDOjCCAiKgAwIBAgIBADANBgkqhkiG9w0BAQUFADBDMQwwCgYDVQQDDANrZGUx
20
+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87eeq974P8VuyKbHgxN9El1nwtFGEfwm
36
+ M3zOaQdtTmiQPBqNIsE=
37
+ -----END CERTIFICATE-----
17
38
 
18
- date: 2010-08-08 00:00:00 +02:00
39
+ date: 2010-08-15 00:00:00 +02:00
19
40
  default_executable:
20
41
  dependencies:
21
42
  - !ruby/object:Gem::Dependency
@@ -66,9 +87,24 @@ dependencies:
66
87
  type: :runtime
67
88
  version_requirements: *id003
68
89
  - !ruby/object:Gem::Dependency
69
- name: hoe-debugging
90
+ name: ansi
70
91
  prerelease: false
71
92
  requirement: &id004 !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ hash: 11
98
+ segments:
99
+ - 1
100
+ - 2
101
+ version: "1.2"
102
+ type: :runtime
103
+ version_requirements: *id004
104
+ - !ruby/object:Gem::Dependency
105
+ name: hoe-debugging
106
+ prerelease: false
107
+ requirement: &id005 !ruby/object:Gem::Requirement
72
108
  none: false
73
109
  requirements:
74
110
  - - ">="
@@ -80,11 +116,11 @@ dependencies:
80
116
  - 1
81
117
  version: 1.0.1
82
118
  type: :development
83
- version_requirements: *id004
119
+ version_requirements: *id005
84
120
  - !ruby/object:Gem::Dependency
85
121
  name: hoe-doofus
86
122
  prerelease: false
87
- requirement: &id005 !ruby/object:Gem::Requirement
123
+ requirement: &id006 !ruby/object:Gem::Requirement
88
124
  none: false
89
125
  requirements:
90
126
  - - ">="
@@ -96,11 +132,11 @@ dependencies:
96
132
  - 0
97
133
  version: 1.0.0
98
134
  type: :development
99
- version_requirements: *id005
135
+ version_requirements: *id006
100
136
  - !ruby/object:Gem::Dependency
101
137
  name: hoe-git
102
138
  prerelease: false
103
- requirement: &id006 !ruby/object:Gem::Requirement
139
+ requirement: &id007 !ruby/object:Gem::Requirement
104
140
  none: false
105
141
  requirements:
106
142
  - - ">="
@@ -112,11 +148,11 @@ dependencies:
112
148
  - 0
113
149
  version: 1.3.0
114
150
  type: :development
115
- version_requirements: *id006
151
+ version_requirements: *id007
116
152
  - !ruby/object:Gem::Dependency
117
153
  name: racc
118
154
  prerelease: false
119
- requirement: &id007 !ruby/object:Gem::Requirement
155
+ requirement: &id008 !ruby/object:Gem::Requirement
120
156
  none: false
121
157
  requirements:
122
158
  - - ">="
@@ -128,11 +164,11 @@ dependencies:
128
164
  - 6
129
165
  version: 1.4.6
130
166
  type: :development
131
- version_requirements: *id007
167
+ version_requirements: *id008
132
168
  - !ruby/object:Gem::Dependency
133
169
  name: rexical
134
170
  prerelease: false
135
- requirement: &id008 !ruby/object:Gem::Requirement
171
+ requirement: &id009 !ruby/object:Gem::Requirement
136
172
  none: false
137
173
  requirements:
138
174
  - - ">="
@@ -144,11 +180,11 @@ dependencies:
144
180
  - 4
145
181
  version: 1.0.4
146
182
  type: :development
147
- version_requirements: *id008
183
+ version_requirements: *id009
148
184
  - !ruby/object:Gem::Dependency
149
185
  name: hoe
150
186
  prerelease: false
151
- requirement: &id009 !ruby/object:Gem::Requirement
187
+ requirement: &id010 !ruby/object:Gem::Requirement
152
188
  none: false
153
189
  requirements:
154
190
  - - ">="
@@ -160,7 +196,7 @@ dependencies:
160
196
  - 1
161
197
  version: 2.6.1
162
198
  type: :development
163
- version_requirements: *id009
199
+ version_requirements: *id010
164
200
  description: |-
165
201
  This project is inspired by kdesvn-build[http://kdesvn-build.kde.org/].
166
202
 
metadata.gz.sig ADDED
@@ -0,0 +1 @@
1
+ *�3䎼X�?$�/��8�;!A���"sN3qv��_6 g���䭤�.~9H����������?���W�Z�"����ka�X�{���E!��o;��Gû�����{�!�;p��?�KhT��q�Շjjw�uBD�|� ˲"J�m�I?�e�L�=�V�f��J H�8�TT�w��W.�}��2ɦ�kR �����Ƣ�Q��Y��)X t��tƳ �~�kK Ef��b��y[}ci���� �!~��W�18�