integration_wrapper 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,7 +49,7 @@ $:.unshift(File.dirname(__FILE__)) unless
49
49
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
50
50
 
51
51
  module IntegrationWrapper
52
- VERSION = '0.0.5'
52
+ VERSION = '0.0.6'
53
53
  end
54
54
 
55
55
  if defined?(Rails)
@@ -36,7 +36,7 @@ module IntegrationWrapper
36
36
  end
37
37
 
38
38
  def self.modes
39
- [ MODE_ONLINE, MODE_OFFLINE ]
39
+ [MODE_ONLINE, MODE_OFFLINE]
40
40
  end
41
41
 
42
42
  ################################################################################
@@ -66,5 +66,16 @@ module IntegrationWrapper
66
66
  super
67
67
  end
68
68
  end
69
+
70
+ def log_enabled?
71
+ false
72
+ end
73
+
74
+ def log(message)
75
+ if log_enabled?
76
+ Rails.logger.info message
77
+ puts message
78
+ end
79
+ end
69
80
  end
70
81
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: integration_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: