Created
January 2, 2016 03:56
-
-
Save butchmarshall/f9718ee46bc2a99d71ad to your computer and use it in GitHub Desktop.
This will throw: TypeError: superclass mismatch for class MyClass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyGem | |
class MyClass | |
VERSION = "0.0.1" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'my_gem/my_class/version' | |
module MyGem | |
class MyClass < ActiveRecord::Base | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'my_gem/my_class/version.rb' | |
Gem::Specification.new do |spec| | |
spec.version = MyGem::MyClass::VERSION | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment