cookiejar_of_greed 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +28 -0
- data/lib/greed/cookie/parser.rb +4 -7
- data/lib/greed/cookie/version.rb +1 -1
- metadata +4 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 822eac9fe80da2b127a0df5f581fb4e2ba0461d531d38f3ace8e02f3ba8c8150
|
4
|
+
data.tar.gz: 445dd96290b4ccd8284ed5bf6fce17814f6f251b7dc81804eee9e59c6a39a771
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57b13a809877a38e0faf83ed14f81c88f1a1f339dd2e6661505c4d8771009c1b0dc367e73e44714d267b8916d8e770e5959774e5da860beec752a7de1788d957
|
7
|
+
data.tar.gz: 3914be686759822198668aef608df2c10547386a24371642e21349b484d51dd40a5593baea2c3a514b1b9533b8d9d0346e86b195ca910c7e703096dc76133719
|
data/LICENSE.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
BSD 3-Clause License
|
2
|
+
====================
|
3
|
+
|
4
|
+
_Copyright © `2020`, `Sarun Rattanasiri`_
|
5
|
+
_All rights reserved._
|
6
|
+
|
7
|
+
Redistribution and use in source and binary forms, with or without modification,
|
8
|
+
are permitted provided that the following conditions are met:
|
9
|
+
|
10
|
+
* Redistributions of source code must retain the above copyright notice,
|
11
|
+
this list of conditions and the following disclaimer.
|
12
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
14
|
+
and/or other materials provided with the distribution.
|
15
|
+
* Neither the name of the copyright holder nor the names of its contributors
|
16
|
+
may be used to endorse or promote products derived from this software
|
17
|
+
without specific prior written permission.
|
18
|
+
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
21
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
22
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
23
|
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
24
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
25
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
26
|
+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
28
|
+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/lib/greed/cookie/parser.rb
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
require 'active_support/core_ext/object/blank'
|
3
3
|
require 'active_support/core_ext/object/try'
|
4
4
|
require 'active_support/core_ext/time'
|
5
|
-
require 'memoist'
|
6
5
|
require 'strscan'
|
7
6
|
require 'time'
|
8
7
|
|
@@ -10,14 +9,12 @@ module Greed
|
|
10
9
|
module Cookie
|
11
10
|
class Parser
|
12
11
|
class << self
|
13
|
-
|
14
|
-
|
15
|
-
memoize def _default_kv_matcher
|
16
|
-
/\A\s*([-_.+%\d\w]+)=\s*([^;]*)\s*(?:;\s*|\z)/
|
12
|
+
def _default_kv_matcher
|
13
|
+
@__default_kv_matcher ||= /\A\s*([-_.+%\d\w]+)=\s*([^;]*)\s*(?:;\s*|\z)/
|
17
14
|
end
|
18
15
|
|
19
|
-
|
20
|
-
/\A\s*([-_\w\d]+)\s*(?:;\s*|\z)/
|
16
|
+
def _default_flag_matcher
|
17
|
+
@__default_flag_matcher ||= /\A\s*([-_\w\d]+)\s*(?:;\s*|\z)/
|
21
18
|
end
|
22
19
|
end
|
23
20
|
|
data/lib/greed/cookie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cookiejar_of_greed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sarun Rattanasiri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: memoist
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: public_suffix
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,6 +45,7 @@ executables: []
|
|
59
45
|
extensions: []
|
60
46
|
extra_rdoc_files: []
|
61
47
|
files:
|
48
|
+
- LICENSE.md
|
62
49
|
- lib/cookiejar_of_greed.rb
|
63
50
|
- lib/greed.rb
|
64
51
|
- lib/greed/cookie.rb
|
@@ -74,7 +61,7 @@ homepage: https://github.com/the-cave/cookiejar-of-greed
|
|
74
61
|
licenses:
|
75
62
|
- BSD-3-Clause
|
76
63
|
metadata:
|
77
|
-
source_code_uri: https://github.com/the-cave/cookiejar-of-greed/tree/v0.0.
|
64
|
+
source_code_uri: https://github.com/the-cave/cookiejar-of-greed/tree/v0.0.2
|
78
65
|
post_install_message:
|
79
66
|
rdoc_options: []
|
80
67
|
require_paths:
|