Permalink
Browse files

use bundler for gem related tasks

  • Loading branch information...
1 parent 96c74a2 commit 4b81667f49b62a1fda58f44fda4f8469d913d21f @ranjib ranjib committed Aug 23, 2013
Showing with 49 additions and 102 deletions.
  1. +1 −12 Gemfile
  2. +13 −13 Gemfile.lock
  3. +2 −21 Rakefile
  4. +12 −56 dynect_rest.gemspec
  5. +21 −0 lib/dynect_rest/version.rb
View
13 Gemfile
@@ -1,15 +1,4 @@
source 'http://rubygems.org'
-gem 'rest-client', :require=>"rest_client"
-gem 'json'
-
-
-group :development do
- gem 'rake'
- gem "rspec", ">= 2.10.0"
- gem "yard"
- gem 'jeweler'
-end
-
-
+gemspec
View
@@ -1,16 +1,18 @@
+PATH
+ remote: .
+ specs:
+ dynect_rest (0.4.3)
+ json
+ rest-client
+
GEM
remote: http://rubygems.org/
specs:
diff-lcs (1.2.4)
- git (1.2.5)
- jeweler (1.6.2)
- bundler (~> 1.0)
- git (>= 1.2.5)
- rake
- json (1.5.1)
- mime-types (1.16)
- rake (0.9.1)
- rest-client (1.6.3)
+ json (1.8.0)
+ mime-types (1.24)
+ rake (10.1.0)
+ rest-client (1.6.7)
mime-types (>= 1.16)
rspec (2.14.1)
rspec-core (~> 2.14.0)
@@ -20,15 +22,13 @@ GEM
rspec-expectations (2.14.2)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.3)
- yard (0.7.1)
+ yard (0.8.7)
PLATFORMS
ruby
DEPENDENCIES
- jeweler
- json
+ dynect_rest!
rake
- rest-client
rspec (>= 2.10.0)
yard
View
@@ -1,27 +1,8 @@
require 'rubygems'
require 'rake'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "dynect_rest"
- gem.summary = %Q{Dynect REST API library}
- gem.description = %Q{Use the Dynect services REST API}
- gem.email = "adam@opscode.com"
- gem.homepage = "http://github.com/adamhjk/dynect_rest"
- gem.authors = ["Adam Jacob", "Ranjib Dey"]
- gem.add_development_dependency "rspec", ">= 2.10"
- gem.add_development_dependency "yard", ">= 0"
- gem.add_dependency('json')
- gem.add_dependency('rest-client')
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
-end
-
+require "bundler/gem_tasks"
require 'rspec/core/rake_task'
+
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
View
@@ -1,68 +1,24 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
-# -*- encoding: utf-8 -*-
+$:.unshift(File.dirname(__FILE__) + '/lib')
+require 'dynect_rest/version'
Gem::Specification.new do |s|
s.name = "dynect_rest"
- s.version = "0.4.3"
+ s.version = DynectRest::VERSION
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Adam Jacob"]
- s.date = "2012-04-11"
+ s.authors = ["Adam Jacob", "Ranjib Dey"]
+ s.date = "2013-08-23"
s.description = "Use the Dynect services REST API"
s.email = "adam@opscode.com"
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- ".document",
- ".rspec",
- "Gemfile",
- "Gemfile.lock",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "dynect_rest.gemspec",
- "example.rb",
- "lib/dynect_rest.rb",
- "lib/dynect_rest/exceptions.rb",
- "lib/dynect_rest/resource.rb",
- "spec/dynect_rest_spec.rb",
- "spec/spec_helper.rb"
- ]
+ s.files = %w(Rakefile LICENSE ) + Dir.glob("{lib,spec}/**/*", File::FNM_DOTMATCH).reject {|f| File.directory?(f) }
s.homepage = "http://github.com/adamhjk/dynect_rest"
s.require_paths = ["lib"]
- s.rubygems_version = "1.8.10"
+ s.rubygems_version = "2.0.3"
s.summary = "Dynect REST API library"
-
- if s.respond_to? :specification_version then
- s.specification_version = 3
-
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<rake>, [">= 0"])
- s.add_development_dependency(%q<yard>, [">= 0"])
- s.add_development_dependency(%q<jeweler>, [">= 0"])
- s.add_development_dependency(%q<rspec>, [">= 2.0"])
- s.add_runtime_dependency(%q<json>, [">= 0"])
- s.add_runtime_dependency(%q<rest-client>, [">= 0"])
- else
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<yard>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<rspec>, [">= 2.0"])
- s.add_dependency(%q<json>, [">= 0"])
- s.add_dependency(%q<rest-client>, [">= 0"])
- end
- else
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<yard>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<rspec>, [">= 2.0"])
- s.add_dependency(%q<json>, [">= 0"])
- s.add_dependency(%q<rest-client>, [">= 0"])
- end
+ s.add_dependency "rest-client"
+ s.add_dependency "json"
+ s.add_development_dependency "rake"
+ s.add_development_dependency "rspec", ">= 2.10.0"
+ s.add_development_dependency "yard"
end
View
@@ -0,0 +1,21 @@
+#
+# Author:: Ranjib Dey (dey.ranjib@gmail.com)
+# Copyright:: Copyright (c) 2013 Opscode, Inc.
+# License:: Apache License, Version 2.0
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+class DynectRest
+ VERSION='0.4.3'
+end

0 comments on commit 4b81667

Please sign in to comment.