clickjackable 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f27b5581bc6f6bb6e8233e530127fa94724d4ac
4
- data.tar.gz: 6cc5e5f5d66d6e530752f158a47bbd7543dace47
3
+ metadata.gz: 344ab7eb8ec7fdbc4657a8765cfa79afbc3eaacd
4
+ data.tar.gz: db95fe2fbce7c6b32fcc3844323dcef0dbbe233f
5
5
  SHA512:
6
- metadata.gz: 4205987158789bd3598f45071c9af5ee657747adb47f20ee1b597c9d5ea4ec7b47c55d533764b835f37582323e617235e5ff7b58c41888c5851d710dae12c7a9
7
- data.tar.gz: b455ac511db1c7dc87ad156b59b0d8804ead8085ffcb3054cca69e57dba1be4c8796cc1e75a6d40c86ae09776517c348adb290b6262a1971b50e2528123097a4
6
+ metadata.gz: 74eb4fdb79c2879f2f0cbabf17944f3cee67e866cd383e3293fc3f63b82678ceafd4ccc0ec81e5c0b888595138c38fd53a987f7669a0129894f0991d32f7052a
7
+ data.tar.gz: 73f75d24b0ff65ede1d4e63b0260f13f15b8c75c9dd57449194f5b47dc448a942387784f384fbf8e48ebee3b7c8749e9c689db51fdbc11120fa5c0c6e4026c2a
data/README.md CHANGED
@@ -9,7 +9,7 @@ require 'net/http'
9
9
  // url must end with a slash /
10
10
  puts clickjackable("http://www8355ue.sakura.ne.jp/")
11
11
 
12
- .. true
12
+ .. false
13
13
  ```
14
14
 
15
15
  ## Installation
@@ -7,5 +7,5 @@ def clickjackable(url)
7
7
  req, body = https.post(uri.path, '<xml><clickjackable></clickjackable></xml>', {"Accept-Encoding" => 'gzip'})
8
8
  hash = {}; req.each { |k,v| hash[k.downcase] = v }
9
9
 
10
- return hash.has_key?('x-frame-options')
10
+ return !hash.has_key?('x-frame-options')
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Clickjackable
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clickjackable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pulkit Kathuria