Skip to content

Commit 046adc1

Browse files
committed
try only using require, not require_relative
1 parent 1fff4b8 commit 046adc1

File tree

9 files changed

+15
-16
lines changed

9 files changed

+15
-16
lines changed

lib/opentok.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require_relative "opentok/opentok"
1+
require "opentok/opentok"
22

33
# Namespace for classes and modules in the OpenTok 2.2 Ruby SDK.
44
module OpenTok

lib/opentok/archive_list.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require_relative "archive"
1+
require "opentok/archive"
22

33
module OpenTok
44
# A class for accessing an array of Archive objects.

lib/opentok/archives.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
require_relative "client"
2-
require_relative "archive"
3-
require_relative "archive_list"
1+
require "opentok/client"
2+
require "opentok/archive"
3+
require "opentok/archive_list"
44

55
module OpenTok
66
# A class for working with OpenTok archives.

lib/opentok/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
require_relative "exceptions"
2-
require_relative "../extensions/hash"
1+
require "opentok/exceptions"
2+
require "opentok/extensions/hash"
33

44
require "active_support/inflector"
55
require "httparty"
File renamed without changes.

lib/opentok/opentok.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
require_relative "constants"
2-
require_relative "session"
3-
require_relative "client"
4-
require_relative "token_generator"
5-
require_relative "archives"
1+
require "opentok/constants"
2+
require "opentok/session"
3+
require "opentok/client"
4+
require "opentok/token_generator"
5+
require "opentok/archives"
66

77
require "resolv"
88
require "set"

lib/opentok/session.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require "base64"
2-
require_relative "token_generator"
2+
require "opentok/token_generator"
33

44
module OpenTok
55

lib/opentok/token_generator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
require_relative "constants"
2-
require_relative "session"
1+
require "opentok/constants"
2+
require "opentok/session"
33

44
require "base64"
55
require "addressable/uri"

opentok.gemspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Gem::Specification.new do |spec|
1515
spec.files = `git ls-files -z`.split("\x0")
1616
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
1717
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18-
spec.require_paths = ["lib"]
1918

2019
spec.add_development_dependency "bundler", "~> 1.5"
2120
spec.add_development_dependency "rake", "~> 10.1.1"

0 commit comments

Comments
 (0)