oop_rails_server 0.0.20 → 0.0.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 140913824859d2e60dac03fd6dcf65dea5a08583
4
- data.tar.gz: 5f2868f6c2eb0c022e58a8662482df1a977999dd
3
+ metadata.gz: 0fd5c9a3aed8080c6f1f60a4a707499fe77c8493
4
+ data.tar.gz: 0b7a9569c5a9cea17bd59f48c99c7e5e0eca5c74
5
5
  SHA512:
6
- metadata.gz: b7571e1382081033e21809caff1f082d7b72137c752063e99a008470b57c47c6e5b4f57f393dd422232561a20026cadca1ad0e8717ffd0fb45de4ec0014a255f
7
- data.tar.gz: ae4e5afc2c61b4154833537c1c2e4c49993165343101bc67fea02d4d9a2954e015ddfe088df8023eaa662fd5e648410ef1ea8dc9beb3f017d33e7a157cde9c87
6
+ metadata.gz: ebc57432de0117bc6f0fa37b064d0ff9abcae527656b8e1b3634289f41518440c3caf8733aa11492d3ae02e33ecc6ec89a561c8d495e9698c23663581039f725
7
+ data.tar.gz: 3476971dc63f6160e709de57b8b40d6627cd457fe37366c1b6ac1012a07fbf9af9f40867f6cc79742aeff02e3746ddfc6281b3a4ac76cf3f0b09a083835ee6c5
data/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # `oop_rails_server` Releases
2
2
 
3
+ ## 0.0.21, 27 September 2016
4
+
5
+ * Fixed an issue that broke compatibility with older Ruby versions, since `Net::HTTP::Get.new` could not accept a
6
+ `URI` object back then.
7
+
3
8
  ## 0.0.20, 27 September 2016
4
9
 
5
10
  * If exceptions have a `cause`, nest that inside the JSON returned on error.
@@ -100,7 +100,7 @@ module OopRailsServer
100
100
  data = nil
101
101
  accept_header = options.fetch(:accept_header, 'text/html')
102
102
  Net::HTTP.start(uri.host, uri.port) do |http|
103
- request = Net::HTTP::Get.new(uri)
103
+ request = Net::HTTP::Get.new(uri.to_s)
104
104
  request['Accept'] = accept_header if accept_header
105
105
  data = http.request(request)
106
106
  end
@@ -1,3 +1,3 @@
1
1
  module OopRailsServer
2
- VERSION = "0.0.20"
2
+ VERSION = "0.0.21"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oop_rails_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Geweke