pilha 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -2
- data/lib/pilha/stack_overflow/answer.rb +1 -1
- data/lib/pilha/stack_overflow/question.rb +4 -0
- data/spec/fixtures/{answers_by_id.json → answer_by_id.json} +0 -0
- data/spec/fixtures/{answers_by_id.json.gz → answer_by_id.json.gz} +0 -0
- data/spec/fixtures/answer_by_id_with_body.json +29 -0
- data/spec/fixtures/answer_by_id_with_body.json.gz +0 -0
- data/spec/pilha/stack_overflow/answer_spec.rb +7 -1
- data/spec/pilha/stack_overflow/question_spec.rb +35 -2
- data/spec/spec_helper.rb +4 -3
- metadata +151 -127
- data/spec/fixtures/questions.part +0 -859
- data/spec/spec.opts +0 -2
data/README.rdoc
CHANGED
@@ -4,7 +4,7 @@ A object oriented wrapper for the StackExchange/StackOverflow API
|
|
4
4
|
|
5
5
|
== Why such a strange name?
|
6
6
|
|
7
|
-
'Pilha'(pronounced peeleeah) means 'stack' in portuguese.
|
7
|
+
'Pilha' (pronounced peeleeah) means 'stack' in portuguese.
|
8
8
|
|
9
9
|
== Instalation
|
10
10
|
|
@@ -24,7 +24,8 @@ Pilha aims to provide a ActiveRecord like interface for querying the StackExchan
|
|
24
24
|
|
25
25
|
= Contributors
|
26
26
|
|
27
|
-
Michael Barton (
|
27
|
+
Michael Barton (http://github.com/michaelbarton)
|
28
|
+
Thomas McDonald (http://github.com/conceptcoding)
|
28
29
|
|
29
30
|
= License
|
30
31
|
|
@@ -5,7 +5,7 @@ module StackExchange
|
|
5
5
|
|
6
6
|
def_delegators :@struct, :answer_id, :accepted, :answer_comments_url, :question_id,
|
7
7
|
:owner, :creation_date, :last_activity_date, :up_vote_count, :down_vote_count,
|
8
|
-
:view_count, :score, :community_owned, :title, :comments
|
8
|
+
:view_count, :score, :community_owned, :title, :comments, :body
|
9
9
|
|
10
10
|
class << self
|
11
11
|
|
File without changes
|
File without changes
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"total": 1,
|
3
|
+
"page": 1,
|
4
|
+
"pagesize": 30,
|
5
|
+
"answers": [
|
6
|
+
{
|
7
|
+
"answer_id": 666,
|
8
|
+
"accepted": false,
|
9
|
+
"answer_comments_url": "/answers/666/comments",
|
10
|
+
"question_id": 664,
|
11
|
+
"owner": {
|
12
|
+
"user_id": 58,
|
13
|
+
"user_type": "registered",
|
14
|
+
"display_name": "cmcculloh",
|
15
|
+
"reputation": 3462,
|
16
|
+
"email_hash": "298e0497aa6b76a573f17e6a2bb22dec"
|
17
|
+
},
|
18
|
+
"creation_date": 1217766782,
|
19
|
+
"last_activity_date": 1217766782,
|
20
|
+
"up_vote_count": 25,
|
21
|
+
"down_vote_count": 0,
|
22
|
+
"view_count": 1366,
|
23
|
+
"score": 25,
|
24
|
+
"community_owned": false,
|
25
|
+
"title": "What level of programming should I have to contribute to open source?",
|
26
|
+
"body": "<p>Absolutely not.</p>\r\n\r\n<p>Probably the best thing you could do though, might not be to actually program at all, but rather test test test. You can be great at testing because not only can you find all the little wacky problems, but you could pop open the code and find the areas causing the problems (possibly) and point them out even if you can't fix them. For instance:</p>\r\n\r\n<p>You find a bug, \"It looks like when I edit my own post, if it has up or down mods, I get those mod points added to my account again! Over and over even!\".</p>\r\n\r\n<p>So then you open the code and find the section that adds points and say, \"hrm... it looks like the logic here is broken. It's lines 589-633 in file \"modAdd.aspx\"... I'll submit a bug report with this info\".</p>\r\n\r\n<p>Now, if you got in over your head and started submitting all this bad code and brazenly demanding it get included, then you are <em>making</em> a hindrance of yourself. But it doesn't have to be that way.</p>\r\n\r\n<p>Another great thing you could do would be documentation. Telling users how to use the app in plain english. Or even work on the website for the project. Many open source projects need lots of help in these areas. Often you will go to a project's website, and have no idea what that project is even about, or how to even download it...</p>"
|
27
|
+
}
|
28
|
+
]
|
29
|
+
}
|
Binary file
|
@@ -2,13 +2,14 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe StackExchange::StackOverflow::Answer do
|
4
4
|
|
5
|
-
it 'should return a answer identified by its id' do
|
5
|
+
it 'should return a answer identified by its id (without body)' do
|
6
6
|
answer = StackOverflow::Answer.find(666)
|
7
7
|
|
8
8
|
answer.id.should == 666
|
9
9
|
answer.accepted.should be_false
|
10
10
|
answer.answer_comments_url.should == "/answers/666/comments"
|
11
11
|
answer.question_id.should == 664
|
12
|
+
answer.body.should be_nil
|
12
13
|
|
13
14
|
user = answer.owner
|
14
15
|
user.id.should == 58
|
@@ -17,6 +18,11 @@ describe StackExchange::StackOverflow::Answer do
|
|
17
18
|
user.reputation.should == 2903
|
18
19
|
user.email_hash.should == "298e0497aa6b76a573f17e6a2bb22dec"
|
19
20
|
end
|
21
|
+
|
22
|
+
it 'should include body when using :query => { :body => true }' do
|
23
|
+
answer = StackOverflow::Answer.find(666, :query => { :body => true })
|
24
|
+
answer.body.should == "<p>Absolutely not.</p>\r\n\r\n<p>Probably the best thing you could do though, might not be to actually program at all, but rather test test test. You can be great at testing because not only can you find all the little wacky problems, but you could pop open the code and find the areas causing the problems (possibly) and point them out even if you can't fix them. For instance:</p>\r\n\r\n<p>You find a bug, \"It looks like when I edit my own post, if it has up or down mods, I get those mod points added to my account again! Over and over even!\".</p>\r\n\r\n<p>So then you open the code and find the section that adds points and say, \"hrm... it looks like the logic here is broken. It's lines 589-633 in file \"modAdd.aspx\"... I'll submit a bug report with this info\".</p>\r\n\r\n<p>Now, if you got in over your head and started submitting all this bad code and brazenly demanding it get included, then you are <em>making</em> a hindrance of yourself. But it doesn't have to be that way.</p>\r\n\r\n<p>Another great thing you could do would be documentation. Telling users how to use the app in plain english. Or even work on the website for the project. Many open source projects need lots of help in these areas. Often you will go to a project's website, and have no idea what that project is even about, or how to even download it...</p>"
|
25
|
+
end
|
20
26
|
|
21
27
|
it 'should include comments associations' do
|
22
28
|
answer = StackOverflow::Answer.find 555
|
@@ -2,6 +2,41 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe StackExchange::StackOverflow::Question do
|
4
4
|
|
5
|
+
it 'should return a list of questions' do
|
6
|
+
response = StackOverflow::Question.all
|
7
|
+
response.total.should == 701674
|
8
|
+
response.page.should == 1
|
9
|
+
response.pagesize.should == 30
|
10
|
+
|
11
|
+
questions = response.questions
|
12
|
+
question = questions.first
|
13
|
+
|
14
|
+
question.tags.should == ['python', 'django']
|
15
|
+
question.answer_count.should == 0
|
16
|
+
question.answers.should be_instance_of Array
|
17
|
+
question.answers.size.should == 0
|
18
|
+
question.favorite_count.should == 0
|
19
|
+
question.question_timeline_url.should == "/questions/2943174/timeline"
|
20
|
+
question.question_comments_url.should == "/questions/2943174/comments"
|
21
|
+
question.question_answers_url.should == "/questions/2943174/answers"
|
22
|
+
question.id.should == 2943174
|
23
|
+
question.creation_date.should == 1275304964
|
24
|
+
question.last_activity_date.should == 1275304964
|
25
|
+
question.up_vote_count.should == 0
|
26
|
+
question.down_vote_count.should == 0
|
27
|
+
question.view_count.should == 0
|
28
|
+
question.score.should == 0
|
29
|
+
question.community_owned.should == false
|
30
|
+
question.title.should == "Django - count date between"
|
31
|
+
|
32
|
+
owner = question.owner
|
33
|
+
owner.user_id.should == 354538
|
34
|
+
owner.display_name.should == "DJPy"
|
35
|
+
owner.user_type.should == "unregistered"
|
36
|
+
owner.reputation.should == 1
|
37
|
+
owner.email_hash.should == "75896ac961d6cfc55d21d297cc3b11b3"
|
38
|
+
end
|
39
|
+
|
5
40
|
it 'should return a question identified by its id (without body)' do
|
6
41
|
question = StackOverflow::Question.find 1234
|
7
42
|
question.id.should == 1234
|
@@ -95,8 +130,6 @@ describe StackExchange::StackOverflow::Question do
|
|
95
130
|
question.title.should == "Is there any NHibernate book?"
|
96
131
|
end
|
97
132
|
|
98
|
-
|
99
|
-
|
100
133
|
it 'should get questions by tag' do
|
101
134
|
response = StackOverflow::Question.find_by_tags('ruby')
|
102
135
|
response.total.should == 10153
|
data/spec/spec_helper.rb
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)
|
|
4
4
|
require 'rubygems'
|
5
5
|
require 'fakeweb'
|
6
6
|
require 'pilha'
|
7
|
-
require '
|
7
|
+
require 'rspec'
|
8
8
|
require 'pp'
|
9
9
|
|
10
10
|
include StackExchange
|
@@ -26,14 +26,15 @@ def api_method_url(method)
|
|
26
26
|
ROOT_URL + '/' + method
|
27
27
|
end
|
28
28
|
|
29
|
-
['stats', 'badges' ].each do |method|
|
29
|
+
['stats', 'badges', 'questions'].each do |method|
|
30
30
|
register :url => method + '/', :body => method
|
31
31
|
end
|
32
32
|
|
33
33
|
register(:url => 'badges/9/', :body => 'badges_by_id')
|
34
34
|
register(:url => 'badges/9/?pagesize=50', :body => 'badges_by_id_page2')
|
35
35
|
register(:url => 'badges/tags/', :body => 'badges_tag_based')
|
36
|
-
register(:url => 'answers/666/', :body => '
|
36
|
+
register(:url => 'answers/666/', :body => 'answer_by_id')
|
37
|
+
register(:url => 'answers/666/?body=true', :body => 'answer_by_id_with_body')
|
37
38
|
register(:url => 'answers/555/', :body => 'answer_with_comments')
|
38
39
|
register(:url => 'comments/1/', :body => 'comments')
|
39
40
|
register(:url => 'questions/549/answers/', :body => 'answers_by_question_id')
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pilha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 9
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
version: 0.2.0
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Dalto Curvelano Junior
|
@@ -15,23 +14,50 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date:
|
17
|
+
date: 2011-02-13 00:00:00 -02:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
21
|
+
name: json
|
23
22
|
prerelease: false
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
24
|
none: false
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 4
|
31
|
+
- 0
|
32
|
+
version: 1.4.0
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: rspec
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
30
43
|
segments:
|
31
44
|
- 0
|
32
45
|
version: "0"
|
33
46
|
type: :development
|
34
|
-
version_requirements: *
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: fakeweb
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
segments:
|
57
|
+
- 0
|
58
|
+
version: "0"
|
59
|
+
type: :development
|
60
|
+
version_requirements: *id003
|
35
61
|
description: A ruby wrapper to the Stack Exchange (Stack Overflow and friends) API.
|
36
62
|
email:
|
37
63
|
executables: []
|
@@ -41,85 +67,85 @@ extensions: []
|
|
41
67
|
extra_rdoc_files: []
|
42
68
|
|
43
69
|
files:
|
44
|
-
- lib/pilha
|
45
|
-
- lib/pilha/stack_overflow/question.rb
|
70
|
+
- lib/pilha.rb
|
46
71
|
- lib/pilha/stack_overflow/comment.rb
|
47
|
-
- lib/pilha/stack_overflow/
|
72
|
+
- lib/pilha/stack_overflow/answer.rb
|
48
73
|
- lib/pilha/stack_overflow/statistics.rb
|
49
74
|
- lib/pilha/stack_overflow/badge.rb
|
75
|
+
- lib/pilha/stack_overflow/question.rb
|
50
76
|
- lib/pilha/stack_overflow/user.rb
|
51
|
-
- lib/pilha/stack_overflow/
|
52
|
-
- lib/pilha.rb
|
77
|
+
- lib/pilha/stack_overflow/base.rb
|
78
|
+
- lib/pilha/stack_overflow/tag.rb
|
53
79
|
- README.rdoc
|
54
|
-
- spec/
|
55
|
-
- spec/
|
56
|
-
- spec/
|
57
|
-
- spec/pilha/stack_overflow/question_spec.rb
|
58
|
-
- spec/pilha/stack_overflow/stack_overflow_spec.rb
|
59
|
-
- spec/pilha/stack_overflow/badge_spec.rb
|
60
|
-
- spec/pilha/stack_overflow/answer_spec.rb
|
61
|
-
- spec/pilha/stack_overflow/user_spec.rb
|
62
|
-
- spec/spec.opts
|
63
|
-
- spec/fixtures/tags_by_user_id.json
|
64
|
-
- spec/fixtures/questions_tagged_gwt_and_googleappengine.json
|
80
|
+
- spec/spec_helper.rb
|
81
|
+
- spec/fixtures/tags_by_user_id.json.gz
|
82
|
+
- spec/fixtures/comments_by_user_id.json.gz
|
65
83
|
- spec/fixtures/user_tags.json
|
66
|
-
- spec/fixtures/
|
67
|
-
- spec/fixtures/
|
68
|
-
- spec/fixtures/
|
69
|
-
- spec/fixtures/
|
70
|
-
- spec/fixtures/
|
71
|
-
- spec/fixtures/
|
72
|
-
- spec/fixtures/
|
73
|
-
- spec/fixtures/all_tags.json.gz
|
84
|
+
- spec/fixtures/questions_tagged_gwt_and_googleappengine.json
|
85
|
+
- spec/fixtures/users.json
|
86
|
+
- spec/fixtures/question_by_id_with_body.json.gz
|
87
|
+
- spec/fixtures/badges_tag_based.json.gz
|
88
|
+
- spec/fixtures/comments_by_mentioned_user_id.json
|
89
|
+
- spec/fixtures/tags_by_user_id.json
|
90
|
+
- spec/fixtures/questions_tagged_ruby.json
|
74
91
|
- spec/fixtures/questions_tagged_gwt_and_googleappengine.json.gz
|
92
|
+
- spec/fixtures/users_answers.json
|
93
|
+
- spec/fixtures/comments.json
|
94
|
+
- spec/fixtures/comments_by_question_id.json.gz
|
75
95
|
- spec/fixtures/answers_by_question_id.json
|
76
|
-
- spec/fixtures/
|
77
|
-
- spec/fixtures/
|
78
|
-
- spec/fixtures/
|
79
|
-
- spec/fixtures/questions_tagged_ruby.json.gz
|
96
|
+
- spec/fixtures/questions_unanswered.json
|
97
|
+
- spec/fixtures/questions_by_user_id.json
|
98
|
+
- spec/fixtures/all_tags.json.gz
|
80
99
|
- spec/fixtures/badges_by_id.json
|
81
|
-
- spec/fixtures/
|
82
|
-
- spec/fixtures/
|
100
|
+
- spec/fixtures/comments_by_user_id.json
|
101
|
+
- spec/fixtures/questions_tagged_ruby.json.gz
|
102
|
+
- spec/fixtures/badges.json.gz
|
103
|
+
- spec/fixtures/answer_with_comments.json
|
83
104
|
- spec/fixtures/questions.json.gz
|
84
|
-
- spec/fixtures/
|
85
|
-
- spec/fixtures/questions.part
|
86
|
-
- spec/fixtures/answer_comments.json
|
87
|
-
- spec/fixtures/question_by_user_id.json.gz
|
88
|
-
- spec/fixtures/comments_by_question_id.json.gz
|
89
|
-
- spec/fixtures/comments_by_user_id.json.gz
|
90
|
-
- spec/fixtures/users_answers.json
|
91
|
-
- spec/fixtures/badges_tag_based.json
|
105
|
+
- spec/fixtures/users_by_id.json.gz
|
92
106
|
- spec/fixtures/stats.json
|
93
|
-
- spec/fixtures/
|
94
|
-
- spec/fixtures/
|
95
|
-
- spec/fixtures/comments_by_mentioned_user_id.json.gz
|
107
|
+
- spec/fixtures/answer_by_id_with_body.json
|
108
|
+
- spec/fixtures/answer_comments.json
|
96
109
|
- spec/fixtures/answer_with_comments.json.gz
|
97
|
-
- spec/fixtures/
|
98
|
-
- spec/fixtures/
|
99
|
-
- spec/fixtures/
|
100
|
-
- spec/fixtures/comments.json
|
110
|
+
- spec/fixtures/badges_name.json
|
111
|
+
- spec/fixtures/comments_by_user_id_to_mentioned_user_id.json.gz
|
112
|
+
- spec/fixtures/all_tags.json
|
101
113
|
- spec/fixtures/stats.json.gz
|
102
|
-
- spec/fixtures/
|
103
|
-
- spec/fixtures/badges_by_id_page2.json.gz
|
104
|
-
- spec/fixtures/questions_tagged_ruby.json
|
105
|
-
- spec/fixtures/questions_unanswered.json
|
114
|
+
- spec/fixtures/answer_by_id.json.gz
|
106
115
|
- spec/fixtures/favorite_questions_by_user_id.json
|
107
|
-
- spec/fixtures/users_by_id.json.gz
|
108
|
-
- spec/fixtures/question_by_id_with_body.json.gz
|
109
|
-
- spec/fixtures/badges_by_id.json.gz
|
110
|
-
- spec/fixtures/question_by_id.json
|
111
|
-
- spec/fixtures/answer_with_comments.json
|
112
116
|
- spec/fixtures/users_answers.json.gz
|
113
|
-
- spec/fixtures/
|
117
|
+
- spec/fixtures/question_by_id.json
|
118
|
+
- spec/fixtures/question_by_id.json.gz
|
119
|
+
- spec/fixtures/comments.json.gz
|
114
120
|
- spec/fixtures/comments_by_user_to_mentioned_user.json.gz
|
115
|
-
- spec/fixtures/
|
116
|
-
- spec/fixtures/
|
121
|
+
- spec/fixtures/question_by_id_with_body.json
|
122
|
+
- spec/fixtures/badges_tag_based.json
|
123
|
+
- spec/fixtures/comments_by_user_to_mentioned_user_id.json.gz
|
117
124
|
- spec/fixtures/badges.json
|
118
|
-
- spec/fixtures/
|
125
|
+
- spec/fixtures/favorite_questions_by_user_id.json.gz
|
126
|
+
- spec/fixtures/comments_by_mentioned_user_id.json.gz
|
127
|
+
- spec/fixtures/answers_by_question_id.json.gz
|
128
|
+
- spec/fixtures/users_by_id.json
|
119
129
|
- spec/fixtures/comments_by_question_id.json
|
120
|
-
- spec/fixtures/
|
121
|
-
- spec/fixtures/
|
122
|
-
- spec/
|
130
|
+
- spec/fixtures/comments_by_user_to_mentioned_user.json
|
131
|
+
- spec/fixtures/badges_by_id_page2.json
|
132
|
+
- spec/fixtures/answer_by_id_with_body.json.gz
|
133
|
+
- spec/fixtures/questions_by_user_id.json.gz
|
134
|
+
- spec/fixtures/badges_by_id_page2.json.gz
|
135
|
+
- spec/fixtures/badges_name.json.gz
|
136
|
+
- spec/fixtures/questions_unanswered.json.gz
|
137
|
+
- spec/fixtures/badges_by_id.json.gz
|
138
|
+
- spec/fixtures/answer_by_id.json
|
139
|
+
- spec/fixtures/questions.json
|
140
|
+
- spec/fixtures/question_by_user_id.json.gz
|
141
|
+
- spec/pilha/stack_overflow/badge_spec.rb
|
142
|
+
- spec/pilha/stack_overflow/user_spec.rb
|
143
|
+
- spec/pilha/stack_overflow/statistics_spec.rb
|
144
|
+
- spec/pilha/stack_overflow/comment_spec.rb
|
145
|
+
- spec/pilha/stack_overflow/tag_spec.rb
|
146
|
+
- spec/pilha/stack_overflow/answer_spec.rb
|
147
|
+
- spec/pilha/stack_overflow/question_spec.rb
|
148
|
+
- spec/pilha/stack_overflow/stack_overflow_spec.rb
|
123
149
|
has_rdoc: true
|
124
150
|
homepage: http://github.com/dlt/pilha
|
125
151
|
licenses:
|
@@ -134,7 +160,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
160
|
requirements:
|
135
161
|
- - ">="
|
136
162
|
- !ruby/object:Gem::Version
|
137
|
-
hash: 3
|
138
163
|
segments:
|
139
164
|
- 0
|
140
165
|
version: "0"
|
@@ -143,7 +168,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
168
|
requirements:
|
144
169
|
- - ">="
|
145
170
|
- !ruby/object:Gem::Version
|
146
|
-
hash: 3
|
147
171
|
segments:
|
148
172
|
- 0
|
149
173
|
version: "0"
|
@@ -155,72 +179,72 @@ signing_key:
|
|
155
179
|
specification_version: 3
|
156
180
|
summary: A ruby wrapper to the Stack Exchange (Stack Overflow and friends) API.
|
157
181
|
test_files:
|
158
|
-
- spec/
|
159
|
-
- spec/
|
160
|
-
- spec/
|
161
|
-
- spec/pilha/stack_overflow/question_spec.rb
|
162
|
-
- spec/pilha/stack_overflow/stack_overflow_spec.rb
|
163
|
-
- spec/pilha/stack_overflow/badge_spec.rb
|
164
|
-
- spec/pilha/stack_overflow/answer_spec.rb
|
165
|
-
- spec/pilha/stack_overflow/user_spec.rb
|
166
|
-
- spec/spec.opts
|
167
|
-
- spec/fixtures/tags_by_user_id.json
|
168
|
-
- spec/fixtures/questions_tagged_gwt_and_googleappengine.json
|
182
|
+
- spec/spec_helper.rb
|
183
|
+
- spec/fixtures/tags_by_user_id.json.gz
|
184
|
+
- spec/fixtures/comments_by_user_id.json.gz
|
169
185
|
- spec/fixtures/user_tags.json
|
170
|
-
- spec/fixtures/
|
171
|
-
- spec/fixtures/
|
172
|
-
- spec/fixtures/
|
173
|
-
- spec/fixtures/
|
174
|
-
- spec/fixtures/
|
175
|
-
- spec/fixtures/
|
176
|
-
- spec/fixtures/
|
177
|
-
- spec/fixtures/all_tags.json.gz
|
186
|
+
- spec/fixtures/questions_tagged_gwt_and_googleappengine.json
|
187
|
+
- spec/fixtures/users.json
|
188
|
+
- spec/fixtures/question_by_id_with_body.json.gz
|
189
|
+
- spec/fixtures/badges_tag_based.json.gz
|
190
|
+
- spec/fixtures/comments_by_mentioned_user_id.json
|
191
|
+
- spec/fixtures/tags_by_user_id.json
|
192
|
+
- spec/fixtures/questions_tagged_ruby.json
|
178
193
|
- spec/fixtures/questions_tagged_gwt_and_googleappengine.json.gz
|
194
|
+
- spec/fixtures/users_answers.json
|
195
|
+
- spec/fixtures/comments.json
|
196
|
+
- spec/fixtures/comments_by_question_id.json.gz
|
179
197
|
- spec/fixtures/answers_by_question_id.json
|
180
|
-
- spec/fixtures/
|
181
|
-
- spec/fixtures/
|
182
|
-
- spec/fixtures/
|
183
|
-
- spec/fixtures/questions_tagged_ruby.json.gz
|
198
|
+
- spec/fixtures/questions_unanswered.json
|
199
|
+
- spec/fixtures/questions_by_user_id.json
|
200
|
+
- spec/fixtures/all_tags.json.gz
|
184
201
|
- spec/fixtures/badges_by_id.json
|
185
|
-
- spec/fixtures/
|
186
|
-
- spec/fixtures/
|
202
|
+
- spec/fixtures/comments_by_user_id.json
|
203
|
+
- spec/fixtures/questions_tagged_ruby.json.gz
|
204
|
+
- spec/fixtures/badges.json.gz
|
205
|
+
- spec/fixtures/answer_with_comments.json
|
187
206
|
- spec/fixtures/questions.json.gz
|
188
|
-
- spec/fixtures/
|
189
|
-
- spec/fixtures/questions.part
|
190
|
-
- spec/fixtures/answer_comments.json
|
191
|
-
- spec/fixtures/question_by_user_id.json.gz
|
192
|
-
- spec/fixtures/comments_by_question_id.json.gz
|
193
|
-
- spec/fixtures/comments_by_user_id.json.gz
|
194
|
-
- spec/fixtures/users_answers.json
|
195
|
-
- spec/fixtures/badges_tag_based.json
|
207
|
+
- spec/fixtures/users_by_id.json.gz
|
196
208
|
- spec/fixtures/stats.json
|
197
|
-
- spec/fixtures/
|
198
|
-
- spec/fixtures/
|
199
|
-
- spec/fixtures/comments_by_mentioned_user_id.json.gz
|
209
|
+
- spec/fixtures/answer_by_id_with_body.json
|
210
|
+
- spec/fixtures/answer_comments.json
|
200
211
|
- spec/fixtures/answer_with_comments.json.gz
|
201
|
-
- spec/fixtures/
|
202
|
-
- spec/fixtures/
|
203
|
-
- spec/fixtures/
|
204
|
-
- spec/fixtures/comments.json
|
212
|
+
- spec/fixtures/badges_name.json
|
213
|
+
- spec/fixtures/comments_by_user_id_to_mentioned_user_id.json.gz
|
214
|
+
- spec/fixtures/all_tags.json
|
205
215
|
- spec/fixtures/stats.json.gz
|
206
|
-
- spec/fixtures/
|
207
|
-
- spec/fixtures/badges_by_id_page2.json.gz
|
208
|
-
- spec/fixtures/questions_tagged_ruby.json
|
209
|
-
- spec/fixtures/questions_unanswered.json
|
216
|
+
- spec/fixtures/answer_by_id.json.gz
|
210
217
|
- spec/fixtures/favorite_questions_by_user_id.json
|
211
|
-
- spec/fixtures/users_by_id.json.gz
|
212
|
-
- spec/fixtures/question_by_id_with_body.json.gz
|
213
|
-
- spec/fixtures/badges_by_id.json.gz
|
214
|
-
- spec/fixtures/question_by_id.json
|
215
|
-
- spec/fixtures/answer_with_comments.json
|
216
218
|
- spec/fixtures/users_answers.json.gz
|
217
|
-
- spec/fixtures/
|
219
|
+
- spec/fixtures/question_by_id.json
|
220
|
+
- spec/fixtures/question_by_id.json.gz
|
221
|
+
- spec/fixtures/comments.json.gz
|
218
222
|
- spec/fixtures/comments_by_user_to_mentioned_user.json.gz
|
219
|
-
- spec/fixtures/
|
220
|
-
- spec/fixtures/
|
223
|
+
- spec/fixtures/question_by_id_with_body.json
|
224
|
+
- spec/fixtures/badges_tag_based.json
|
225
|
+
- spec/fixtures/comments_by_user_to_mentioned_user_id.json.gz
|
221
226
|
- spec/fixtures/badges.json
|
222
|
-
- spec/fixtures/
|
227
|
+
- spec/fixtures/favorite_questions_by_user_id.json.gz
|
228
|
+
- spec/fixtures/comments_by_mentioned_user_id.json.gz
|
229
|
+
- spec/fixtures/answers_by_question_id.json.gz
|
230
|
+
- spec/fixtures/users_by_id.json
|
223
231
|
- spec/fixtures/comments_by_question_id.json
|
224
|
-
- spec/fixtures/
|
225
|
-
- spec/fixtures/
|
226
|
-
- spec/
|
232
|
+
- spec/fixtures/comments_by_user_to_mentioned_user.json
|
233
|
+
- spec/fixtures/badges_by_id_page2.json
|
234
|
+
- spec/fixtures/answer_by_id_with_body.json.gz
|
235
|
+
- spec/fixtures/questions_by_user_id.json.gz
|
236
|
+
- spec/fixtures/badges_by_id_page2.json.gz
|
237
|
+
- spec/fixtures/badges_name.json.gz
|
238
|
+
- spec/fixtures/questions_unanswered.json.gz
|
239
|
+
- spec/fixtures/badges_by_id.json.gz
|
240
|
+
- spec/fixtures/answer_by_id.json
|
241
|
+
- spec/fixtures/questions.json
|
242
|
+
- spec/fixtures/question_by_user_id.json.gz
|
243
|
+
- spec/pilha/stack_overflow/badge_spec.rb
|
244
|
+
- spec/pilha/stack_overflow/user_spec.rb
|
245
|
+
- spec/pilha/stack_overflow/statistics_spec.rb
|
246
|
+
- spec/pilha/stack_overflow/comment_spec.rb
|
247
|
+
- spec/pilha/stack_overflow/tag_spec.rb
|
248
|
+
- spec/pilha/stack_overflow/answer_spec.rb
|
249
|
+
- spec/pilha/stack_overflow/question_spec.rb
|
250
|
+
- spec/pilha/stack_overflow/stack_overflow_spec.rb
|