gom-core 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +1 -1
- data/Guardfile +1 -1
- data/lib/gom/core/version.rb +1 -1
- data/spec/gom/logger_spec.rb +8 -11
- metadata +41 -77
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 46d0f2d0772ef08ada56c089ba58d293fd7a5802
|
4
|
+
data.tar.gz: 1c3df88589d4eb31553fdef6b12746ecc17257ac
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cee771e936764f15d13c045ea7e3682888e3f050367f68d3763ffdd080e861e9e6afb5ae63de5ef0cdd7db906593ab88e95e9f826a8cc6c24b69696535f74e15
|
7
|
+
data.tar.gz: 98cf08862e44cc46d1ceedf5931b6a7d88d62969947d7d4f0698b9fb8f0263a04f8ab46aba9b186e0e49087c8c982c9261159643783593a4f45a05204e729093
|
data/Gemfile
CHANGED
data/Guardfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# A sample Guardfile
|
2
2
|
# More info at https://github.com/guard/guard#readme
|
3
3
|
|
4
|
-
guard
|
4
|
+
guard :rspec, :cli => '--format nested --debug --color' do
|
5
5
|
watch(%r{^spec/.+_spec\.rb$})
|
6
6
|
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
7
7
|
|
data/lib/gom/core/version.rb
CHANGED
data/spec/gom/logger_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Gom::Logger do
|
4
4
|
it "should find the class" do
|
@@ -6,23 +6,20 @@ describe Gom::Logger do
|
|
6
6
|
end
|
7
7
|
|
8
8
|
describe "with a Logger" do
|
9
|
-
|
10
|
-
|
11
|
-
@logfile = Tempfile.new(__FILE__)
|
12
|
-
@log = Gom::Logger.new @logfile.path
|
13
|
-
end
|
9
|
+
let(:logfile) { Tempfile.new(File.basename(__FILE__)) }
|
10
|
+
let(:log) { Gom::Logger.new logfile.path }
|
14
11
|
|
15
12
|
it "should have a default 'I' log level" do
|
16
|
-
|
17
|
-
(line =
|
13
|
+
log.info self.to_s
|
14
|
+
(line = logfile.read).should_not == nil
|
18
15
|
line.should =~ / I #{self.to_s}/
|
19
16
|
end
|
20
17
|
|
21
18
|
it "should log execeptions" do
|
22
|
-
raise "foo" rescue
|
23
|
-
(txt =
|
19
|
+
raise "foo" rescue log.ex $!, "bar"
|
20
|
+
(txt = logfile.read).should_not == nil
|
24
21
|
|
25
|
-
#assert_match " E RuntimeError: bar", txt,
|
22
|
+
#assert_match " E RuntimeError: bar", txt, logfile.path
|
26
23
|
txt.should =~ / E foo: bar/
|
27
24
|
txt.should =~ / D foo -- callstack: bar/
|
28
25
|
end
|
metadata
CHANGED
@@ -1,113 +1,100 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gom-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- art+com/dirk luesebrink
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-08-19 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rspec
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
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
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rspec-mocks
|
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: :development
|
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: guard
|
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: :development
|
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
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: guard-rspec
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - '>='
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - '>='
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: growl
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - '>='
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0'
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - '>='
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: debugger
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - '>='
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '0'
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - '>='
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '0'
|
110
|
-
description:
|
97
|
+
description: "\n this gem includes stuff which is of use for the server as well
|
111
98
|
as for gom\n scripting clients\n "
|
112
99
|
email:
|
113
100
|
- dirk.luesebrink@artcom.de
|
@@ -115,71 +102,48 @@ executables: []
|
|
115
102
|
extensions: []
|
116
103
|
extra_rdoc_files: []
|
117
104
|
files:
|
118
|
-
-
|
119
|
-
|
120
|
-
-
|
121
|
-
|
122
|
-
-
|
123
|
-
|
124
|
-
-
|
125
|
-
|
126
|
-
-
|
127
|
-
|
128
|
-
-
|
129
|
-
|
130
|
-
-
|
131
|
-
|
132
|
-
-
|
133
|
-
|
134
|
-
-
|
135
|
-
bGliL2dvbS1jb3JlLnJi
|
136
|
-
- !binary |-
|
137
|
-
bGliL2dvbS9jb3JlLnJi
|
138
|
-
- !binary |-
|
139
|
-
bGliL2dvbS9jb3JlL3ByaW1pdGl2ZS5yYg==
|
140
|
-
- !binary |-
|
141
|
-
bGliL2dvbS9jb3JlL3ZlcnNpb24ucmI=
|
142
|
-
- !binary |-
|
143
|
-
bGliL2dvbS9sb2dnZXIucmI=
|
144
|
-
- !binary |-
|
145
|
-
c3BlYy9nb20vY29yZS9wcmltaXRpdmVfc3BlYy5yYg==
|
146
|
-
- !binary |-
|
147
|
-
c3BlYy9nb20vbG9nZ2VyX3NwZWMucmI=
|
148
|
-
- !binary |-
|
149
|
-
c3BlYy9zcGVjLm9wdHM=
|
150
|
-
- !binary |-
|
151
|
-
c3BlYy9zcGVjX2hlbHBlci5yYg==
|
105
|
+
- .document
|
106
|
+
- .gitignore
|
107
|
+
- Gemfile
|
108
|
+
- Guardfile
|
109
|
+
- LICENSE
|
110
|
+
- README.rdoc
|
111
|
+
- Rakefile
|
112
|
+
- gom-core.gemspec
|
113
|
+
- lib/gom-core.rb
|
114
|
+
- lib/gom/core.rb
|
115
|
+
- lib/gom/core/primitive.rb
|
116
|
+
- lib/gom/core/version.rb
|
117
|
+
- lib/gom/logger.rb
|
118
|
+
- spec/gom/core/primitive_spec.rb
|
119
|
+
- spec/gom/logger_spec.rb
|
120
|
+
- spec/spec.opts
|
121
|
+
- spec/spec_helper.rb
|
152
122
|
homepage: http://github.com/crux/gom-core
|
153
123
|
licenses: []
|
124
|
+
metadata: {}
|
154
125
|
post_install_message:
|
155
126
|
rdoc_options: []
|
156
127
|
require_paths:
|
157
128
|
- lib
|
158
129
|
required_ruby_version: !ruby/object:Gem::Requirement
|
159
|
-
none: false
|
160
130
|
requirements:
|
161
|
-
- -
|
131
|
+
- - '>='
|
162
132
|
- !ruby/object:Gem::Version
|
163
133
|
version: '0'
|
164
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
|
-
none: false
|
166
135
|
requirements:
|
167
|
-
- -
|
136
|
+
- - '>='
|
168
137
|
- !ruby/object:Gem::Version
|
169
138
|
version: '0'
|
170
139
|
requirements: []
|
171
140
|
rubyforge_project:
|
172
|
-
rubygems_version:
|
141
|
+
rubygems_version: 2.0.6
|
173
142
|
signing_key:
|
174
|
-
specification_version:
|
143
|
+
specification_version: 4
|
175
144
|
summary: basic GOM functionallity
|
176
145
|
test_files:
|
177
|
-
-
|
178
|
-
|
179
|
-
-
|
180
|
-
|
181
|
-
- !binary |-
|
182
|
-
c3BlYy9zcGVjLm9wdHM=
|
183
|
-
- !binary |-
|
184
|
-
c3BlYy9zcGVjX2hlbHBlci5yYg==
|
185
|
-
has_rdoc:
|
146
|
+
- spec/gom/core/primitive_spec.rb
|
147
|
+
- spec/gom/logger_spec.rb
|
148
|
+
- spec/spec.opts
|
149
|
+
- spec/spec_helper.rb
|