tunemygc 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tunemygc.rb +11 -17
- data/lib/tunemygc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 828a308f32ca9d6761f298ab1ad8d21a27704ef7
|
4
|
+
data.tar.gz: 06c671553355fd93d12f675e1cd1e70099345edd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5eeaedd38f1b6b02d552855de459b5da06b46d6e33f041fb3e9c972871d921c5aad1c4e3659ec3e5666c6dc8986075bca96fde4f60b3bbf8c3829dbd2b980c01
|
7
|
+
data.tar.gz: 5c22bc01bcb6265560cab7326cfe3de45b95942c44402a476c4118bc078363140fcd721f6ca48439d11be0fcbb4260a596c6eac94951391ff47beb99315699c5
|
data/lib/tunemygc.rb
CHANGED
@@ -1,22 +1,16 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
|
3
|
+
require "tunemygc/version" unless defined? TuneMyGc::VERSION
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
module TuneMyGc
|
6
|
+
HOST = (ENV['RUBY_GC_TUNE_HOST'] || "tunemygc.com:443").freeze
|
7
|
+
HEADERS = { "Content-Type" => "application/json",
|
8
|
+
"Accept" => "application/json",
|
9
|
+
"User-Agent" => "TuneMyGC #{TuneMyGc::VERSION}"}.freeze
|
10
|
+
end
|
7
11
|
|
8
|
-
|
9
|
-
|
10
|
-
HEADERS = { "Content-Type" => "application/json",
|
11
|
-
"Accept" => "application/json",
|
12
|
-
"User-Agent" => "TuneMyGC #{TuneMyGc::VERSION}"}.freeze
|
13
|
-
end
|
14
|
-
|
15
|
-
if ENV["RUBY_GC_TUNE"] && defined?(Rails) && Rails.version >= "4.0"
|
16
|
-
require 'tunemygc/railtie'
|
17
|
-
else
|
18
|
-
puts "[TuneMyGC] not enabled"
|
19
|
-
end
|
12
|
+
if ENV["RUBY_GC_TUNE"] && defined?(Rails) && Rails.version >= "4.0"
|
13
|
+
require 'tunemygc/railtie'
|
20
14
|
else
|
21
|
-
puts "[TuneMyGC]
|
22
|
-
end
|
15
|
+
puts "[TuneMyGC] not enabled"
|
16
|
+
end
|
data/lib/tunemygc/version.rb
CHANGED