disqussion 0.0.5 → 0.0.6
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/.gitignore +3 -1
- data/.travis.yml +8 -1
- data/Gemfile +16 -0
- data/Gemfile.lock +61 -65
- data/HISTORY.mkd +6 -0
- data/README.mkd +1 -1
- data/Rakefile +2 -14
- data/disqussion.gemspec +19 -34
- data/lib/disqussion/client/threads.rb +20 -10
- data/lib/disqussion/client/users.rb +41 -3
- data/lib/disqussion/version.rb +1 -1
- data/spec/disqussion/api_spec.rb +1 -1
- data/spec/disqussion/client/applications_spec.rb +1 -1
- data/spec/disqussion/client/categories_spec.rb +1 -1
- data/spec/disqussion/client/export_spec.rb +1 -1
- data/spec/disqussion/client/forums_spec.rb +1 -1
- data/spec/disqussion/client/imports_spec.rb +1 -1
- data/spec/disqussion/client/posts_spec.rb +1 -1
- data/spec/disqussion/client/reactions_spec.rb +1 -1
- data/spec/disqussion/client/reports_spec.rb +1 -1
- data/spec/disqussion/client/threads_spec.rb +1 -1
- data/spec/disqussion/client/trends_spec.rb +1 -1
- data/spec/disqussion/client/users_spec.rb +17 -3
- data/spec/disqussion/client_spec.rb +3 -4
- data/spec/disqussion_spec.rb +1 -1
- data/spec/faraday/response_spec.rb +1 -1
- data/spec/fixtures/users/listActiveThreads.json +34 -0
- data/spec/fixtures/users/listActivity.json +99 -0
- data/spec/{helper.rb → spec_helper.rb} +2 -1
- metadata +90 -176
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
source :gemcutter
|
|
2
2
|
|
|
3
|
+
gem 'jruby-openssl', :platforms => :jruby
|
|
4
|
+
gem 'rake'
|
|
5
|
+
gem 'yard'
|
|
6
|
+
|
|
7
|
+
group :development do
|
|
8
|
+
gem 'pry'
|
|
9
|
+
gem 'pry-debugger', :platforms => :mri_19
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
group :test do
|
|
13
|
+
gem 'json', :platforms => :ruby_18
|
|
14
|
+
gem 'rspec', '>= 2.11'
|
|
15
|
+
gem 'simplecov'
|
|
16
|
+
gem 'webmock'
|
|
17
|
+
end
|
|
18
|
+
|
|
3
19
|
gemspec
|
data/Gemfile.lock
CHANGED
|
@@ -1,80 +1,76 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
disqussion (0.0.
|
|
5
|
-
faraday (~> 0.
|
|
6
|
-
faraday_middleware (
|
|
7
|
-
hashie (~> 1.
|
|
8
|
-
multi_json (~> 1.
|
|
9
|
-
rash (~> 0.3
|
|
4
|
+
disqussion (0.0.6)
|
|
5
|
+
faraday (~> 0.8)
|
|
6
|
+
faraday_middleware (>= 0.9)
|
|
7
|
+
hashie (~> 1.2)
|
|
8
|
+
multi_json (~> 1.5)
|
|
9
|
+
rash (~> 0.3)
|
|
10
10
|
|
|
11
11
|
GEM
|
|
12
12
|
remote: http://rubygems.org/
|
|
13
13
|
specs:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
diff-lcs (1.1.2)
|
|
20
|
-
faraday (0.6.1)
|
|
21
|
-
addressable (~> 2.2.4)
|
|
22
|
-
multipart-post (~> 1.1.0)
|
|
23
|
-
rack (< 2, >= 1.1.0)
|
|
24
|
-
faraday_middleware (0.6.3)
|
|
25
|
-
faraday (~> 0.6.0)
|
|
26
|
-
hashie (1.0.0)
|
|
27
|
-
json (1.5.1)
|
|
28
|
-
linecache19 (0.5.12)
|
|
29
|
-
ruby_core_source (>= 0.1.4)
|
|
30
|
-
maruku (0.6.0)
|
|
31
|
-
syntax (>= 1.0.0)
|
|
32
|
-
multi_json (1.0.2)
|
|
33
|
-
multipart-post (1.1.1)
|
|
34
|
-
nokogiri (1.4.4)
|
|
35
|
-
rack (1.2.2)
|
|
36
|
-
rake (0.8.7)
|
|
37
|
-
rash (0.3.0)
|
|
38
|
-
hashie (~> 1.0.0)
|
|
39
|
-
rspec (2.6.0)
|
|
40
|
-
rspec-core (~> 2.6.0)
|
|
41
|
-
rspec-expectations (~> 2.6.0)
|
|
42
|
-
rspec-mocks (~> 2.6.0)
|
|
43
|
-
rspec-core (2.6.0)
|
|
44
|
-
rspec-expectations (2.6.0)
|
|
45
|
-
diff-lcs (~> 1.1.2)
|
|
46
|
-
rspec-mocks (2.6.0)
|
|
47
|
-
ruby-debug-base19 (0.11.25)
|
|
14
|
+
addressable (2.3.2)
|
|
15
|
+
coderay (1.0.8)
|
|
16
|
+
columnize (0.3.6)
|
|
17
|
+
crack (0.3.2)
|
|
18
|
+
debugger (1.2.4)
|
|
48
19
|
columnize (>= 0.3.1)
|
|
49
|
-
|
|
50
|
-
ruby_core_source (
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
20
|
+
debugger-linecache (~> 1.1.1)
|
|
21
|
+
debugger-ruby_core_source (~> 1.1.7)
|
|
22
|
+
debugger-linecache (1.1.2)
|
|
23
|
+
debugger-ruby_core_source (>= 1.1.1)
|
|
24
|
+
debugger-ruby_core_source (1.1.7)
|
|
25
|
+
diff-lcs (1.1.3)
|
|
26
|
+
faraday (0.8.4)
|
|
27
|
+
multipart-post (~> 1.1)
|
|
28
|
+
faraday_middleware (0.9.0)
|
|
29
|
+
faraday (>= 0.7.4, < 0.9)
|
|
30
|
+
hashie (1.2.0)
|
|
31
|
+
json (1.7.6)
|
|
32
|
+
method_source (0.8.1)
|
|
33
|
+
multi_json (1.5.0)
|
|
34
|
+
multipart-post (1.1.5)
|
|
35
|
+
pry (0.9.11.4)
|
|
36
|
+
coderay (~> 1.0.5)
|
|
37
|
+
method_source (~> 0.8)
|
|
38
|
+
slop (~> 3.4)
|
|
39
|
+
pry-debugger (0.2.1)
|
|
40
|
+
debugger (~> 1.2.0)
|
|
41
|
+
pry (~> 0.9.10)
|
|
42
|
+
rake (10.0.3)
|
|
43
|
+
rash (0.3.2)
|
|
44
|
+
hashie (~> 1.2.0)
|
|
45
|
+
rspec (2.12.0)
|
|
46
|
+
rspec-core (~> 2.12.0)
|
|
47
|
+
rspec-expectations (~> 2.12.0)
|
|
48
|
+
rspec-mocks (~> 2.12.0)
|
|
49
|
+
rspec-core (2.12.2)
|
|
50
|
+
rspec-expectations (2.12.1)
|
|
51
|
+
diff-lcs (~> 1.1.3)
|
|
52
|
+
rspec-mocks (2.12.1)
|
|
53
|
+
simplecov (0.7.1)
|
|
54
|
+
multi_json (~> 1.0)
|
|
55
|
+
simplecov-html (~> 0.7.1)
|
|
56
|
+
simplecov-html (0.7.1)
|
|
57
|
+
slop (3.4.3)
|
|
58
|
+
webmock (1.9.0)
|
|
59
|
+
addressable (>= 2.2.7)
|
|
63
60
|
crack (>= 0.1.7)
|
|
64
|
-
yard (0.
|
|
61
|
+
yard (0.8.3)
|
|
65
62
|
|
|
66
63
|
PLATFORMS
|
|
67
64
|
ruby
|
|
68
65
|
|
|
69
66
|
DEPENDENCIES
|
|
70
|
-
ZenTest (~> 4.5)
|
|
71
67
|
disqussion!
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
simplecov
|
|
79
|
-
webmock
|
|
80
|
-
yard
|
|
68
|
+
jruby-openssl
|
|
69
|
+
json
|
|
70
|
+
pry
|
|
71
|
+
pry-debugger
|
|
72
|
+
rake
|
|
73
|
+
rspec (>= 2.11)
|
|
74
|
+
simplecov
|
|
75
|
+
webmock
|
|
76
|
+
yard
|
data/HISTORY.mkd
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
HISTORY
|
|
2
2
|
=======
|
|
3
3
|
|
|
4
|
+
0.0.6 - Jan 28, 2013
|
|
5
|
+
----------------------
|
|
6
|
+
* Added subscribe and unsubscribe API calls (@wbrady)
|
|
7
|
+
* List users activity and list users active threads (@shabankarumba)
|
|
8
|
+
* Updated dependencies
|
|
9
|
+
|
|
4
10
|
0.0.5 - May 23, 2011
|
|
5
11
|
----------------------
|
|
6
12
|
* Fixes conflicts with the `twitter` gem (@mathieuravaux).
|
data/README.mkd
CHANGED
data/Rakefile
CHANGED
|
@@ -7,17 +7,5 @@ RSpec::Core::RakeTask.new(:spec)
|
|
|
7
7
|
task :test => :spec
|
|
8
8
|
task :default => :spec
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
YARD::Rake::YardocTask.new do |task|
|
|
13
|
-
task.files = ['HISTORY.mkd', 'LICENSE.mkd', 'lib/**/*.rb']
|
|
14
|
-
task.options = [
|
|
15
|
-
'--protected',
|
|
16
|
-
'--output-dir', 'doc/yard',
|
|
17
|
-
'--tag', 'format:Supported formats',
|
|
18
|
-
'--tag', 'authenticated:Requires Authentication',
|
|
19
|
-
'--tag', 'rate_limited:Rate Limited',
|
|
20
|
-
'--markup', 'markdown',
|
|
21
|
-
]
|
|
22
|
-
end
|
|
23
|
-
end
|
|
10
|
+
require 'yard'
|
|
11
|
+
YARD::Rake::YardocTask.new
|
data/disqussion.gemspec
CHANGED
|
@@ -1,37 +1,22 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
2
|
require File.expand_path('../lib/disqussion/version', __FILE__)
|
|
3
3
|
|
|
4
|
-
Gem::Specification.new do |
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
s.add_development_dependency('maruku', '~> 0.6')
|
|
24
|
-
s.add_development_dependency('rake', '~> 0.8')
|
|
25
|
-
s.add_development_dependency('rspec', '~> 2.5')
|
|
26
|
-
s.add_development_dependency('simplecov', '~> 0.4')
|
|
27
|
-
s.add_development_dependency('webmock', '~> 1.6')
|
|
28
|
-
s.add_development_dependency('yard', '~> 0.6')
|
|
29
|
-
s.add_development_dependency('ZenTest', '~> 4.5')
|
|
30
|
-
s.add_development_dependency('ruby-debug19')
|
|
31
|
-
|
|
32
|
-
s.add_runtime_dependency('hashie', '~> 1.0.0')
|
|
33
|
-
s.add_runtime_dependency('faraday', '~> 0.6.1')
|
|
34
|
-
s.add_runtime_dependency('faraday_middleware', '~> 0.6.3')
|
|
35
|
-
s.add_runtime_dependency('multi_json', '~> 1.0.0')
|
|
36
|
-
s.add_runtime_dependency('rash', '~> 0.3.0')
|
|
37
|
-
end
|
|
4
|
+
Gem::Specification.new do |spec|
|
|
5
|
+
spec.add_dependency('hashie', '~> 1.2')
|
|
6
|
+
spec.add_dependency('faraday', '~> 0.8')
|
|
7
|
+
spec.add_dependency('faraday_middleware', '>= 0.9')
|
|
8
|
+
spec.add_dependency('multi_json', '~> 1.5')
|
|
9
|
+
spec.add_dependency('rash', '~> 0.3')
|
|
10
|
+
spec.authors = ["Jérémy Van de Wyngaert"]
|
|
11
|
+
spec.description = %q{Disqus API v3 wrapper}
|
|
12
|
+
spec.email = ['jeremyvdw@gmail.com']
|
|
13
|
+
spec.files = `git ls-files`.split("\n")
|
|
14
|
+
spec.homepage = 'https://github.com/jeremyvdw/disqussion'
|
|
15
|
+
spec.licenses = ['MIT']
|
|
16
|
+
spec.name = 'disqussion'
|
|
17
|
+
spec.require_paths = ["lib"]
|
|
18
|
+
spec.required_rubygems_version = Gem::Requirement.new('>= 1.3.6')
|
|
19
|
+
spec.summary = spec.description
|
|
20
|
+
spec.test_files = Dir.glob("spec/**/*")
|
|
21
|
+
spec.version = Disqussion::VERSION.dup
|
|
22
|
+
end
|
|
@@ -18,7 +18,7 @@ module Disqussion
|
|
|
18
18
|
options.merge!(:thread => thread) if ([:ident, :link] & options.keys).empty?
|
|
19
19
|
response = post('threads/close', options)
|
|
20
20
|
end
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
# Returns thread details.
|
|
23
23
|
# @accessibility: public key, secret key
|
|
24
24
|
# @methods: GET
|
|
@@ -39,7 +39,7 @@ module Disqussion
|
|
|
39
39
|
options.merge!(:thread => thread) if ([:ident, :link] & options.keys).empty?
|
|
40
40
|
response = get('threads/details', options)
|
|
41
41
|
end
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
# Returns a list of threads sorted by the date created.
|
|
44
44
|
# @accessibility: public key, secret key
|
|
45
45
|
# @methods: GET
|
|
@@ -57,7 +57,7 @@ module Disqussion
|
|
|
57
57
|
# @option options [Integer] :cursor. Defaults to null
|
|
58
58
|
# @option options [Integer] :limit. Defaults to 25. Maximum length of 100
|
|
59
59
|
# @option options [String, Array] :include allows multiple. Defaults to ["open", "close"]. Choices: open, closed, killed.
|
|
60
|
-
# @option options [String] :order. Defaults to "asc". Choices: asc, desc
|
|
60
|
+
# @option options [String] :order. Defaults to "asc". Choices: asc, desc
|
|
61
61
|
# @example Return extended information for forum 'myforum'
|
|
62
62
|
# Disqussion::Client.threads.list(:forum => "the88")
|
|
63
63
|
# @see: http://disqus.com/api/3.0/threads/list.json
|
|
@@ -65,7 +65,7 @@ module Disqussion
|
|
|
65
65
|
options = args.last.is_a?(Hash) ? args.pop : {}
|
|
66
66
|
response = get('threads/list', options)
|
|
67
67
|
end
|
|
68
|
-
|
|
68
|
+
|
|
69
69
|
# Returns a list of threads sorted by number of likes.
|
|
70
70
|
# @accessibility: public key, secret key
|
|
71
71
|
# @methods: GET
|
|
@@ -87,7 +87,7 @@ module Disqussion
|
|
|
87
87
|
options = args.last.is_a?(Hash) ? args.pop : {}
|
|
88
88
|
response = get('threads/listMostLiked', options)
|
|
89
89
|
end
|
|
90
|
-
|
|
90
|
+
|
|
91
91
|
# Returns a list of posts within a thread.
|
|
92
92
|
# @accessibility: public key, secret key
|
|
93
93
|
# @methods: GET
|
|
@@ -114,7 +114,7 @@ module Disqussion
|
|
|
114
114
|
options.merge!(:thread => thread) if ([:ident, :link] & options.keys).empty?
|
|
115
115
|
response = get('threads/listPosts', options)
|
|
116
116
|
end
|
|
117
|
-
|
|
117
|
+
|
|
118
118
|
# Opens a thread
|
|
119
119
|
# @accessibility: public key, secret key
|
|
120
120
|
# @methods: POST
|
|
@@ -133,7 +133,7 @@ module Disqussion
|
|
|
133
133
|
options.merge!(:thread => thread) if ([:ident, :link] & options.keys).empty?
|
|
134
134
|
response = post('threads/open', options)
|
|
135
135
|
end
|
|
136
|
-
|
|
136
|
+
|
|
137
137
|
# Removes a thread
|
|
138
138
|
# @accessibility: public key, secret key
|
|
139
139
|
# @methods: POST
|
|
@@ -152,7 +152,7 @@ module Disqussion
|
|
|
152
152
|
options.merge!(:thread => thread) if ([:ident, :link] & options.keys).empty?
|
|
153
153
|
response = post('threads/remove', options)
|
|
154
154
|
end
|
|
155
|
-
|
|
155
|
+
|
|
156
156
|
# Restores a thread
|
|
157
157
|
# @accessibility: public key, secret key
|
|
158
158
|
# @methods: POST
|
|
@@ -171,7 +171,17 @@ module Disqussion
|
|
|
171
171
|
options.merge!(:thread => thread) if ([:ident, :link] & options.keys).empty?
|
|
172
172
|
response = post('threads/restore', options)
|
|
173
173
|
end
|
|
174
|
-
|
|
174
|
+
|
|
175
|
+
def subscribe(*args)
|
|
176
|
+
options = args.last.is_a?(Hash) ? args.pop : {}
|
|
177
|
+
response = post('threads/subscribe', options)
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
def unsubscribe(*args)
|
|
181
|
+
options = args.last.is_a?(Hash) ? args.pop : {}
|
|
182
|
+
response = post('threads/unsubscribe', options)
|
|
183
|
+
end
|
|
184
|
+
|
|
175
185
|
# Register a vote on a thread.
|
|
176
186
|
# @accessibility: public key, secret key
|
|
177
187
|
# @methods: POST
|
|
@@ -196,4 +206,4 @@ module Disqussion
|
|
|
196
206
|
end
|
|
197
207
|
end
|
|
198
208
|
end
|
|
199
|
-
end
|
|
209
|
+
end
|
|
@@ -61,14 +61,52 @@ module Disqussion
|
|
|
61
61
|
|
|
62
62
|
# BETA
|
|
63
63
|
# Returns a list of threads a user has participated in sorted by last activity.
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
# @accessibility: public key, secret key
|
|
65
|
+
# @methods: GET
|
|
66
|
+
# @format: json, jsonp
|
|
67
|
+
# @authenticated: false
|
|
68
|
+
# @limited: true
|
|
69
|
+
# @return [Hashie::Rash] Details on the list of active threads.
|
|
70
|
+
# @param options [Hash] A customizable set of options.
|
|
71
|
+
# @option options [String] :forum. Looks up a forum by ID (aka short name). Defaults to null
|
|
72
|
+
# @option options [Datetime, Timestamp] :since. Unix timestamp (or ISO datetime standard). Defaults to null
|
|
73
|
+
# @option options [Integer, String] :related. Allows multiple. Defaults to []. You may specify relations to include with your response. Choices: forum, author and category.
|
|
74
|
+
# @option options [Integer] :cursor. Defaults to null
|
|
75
|
+
# @option options [Integer] :limit. Defaults to 25. Maximum length of 100
|
|
76
|
+
# @option options [Integer] :user. Defaults to null. Looks up a user by ID. You may look up a user by username using the 'username' query type.
|
|
77
|
+
# @option options [String, Array] :include. Allows multiple. Defaults to ["open", "closed" ]. Choices: open, closed, killedr
|
|
78
|
+
# @option options [String] :order. Defaults to "desc". Choices: asc, desc
|
|
79
|
+
# @example Return a list of active threads user 1234 has been active on
|
|
80
|
+
# Disqussion::Client.users.listActiveThreadss(:user => 1234)
|
|
81
|
+
# @see: http://disqus.com/api/3.0/users/listActiveThreads.json
|
|
82
|
+
def listActiveThreads(*args)
|
|
83
|
+
options = args.last.is_a?(Hash) ? args.pop : {}
|
|
84
|
+
response = get('users/listActiveThreads', options)
|
|
66
85
|
end
|
|
67
86
|
|
|
68
87
|
# BETA
|
|
69
88
|
# Returns a list of various activity types made by the user.
|
|
89
|
+
# @accessibility: public key, secret key
|
|
90
|
+
# @methods: GET
|
|
91
|
+
# @format: json, jsonp
|
|
92
|
+
# @authenticated: false
|
|
93
|
+
# @limited: true
|
|
94
|
+
# @return [Hashie::Rash] Details on the list of active threads.
|
|
95
|
+
# @param options [Hash] A customizable set of options.
|
|
96
|
+
# @option options [Datetime, Timestamp] :since. Unix timestamp (or ISO datetime standard). Defaults to null
|
|
97
|
+
# @option options [Integer, String] :related. Allows multiple. Defaults to []. You may specify relations to include with your response. Choices: forum, author and category.
|
|
98
|
+
# @option options [Integer] :cursor. Defaults to null
|
|
99
|
+
# @option options [Integer] :limit. Defaults to 25. Maximum length of 100
|
|
100
|
+
# @option options [Integer] :user. Defaults to null. Looks up a user by ID. You may look up a user by username using the 'username' query type.
|
|
101
|
+
# @option options [] :query. Defaults to null
|
|
102
|
+
# @option options [String, Array] :include. Allows multiple. Defaults to ["user", "replies", "following" ]. Choices: user, replies, following
|
|
103
|
+
# @option options [String] :anon_user. Defaults to null. Looks up an anonymous user by unique hash.
|
|
104
|
+
# @example Return a list of active threads user 1234 has been active on
|
|
105
|
+
# Disqussion::Client.users.listActivity(:user => 1234)
|
|
106
|
+
# @see: http://disqus.com/api/3.0/users/listActivity.json
|
|
70
107
|
def listActivity(*args)
|
|
71
|
-
|
|
108
|
+
options = args.last.is_a?(Hash) ? args.pop : {}
|
|
109
|
+
response = get('users/listActivity', options)
|
|
72
110
|
end
|
|
73
111
|
|
|
74
112
|
# BETA
|
data/lib/disqussion/version.rb
CHANGED
data/spec/disqussion/api_spec.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require '
|
|
1
|
+
require 'spec_helper'
|
|
2
2
|
|
|
3
3
|
describe Disqussion::Users do
|
|
4
4
|
Disqussion::Configuration::VALID_FORMATS.each do |format|
|
|
@@ -41,11 +41,25 @@ describe Disqussion::Users do
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
describe ".listActiveThreads" do
|
|
44
|
-
|
|
44
|
+
it "gets a list of threads a user has participated in" do
|
|
45
|
+
stub_get("users/listActiveThreads.json", :query => { :user => "1234"}).
|
|
46
|
+
to_return(:body => fixture("users/listActiveThreads.json"), :headers => {:content_type => "application/json; charset=utf-8"})
|
|
47
|
+
|
|
48
|
+
@client.listActiveThreads(:user => 1234)
|
|
49
|
+
|
|
50
|
+
a_get("users/listActiveThreads.json", :query => { :user => "1234"}).should have_been_made
|
|
51
|
+
end
|
|
45
52
|
end
|
|
46
53
|
|
|
47
54
|
describe ".listActivity" do
|
|
48
|
-
|
|
55
|
+
it "gets a list of various activity types made by the user." do
|
|
56
|
+
stub_get("users/listActivity.json", :query => { :user => "1234"}).
|
|
57
|
+
to_return(:body => fixture("users/listActivity.json"), :headers => {:content_type => "application/json; charset=utf-8"})
|
|
58
|
+
|
|
59
|
+
@client.listActivity(:user => 1234)
|
|
60
|
+
|
|
61
|
+
a_get("users/listActivity.json", :query => { :user => "1234"}).should have_been_made
|
|
62
|
+
end
|
|
49
63
|
end
|
|
50
64
|
|
|
51
65
|
describe ".listFollowers" do
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require '
|
|
1
|
+
require 'spec_helper'
|
|
2
2
|
|
|
3
3
|
describe Disqussion::Client do
|
|
4
4
|
context ".new" do
|
|
@@ -7,9 +7,8 @@ describe Disqussion::Client do
|
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
it "connect using the endpoint configuration" do
|
|
10
|
-
endpoint = URI.parse(@client.api_endpoint)
|
|
11
10
|
connection = @client.send(:connection).build_url(nil).to_s
|
|
12
|
-
connection.should ==
|
|
11
|
+
connection.should == @client.api_endpoint.gsub(/\/$/, '')
|
|
13
12
|
end
|
|
14
13
|
end
|
|
15
|
-
end
|
|
14
|
+
end
|
data/spec/disqussion_spec.rb
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cursor": {
|
|
3
|
+
"prev": null,
|
|
4
|
+
"hasNext": true,
|
|
5
|
+
"next": "1241410759223203:0:0",
|
|
6
|
+
"hasPrev": false,
|
|
7
|
+
"total": null,
|
|
8
|
+
"id": "1241410759223203:0:0",
|
|
9
|
+
"more": true
|
|
10
|
+
},
|
|
11
|
+
"code": 0,
|
|
12
|
+
"response": [
|
|
13
|
+
{
|
|
14
|
+
"feed": "http://litpark.disqus.com/litpark_announcement_bea_signing_and_party_news/latest.rss",
|
|
15
|
+
"reactions": 0,
|
|
16
|
+
"identifiers": [],
|
|
17
|
+
"forum": "litpark",
|
|
18
|
+
"title": "LitPark Announcement: BEA Signing and Party News!",
|
|
19
|
+
"dislikes": 0,
|
|
20
|
+
"isDeleted": false,
|
|
21
|
+
"author": "962",
|
|
22
|
+
"userScore": 0,
|
|
23
|
+
"id": "94126077",
|
|
24
|
+
"isClosed": false,
|
|
25
|
+
"posts": 25,
|
|
26
|
+
"userSubscription": false,
|
|
27
|
+
"link": "http://litpark.com/2010/05/10/litpark-announcement-bea-signing-and-party-news/",
|
|
28
|
+
"likes": 0,
|
|
29
|
+
"message": "<p>A quick announcement that Book Expo America (BEA) is just around the corner, and I would love to see you there.<br>I\u2019ll be signing galleys of UP FROM THE BLUE at Table 29, 10:30-11:00 a.m., Wednesday, May 26. That means, even though the book doesn\u2019t come out until September, you can get an early copy. I [...]<br></p>",
|
|
30
|
+
"category": "476",
|
|
31
|
+
"slug": "litpark_announcement_bea_signing_and_party_news",
|
|
32
|
+
"createdAt": "2010-05-10T16:44:37"
|
|
33
|
+
} ]
|
|
34
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cursor": {
|
|
3
|
+
"prev": null,
|
|
4
|
+
"hasNext": true,
|
|
5
|
+
"next": "1276259924894729:0:0",
|
|
6
|
+
"hasPrev": null,
|
|
7
|
+
"total": null,
|
|
8
|
+
"id": "1276259924894729:0:0",
|
|
9
|
+
"more": true
|
|
10
|
+
},
|
|
11
|
+
"code": 0,
|
|
12
|
+
"response": [
|
|
13
|
+
{
|
|
14
|
+
"object": {
|
|
15
|
+
"isJuliaFlagged": true,
|
|
16
|
+
"forum": {
|
|
17
|
+
"name": "Susan Henderson's LitPark",
|
|
18
|
+
"language": "en",
|
|
19
|
+
"settings": {
|
|
20
|
+
"allowAnonPost": true,
|
|
21
|
+
"audienceSyncEnabled": false,
|
|
22
|
+
"allowMedia": true,
|
|
23
|
+
"hasReactions": true,
|
|
24
|
+
"ssoRequired": false,
|
|
25
|
+
"backplaneEnabled": false
|
|
26
|
+
},
|
|
27
|
+
"url": "http://litpark.com/",
|
|
28
|
+
"favicon": {
|
|
29
|
+
"permalink": "http://disqus.com/api/forums/favicons/litpark.jpg",
|
|
30
|
+
"cache": "http://mediacdn.disqus.com/uploads/forums/484/favicon.png"
|
|
31
|
+
},
|
|
32
|
+
"founder": "962",
|
|
33
|
+
"id": "litpark"
|
|
34
|
+
},
|
|
35
|
+
"parent": null,
|
|
36
|
+
"voters": [],
|
|
37
|
+
"url": "http://litpark.com/2010/05/10/litpark-announcement-bea-signing-and-party-news/#comment-57102360",
|
|
38
|
+
"message": "<p>Another job for you creative people needing work:</p>\n\n<p>Development Writer (P/T or F/T)<br>New Jersey Performing Arts Center<br><a href=\"http://www.facebook.com/l/b4e55uetKDR1iZyBvoul0HKxj2g;www.idealist.org/en/job/383916-101\" rel=\"nofollow\">http://www.facebook.com/l/b4e5...</a><br>Newark, New Jersey, United States</p>\n\n<p>Assistant to the Director for CITYarts<br>New York, New York,<br><a href=\"http://www.facebook.com/l/b4e550CJS9lkuuD9aDWrtS_VrYg;www.idealist.org/en/job/383894-331\" rel=\"nofollow\">http://www.facebook.com/l/b4e5...</a></p>",
|
|
39
|
+
"isFlagged": false,
|
|
40
|
+
"dislikes": 0,
|
|
41
|
+
"raw_message": "Another job for you creative people needing work:\n\nDevelopment Writer (P/T or F/T)\nNew Jersey Performing Arts Center\nhttp://www.facebook.com/l/b4e55uetKDR1iZyBvoul0HKxj2g;www.idealist.org/en/job/383916-101\nNewark, New Jersey, United States\n\n\nAssistant to the Director for CITYarts\nNew York, New York,\nhttp://www.facebook.com/l/b4e550CJS9lkuuD9aDWrtS_VrYg;www.idealist.org/en/job/383894-331",
|
|
42
|
+
"isApproved": true,
|
|
43
|
+
"isSpam": false,
|
|
44
|
+
"thread": {
|
|
45
|
+
"feed": "http://litpark.disqus.com/litpark_announcement_bea_signing_and_party_news/latest.rss",
|
|
46
|
+
"category": "476",
|
|
47
|
+
"forum": "litpark",
|
|
48
|
+
"author": "962",
|
|
49
|
+
"isDeleted": false,
|
|
50
|
+
"title": "LitPark Announcement: BEA Signing and Party News!",
|
|
51
|
+
"dislikes": 0,
|
|
52
|
+
"id": "94126077",
|
|
53
|
+
"isClosed": false,
|
|
54
|
+
"link": "http://litpark.com/2010/05/10/litpark-announcement-bea-signing-and-party-news/",
|
|
55
|
+
"likes": 0,
|
|
56
|
+
"message": "<p>A quick announcement that Book Expo America (BEA) is just around the corner, and I would love to see you there.<br>I\u2019ll be signing galleys of UP FROM THE BLUE at Table 29, 10:30-11:00 a.m., Wednesday, May 26. That means, even though the book doesn\u2019t come out until September, you can get an early copy. I [...]<br></p>",
|
|
57
|
+
"slug": "litpark_announcement_bea_signing_and_party_news",
|
|
58
|
+
"createdAt": "2010-05-10T16:44:37"
|
|
59
|
+
},
|
|
60
|
+
"numReports": 0,
|
|
61
|
+
"isDeleted": false,
|
|
62
|
+
"isEdited": false,
|
|
63
|
+
"points": 0,
|
|
64
|
+
"author": {
|
|
65
|
+
"username": "SusanHenderson",
|
|
66
|
+
"about": "Susan Henderson runs the blog, LitPark.com. Interested in her novel, THE RUBY CUP? You can contact her through her agent, Dan Conaway, at Writers House.",
|
|
67
|
+
"name": "SusanHenderson",
|
|
68
|
+
"url": "http://www.myspace.com/susanhenderson",
|
|
69
|
+
"isAnonymous": false,
|
|
70
|
+
"profileUrl": "http://disqus.com/SusanHenderson/",
|
|
71
|
+
"emailHash": "65d347347136c65695c6b3d984a34803",
|
|
72
|
+
"location": "New York",
|
|
73
|
+
"isPrimary": true,
|
|
74
|
+
"joinedAt": "2007-11-02T10:47:10",
|
|
75
|
+
"id": "1234",
|
|
76
|
+
"avatar": {
|
|
77
|
+
"small": {
|
|
78
|
+
"permalink": "http://disqus.com/api/users/avatars/SusanHenderson.jpg",
|
|
79
|
+
"cache": "http://mediacdn.disqus.com/uploads/users/1234/avatar32.jpg?1281549414"
|
|
80
|
+
},
|
|
81
|
+
"isCustom": false,
|
|
82
|
+
"permalink": "http://disqus.com/api/users/avatars/SusanHenderson.jpg",
|
|
83
|
+
"cache": "http://mediacdn.disqus.com/uploads/users/1234/avatar92.jpg?1281549414",
|
|
84
|
+
"large": {
|
|
85
|
+
"permalink": "http://disqus.com/api/users/avatars/SusanHenderson.jpg",
|
|
86
|
+
"cache": "http://mediacdn.disqus.com/uploads/users/1234/avatar92.jpg?1281549414"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"isHighlighted": false,
|
|
91
|
+
"id": "57102360",
|
|
92
|
+
"createdAt": "2010-06-16T17:24:05",
|
|
93
|
+
"likes": 0
|
|
94
|
+
},
|
|
95
|
+
"type": "post",
|
|
96
|
+
"createdAt": "2010-06-16T17:24:05"
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
metadata
CHANGED
|
@@ -1,193 +1,103 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: disqussion
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.6
|
|
4
5
|
prerelease:
|
|
5
|
-
version: 0.0.5
|
|
6
6
|
platform: ruby
|
|
7
|
-
authors:
|
|
8
|
-
-
|
|
7
|
+
authors:
|
|
8
|
+
- Jérémy Van de Wyngaert
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
name: json
|
|
18
|
-
prerelease: false
|
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
|
20
|
-
none: false
|
|
21
|
-
requirements:
|
|
22
|
-
- - ~>
|
|
23
|
-
- !ruby/object:Gem::Version
|
|
24
|
-
version: "1.5"
|
|
25
|
-
type: :development
|
|
26
|
-
version_requirements: *id001
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: nokogiri
|
|
29
|
-
prerelease: false
|
|
30
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
|
31
|
-
none: false
|
|
32
|
-
requirements:
|
|
33
|
-
- - ~>
|
|
34
|
-
- !ruby/object:Gem::Version
|
|
35
|
-
version: "1.4"
|
|
36
|
-
type: :development
|
|
37
|
-
version_requirements: *id002
|
|
38
|
-
- !ruby/object:Gem::Dependency
|
|
39
|
-
name: maruku
|
|
40
|
-
prerelease: false
|
|
41
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
|
42
|
-
none: false
|
|
43
|
-
requirements:
|
|
44
|
-
- - ~>
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: "0.6"
|
|
47
|
-
type: :development
|
|
48
|
-
version_requirements: *id003
|
|
49
|
-
- !ruby/object:Gem::Dependency
|
|
50
|
-
name: rake
|
|
51
|
-
prerelease: false
|
|
52
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
|
53
|
-
none: false
|
|
54
|
-
requirements:
|
|
55
|
-
- - ~>
|
|
56
|
-
- !ruby/object:Gem::Version
|
|
57
|
-
version: "0.8"
|
|
58
|
-
type: :development
|
|
59
|
-
version_requirements: *id004
|
|
60
|
-
- !ruby/object:Gem::Dependency
|
|
61
|
-
name: rspec
|
|
62
|
-
prerelease: false
|
|
63
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
|
64
|
-
none: false
|
|
65
|
-
requirements:
|
|
66
|
-
- - ~>
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: "2.5"
|
|
69
|
-
type: :development
|
|
70
|
-
version_requirements: *id005
|
|
71
|
-
- !ruby/object:Gem::Dependency
|
|
72
|
-
name: simplecov
|
|
73
|
-
prerelease: false
|
|
74
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
|
12
|
+
date: 2013-01-28 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: hashie
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
75
17
|
none: false
|
|
76
|
-
requirements:
|
|
18
|
+
requirements:
|
|
77
19
|
- - ~>
|
|
78
|
-
- !ruby/object:Gem::Version
|
|
79
|
-
version:
|
|
80
|
-
type: :
|
|
81
|
-
version_requirements: *id006
|
|
82
|
-
- !ruby/object:Gem::Dependency
|
|
83
|
-
name: webmock
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '1.2'
|
|
22
|
+
type: :runtime
|
|
84
23
|
prerelease: false
|
|
85
|
-
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
86
25
|
none: false
|
|
87
|
-
requirements:
|
|
26
|
+
requirements:
|
|
88
27
|
- - ~>
|
|
89
|
-
- !ruby/object:Gem::Version
|
|
90
|
-
version:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
name: yard
|
|
95
|
-
prerelease: false
|
|
96
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '1.2'
|
|
30
|
+
- !ruby/object:Gem::Dependency
|
|
31
|
+
name: faraday
|
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
|
97
33
|
none: false
|
|
98
|
-
requirements:
|
|
34
|
+
requirements:
|
|
99
35
|
- - ~>
|
|
100
|
-
- !ruby/object:Gem::Version
|
|
101
|
-
version:
|
|
102
|
-
type: :
|
|
103
|
-
version_requirements: *id008
|
|
104
|
-
- !ruby/object:Gem::Dependency
|
|
105
|
-
name: ZenTest
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0.8'
|
|
38
|
+
type: :runtime
|
|
106
39
|
prerelease: false
|
|
107
|
-
|
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
108
41
|
none: false
|
|
109
|
-
requirements:
|
|
42
|
+
requirements:
|
|
110
43
|
- - ~>
|
|
111
|
-
- !ruby/object:Gem::Version
|
|
112
|
-
version:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
name: ruby-debug19
|
|
117
|
-
prerelease: false
|
|
118
|
-
requirement: &id010 !ruby/object:Gem::Requirement
|
|
119
|
-
none: false
|
|
120
|
-
requirements:
|
|
121
|
-
- - ">="
|
|
122
|
-
- !ruby/object:Gem::Version
|
|
123
|
-
version: "0"
|
|
124
|
-
type: :development
|
|
125
|
-
version_requirements: *id010
|
|
126
|
-
- !ruby/object:Gem::Dependency
|
|
127
|
-
name: hashie
|
|
128
|
-
prerelease: false
|
|
129
|
-
requirement: &id011 !ruby/object:Gem::Requirement
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0.8'
|
|
46
|
+
- !ruby/object:Gem::Dependency
|
|
47
|
+
name: faraday_middleware
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
130
49
|
none: false
|
|
131
|
-
requirements:
|
|
132
|
-
- -
|
|
133
|
-
- !ruby/object:Gem::Version
|
|
134
|
-
version:
|
|
50
|
+
requirements:
|
|
51
|
+
- - ! '>='
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '0.9'
|
|
135
54
|
type: :runtime
|
|
136
|
-
version_requirements: *id011
|
|
137
|
-
- !ruby/object:Gem::Dependency
|
|
138
|
-
name: faraday
|
|
139
55
|
prerelease: false
|
|
140
|
-
|
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
141
57
|
none: false
|
|
142
|
-
requirements:
|
|
58
|
+
requirements:
|
|
59
|
+
- - ! '>='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0.9'
|
|
62
|
+
- !ruby/object:Gem::Dependency
|
|
63
|
+
name: multi_json
|
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
|
65
|
+
none: false
|
|
66
|
+
requirements:
|
|
143
67
|
- - ~>
|
|
144
|
-
- !ruby/object:Gem::Version
|
|
145
|
-
version:
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '1.5'
|
|
146
70
|
type: :runtime
|
|
147
|
-
version_requirements: *id012
|
|
148
|
-
- !ruby/object:Gem::Dependency
|
|
149
|
-
name: faraday_middleware
|
|
150
71
|
prerelease: false
|
|
151
|
-
|
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
152
73
|
none: false
|
|
153
|
-
requirements:
|
|
74
|
+
requirements:
|
|
154
75
|
- - ~>
|
|
155
|
-
- !ruby/object:Gem::Version
|
|
156
|
-
version:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
name: multi_json
|
|
161
|
-
prerelease: false
|
|
162
|
-
requirement: &id014 !ruby/object:Gem::Requirement
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: '1.5'
|
|
78
|
+
- !ruby/object:Gem::Dependency
|
|
79
|
+
name: rash
|
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
|
163
81
|
none: false
|
|
164
|
-
requirements:
|
|
82
|
+
requirements:
|
|
165
83
|
- - ~>
|
|
166
|
-
- !ruby/object:Gem::Version
|
|
167
|
-
version:
|
|
84
|
+
- !ruby/object:Gem::Version
|
|
85
|
+
version: '0.3'
|
|
168
86
|
type: :runtime
|
|
169
|
-
version_requirements: *id014
|
|
170
|
-
- !ruby/object:Gem::Dependency
|
|
171
|
-
name: rash
|
|
172
87
|
prerelease: false
|
|
173
|
-
|
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
174
89
|
none: false
|
|
175
|
-
requirements:
|
|
90
|
+
requirements:
|
|
176
91
|
- - ~>
|
|
177
|
-
- !ruby/object:Gem::Version
|
|
178
|
-
version: 0.3
|
|
179
|
-
type: :runtime
|
|
180
|
-
version_requirements: *id015
|
|
92
|
+
- !ruby/object:Gem::Version
|
|
93
|
+
version: '0.3'
|
|
181
94
|
description: Disqus API v3 wrapper
|
|
182
|
-
email:
|
|
95
|
+
email:
|
|
183
96
|
- jeremyvdw@gmail.com
|
|
184
97
|
executables: []
|
|
185
|
-
|
|
186
98
|
extensions: []
|
|
187
|
-
|
|
188
99
|
extra_rdoc_files: []
|
|
189
|
-
|
|
190
|
-
files:
|
|
100
|
+
files:
|
|
191
101
|
- .gitignore
|
|
192
102
|
- .travis.yml
|
|
193
103
|
- .yardopts
|
|
@@ -291,41 +201,42 @@ files:
|
|
|
291
201
|
- spec/fixtures/users/details.json
|
|
292
202
|
- spec/fixtures/users/follow.json
|
|
293
203
|
- spec/fixtures/users/listActiveForums.json
|
|
204
|
+
- spec/fixtures/users/listActiveThreads.json
|
|
205
|
+
- spec/fixtures/users/listActivity.json
|
|
294
206
|
- spec/fixtures/users/listForums.json
|
|
295
207
|
- spec/fixtures/users/listPosts.json
|
|
296
208
|
- spec/fixtures/users/unfollow.json
|
|
297
|
-
- spec/
|
|
298
|
-
has_rdoc: true
|
|
209
|
+
- spec/spec_helper.rb
|
|
299
210
|
homepage: https://github.com/jeremyvdw/disqussion
|
|
300
|
-
licenses:
|
|
301
|
-
|
|
211
|
+
licenses:
|
|
212
|
+
- MIT
|
|
302
213
|
post_install_message:
|
|
303
214
|
rdoc_options: []
|
|
304
|
-
|
|
305
|
-
require_paths:
|
|
215
|
+
require_paths:
|
|
306
216
|
- lib
|
|
307
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
217
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
308
218
|
none: false
|
|
309
|
-
requirements:
|
|
310
|
-
- -
|
|
311
|
-
- !ruby/object:Gem::Version
|
|
312
|
-
version:
|
|
313
|
-
|
|
219
|
+
requirements:
|
|
220
|
+
- - ! '>='
|
|
221
|
+
- !ruby/object:Gem::Version
|
|
222
|
+
version: '0'
|
|
223
|
+
segments:
|
|
224
|
+
- 0
|
|
225
|
+
hash: 106998946894809363
|
|
226
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
314
227
|
none: false
|
|
315
|
-
requirements:
|
|
316
|
-
- -
|
|
317
|
-
- !ruby/object:Gem::Version
|
|
318
|
-
version:
|
|
228
|
+
requirements:
|
|
229
|
+
- - ! '>='
|
|
230
|
+
- !ruby/object:Gem::Version
|
|
231
|
+
version: 1.3.6
|
|
319
232
|
requirements: []
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
rubygems_version: 1.6.2
|
|
233
|
+
rubyforge_project:
|
|
234
|
+
rubygems_version: 1.8.23
|
|
323
235
|
signing_key:
|
|
324
236
|
specification_version: 3
|
|
325
237
|
summary: Disqus API v3 wrapper
|
|
326
|
-
test_files:
|
|
238
|
+
test_files:
|
|
327
239
|
- spec/disqussion/api_spec.rb
|
|
328
|
-
- spec/disqussion/client/.DS_Store
|
|
329
240
|
- spec/disqussion/client/applications_spec.rb
|
|
330
241
|
- spec/disqussion/client/categories_spec.rb
|
|
331
242
|
- spec/disqussion/client/export_spec.rb
|
|
@@ -390,7 +301,10 @@ test_files:
|
|
|
390
301
|
- spec/fixtures/users/details.json
|
|
391
302
|
- spec/fixtures/users/follow.json
|
|
392
303
|
- spec/fixtures/users/listActiveForums.json
|
|
304
|
+
- spec/fixtures/users/listActiveThreads.json
|
|
305
|
+
- spec/fixtures/users/listActivity.json
|
|
393
306
|
- spec/fixtures/users/listForums.json
|
|
394
307
|
- spec/fixtures/users/listPosts.json
|
|
395
308
|
- spec/fixtures/users/unfollow.json
|
|
396
|
-
- spec/
|
|
309
|
+
- spec/spec_helper.rb
|
|
310
|
+
has_rdoc:
|