quora_notify 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +5 -5
- data/lib/quora_notify/base.rb +1 -1
- data/lib/quora_notify/cookie_readers/chrome_cookie_reader.rb +7 -1
- data/lib/quora_notify/cookie_readers/firefox_cookie_reader.rb +7 -1
- data/lib/quora_notify/cookie_readers/safari_cookie_reader.rb +7 -1
- data/lib/quora_notify/notification.rb +1 -1
- data/lib/quora_notify/version.rb +1 -1
- metadata +104 -69
- checksums.yaml +0 -7
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
quora_notify (0.0.
|
5
|
-
htmlentities
|
6
|
-
sqlite3
|
7
|
-
terminal-notifier
|
4
|
+
quora_notify (0.0.9)
|
5
|
+
htmlentities (~> 4.3)
|
6
|
+
sqlite3 (~> 1.3)
|
7
|
+
terminal-notifier (~> 1.4)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
@@ -20,5 +20,5 @@ PLATFORMS
|
|
20
20
|
ruby
|
21
21
|
|
22
22
|
DEPENDENCIES
|
23
|
-
mocha
|
23
|
+
mocha (~> 0.13)
|
24
24
|
quora_notify!
|
data/lib/quora_notify/base.rb
CHANGED
@@ -26,7 +26,7 @@ module QuoraNotify
|
|
26
26
|
|
27
27
|
def fetch_notifications_with_cookies(cookies)
|
28
28
|
write_cookies_to_file(cookies, TMP_COOKIE_PATH)
|
29
|
-
response = `curl #{API_NOTIFICATION_PATH} -b #{TMP_COOKIE_PATH}`.sub('while(1);', '')
|
29
|
+
response = `curl -s #{API_NOTIFICATION_PATH} -b #{TMP_COOKIE_PATH}`.sub('while(1);', '')
|
30
30
|
File.delete TMP_COOKIE_PATH
|
31
31
|
yield response
|
32
32
|
end
|
@@ -29,7 +29,13 @@ module QuoraNotify::CookieReaders
|
|
29
29
|
expires = row[6]
|
30
30
|
created = row[7]
|
31
31
|
|
32
|
-
QuoraNotify::Cookie.new(name
|
32
|
+
QuoraNotify::Cookie.new(:name => name,
|
33
|
+
:value => value,
|
34
|
+
:domain => domain,
|
35
|
+
:path => path,
|
36
|
+
:flag => flag,
|
37
|
+
:expires => expires,
|
38
|
+
:created => created)
|
33
39
|
end
|
34
40
|
end
|
35
41
|
end
|
@@ -30,7 +30,13 @@ module QuoraNotify::CookieReaders
|
|
30
30
|
expires = row[6]
|
31
31
|
created = row[7]
|
32
32
|
|
33
|
-
QuoraNotify::Cookie.new(name
|
33
|
+
QuoraNotify::Cookie.new(:name => name,
|
34
|
+
:value => value,
|
35
|
+
:domain => domain,
|
36
|
+
:path => path,
|
37
|
+
:flag => flag,
|
38
|
+
:expires => expires,
|
39
|
+
:created => created)
|
34
40
|
end
|
35
41
|
end
|
36
42
|
end
|
@@ -61,7 +61,13 @@ module QuoraNotify::CookieReaders
|
|
61
61
|
data
|
62
62
|
end
|
63
63
|
|
64
|
-
QuoraNotify::Cookie.new(name
|
64
|
+
QuoraNotify::Cookie.new(:name => name,
|
65
|
+
:value => value,
|
66
|
+
:domain => domain,
|
67
|
+
:path => path,
|
68
|
+
:flag => flag,
|
69
|
+
:expires => expires,
|
70
|
+
:created => created)
|
65
71
|
end
|
66
72
|
end
|
67
73
|
end
|
@@ -39,7 +39,7 @@ class QuoraNotify::Notification
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def notify
|
42
|
-
TerminalNotifier.notify(@text, title
|
42
|
+
TerminalNotifier.notify(@text, :title => NOTIFICATION_TITLE, :open => @links.last, :group => self.id)
|
43
43
|
end
|
44
44
|
|
45
45
|
def ==(other)
|
data/lib/quora_notify/version.rb
CHANGED
metadata
CHANGED
@@ -1,82 +1,106 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: quora_notify
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 11
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 10
|
10
|
+
version: 0.0.10
|
5
11
|
platform: ruby
|
6
|
-
authors:
|
12
|
+
authors:
|
7
13
|
- Joey Carmello
|
8
14
|
autorequire:
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
17
|
+
|
18
|
+
date: 2013-04-27 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
14
21
|
name: terminal-notifier
|
15
|
-
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
17
26
|
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 7
|
29
|
+
segments:
|
30
|
+
- 1
|
31
|
+
- 4
|
32
|
+
version: "1.4"
|
20
33
|
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: json
|
21
37
|
prerelease: false
|
22
|
-
|
23
|
-
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
24
41
|
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.3'
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 1
|
44
|
+
segments:
|
45
|
+
- 1
|
46
|
+
- 7
|
47
|
+
version: "1.7"
|
34
48
|
type: :runtime
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: sqlite3
|
35
52
|
prerelease: false
|
36
|
-
|
37
|
-
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
38
56
|
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
- - ~>
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '4.3'
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 9
|
59
|
+
segments:
|
60
|
+
- 1
|
61
|
+
- 3
|
62
|
+
version: "1.3"
|
48
63
|
type: :runtime
|
64
|
+
version_requirements: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: htmlentities
|
49
67
|
prerelease: false
|
50
|
-
|
51
|
-
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
52
71
|
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
55
|
-
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 29
|
74
|
+
segments:
|
75
|
+
- 4
|
76
|
+
- 3
|
77
|
+
version: "4.3"
|
78
|
+
type: :runtime
|
79
|
+
version_requirements: *id004
|
80
|
+
- !ruby/object:Gem::Dependency
|
56
81
|
name: mocha
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0.13'
|
62
|
-
type: :development
|
63
82
|
prerelease: false
|
64
|
-
|
65
|
-
|
83
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
66
86
|
- - ~>
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
hash: 17
|
89
|
+
segments:
|
90
|
+
- 0
|
91
|
+
- 13
|
92
|
+
version: "0.13"
|
93
|
+
type: :development
|
94
|
+
version_requirements: *id005
|
95
|
+
description: " QuoraNotify provides basic access to one of the few API's Quora.com has opened to the public.\n It uses local quora cookies to access this API as a logged-in user.\n\n See https://www.quora.com/Edmond-Lau/Edmond-Laus-Posts/Quora-Extension-API for more information about this Alpha API.\n"
|
74
96
|
email: joeycarmello@me.com
|
75
|
-
executables:
|
97
|
+
executables:
|
76
98
|
- quora_notify
|
77
99
|
extensions: []
|
100
|
+
|
78
101
|
extra_rdoc_files: []
|
79
|
-
|
102
|
+
|
103
|
+
files:
|
80
104
|
- lib/quora_notify/base.rb
|
81
105
|
- lib/quora_notify/cookie.rb
|
82
106
|
- lib/quora_notify/cookie_readers/chrome_cookie_reader.rb
|
@@ -99,25 +123,36 @@ files:
|
|
99
123
|
- README.md
|
100
124
|
homepage: http://github.com/joeycarmello/QuoraNotifier
|
101
125
|
licenses: []
|
102
|
-
|
126
|
+
|
103
127
|
post_install_message:
|
104
128
|
rdoc_options: []
|
105
|
-
|
129
|
+
|
130
|
+
require_paths:
|
106
131
|
- lib
|
107
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
+
none: false
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
hash: 3
|
138
|
+
segments:
|
139
|
+
- 0
|
140
|
+
version: "0"
|
141
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
|
+
none: false
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
hash: 3
|
147
|
+
segments:
|
148
|
+
- 0
|
149
|
+
version: "0"
|
117
150
|
requirements: []
|
151
|
+
|
118
152
|
rubyforge_project:
|
119
|
-
rubygems_version:
|
153
|
+
rubygems_version: 1.8.25
|
120
154
|
signing_key:
|
121
|
-
specification_version:
|
155
|
+
specification_version: 3
|
122
156
|
summary: Displays Quora notifications in OSX Mountain Lion's Notification Center
|
123
157
|
test_files: []
|
158
|
+
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 18a733e9ecd69603d65c8446b7b2ed93d8f37c69
|
4
|
-
data.tar.gz: ffc967ed622f81bc98351421ee28b03bc9d39952
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 630b7abc59ea8d58b0430aadc07250c8a9344e878602be73c00fc927edfa14bcd4b8fbc157ab6503f987d57e62b3c34a9c4288b06005cf6f0d7e038172a2f058
|
7
|
-
data.tar.gz: 76a5838745afafec15c41849a1e8b4e7db59c0d121b9805060ce43c2b747f56f8c3f0b2a043734629bc4ff80bff73406a2bcec403aefe27afebe629940be7ea8
|