ocean-rails 1.28.5 → 1.29.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 958fd26f16c3c3905b9b43b1b7bd083d1cbfe995
4
- data.tar.gz: c16d8063b84b0832afa29d6d0370cd60c3f701b3
3
+ metadata.gz: fcf55b4f49837f9a37be96010aa3e638895d1326
4
+ data.tar.gz: 9c6a3af682a40a0ea6c492fb2f43d4da537a3cd3
5
5
  SHA512:
6
- metadata.gz: 39012b1196ef503166a2f54962b78533a477fa78ff5498b3bc113059df708e060d25f5e754bf5fe31d3db4e9729beebf568749ce7ec882da085fc7213f3e95b1
7
- data.tar.gz: 486bf0b75ef9a90b1dfeab62cf812ccea54ccc0bdba0e79aeb63efc219a237df74a4697312d85f325b981675bf72e890332992ca80f0cad18fe6995104ac4d82
6
+ metadata.gz: e6291db5e043024c0da10a7087322b91a9cd96c0445b7472ecfb6a6ff88a99ad98885ec8fbb44bdb6e9217351dbfe72f4e60d88ba46db04c095cbbf1a8f07f3d
7
+ data.tar.gz: dcb7bcf7fc48b0ce69c8ca4938ea6e18ea89f05fd623b3ffdf0399986db8f5523b898b09b0b9e6a1d1fa5d150a67e01aac4e88c6e3c169ba486676fdc2ef4dd1
@@ -1,5 +1,5 @@
1
1
 
2
- if Rails.env == 'never' # 'production'
2
+ if Rails.env == 'production' && ENV['NO_ZEROMQ_LOGGING'].blank?
3
3
 
4
4
  # Use a different logger for distributed setups
5
5
  Rails.logger = ActiveSupport::TaggedLogging.new(ZeromqLogger.new)
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "1.28.5"
2
+ VERSION = "1.29.0"
3
3
  end
@@ -9,7 +9,7 @@ require 'socket'
9
9
  class ZeromqLogger
10
10
 
11
11
  attr_accessor :level, :log_tags
12
-
12
+ attr_accessor :formatter
13
13
 
14
14
  #
15
15
  # Obtains the IP of the current process, initialises the @logger object
@@ -23,6 +23,7 @@ class ZeromqLogger
23
23
  # Set up the logger
24
24
  @logger = ZeroLog.new
25
25
  @logger.init_log_data_sender "/tmp/sub_push_#{Process.pid}"
26
+ @formatter = ::Logger::Formatter.new
26
27
  end
27
28
 
28
29
  #
@@ -69,7 +70,7 @@ class ZeromqLogger
69
70
  #
70
71
  # +msg+: The log message itself.
71
72
  #
72
- def add(level, msg, progname)
73
+ def add(level, msg, progname="")
73
74
  return true if level < @level
74
75
  msg = progname if msg.blank?
75
76
  return true if msg.blank? # Don't send
@@ -86,4 +87,25 @@ class ZeromqLogger
86
87
  true
87
88
  end
88
89
 
90
+
91
+ def debug(*args)
92
+ add 0, *args
93
+ end
94
+
95
+ def info(*args)
96
+ add 1, *args
97
+ end
98
+
99
+ def warn(*args)
100
+ add 2, *args
101
+ end
102
+
103
+ def error(*args)
104
+ add 3, *args
105
+ end
106
+
107
+ def fatal(*args)
108
+ add 4, *args
109
+ end
110
+
89
111
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.28.5
4
+ version: 1.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-15 00:00:00.000000000 Z
11
+ date: 2014-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday_middleware
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: typhoeus
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: net-purge
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
@@ -84,140 +84,140 @@ dependencies:
84
84
  name: ffi-rzmq
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rack-attack
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: jbuilder
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: ocean-dynamo
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: 0.5.7
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.5.7
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rails
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ~>
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
145
  version: '4.0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ~>
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '4.0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: sqlite3
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rspec-rails
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '>='
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: webmock
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - '>='
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - '>='
192
+ - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: simplecov
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - '>='
199
+ - - ">="
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - '>='
206
+ - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: factory_girl_rails
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - ~>
213
+ - - "~>"
214
214
  - !ruby/object:Gem::Version
