Skip to content

Commit ae8de8e

Browse files
committedDec 16, 2014
Remove dependency on jeweler
1 parent cd28b89 commit ae8de8e

File tree

7 files changed

+61
-142
lines changed

7 files changed

+61
-142
lines changed
 

‎.gitignore

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
*.sw?
2-
.DS_Store
3-
coverage
4-
rdoc
5-
pkg
6-
doc
7-
.yardoc
8-
.rbenv-version
1+
/.bundle/
2+
/.yardoc
3+
/Gemfile.lock
4+
/_yardoc/
5+
/coverage/
6+
/doc/
7+
/pkg/
8+
/spec/reports/
9+
/tmp/
10+
*.bundle
11+
*.so
12+
*.o
13+
*.a
14+
mkmf.log

‎.rspec

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
--format documentation --color
1+
--format doc
2+
--color
23
--require spec_helper

‎Gemfile

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
source "http://rubygems.org"
1+
source 'https://rubygems.org'
22

3-
gem "libxml-ruby"
4-
5-
group :development do
6-
gem "nokogiri"
7-
gem "jeweler"
8-
gem "rake"
9-
gem "shoulda"
10-
gem "rspec", "~> 2.0"
11-
end
3+
gemspec

‎LICENSE ‎LICENSE.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Copyright (c) 2010-2011 Josh Delsman
1+
Copyright (c) 2014 Joshua Delsman
2+
3+
MIT License
24

