profile_it 0.2.8.1 → 0.2.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6e27885fe7889fc61e25ed6ac99b970543e4bb4
4
- data.tar.gz: 33c2e2322945ecba137762fa00be3dc8b95e11b8
3
+ metadata.gz: ad0ef8e0f7cfe776309bff35e783e2bb5d158775
4
+ data.tar.gz: 44c7fafa8a21ed86284d05c99bcf494e399e1d2d
5
5
  SHA512:
6
- metadata.gz: 3ea51dcffd02e48807dac1eac08bb4837f01af5ed27bd3ce2f37a0cd1ebe793c03b5b3117861410a73b571d8b17c0af8c03e65b5bf0bcb984341af7ffbf97562
7
- data.tar.gz: 65f0b0b799c745305b87a8b815417cc1a768cae6c22e2e622a2031e9729d09a284f0dde2e397700399cadaf33bfc0e4b1f80f71afa0422181a914561f182655d
6
+ metadata.gz: 442b841c89532f6dc0bea66b9460bcf891400e2af50393facdaac3605246fa7247959a17a9d5e81a2b57c745045dd673163010e61b20ddd942795d99cbb9e3f3
7
+ data.tar.gz: a09b049faf4fa8e2fe3a8042daa41bc4ea2979b99418f021c23c95f083decc7523f20be37e7b1d394aad5a000ab1b5ee97662e51a07e3debc4e46d8b72c5db9c
@@ -1,3 +1,10 @@
1
+ # 0.2.9
2
+
3
+ * Set default log_level to INFO
4
+ * Removed default key
5
+ * Warning on failed ability to send a profile
6
+ * Warning and exiting when no key provided
7
+
1
8
  # 0.2.8.1
2
9
 
3
10
  * Updating gem homepage
@@ -49,6 +49,9 @@ module ProfileIt
49
49
  if !config.settings['profile']
50
50
  logger.warn "Profiling isn't enabled for the [#{environment.env}] environment."
51
51
  return false
52
+ elsif !config.settings['key']
53
+ logger.warn "The config file doesn't specify an account key. See https://profileit.io/help for a install instructions."
54
+ return false
52
55
  # elsif !environment.app_server
53
56
  # logger.warn "Couldn't find a supported app server. Not starting agent."
54
57
  # return false
@@ -52,11 +52,11 @@ module ProfileIt
52
52
  logger.debug "got response: #{response.inspect}"
53
53
  case response
54
54
  when Net::HTTPSuccess, Net::HTTPNotModified
55
- logger.debug "/checkin OK"
55
+ logger.debug "Send Profile: OK"
56
56
  when Net::HTTPBadRequest
57
- logger.warn "/checkin FAILED: The Account Key [#{config.settings['key']}] is invalid."
57
+ logger.warn "Send Profile: FAILED: The Account Key [#{config.settings['key']}] is invalid."
58
58
  else
59
- logger.debug "/checkin FAILED: #{response.inspect}"
59
+ logger.warn "Send Profile: FAILED: #{response.inspect}"
60
60
  end
61
61
  rescue Exception
62
62
  logger.debug "Exception sending request to server: #{$!.message}"
@@ -2,9 +2,8 @@ module ProfileIt
2
2
  class Config
3
3
  DEFAULTS = {
4
4
  'host' => 'https://profileit.io',
5
- 'log_level' => 'debug', # changed from info for dev
6
- 'name' => 'LOCAL APP',
7
- 'key' => 'DEV'
5
+ 'log_level' => 'info', # changed from info for dev
6
+ 'name' => 'LOCAL APP'
8
7
  }
9
8
 
10
9
  def initialize(config_path = nil)
@@ -1,3 +1,3 @@
1
1
  module ProfileIt
2
- VERSION = "0.2.8.1"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: profile_it
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8.1
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Haynes