215
215
  version: '4.0'
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - ~>
220
+ - - "~>"
221
221
  - !ruby/object:Gem::Version
222
222
  version: '4.0'
223
223
  description: "== Ocean\n\nOcean is an architecture for creating server-oriented architectures
@@ -243,6 +243,9 @@ executables: []
243
243
  extensions: []
244
244
  extra_rdoc_files: []
245
245
  files:
246
+ - MIT-LICENSE
247
+ - README.rdoc
248
+ - Rakefile
246
249
  - app/controllers/alive_controller.rb
247
250
  - app/controllers/errors_controller.rb
248
251
  - app/helpers/application_helper.rb
@@ -251,6 +254,7 @@ files:
251
254
  - config/initializers/ocean_constants.rb
252
255
  - config/initializers/zeromq_logger.rb
253
256
  - config/routes.rb
257
+ - lib/generators/ocean_scaffold/USAGE
254
258
  - lib/generators/ocean_scaffold/ocean_scaffold_generator.rb
255
259
  - lib/generators/ocean_scaffold/templates/controller_specs/create_spec.rb
256
260
  - lib/generators/ocean_scaffold/templates/controller_specs/delete_spec.rb
@@ -261,18 +265,18 @@ files:
261
265
  - lib/generators/ocean_scaffold/templates/resource_routing_spec.rb
262
266
  - lib/generators/ocean_scaffold/templates/view_specs/_resource_spec.rb
263
267
  - lib/generators/ocean_scaffold/templates/views/_resource.json.jbuilder
264
- - lib/generators/ocean_scaffold/USAGE
268
+ - lib/generators/ocean_setup/USAGE
265
269
  - lib/generators/ocean_setup/ocean_setup_generator.rb
270
+ - lib/generators/ocean_setup/templates/Gemfile
266
271
  - lib/generators/ocean_setup/templates/application_controller.rb
267
272
  - lib/generators/ocean_setup/templates/application_helper.rb
268
273
  - lib/generators/ocean_setup/templates/aws.yml.example
269
274
  - lib/generators/ocean_setup/templates/config.yml.example
270
- - lib/generators/ocean_setup/templates/Gemfile
271
275
  - lib/generators/ocean_setup/templates/gitignore
272
276
  - lib/generators/ocean_setup/templates/hyperlinks.rb
273
277
  - lib/generators/ocean_setup/templates/routes.rb
274
278
  - lib/generators/ocean_setup/templates/spec_helper.rb
275
- - lib/generators/ocean_setup/USAGE
279
+ - lib/ocean-rails.rb
276
280
  - lib/ocean/api.rb
277
281
  - lib/ocean/api_resource.rb
278
282
  - lib/ocean/engine.rb
@@ -284,12 +288,8 @@ files:
284
288
  - lib/ocean/version.rb
285
289
  - lib/ocean/zero_log.rb
286
290
  - lib/ocean/zeromq_logger.rb
287
- - lib/ocean-rails.rb
288
291
  - lib/tasks/ocean_tasks.rake
289
292
  - lib/templates/rails/scaffold_controller/controller.rb
290
- - MIT-LICENSE
291
- - Rakefile
292
- - README.rdoc
293
293
  homepage: https://github.com/OceanDev/ocean-rails
294
294
  licenses:
295
295
  - MIT
@@ -300,17 +300,17 @@ require_paths:
300
300
  - lib
301
301
  required_ruby_version: !ruby/object:Gem::Requirement
302
302
  requirements:
303
- - - ~>
303
+ - - "~>"
304
304
  - !ruby/object:Gem::Version
305
305
  version: '2'
306
306
  required_rubygems_version: !ruby/object:Gem::Requirement
307
307
  requirements:
308
- - - '>='
308
+ - - ">="
309
309
  - !ruby/object:Gem::Version
310
310
  version: '0'
311
311
  requirements: []
312
312
  rubyforge_project:
313
- rubygems_version: 2.0.7
313
+ rubygems_version: 2.2.1
314
314
  signing_key:
315
315
  specification_version: 4
316
316
  summary: This gem implements common Ocean behaviour for Ruby and Ruby on Rails.