http2 0.0.25 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/http2.gemspec +3 -3
  4. data/lib/http2.rb +9 -0
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a747caea21ace1b6e3aea354a4d9e9ffe437dc08
4
- data.tar.gz: 4cd7db8fbe2d498efcf28fdfad1cba6d9388c491
3
+ metadata.gz: 49c338d45eec9089a382ba190fe2a8f3864b8e67
4
+ data.tar.gz: fe51a829bd41c2b737d256c80f9eb98759b6e8e4
5
5
  SHA512:
6
- metadata.gz: 5ed8bec6e8c5abaa859799a1cb378189eac83e13fccd947c736555a249d6b1de291da4b1beb65df1fba46982023c757a9374ae287f70b7a7ee1808f26f211c04
7
- data.tar.gz: e36e5e10eb01b93e219b5912de26c9b049605c55628770e356c9d34faa11c37cfc74c28feb0d4efa0b8212729cc82424497596faa58afa4b9b7628a3f507e353
6
+ metadata.gz: 3cea6ff3a0b675b5ac2e9900ac7bbcba266f133a531b3d8c9786b104ed4a4d02cd5db597b88d0b1ec1f9afe16ba85192946eca6aa379ee5440d686673c874ef2
7
+ data.tar.gz: 7cf2e05277b84ce0ffb67984bb25495b9531f56970b39390d7a510dcfbddeeafe394ed841b0b79867ee9bf9f48a851f5e8c821138912b1d8ef88c465c0ad3cdd
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.25
1
+ 0.0.26
data/http2.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: http2 0.0.25 ruby lib
5
+ # stub: http2 0.0.26 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "http2"
9
- s.version = "0.0.25"
9
+ s.version = "0.0.26"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Kasper Johansen"]
14
- s.date = "2014-08-04"
14
+ s.date = "2014-08-15"
15
15
  s.description = "A lightweight framework for doing http-connections in Ruby. Supports cookies, keep-alive, compressing and much more."
16
16
  s.email = "k@spernj.org"
17
17
  s.extra_rdoc_files = [
data/lib/http2.rb CHANGED
@@ -50,6 +50,15 @@ class Http2
50
50
  end
51
51
  end
52
52
 
53
+ def new_url
54
+ builder = Http2::UrlBuilder.new
55
+ builder.host = @args[:host]
56
+ builder.port = @args[:port]
57
+ builder.protocol = @args[:protocol]
58
+
59
+ return builder
60
+ end
61
+
53
62
  # Closes current connection if any, changes the arguments on the object and reconnects keeping all cookies and other stuff intact.
54
63
  def change(args)
55
64
  @args.merge!(args)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kasper Johansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-04 00:00:00.000000000 Z
11
+ date: 2014-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: string-cases