loady 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/loady/memory_logger.rb +12 -10
- data/lib/loady/version.rb +1 -1
- data/test/test_memory_logger.rb +1 -1
- metadata +3 -3
data/lib/loady/memory_logger.rb
CHANGED
@@ -1,14 +1,16 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
module Loady
|
2
|
+
class MemoryLogger
|
3
|
+
attr_reader :messages
|
3
4
|
|
4
|
-
|
5
|
-
|
6
|
-
|
5
|
+
def initialize
|
6
|
+
@messages = []
|
7
|
+
end
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
9
|
+
def info(message)
|
10
|
+
@messages << message
|
11
|
+
end
|
11
12
|
|
12
|
-
|
13
|
-
|
13
|
+
alias_method :warn, :info
|
14
|
+
alias_method :error, :info
|
15
|
+
end
|
14
16
|
end
|
data/lib/loady/version.rb
CHANGED
data/test/test_memory_logger.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loady
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -98,7 +98,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
segments:
|
100
100
|
- 0
|
101
|
-
hash:
|
101
|
+
hash: 3295273932021347235
|
102
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
103
|
none: false
|
104
104
|
requirements:
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
segments:
|
109
109
|
- 0
|
110
|
-
hash:
|
110
|
+
hash: 3295273932021347235
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project: loady
|
113
113
|
rubygems_version: 1.8.24
|