airbrush 0.0.5.pre6 → 0.0.5.pre7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5.pre6
1
+ 0.0.5.pre7
data/lib/airbrush.rb CHANGED
@@ -6,31 +6,12 @@ require 'active_support/dependencies'
6
6
  require 'active_support/time'
7
7
  require 'active_support/core_ext'
8
8
 
9
- ActiveSupport::Dependencies.autoload_paths << File.dirname(__FILE__)
10
9
 
11
10
  # for the moment lets log dependency loading
12
11
  #Dependencies::RAILS_DEFAULT_LOGGER = Logger.new($stdout)
13
12
  #Dependencies.log_activity = true
14
13
 
15
- # Load up extensions to existing classes
16
- Dir[File.dirname(__FILE__) + '/airbrush/core_ext/*.rb'].each { |e| require e }
17
-
18
14
  module Airbrush
19
-
20
15
  end
21
16
 
22
- class Object
23
- def log(out=$stdout)
24
- @@logger ||= __create_logger__(out)
25
- end
26
-
27
- private
28
17
 
29
- def __create_logger__(target)
30
- @@logger = Logger.new(target)
31
- @@logger.level = Logger::INFO
32
- @@logger.formatter = Logger::Formatter.new
33
- @@logger
34
- end
35
-
36
- end
@@ -0,0 +1,15 @@
1
+ class Object
2
+ def log(out=$stdout)
3
+ @@logger ||= __create_logger__(out)
4
+ end
5
+
6
+ private
7
+
8
+ def __create_logger__(target)
9
+ @@logger = Logger.new(target)
10
+ @@logger.level = Logger::INFO
11
+ @@logger.formatter = Logger::Formatter.new
12
+ @@logger
13
+ end
14
+
15
+ end
@@ -1,3 +1,7 @@
1
+ ActiveSupport::Dependencies.autoload_paths << File.join(File.dirname(__FILE__), '..')
2
+ # Load up extensions to existing classes
3
+ Dir[File.dirname(__FILE__) + '/core_ext/*.rb'].each { |e| require e }
4
+
1
5
  module Airbrush
2
6
  class Server
3
7
  attr_reader :listener
data/spec/spec_helper.rb CHANGED
@@ -1,2 +1,4 @@
1
1
  $:.unshift(File.dirname(__FILE__) + '/../lib')
2
2
  require 'airbrush'
3
+ require 'airbrush/server'
4
+ require 'airbrush/client'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5.pre6
4
+ version: 0.0.5.pre7
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2011-06-18 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord
17
- requirement: &70293953083720 !ruby/object:Gem::Requirement
17
+ requirement: &70163693685000 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - =
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.0.10
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70293953083720
25
+ version_requirements: *70163693685000
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: activesupport
28
- requirement: &70293953082680 !ruby/object:Gem::Requirement
28
+ requirement: &70163693684260 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - =
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 3.0.10
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70293953082680
36
+ version_requirements: *70163693684260
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: actionpack
39
- requirement: &70293953081880 !ruby/object:Gem::Requirement
39
+ requirement: &70163693683560 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - =
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 3.0.10
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *70293953081880
47
+ version_requirements: *70163693683560
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: hpricot
50
- requirement: &70293953079900 !ruby/object:Gem::Requirement
50
+ requirement: &70163693682820 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *70293953079900
58
+ version_requirements: *70163693682820
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: curb
61
- requirement: &70293953079140 !ruby/object:Gem::Requirement
61
+ requirement: &70163693681960 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: '0'
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *70293953079140
69
+ version_requirements: *70163693681960
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: live_ast
72
- requirement: &70293953078500 !ruby/object:Gem::Requirement
72
+ requirement: &70163693681080 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: '0'
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *70293953078500
80
+ version_requirements: *70163693681080
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: starling
83
- requirement: &70293953077780 !ruby/object:Gem::Requirement
83
+ requirement: &70163693679780 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *70293953077780
91
+ version_requirements: *70163693679780
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: rmagick
94
- requirement: &70293953076580 !ruby/object:Gem::Requirement
94
+ requirement: &70163693674240 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: '0'
100
100
  type: :runtime
101
101
  prerelease: false
102
- version_requirements: *70293953076580
102
+ version_requirements: *70163693674240
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: rspec
105
- requirement: &70293953075540 !ruby/object:Gem::Requirement
105
+ requirement: &70163693672940 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ! '>='
@@ -110,7 +110,7 @@ dependencies:
110
110
  version: 1.2.9
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *70293953075540
113
+ version_requirements: *70163693672940
114
114
  description:
115
115
  email: nick@blocksglobal.com
116
116
  executables:
@@ -133,7 +133,7 @@ files:
133
133
  - lib/airbrush.rb
134
134
  - lib/airbrush/client.rb
135
135
  - lib/airbrush/core_ext/get_args.rb
136
- - lib/airbrush/core_ext/timestamped_logger.rb
136
+ - lib/airbrush/core_ext/object_logger.rb
137
137
  - lib/airbrush/handler.rb
138
138
  - lib/airbrush/listeners/listener.rb
139
139
  - lib/airbrush/listeners/memcache.rb
@@ -1,10 +0,0 @@
1
- module ActiveSupport
2
- class BufferedLogger
3
-
4
- def add_with_timestamps(severity, message = nil, progname = nil, &block)
5
- add_without_timestamps(severity, "#{Time.now}: #{message}", progname, &block)
6
- end
7
-
8
- alias_method_chain :add, :timestamps
9
- end
10
- end