testcloud-support 0.0.0.7 → 0.0.0.8

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: d4ebcdd0382d3cffd71ef10fb2c2021162958962
4
- data.tar.gz: 1a91d314516ffc198bddd992c343c911b4eac1cd
3
+ metadata.gz: 01ecc12c6da0aacfc3cbdd58907caf46f8a29156
4
+ data.tar.gz: 2d85bb8ea05487b3cfcfc398aff5484c0bf1b905
5
5
  SHA512:
6
- metadata.gz: c245f7ce7cad288ee01f7b4b2d5321ff8f8ae62537cd7e5442dc0b2661b174eb4fde7f1277485ff98f73ab409412c43b7a345df3854bc5e3e7b5f8f62f6fb6e8
7
- data.tar.gz: 1c6bc7a95c6036dfe634404d1ec5130691ae2cad9e5d4dcbff8e4840b305cac87ffc5044b1f3dc04e35b0042680181213efda0f37d39fdc7300504efa5a349d9
6
+ metadata.gz: babba0b6db6094aa127f38e0a19fc0f2d0e7a0cead206377c15d02d00b25ba4422253acf0a42a41d68a81474075626f1c0739ee279b46d1c57a1606ac2f506ff
7
+ data.tar.gz: 82cafedc59a182c95ef0968190dc375a30c209bdc735a3d55e3669c6218e53967c59ac0f4f662c7de03be6f2b48a46423823c92051bf737361649457e093e1db
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testcloud-support (0.0.0.7)
4
+ testcloud-support (0.0.0.8)
5
5
  activesupport (>= 4.1)
6
6
 
7
7
  GEM
@@ -1,4 +1,5 @@
1
- require 'testcloud/support/dependencies'
1
+ # Always load all active_support goodies
2
+ require 'active_support/all'
2
3
 
3
4
  module Testcloud
4
5
 
@@ -8,7 +8,7 @@ module Testcloud
8
8
  MAJOR = 0
9
9
  MINOR = 0
10
10
  PATCH = 0
11
- PRE = 7
11
+ PRE = 8
12
12
  STRING = [MAJOR, MINOR, PATCH, PRE].join('.').freeze
13
13
  end
14
14
  end
@@ -1,21 +1,10 @@
1
- require 'testcloud/support/logging/default_logger'
2
-
3
1
  module Testcloud
4
2
  module Support
5
3
 
6
4
  class << self
7
5
  def logger
8
- logger_class.logger
6
+ @logger ||= ActiveSupport::Logger.new(STDOUT)
9
7
  end
10
-
11
- private
12
- def logger_class
13
- @logger ||= logger_for_environment(Testcloud.env)
14
- end
15
-
16
- def logger_for_environment(environment)
17
- Logging::DefaultLogger.new
18
- end
19
8
  end # self
20
9
 
21
10
  end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+ require 'testcloud/support/logger'
3
+
4
+ describe 'Testcloud::Support.logger' do
5
+
6
+ it 'should append a logger to the Testcloud::Support object' do
7
+ expect(Testcloud::Support).to respond_to(:logger)
8
+ end
9
+
10
+ it 'should have standard logging methods' do
11
+ [:fatal, :error, :warn, :info, :debug].each do |output_method|
12
+ expect(Testcloud::Support.logger).to respond_to(output_method)
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcloud-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.7
4
+ version: 0.0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - testCloud Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-03 00:00:00.000000000 Z
11
+ date: 2014-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -121,15 +121,13 @@ files:
121
121
  - README.md
122
122
  - Rakefile
123
123
  - lib/testcloud/support.rb
124
- - lib/testcloud/support/dependencies.rb
125
124
  - lib/testcloud/support/gem_version.rb
126
125
  - lib/testcloud/support/global_methods.rb
127
- - lib/testcloud/support/loading.rb
128
126
  - lib/testcloud/support/logger.rb
129
- - lib/testcloud/support/logging/default_logger.rb
130
127
  - lib/testcloud/support/version.rb
131
128
  - lib/testcloud_support.rb
132
129
  - spec/spec_helper.rb
130
+ - spec/testcloud/support/logger.rb
133
131
  - spec/testcloud/support_spec.rb
134
132
  homepage: https://testcloud.io
135
133
  licenses:
@@ -1,6 +0,0 @@
1
-
2
- # add autoload :MyModule without having to give the pathname
3
- require 'active_support/dependencies/autoload'
4
-
5
- # Fetch namespaced constants i.e. Object.qualified_const_get('Testcloud::Support::Yoda')
6
- require 'active_support/core_ext/module/qualified_const'
@@ -1,9 +0,0 @@
1
- require 'active_support/dependencies'
2
- require 'active_support/core_ext/module/qualified_const'
3
-
4
- module Testcloud
5
- module Support
6
- module Loading
7
- end
8
- end
9
- end
@@ -1,21 +0,0 @@
1
- require 'logger'
2
-
3
- module Testcloud
4
- module Support
5
- module Logging
6
-
7
- class DefaultLogger
8
- attr_reader :logger
9
-
10
- def initialize
11
- @logger = ::Logger.new(STDOUT)
12
- @logger.datetime_format = '%Y-%M-%d %H:%M:%S'
13
- @logger.formatter = proc do |severity, datetime, program_name, message|
14
- "[#{severity}]: #{message} [#{datetime}]"
15
- end
16
- self
17
- end
18
- end
19
- end
20
- end
21
- end