Skip to content

Commit

Permalink
Fix for older versions of ruby that 'require rubygems' explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisleavoy committed Sep 23, 2012
1 parent 163765a commit 8a823d2
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/puppet/provider/sensu_api_config/json.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'json'

Puppet::Type.type(:sensu_api_config).provide(:json) do
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/sensu_check_config/json.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'json'

Puppet::Type.type(:sensu_check_config).provide(:json) do
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/sensu_clean_config/json.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'json'

Puppet::Type.type(:sensu_clean_config).provide(:json) do
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/sensu_client_config/json.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'json'

Puppet::Type.type(:sensu_client_config).provide(:json) do
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/sensu_dashboard_config/json.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'json'

Puppet::Type.type(:sensu_dashboard_config).provide(:json) do
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/sensu_handler_config/json.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'json'

Puppet::Type.type(:sensu_handler_config).provide(:json) do
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/sensu_rabbitmq_config/json.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'json'

Puppet::Type.type(:sensu_rabbitmq_config).provide(:json) do
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/sensu_redis_config/json.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'json'

Puppet::Type.type(:sensu_redis_config).provide(:json) do
Expand Down

0 comments on commit 8a823d2

Please sign in to comment.