35
Permission is hereby granted, free of charge, to any person obtaining
46
a copy of this software and associated documentation files (the
@@ -17,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1719
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
1820
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
1921
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

‎Rakefile

+1-40
Original file line numberDiff line numberDiff line change
@@ -1,40 +1 @@
1-
require 'rubygems'
2-
require 'bundler'
3-
4-
begin
5-
Bundler.setup(:default, :development)
6-
rescue Bundler::BundlerError => e
7-
$stderr.puts e.message
8-
$stderr.puts "Run `bundle install` to install missing gems"
9-
exit e.status_code
10-
end
11-
12-
$LOAD_PATH.unshift("lib")
13-
14-
require 'rake'
15-
require 'opensrs'
16-
17-
begin
18-
require 'jeweler'
19-
20-
Jeweler::Tasks.new do |gem|
21-
gem.name = "opensrs"
22-
gem.version = OpenSRS::Version::VERSION
23-
gem.summary = "Provides support to utilize the OpenSRS API with Ruby/Rails."
24-
gem.description = "Provides support to utilize the OpenSRS API with Ruby/Rails."
25-
gem.email = "jdelsman@voxxit.com"
26-
gem.homepage = "http://github.com/voxxit/opensrs"
27-
gem.license = "MIT"
28-
gem.authors = ["Josh Delsman"]
29-
30-
# Requirements are in Gemfile
31-
end
32-
rescue LoadError
33-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
34-
end
35-
36-
require 'rspec/core/rake_task'
37-
38-
RSpec::Core::RakeTask.new(:spec)
39-
40-
task :default => :spec
1+
require "bundler/gem_tasks"

‎opensrs.gemspec

+28-71
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,33 @@
1-
# Generated by jeweler
2-
# DO NOT EDIT THIS FILE DIRECTLY
3-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4-
# -*- encoding: utf-8 -*-
1+
# coding: utf-8
52

6-
Gem::Specification.new do |s|
7-
s.name = "opensrs"
8-
s.version = "0.3.4"
3+
lib = File.expand_path('../lib', __FILE__)
94

10-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11-
s.authors = ["Josh Delsman"]
12-
s.date = "2013-04-04"
13-
s.description = "Provides support to utilize the OpenSRS API with Ruby/Rails."
14-
s.email = "jdelsman@voxxit.com"
15-
s.extra_rdoc_files = [
16-
"LICENSE",
17-
"README.rdoc"
18-
]
19-
s.files = [
20-
".document",
21-
"Gemfile",
22-
"Gemfile.lock",
23-
"LICENSE",
24-
"README.rdoc",
25-
"Rakefile",
26-
"lib/opensrs.rb",
27-
"lib/opensrs/response.rb",
28-
"lib/opensrs/server.rb",
29-
"lib/opensrs/version.rb",
30-
"lib/opensrs/xml_processor.rb",
31-
"lib/opensrs/xml_processor/libxml.rb",
32-
"lib/opensrs/xml_processor/nokogiri.rb",
33-
"opensrs.gemspec",
34-
"spec/opensrs/server_spec.rb",
35-
"spec/opensrs/version_spec.rb",
36-
"spec/opensrs/xml_processor/libxml_spec.rb",
37-
"spec/opensrs/xml_processor/nokogiri_spec.rb",
38-
"spec/spec_helper.rb"
39-
]
40-
s.homepage = "http://github.com/voxxit/opensrs"
41-
s.licenses = ["MIT"]
42-
s.require_paths = ["lib"]
43-
s.rubygems_version = "1.8.23"
44-
s.summary = "Provides support to utilize the OpenSRS API with Ruby/Rails."
5+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
456

46-
if s.respond_to? :specification_version then
47-
s.specification_version = 3
7+
require 'opensrs/version'
488

49-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50-
s.add_runtime_dependency(%q<libxml-ruby>, ["~> 2.6.0"])
51-
s.add_development_dependency(%q<nokogiri>, ["~> 1.6.1"])
52-
s.add_development_dependency(%q<jeweler>, [">= 0"])
53-
s.add_development_dependency(%q<git>, [">= 0"])
54-
s.add_development_dependency(%q<rake>, [">= 0"])
55-
s.add_development_dependency(%q<shoulda>, [">= 0"])
56-
s.add_development_dependency(%q<rspec>, ["~> 2.0"])
57-
else
58-
s.add_dependency(%q<libxml-ruby>, ["~> 2.6.0"])
59-
s.add_dependency(%q<nokogiri>, ["~> 1.6.1"])
60-
s.add_dependency(%q<jeweler>, [">= 0"])
61-
s.add_dependency(%q<git>, [">= 0"])
62-
s.add_dependency(%q<rake>, [">= 0"])
63-
s.add_dependency(%q<shoulda>, [">= 0"])
64-
s.add_dependency(%q<rspec>, ["~> 2.0"])
65-
end
66-
else
67-
s.add_dependency(%q<libxml-ruby>, ["~> 2.6.0"])
68-
s.add_dependency(%q<nokogiri>, ["~> 1.6.1"])
69-
s.add_dependency(%q<jeweler>, [">= 0"])
70-
s.add_dependency(%q<git>, [">= 0"])
71-
s.add_dependency(%q<rake>, [">= 0"])
72-
s.add_dependency(%q<shoulda>, [">= 0"])
73-
s.add_dependency(%q<rspec>, ["~> 2.0"])
74-
end
75-
end
9+
Gem::Specification.new do |spec|
10+
11+
spec.name = "opensrs"
12+
spec.version = OpenSRS::Version::VERSION
13+
spec.authors = ["Joshua Delsman"]
14+
spec.email = ["voxxit@users.noreply.github.com"]
15+
spec.summary = "Provides support to utilize the OpenSRS API with Ruby/Rails."
16+
spec.description = "Provides support to utilize the OpenSRS API with Ruby/Rails."
17+
spec.homepage = "https://github.com/voxxit/opensrs"
18+
spec.license = "MIT"
19+
20+
spec.files = `git ls-files -z`.split("\x0")
21+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
22+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
23+
spec.require_paths = ["lib"]
7624

25+
spec.add_dependency "libxml-ruby"
26+
27+
spec.add_development_dependency "bundler", "~> 1.7"
28+
spec.add_development_dependency "rake", "~> 10.0"
29+
spec.add_development_dependency "rspec"
30+
spec.add_development_dependency "shoulda"
31+
spec.add_development_dependency "nokogiri"
32+
33+
end

‎spec/spec_helper.rb

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
require 'codeclimate-test-reporter'
2-
CodeClimate::TestReporter.start
1+
require 'bundler/setup'
32

4-
require 'coveralls'
5-
Coveralls.wear!
3+
Bundler.setup
64

7-
require 'opensrs/xml_processor.rb'
8-
require 'opensrs/xml_processor/libxml.rb'
9-
require 'opensrs/xml_processor/nokogiri.rb'
10-
require 'opensrs/server.rb'
11-
require 'opensrs/version.rb'
12-
require 'opensrs/response.rb'
5+
require 'opensrs'
6+
7+
RSpec.configure do |config|
8+
# config for rspec!
9+
end
1310

1411
class OpenSRS::TestLogger
12+
1513
attr_reader :messages
14+
1615
def initialize
1716
@messages = []
1817
end
1918

2019
def info(message)
2120
messages << message
2221
end
22+
2323
end

0 commit comments

Comments
 (0)
Please sign in to comment.