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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3f306241edb410736b2b01067f4904c2b49f91b
4
- data.tar.gz: a8bc6b26e270e9dae4a864a24828d6f7352864ea
3
+ metadata.gz: 828a308f32ca9d6761f298ab1ad8d21a27704ef7
4
+ data.tar.gz: 06c671553355fd93d12f675e1cd1e70099345edd
5
5
  SHA512:
6
- metadata.gz: 8e58c2e51304db18732f5ba275d8b599b6c5b6cc703e9caef7e739fdea01bfadf08bae0d7b034943a5ba6475f527ee3e27ef40579250b995be0a0a795092093f
7
- data.tar.gz: 0bd6ccde3394c560038b1e7612ede7a8e9081cc657796523dd5dbedcfba47ad356aff16404b557406b11fd3f2a6fd0aabe82b86a557549348a43ec00672d507a
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
- tunemygc_min_ruby_version = "2.1.0"
3
+ require "tunemygc/version" unless defined? TuneMyGc::VERSION
4
4
 
5
- if RUBY_VERSION >= tunemygc_min_ruby_version
6
- require "tunemygc/version" unless defined? TuneMyGc::VERSION
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
- module TuneMyGc
9
- HOST = (ENV['RUBY_GC_TUNE_HOST'] || "tunemygc.com:443").freeze
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] requires a Ruby version #{tunemygc_min_ruby_version} or newer"
22
- end
15
+ puts "[TuneMyGC] not enabled"
16
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module TuneMyGc
4
- VERSION = "1.0.13"
4
+ VERSION = "1.0.14"
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.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bear Metal