go_api_client 0.5.1 → 0.5.2

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- go_api_client (0.5.1)
4
+ go_api_client (0.5.2)
5
5
  nokogiri
6
6
 
7
7
  GEM
@@ -0,0 +1,9 @@
1
+ module GoApiClient
2
+ class Engine < ::Rails::Railtie
3
+
4
+ config.after_initialize do
5
+ GoApiClient.logger = Rails.logger
6
+ end
7
+
8
+ end
9
+ end
@@ -4,5 +4,6 @@ module GoApiClient
4
4
  class <<self
5
5
  attr_accessor :logger
6
6
  end
7
- self.logger ||= ::Logger.new(STDERR)
7
+
8
+ self.logger = ::Logger.new(STDERR)
8
9
  end
@@ -2,7 +2,7 @@ module GoApiClient
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- PATCH = 1
5
+ PATCH = 2
6
6
  RELEASE = ENV['GO_PIPELINE_COUNTER']
7
7
  VERSION = [MAJOR, MINOR, PATCH, RELEASE].compact.join('.')
8
8
  end
data/lib/go_api_client.rb CHANGED
@@ -14,6 +14,7 @@ require 'go_api_client/artifact'
14
14
  require 'go_api_client/commit'
15
15
  require 'go_api_client/user'
16
16
  require 'go_api_client/logger'
17
+ require 'go_api_client/engine' if defined?(::Rails)
17
18
 
18
19
  module GoApiClient
19
20
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: go_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -120,6 +120,7 @@ files:
120
120
  - lib/go_api_client/atom/feed.rb
121
121
  - lib/go_api_client/atom/feed_page.rb
122
122
  - lib/go_api_client/commit.rb
123
+ - lib/go_api_client/engine.rb
123
124
  - lib/go_api_client/helpers.rb
124
125
  - lib/go_api_client/helpers/simple_attribute_support.rb
125
126
  - lib/go_api_client/http_fetcher.rb