bixby-common 0.4.8 → 0.4.9

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: d6c281fb220741f36fdad2d175f407d363d6070f
4
- data.tar.gz: 307dcde5ed3720e0ab1d44834fecc2e81e0d7bff
3
+ metadata.gz: 3bf8ff308dc21dba39146a9c8e4e8f89847067e0
4
+ data.tar.gz: acb3d00442d8441cf671a1f3e0d4ae27b1651f35
5
5
  SHA512:
6
- metadata.gz: c4f0ea7741cf335c5f624e94c29f0c8583d79752d3d9bc8c91dfc80da375d150a73e8233cdd664b048e21e3f42ed1da6f660234a7b4b575a0da7b87ceed3da8c
7
- data.tar.gz: a567db3f37074ba450c23369b5003ce15cae0be4f508ef127a6eb6f6e86cb69112751a72a1cb53122bb4156fd890d71d537eb89200030242b8959ba62689664f
6
+ metadata.gz: 831f646e2a0ac87f4cea8994d6cd20aae692e055a305cafc82866dcba5f9e6662918eb3aeb083aa7694e7d5499aa9aeeb0c477c72ed4089b0c6b08ed79831c05
7
+ data.tar.gz: b1edb2f822971007407696c817d692b455b8b6d055a42da7df4a9113bb0092f796afbed571db5129d2d228f24c313a6e8d48b64b4eb7b13e739491ce57c9b80e
data/.travis.yml CHANGED
@@ -1,7 +1,12 @@
1
- language: ruby
1
+ before_install:
2
+ - "curl -sL https://s3.bixby.io/wad > ~/wad"
3
+ - "chmod +x ~/wad"
4
+ install:
5
+ - "travis_retry ~/wad"
2
6
  script: "bundle exec micron test/"
3
7
  after_script: "rake coveralls"
4
8
 
9
+ language: ruby
5
10
  rvm:
6
11
  - 2.0.0
7
12
  - 1.9.3
@@ -9,3 +14,9 @@ rvm:
9
14
  branches:
10
15
  only:
11
16
  - master
17
+
18
+ env:
19
+ global:
20
+ - S3_REGION="us-east-1"
21
+ - S3_BUCKET_NAME="io.bixby.gemcache.wad.common"
22
+ - secure: ULQDgUsQJ1v9HGEBDIf59ivoivHwHf4+lGHBy3sMRnBjNqKuXx7qu0U1AF10MWQxVs/KvSGQCNDbxZ9yiibFn0hltCHAboq4SLR6KEIzTD3VssrKFRq2v4SSsVD30jwEatL2YpF7AckKWbvyr5yi7dHzXjw8yOX01ro6SLwws2o=
data/Gemfile CHANGED
@@ -10,28 +10,28 @@ gem "api-auth", :git => "https://github.com/chetan/api_auth.git", :branch => "bi
10
10
  gem "semver2"
11
11
 
12
12
  group :development do
13
-
14
- # for some tests
15
- gem "mixlib-shellout"
16
-
17
13
  gem "yard", "~> 0.8"
18
14
  gem "bundler", "~> 1.1"
19
15
  gem "jeweler", :git => "https://github.com/chetan/jeweler.git", :branch => "bixby"
20
16
  gem "pry"
21
17
 
22
- gem "simplecov", :platforms => [:mri_19, :mri_20, :rbx], :git => "https://github.com/chetan/simplecov.git", :branch => "inline_nocov"
23
-
24
- gem "webmock", :require => false
25
- gem "mocha", :require => false
26
-
27
18
  gem "test_guard", :git => "https://github.com/chetan/test_guard.git"
28
- gem "easycov", :github => "chetan/easycov"
29
- gem "micron", :github => "chetan/micron"
30
- gem "coveralls", :require => false
31
-
32
19
  gem 'rb-inotify', :require => false
33
20
  gem 'rb-fsevent', :require => false
34
21
  gem 'rb-fchange', :require => false
22
+ end
23
+
24
+ group :test do
25
+ gem "simplecov", :platforms => [:mri_19, :mri_20, :rbx], :git => "https://github.com/chetan/simplecov.git", :branch => "inline_nocov"
26
+ gem "easycov", :github => "chetan/easycov"
27
+ gem "micron", :github => "chetan/micron"
28
+ gem "coveralls", :require => false
29
+
30
+ gem "webmock", :require => false
31
+ gem "mocha", :require => false
32
+
33
+ # for some tests
34
+ gem "mixlib-shellout"
35
35
 
36
36
  # platform specific gemms
37
37
  # not sure we need to include these at all
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.8
1
+ 0.4.9
data/bixby-common.gemspec CHANGED
@@ -2,15 +2,15 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bixby-common 0.4.8 ruby lib
5
+ # stub: bixby-common 0.4.9 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bixby-common"
9
- s.version = "0.4.8"
9
+ s.version = "0.4.9"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Chetan Sarva"]
13
- s.date = "2013-10-29"
13
+ s.date = "2013-12-03"
14
14
  s.description = "Bixby Common files/libs"
15
15
  s.email = "chetan@pixelcop.net"
16
16
  s.extra_rdoc_files = [
@@ -79,7 +79,7 @@ Gem::Specification.new do |s|
79
79
  s.homepage = "http://github.com/chetan/bixby-common"
80
80
  s.licenses = ["MIT"]
81
81
  s.require_paths = ["lib"]
82
- s.rubygems_version = "2.1.5"
82
+ s.rubygems_version = "2.1.11"
83
83
  s.summary = "Bixby Common"
84
84
 
85
85
  if s.respond_to? :specification_version then
@@ -92,26 +92,14 @@ Gem::Specification.new do |s|
92
92
  s.add_runtime_dependency(%q<logging>, [">= 0"])
93
93
  s.add_runtime_dependency(%q<api-auth>, [">= 0"])
94
94
  s.add_runtime_dependency(%q<semver2>, [">= 0"])
95
- s.add_development_dependency(%q<mixlib-shellout>, [">= 0"])
96
95
  s.add_development_dependency(%q<yard>, ["~> 0.8"])
97
96
  s.add_development_dependency(%q<bundler>, ["~> 1.1"])
98
97
  s.add_development_dependency(%q<jeweler>, [">= 0"])
99
98
  s.add_development_dependency(%q<pry>, [">= 0"])
100
- s.add_development_dependency(%q<simplecov>, [">= 0"])
101
- s.add_development_dependency(%q<webmock>, [">= 0"])
102
- s.add_development_dependency(%q<mocha>, [">= 0"])
103
99
  s.add_development_dependency(%q<test_guard>, [">= 0"])
104
- s.add_development_dependency(%q<easycov>, [">= 0"])
105
- s.add_development_dependency(%q<micron>, [">= 0"])
106
- s.add_development_dependency(%q<coveralls>, [">= 0"])
107
100
  s.add_development_dependency(%q<rb-inotify>, [">= 0"])
108
101
  s.add_development_dependency(%q<rb-fsevent>, [">= 0"])
109
102
  s.add_development_dependency(%q<rb-fchange>, [">= 0"])
110
- s.add_development_dependency(%q<json>, [">= 0"])
111
- s.add_development_dependency(%q<oj>, [">= 0"])
112
- s.add_development_dependency(%q<httpclient>, [">= 0"])
113
- s.add_development_dependency(%q<curb>, [">= 0"])
114
- s.add_development_dependency(%q<jruby-openssl>, [">= 0"])
115
103
  else
116
104
  s.add_dependency(%q<faye-websocket>, [">= 0"])
117
105
  s.add_dependency(%q<multi_json>, [">= 0"])
@@ -119,26 +107,14 @@ Gem::Specification.new do |s|
119
107
  s.add_dependency(%q<logging>, [">= 0"])
120
108
  s.add_dependency(%q<api-auth>, [">= 0"])
121
109
  s.add_dependency(%q<semver2>, [">= 0"])
122
- s.add_dependency(%q<mixlib-shellout>, [">= 0"])
123
110
  s.add_dependency(%q<yard>, ["~> 0.8"])
124
111
  s.add_dependency(%q<bundler>, ["~> 1.1"])
125
112
  s.add_dependency(%q<jeweler>, [">= 0"])
126
113
  s.add_dependency(%q<pry>, [">= 0"])
127
- s.add_dependency(%q<simplecov>, [">= 0"])
128
- s.add_dependency(%q<webmock>, [">= 0"])
129
- s.add_dependency(%q<mocha>, [">= 0"])
130
114
  s.add_dependency(%q<test_guard>, [">= 0"])
131
- s.add_dependency(%q<easycov>, [">= 0"])
132
- s.add_dependency(%q<micron>, [">= 0"])
133
- s.add_dependency(%q<coveralls>, [">= 0"])
134
115
  s.add_dependency(%q<rb-inotify>, [">= 0"])
135
116
  s.add_dependency(%q<rb-fsevent>, [">= 0"])
136
117
  s.add_dependency(%q<rb-fchange>, [">= 0"])
137
- s.add_dependency(%q<json>, [">= 0"])
138
- s.add_dependency(%q<oj>, [">= 0"])
139
- s.add_dependency(%q<httpclient>, [">= 0"])
140
- s.add_dependency(%q<curb>, [">= 0"])
141
- s.add_dependency(%q<jruby-openssl>, [">= 0"])
142
118
  end
143
119
  else
144
120
  s.add_dependency(%q<faye-websocket>, [">= 0"])
@@ -147,26 +123,14 @@ Gem::Specification.new do |s|
147
123
  s.add_dependency(%q<logging>, [">= 0"])
148
124
  s.add_dependency(%q<api-auth>, [">= 0"])
149
125
  s.add_dependency(%q<semver2>, [">= 0"])
150
- s.add_dependency(%q<mixlib-shellout>, [">= 0"])
151
126
  s.add_dependency(%q<yard>, ["~> 0.8"])
152
127
  s.add_dependency(%q<bundler>, ["~> 1.1"])
153
128
  s.add_dependency(%q<jeweler>, [">= 0"])
154
129
  s.add_dependency(%q<pry>, [">= 0"])
155
- s.add_dependency(%q<simplecov>, [">= 0"])
156
- s.add_dependency(%q<webmock>, [">= 0"])
157
- s.add_dependency(%q<mocha>, [">= 0"])
158
130
  s.add_dependency(%q<test_guard>, [">= 0"])
159
- s.add_dependency(%q<easycov>, [">= 0"])
160
- s.add_dependency(%q<micron>, [">= 0"])
161
- s.add_dependency(%q<coveralls>, [">= 0"])
162
131
  s.add_dependency(%q<rb-inotify>, [">= 0"])
163
132
  s.add_dependency(%q<rb-fsevent>, [">= 0"])
164
133
  s.add_dependency(%q<rb-fchange>, [">= 0"])
165
- s.add_dependency(%q<json>, [">= 0"])
166
- s.add_dependency(%q<oj>, [">= 0"])
167
- s.add_dependency(%q<httpclient>, [">= 0"])
168
- s.add_dependency(%q<curb>, [">= 0"])
169
- s.add_dependency(%q<jruby-openssl>, [">= 0"])
170
134
  end
171
135
  end
172
136
 
@@ -38,7 +38,7 @@ module Bixby
38
38
  def self.setup_logger(opts={})
39
39
 
40
40
  # set level: ENV flag overrides; default to warn
41
- opts[:level] = :debug if ENV["BIXBY_DEBUG"]
41
+ opts[:level] = ENV["BIXBY_LOG"] if ENV["BIXBY_LOG"]
42
42
  opts[:level] ||= :warn
43
43
 
44
44
  pattern = opts.delete(:pattern) || '%.1l, [%d] %5l -- %c:%L: %m\n'
data/test/helper.rb CHANGED
@@ -8,7 +8,6 @@ rescue Bundler::BundlerError => e
8
8
  exit e.status_code
9
9
  end
10
10
 
11
- require 'test_guard'
12
11
  require 'micron/minitest'
13
12
 
14
13
  begin
@@ -7,15 +7,18 @@ module Test
7
7
  class TestLog < TestCase
8
8
 
9
9
  def test_setup_logger
10
- ENV["BIXBY_DEBUG"] = "1"
10
+ ENV["BIXBY_LOG"] = "DEBUG"
11
11
  Bixby::Log.setup_logger
12
12
  assert_equal 0, Logging::Logger.root.level # debug
13
13
 
14
- ENV.delete("BIXBY_DEBUG")
14
+ ENV["BIXBY_LOG"] = "error"
15
+ Bixby::Log.setup_logger
16
+ assert_equal 3, Logging::Logger.root.level # debug
17
+
18
+ ENV.delete("BIXBY_LOG")
15
19
  Bixby::Log.setup_logger
16
20
  assert_equal 2, Logging::Logger.root.level # warn
17
21
 
18
- ENV.delete("BIXBY_DEBUG")
19
22
  Bixby::Log.setup_logger(:level => :info)
20
23
  assert_equal 1, Logging::Logger.root.level # info
21
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bixby-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chetan Sarva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-29 00:00:00.000000000 Z
11
+ date: 2013-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faye-websocket
@@ -94,20 +94,6 @@ dependencies:
94
94
  - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: mixlib-shellout
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '>='
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: yard
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -164,48 +150,6 @@ dependencies:
164
150
  - - '>='
165
151
  - !ruby/object:Gem::Version
166
152
  version: '0'
167
- - !ruby/object:Gem::Dependency
168
- name: simplecov
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - '>='
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - '>='
179
- - !ruby/object:Gem::Version
180
- version: '0'
181
- - !ruby/object:Gem::Dependency
182
- name: webmock
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - '>='
186
- - !ruby/object:Gem::Version
187
- version: '0'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - '>='
193
- - !ruby/object:Gem::Version
194
- version: '0'
195
- - !ruby/object:Gem::Dependency
196
- name: mocha
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - '>='
200
- - !ruby/object:Gem::Version
201
- version: '0'
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - '>='
207
- - !ruby/object:Gem::Version
208
- version: '0'
209
153
  - !ruby/object:Gem::Dependency
210
154
  name: test_guard
211
155
  requirement: !ruby/object:Gem::Requirement
@@ -220,48 +164,6 @@ dependencies:
220
164
  - - '>='
221
165
  - !ruby/object:Gem::Version
222
166
  version: '0'
223
- - !ruby/object:Gem::Dependency
224
- name: easycov
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - '>='
228
- - !ruby/object:Gem::Version
229
- version: '0'
230
- type: :development
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - '>='
235
- - !ruby/object:Gem::Version
236
- version: '0'
237
- - !ruby/object:Gem::Dependency
238
- name: micron
239
- requirement: !ruby/object:Gem::Requirement
240
- requirements:
241
- - - '>='
242
- - !ruby/object:Gem::Version
243
- version: '0'
244
- type: :development
245
- prerelease: false
246
- version_requirements: !ruby/object:Gem::Requirement
247
- requirements:
248
- - - '>='
249
- - !ruby/object:Gem::Version
250
- version: '0'
251
- - !ruby/object:Gem::Dependency
252
- name: coveralls
253
- requirement: !ruby/object:Gem::Requirement
254
- requirements:
255
- - - '>='
256
- - !ruby/object:Gem::Version
257
- version: '0'
258
- type: :development
259
- prerelease: false
260
- version_requirements: !ruby/object:Gem::Requirement
261
- requirements:
262
- - - '>='
263
- - !ruby/object:Gem::Version
264
- version: '0'
265
167
  - !ruby/object:Gem::Dependency
266
168
  name: rb-inotify
267
169
  requirement: !ruby/object:Gem::Requirement
@@ -304,76 +206,6 @@ dependencies:
304
206
  - - '>='
305
207
  - !ruby/object:Gem::Version
306
208
  version: '0'
307
- - !ruby/object:Gem::Dependency
308
- name: json
309
- requirement: !ruby/object:Gem::Requirement
310
- requirements:
311
- - - '>='
312
- - !ruby/object:Gem::Version
313
- version: '0'
314
- type: :development
315
- prerelease: false
316
- version_requirements: !ruby/object:Gem::Requirement
317
- requirements:
318
- - - '>='
319
- - !ruby/object:Gem::Version
320
- version: '0'
321
- - !ruby/object:Gem::Dependency
322
- name: oj
323
- requirement: !ruby/object:Gem::Requirement
324
- requirements:
325
- - - '>='
326
- - !ruby/object:Gem::Version
327
- version: '0'
328
- type: :development
329
- prerelease: false
330
- version_requirements: !ruby/object:Gem::Requirement
331
- requirements:
332
- - - '>='
333
- - !ruby/object:Gem::Version
334
- version: '0'
335
- - !ruby/object:Gem::Dependency
336
- name: httpclient
337
- requirement: !ruby/object:Gem::Requirement
338
- requirements:
339
- - - '>='
340
- - !ruby/object:Gem::Version
341
- version: '0'
342
- type: :development
343
- prerelease: false
344
- version_requirements: !ruby/object:Gem::Requirement
345
- requirements:
346
- - - '>='
347
- - !ruby/object:Gem::Version
348
- version: '0'
349
- - !ruby/object:Gem::Dependency
350
- name: curb
351
- requirement: !ruby/object:Gem::Requirement
352
- requirements:
353
- - - '>='
354
- - !ruby/object:Gem::Version
355
- version: '0'
356
- type: :development
357
- prerelease: false
358
- version_requirements: !ruby/object:Gem::Requirement
359
- requirements:
360
- - - '>='
361
- - !ruby/object:Gem::Version
362
- version: '0'
363
- - !ruby/object:Gem::Dependency
364
- name: jruby-openssl
365
- requirement: !ruby/object:Gem::Requirement
366
- requirements:
367
- - - '>='
368
- - !ruby/object:Gem::Version
369
- version: '0'
370
- type: :development
371
- prerelease: false
372
- version_requirements: !ruby/object:Gem::Requirement
373
- requirements:
374
- - - '>='
375
- - !ruby/object:Gem::Version
376
- version: '0'
377
209
  description: Bixby Common files/libs
378
210
  email: chetan@pixelcop.net
379
211
  executables: []
@@ -459,7 +291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
459
291
  version: '0'
460
292
  requirements: []
461
293
  rubyforge_project:
462
- rubygems_version: 2.1.5
294
+ rubygems_version: 2.1.11
463
295
  signing_key:
464
296
  specification_version: 4
465
297
  summary: Bixby Common