tunemygc 1.0.20 → 1.0.21

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: f2a137fcc751bdbe687ec275b922f67a3a666a44
4
- data.tar.gz: ca258ed73bfe627031d4ccffac7457ad0deaab0d
3
+ metadata.gz: 0835ea9c7b907e38b0d816dd64d73cdea16215c0
4
+ data.tar.gz: 426c1f8515ba83dd3c021beb85ade70346f71ccc
5
5
  SHA512:
6
- metadata.gz: a901f3e56967e38228fd57d40d33f7db7a8cf143a06d8b4644df93d2f4aa2a15f3580c1499437dd25d9e895146afd100c336007f2c34f964033c69b40701f6fb
7
- data.tar.gz: b7e615f3b6cc7d3ded86b68c53a66410215cff1584eaaa4e096f4a64dba7d78f35fb05f6dfa8ccf3056be51f51ffcf1dc66e747004e2479a2c64336b4a3827f6
6
+ metadata.gz: d910a5911e19f611c4c6331d546019527d2ecb5987dcc91b644c00d55a21e1b915c71ce4fb47378d37067719e8f380e2e8bb25ed963e23663c0a4de509c9445b
7
+ data.tar.gz: f32c86c4b5303ecd93a32256d210ef5afd8d30b019c7d7c8fcfe82e2090fa0a9d479a203abbe73c11133f4aa5111fc1892ef4b9b1739e7cdb7b3d4faba4a8688
@@ -35,6 +35,10 @@ module TuneMyGc
35
35
  logger.info "[TuneMyGC] #{message}"
36
36
  end
37
37
 
38
+ def rails_version
39
+ rails? ? Rails.version : "0.0"
40
+ end
41
+
38
42
  def spy
39
43
  TuneMyGc::Spies.current
40
44
  end
@@ -4,7 +4,7 @@ require 'tunemygc/network'
4
4
 
5
5
  module TuneMyGc
6
6
  class Syncer
7
- ENVIRONMENT = [ENV['RUBY_GC_TOKEN'], RUBY_VERSION, Rails.version, ENV.select {|k,v| k =~ /RUBY_GC_/ }, TuneMyGc::VERSION, GC::OPTS, GC::INTERNAL_CONSTANTS].freeze
7
+ ENVIRONMENT = [ENV['RUBY_GC_TOKEN'], RUBY_VERSION, TuneMyGc.rails_version, ENV.select {|k,v| k =~ /RUBY_GC_/ }, TuneMyGc::VERSION, GC::OPTS, GC::INTERNAL_CONSTANTS].freeze
8
8
 
9
9
  attr_reader :uri, :client
10
10
 
@@ -64,7 +64,7 @@ module TuneMyGc
64
64
  TuneMyGc.log "Invalid application token. Please generate one with 'bundle exec tunemygc <a_valid_email_address>' and set the RUBY_GC_TOKEN environment variable"
65
65
  return false
66
66
  elsif Net::HTTPNotImplemented === response
67
- TuneMyGc.log "Ruby version #{RUBY_VERSION} or Rails version #{Rails.version} not supported. Failed to sync #{snapshots} snapshots"
67
+ TuneMyGc.log "Ruby version #{RUBY_VERSION} or Rails version #{TuneMyGc.rails_version} not supported. Failed to sync #{snapshots} snapshots"
68
68
  return false
69
69
  elsif Net::HTTPUpgradeRequired === response
70
70
  TuneMyGc.log "Agent version #{response.body} required - please upgrade. Failed to sync #{snapshots} snapshots"
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module TuneMyGc
4
- VERSION = "1.0.20"
4
+ VERSION = "1.0.21"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tunemygc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.20
4
+ version: 1.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bear Metal