quora_notify 0.0.9 → 0.0.10

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.
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- quora_notify (0.0.7)
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!
@@ -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: name, value: value, domain: domain, path: path, flag: flag, expires: expires, created: created)
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: name, value: value, domain: domain, path: path, flag: flag, expires: expires, created: created)
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: name, value: value, domain: domain, path: path, flag: flag, expires: expires, created: created)
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: NOTIFICATION_TITLE, open: @links.last, group: self.id)
42
+ TerminalNotifier.notify(@text, :title => NOTIFICATION_TITLE, :open => @links.last, :group => self.id)
43
43
  end
44
44
 
45
45
  def ==(other)
@@ -1,3 +1,3 @@
1
1
  module QuoraNotify
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  end
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
- version: 0.0.9
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
- date: 2013-04-27 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-04-27 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
14
21
  name: terminal-notifier
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
17
26
  - - ~>
18
- - !ruby/object:Gem::Version
19
- version: '1.4'
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
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
24
41
  - - ~>
25
- - !ruby/object:Gem::Version
26
- version: '1.4'
27
- - !ruby/object:Gem::Dependency
28
- name: sqlite3
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
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
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
38
56
  - - ~>
39
- - !ruby/object:Gem::Version
40
- version: '1.3'
41
- - !ruby/object:Gem::Dependency
42
- name: htmlentities
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
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
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
52
71
  - - ~>
53
- - !ruby/object:Gem::Version
54
- version: '4.3'
55
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
83
+ requirement: &id005 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
66
86
  - - ~>
67
- - !ruby/object:Gem::Version
68
- version: '0.13'
69
- description: |2
70
- QuoraNotify provides basic access to one of the few API's Quora.com has opened to the public.
71
- It uses local quora cookies to access this API as a logged-in user.
72
-
73
- See https://www.quora.com/Edmond-Lau/Edmond-Laus-Posts/Quora-Extension-API for more information about this Alpha API.
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
- files:
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
- metadata: {}
126
+
103
127
  post_install_message:
104
128
  rdoc_options: []
105
- require_paths:
129
+
130
+ require_paths:
106
131
  - lib
107
- required_ruby_version: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - '>='
110
- - !ruby/object:Gem::Version
111
- version: '0'
112
- required_rubygems_version: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - '>='
115
- - !ruby/object:Gem::Version
116
- version: '0'
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: 2.0.3
153
+ rubygems_version: 1.8.25
120
154
  signing_key:
121
- specification_version: 4
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