kelredd-resourceful 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/resourceful.rb CHANGED
@@ -1,7 +1,7 @@
1
- %w(rubygems nokogiri json log4r).each do |lib|
1
+ %w(nokogiri json log4r).each do |lib|
2
2
  require lib
3
3
  end
4
4
 
5
5
  %w(exceptions extensions resource agent model).each do |file|
6
- require File.join(File.dirname(__FILE__), 'resourceful', "#{file}.rb")
6
+ require "resourceful/#{file}"
7
7
  end
@@ -1,3 +1,3 @@
1
1
  Dir[File.join(File.dirname(__FILE__), "agent" ,"*.rb")].each do |file|
2
- require file
2
+ require "resourceful/agent/#{File.basename(file, ".rb")}"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  require 'log4r'
2
- require File.join(File.dirname(__FILE__), '..', 'resource', 'cache.rb')
2
+ require "resourceful/resource/cache"
3
3
 
4
4
  module Resourceful
5
5
  module Agent
@@ -1,5 +1,5 @@
1
1
  require 'mechanize'
2
- require File.join(File.dirname(__FILE__), 'base.rb')
2
+ require "resourceful/agent/base"
3
3
 
4
4
  module Resourceful
5
5
  module Agent
@@ -1,5 +1,5 @@
1
1
  require 'rest_client'
2
- require File.join(File.dirname(__FILE__), 'base.rb')
2
+ require "resourceful/agent/base"
3
3
 
4
4
  module Resourceful
5
5
  module Agent
@@ -1,3 +1,3 @@
1
1
  Dir[File.join(File.dirname(__FILE__), "model" ,"*.rb")].each do |file|
2
- require file
2
+ require "resourceful/model/#{File.basename(file, ".rb")}"
3
3
  end
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), 'base.rb')
1
+ require "resourceful/model/base"
2
2
 
3
3
  module Resourceful
4
4
  module Model
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), 'base.rb')
1
+ require "resourceful/model/base"
2
2
 
3
3
  module Resourceful
4
4
  module Model
@@ -1,3 +1,3 @@
1
1
  Dir[File.join(File.dirname(__FILE__), "resource" ,"*.rb")].each do |file|
2
- require file
2
+ require "resourceful/resource/#{File.basename(file, ".rb")}"
3
3
  end
@@ -3,7 +3,7 @@ module Resourceful
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 6
6
- TINY = 1
6
+ TINY = 2
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kelredd-resourceful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding