Skip to content

Commit c737357

Browse files
committed
Separated the gemspec from the rakefile
1 parent 38a0889 commit c737357

2 files changed

Lines changed: 45 additions & 20 deletions

File tree

rakefile

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,9 @@
2323
$LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__)))
2424

2525
require 'rubygems'
26-
require 'rubygems/package_task'
2726
require 'lib/softlayer/base'
2827
require 'rspec/core/rake_task'
29-
30-
softlayer_api_gem = Gem::Specification.new do |s|
31-
s.platform = Gem::Platform::RUBY
32-
s.name = %q{softlayer_api}
33-
s.version = SoftLayer::VERSION
34-
s.author = "SoftLayer Development Team"
35-
s.email = %q{sldn@softlayer.com}
36-
s.homepage = %q{http://sldn.softlayer.com/}
37-
s.summary = %q{Library for accessing the SoftLayer portal API}
38-
s.description = %q{The softlayer_api gem offers a convenient mechanism for invoking the services of the SoftLayer API from Ruby.}
39-
s.files = FileList["README.textile", "LICENSE.textile", "lib/**/*.rb", "test/**/*.rb", "examples/**/*.rb"]
40-
s.require_path = "lib"
41-
s.has_rdoc = true
42-
s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.1'
43-
s.license = %q{MIT}
44-
end
45-
46-
Gem::PackageTask.new(softlayer_api_gem) do |pkg|
47-
end
28+
require 'bundler/gem_tasks'
4829

4930
RSpec::Core::RakeTask.new do |tester|
5031
$DEBUG = 1
@@ -54,3 +35,5 @@ end
5435

5536
task :default => [:spec] do
5637
end
38+
39+
task :gem => :build

softlayer_api.gemspec

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#
2+
# Copyright (c) 2014 SoftLayer Technologies, Inc. All rights reserved.
3+
#
4+
# Permission is hereby granted, free of charge, to any person obtaining a copy
5+
# of this software and associated documentation files (the "Software"), to deal
6+
# in the Software without restriction, including without limitation the rights
7+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
# copies of the Software, and to permit persons to whom the Software is
9+
# furnished to do so, subject to the following conditions:
10+
#
11+
# The above copyright notice and this permission notice shall be included in
12+
# all copies or substantial portions of the Software.
13+
#
14+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
# THE SOFTWARE.
21+
#
22+
23+
$LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__)))
24+
require 'lib/softlayer/base'
25+
26+
Gem::Specification.new do |s|
27+
s.name = %q{softlayer_api}
28+
s.version = SoftLayer::VERSION
29+
s.author = "SoftLayer Development Team"
30+
s.email = %q{sldn@softlayer.com}
31+
s.description = %q{The softlayer_api gem offers a convenient mechanism for invoking the services of the SoftLayer API from Ruby.}
32+
s.summary = %q{Library for accessing the SoftLayer portal API}
33+
s.homepage = %q{http://sldn.softlayer.com/}
34+
s.license = %q{MIT}
35+
36+
s.files = Dir["README.textile", "LICENSE.textile", "lib/**/*.rb", "test/**/*.rb", "examples/**/*.rb"]
37+
s.require_paths = ["lib"]
38+
39+
s.has_rdoc = true
40+
s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.1'
41+
s.add_development_dependency 'rake'
42+
end

0 commit comments

Comments
 (0)