flare-tools 0.1.3 → 0.1.4

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.
@@ -12,3 +12,4 @@ lib/flare/tools/cli
12
12
  lib/flare/tools/cli/partition_setting.rb
13
13
  lib/flare/tools/cli/stats.rb
14
14
  lib/flare/tools/core.rb
15
+ lib/flare/tools/logger.rb
@@ -16,5 +16,5 @@ require 'tools/core'
16
16
  require 'tools/logger'
17
17
 
18
18
  module FlareTools
19
- VERSION = '0.1.3'
19
+ VERSION = '0.1.4'
20
20
  end
@@ -0,0 +1,31 @@
1
+ # -*- coding: utf-8; -*-
2
+ # Author:: kgws (http://d.hatena.ne.jp/kgws/)
3
+ # Copyright:: Copyright (c) 2010- kgws.
4
+ # License:: This program is licenced under the same licence as kgws.
5
+ #
6
+ # $--- flare-tools - [ by Ruby ] $
7
+ # vim: foldmethod=marker tabstop=2 shiftwidth=2
8
+
9
+ module FlareTools
10
+ class Logger
11
+ #{{{ Constructor
12
+ def initialize()
13
+ end
14
+ # }}}
15
+ # {{{ info
16
+ def info(msg)
17
+ puts "[INFO] #{msg}"
18
+ end
19
+ # }}}
20
+ # {{{ error
21
+ def error(msg)
22
+ puts "\033[31m[ERROR]\033[m #{msg}"
23
+ end
24
+ # }}}
25
+ # {{{ debug
26
+ def debug(msg)
27
+ puts "[DEBUG] #{msg}" if $DEBUG
28
+ end
29
+ # }}}
30
+ end
31
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flare-tools
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - kgws
@@ -74,6 +74,7 @@ files:
74
74
  - lib/flare/tools/cli/partition_setting.rb
75
75
  - lib/flare/tools/cli/stats.rb
76
76
  - lib/flare/tools/core.rb
77
+ - lib/flare/tools/logger.rb
77
78
  - test/test_flare-tools.rb
78
79
  - test/test_helper.rb
79
80
  has_rdoc: true