Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit a921f17

Browse files
authored
Merge pull request #8 from cults/do-not-require-gems-in-gemspec
Do not require the whole gem inside the gemspec
2 parents 4dade14 + ed44e9a commit a921f17

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

lib/thingiverse.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
require 'cgi'
66
require 'uri'
77

8+
require 'thingiverse/version'
89
require 'thingiverse/dynamic_attributes'
910
require 'thingiverse/connection'
1011
require 'thingiverse/pagination'
@@ -14,7 +15,3 @@
1415
require 'thingiverse/images'
1516
require 'thingiverse/categories'
1617
require 'thingiverse/tags'
17-
18-
module Thingiverse
19-
VERSION = '0.0.8'
20-
end

lib/thingiverse/version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Thingiverse
2+
VERSION = '0.0.8'
3+
end

thingiverse.gemspec

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
$LOAD_PATH.push File.expand_path("../lib", __FILE__)
2-
require File.expand_path("../lib/thingiverse", __FILE__)
1+
require File.expand_path("../lib/thingiverse/version", __FILE__)
32

43
Gem::Specification.new do |s|
54
s.name = "thingiverse"
@@ -16,7 +15,7 @@ Gem::Specification.new do |s|
1615

1716
s.require_paths = ["lib"]
1817
s.files = Dir["{lib}/**/*.rb", "test/*", "LICENSE", "README.rdoc"]
19-
18+
2019
s.add_dependency("json")
2120
s.add_dependency("httparty")
2221
s.add_dependency("curb")

0 commit comments

Comments
 (0)