rack-relations 0.1.0 → 0.2.0

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
  SHA256:
3
- metadata.gz: aa6e3b9e72d7ae0b3c446cedcf560afaad79243c05b5f1217ae33dd6754e9bce
4
- data.tar.gz: 3024e1fcc29027e639920e2945f3c13516f6d40d92eaa338e0dfe51ab2aa0666
3
+ metadata.gz: fd7d465d07c23d60bf19a5ab02c2d18dcba720d50ff8f0a012e8023b0254e6f2
4
+ data.tar.gz: d71d1eecaa4b64e52f76e633bd823891f832a31fb1c0068cf411a187cad76e3b
5
5
  SHA512:
6
- metadata.gz: ad9a5f3ace43e54ca9e1e4e258038b64109fcdb9b77630184a3bf4c97d84782aa12a171327df8728c433a3a18759fe4bfa1671344ca63db50e093e530660c500
7
- data.tar.gz: a246162059cbe66680b630986d8a4c45743ce1c99cf3e3d9228e4bcff838d3612022b22eabd17dcc398545088da1ee3ee0879bca1f05c6accef5098c60679517
6
+ metadata.gz: 9f76df9f9130cc52a0354a4c96a8799a7c118c00cdd931eb20e383c06928e0c5a9aabde092da62803b7e511de4e16a9c8d45ca3a168d7bfbe1edd106be5c22ae
7
+ data.tar.gz: f60b9198c44d3c8985d802cc877632badad8f7ee628331d07d7452521224cd67ed7e0e86523401ceb6a420b81ed059fdcbdc70294370593d3c86d163ec13635d
@@ -1,3 +1,8 @@
1
+ v0.2.0
2
+ ======
3
+
4
+ * Prevent processing of non-HTML responses
5
+
1
6
  v0.1.0
2
7
  ======
3
8
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-relations (0.1.0)
4
+ rack-relations (0.2.0)
5
5
  nokogiri (~> 1.10)
6
6
  rack (>= 2.0, < 3)
7
7
 
@@ -45,7 +45,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
45
45
 
46
46
  ## Contributing
47
47
 
48
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rack-relations. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/rack-relations/blob/master/CODE_OF_CONDUCT.md).
48
+ Bug reports and pull requests are welcome on GitHub at https://github.com/pbyrne/rack-relations. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/pbyrne/rack-relations/blob/master/CODE_OF_CONDUCT.markdown).
49
49
 
50
50
 
51
51
  ## License
@@ -54,4 +54,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
54
54
 
55
55
  ## Code of Conduct
56
56
 
57
- Everyone interacting in the Rack::Relations project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rack-relations/blob/master/CODE_OF_CONDUCT.md).
57
+ Everyone interacting in the Rack::Relations project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/pbyrne/rack-relations/blob/master/CODE_OF_CONDUCT.markdown).
@@ -11,7 +11,7 @@ module Rack
11
11
  def call(env)
12
12
  status, headers, response = @app.call(env)
13
13
 
14
- response = @processor.perform(response)
14
+ response = @processor.perform(response) if headers["Content-Type"].to_s.include?("text/html")
15
15
 
16
16
  [status, headers, response]
17
17
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Relations
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-relations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Byrne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-24 00:00:00.000000000 Z
11
+ date: 2020-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri