Skip to content

Commit 6852c67

Browse files
committed
Finish 2.0.0
2 parents 0a6d8b5 + ddf951d commit 6852c67

File tree

6 files changed

+43
-7
lines changed

6 files changed

+43
-7
lines changed

CONTRIBUTING.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# How to contribute
2+
3+
Community contributions are essential for keeping Ruby RDF great. We want to keep it as easy as possible to contribute changes that get things working in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.
4+
5+
## Development
6+
7+
This repository uses [Git Flow](https://github.com/nvie/gitflow) to manage development and release activity. All submissions _must_ be on a feature branch based on the _develop_ branch to ease staging and integration.
8+
9+
* create or respond to an issue on the [Github Repository](http://github.com/ruby-rdf/sparql-client/issues)
10+
* Fork and clone the repo:
11+
`git clone [email protected]:your-username/sparql-client.git`
12+
* Install bundle:
13+
`bundle install`
14+
* Create tests in RSpec and make sure you achieve at least 90% code coverage for the feature your adding or behavior being modified.
15+
* Push to your fork and [submit a pull request][pr].
16+
17+
## Do's and Dont's
18+
* Do your best to adhere to the existing coding conventions and idioms.
19+
* Don't use hard tabs, and don't leave trailing whitespace on any line.
20+
Before committing, run `git diff --check` to make sure of this.
21+
* Do document every method you add using [YARD][] annotations. Read the
22+
[tutorial][YARD-GS] or just look at the existing code for examples.
23+
* Don't touch the `.gemspec` or `VERSION` files. If you need to change them,
24+
do so on your private branch only.
25+
* Do feel free to add yourself to the `CREDITS` file and the
26+
corresponding list in the the `README`. Alphabetical order applies.
27+
* Don't touch the `AUTHORS` file. If your contributions are significant
28+
enough, be assured we will eventually add you in there.
29+
* Do note that in order for us to merge any non-trivial changes (as a rule
30+
of thumb, additions larger than about 15 lines of code), we need an
31+
explicit [public domain dedication][PDD] on record from you.
32+
33+
[YARD]: http://yardoc.org/
34+
[YARD-GS]: http://rubydoc.info/docs/yard/file/docs/GettingStarted.md
35+
[PDD]: http://lists.w3.org/Archives/Public/public-rdf-ruby/2010May/0013.html
36+
[pr]: https://github.com/ruby-rdf/sparql-client/compare/

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ group :development, :test do
1414
gem 'rdf-spec', github: "ruby-rdf/rdf-spec", branch: "develop"
1515
gem 'rdf-turtle', github: "ruby-rdf/rdf-turtle", branch: "develop"
1616
gem "rdf-xsd", github: "ruby-rdf/rdf-xsd", branch: "develop"
17-
gem 'sxp', github: "gkellogg/sxp-ruby"
17+
gem 'sxp', github: "gkellogg/sxp-ruby", branch: "develop"
1818
gem "redcarpet", platform: :ruby
1919
gem 'simplecov', require: false, platform: :mri
2020
gem 'coveralls', require: false, platform: :mri

Gemfile-pure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ group :development, :test do
1414
gem 'rdf-spec', github: "ruby-rdf/rdf-spec", branch: "develop"
1515
gem 'rdf-turtle', github: "ruby-rdf/rdf-turtle", branch: "develop"
1616
gem "rdf-xsd", github: "ruby-rdf/rdf-xsd", branch: "develop"
17-
gem 'sxp', github: "gkellogg/sxp-ruby"
17+
gem 'sxp', github: "gkellogg/sxp-ruby", branch: "develop"
1818
gem "redcarpet", platform: :ruby
1919
gem 'simplecov', require: false, platform: :mri
2020
gem 'coveralls', require: false, platform: :mri

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.0.beta1
1+
2.0.0

lib/sparql/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def http_klass(scheme)
650650
proxy_url = URI.parse(value) unless value.nil? || value.empty?
651651
end
652652
klass = Net::HTTP::Persistent.new(self.class.to_s, proxy_url)
653-
klass.keep_alive = 120 # increase to 2 minutes
653+
klass.keep_alive = @options[:keep_alive] || 120
654654
klass.read_timeout = @options[:read_timeout] || 60
655655
klass
656656
end

sparql-client.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ Gem::Specification.new do |gem|
3030

3131
gem.required_ruby_version = '>= 2.0'
3232
gem.requirements = []
33-
gem.add_runtime_dependency 'rdf', '>= 2.0.0.beta', '< 3'
33+
gem.add_runtime_dependency 'rdf', '~> 2.0'
3434
gem.add_runtime_dependency 'net-http-persistent', '~> 2.9'
35-
gem.add_development_dependency 'sparql', '>= 2.0.0.beta', '< 3'
36-
gem.add_development_dependency 'rdf-spec', '>= 2.0.0.beta', '< 3'
35+
gem.add_development_dependency 'sparql', '~> 2.0'
36+
gem.add_development_dependency 'rdf-spec', '~> 2.0'
3737
gem.add_development_dependency 'rspec', '~> 3.4'
3838
gem.add_development_dependency 'rspec-its', '~> 1.2'
3939
gem.add_development_dependency 'webmock', '~> 1.15'

0 commit comments

Comments
 (0)