stocktwits 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/LICENSE +20 -0
- data/README +0 -0
- data/README.rdoc +17 -0
- data/Rakefile +63 -0
- data/VERSION +1 -0
- data/app/controllers/sessions_controller.rb +68 -0
- data/app/models/stocktwits/basic_user.rb +64 -0
- data/app/models/stocktwits/generic_user.rb +123 -0
- data/app/models/stocktwits/oauth_user.rb +46 -0
- data/app/models/stocktwits/plain_user.rb +53 -0
- data/app/views/sessions/_login.html.erb +18 -0
- data/app/views/sessions/new.html.erb +5 -0
- data/config/routes.rb +6 -0
- data/generators/stocktwits/USAGE +12 -0
- data/generators/stocktwits/stocktwits_generator.rb +42 -0
- data/generators/stocktwits/templates/migration.rb +20 -0
- data/generators/stocktwits/templates/stocktwits.yml +66 -0
- data/generators/stocktwits/templates/user.rb +5 -0
- data/lib/stocktwits.rb +103 -0
- data/lib/stocktwits/controller_extensions.rb +72 -0
- data/lib/stocktwits/cryptify.rb +30 -0
- data/lib/stocktwits/dispatcher/basic.rb +46 -0
- data/lib/stocktwits/dispatcher/oauth.rb +26 -0
- data/lib/stocktwits/dispatcher/plain.rb +44 -0
- data/lib/stocktwits/dispatcher/shared.rb +42 -0
- data/rails/init.rb +6 -0
- data/spec/application.rb +1 -0
- data/spec/controllers/controller_extensions_spec.rb +162 -0
- data/spec/controllers/sessions_controller_spec.rb +221 -0
- data/spec/debug.log +397 -0
- data/spec/fixtures/config/twitter_auth.yml +17 -0
- data/spec/fixtures/factories.rb +28 -0
- data/spec/fixtures/fakeweb.rb +18 -0
- data/spec/fixtures/stocktwits.rb +5 -0
- data/spec/models/stocktwits/basic_user_spec.rb +138 -0
- data/spec/models/stocktwits/generic_user_spec.rb +146 -0
- data/spec/models/stocktwits/oauth_user_spec.rb +100 -0
- data/spec/schema.rb +25 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +107 -0
- data/spec/stocktwits/cryptify_spec.rb +51 -0
- data/spec/stocktwits/dispatcher/basic_spec.rb +83 -0
- data/spec/stocktwits/dispatcher/oauth_spec.rb +72 -0
- data/spec/stocktwits/dispatcher/shared_spec.rb +26 -0
- data/spec/stocktwits_spec.rb +173 -0
- data/stocktwits.gemspec +116 -0
- metadata +158 -0
data/spec/debug.log
ADDED
@@ -0,0 +1,397 @@
|
|
1
|
+
# Logfile created on Fri Mar 12 19:19:43 -0500 2010 by logger.rb/22285
|
2
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
3
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
4
|
+
FROM sqlite_master
|
5
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
6
|
+
[0m
|
7
|
+
[4;36;1mSQL (16.7ms)[0m [0;1mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
8
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
9
|
+
FROM sqlite_master
|
10
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
11
|
+
[0m
|
12
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
13
|
+
[4;35;1mSQL (3.8ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
14
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
15
|
+
FROM sqlite_master
|
16
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
17
|
+
[0m
|
18
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
19
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
20
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
21
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
22
|
+
FROM sqlite_master
|
23
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
24
|
+
[0m
|
25
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
26
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
27
|
+
FROM sqlite_master
|
28
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
29
|
+
[0m
|
30
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
31
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
32
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
33
|
+
FROM sqlite_master
|
34
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
35
|
+
[0m
|
36
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
37
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
38
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
39
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
40
|
+
FROM sqlite_master
|
41
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
42
|
+
[0m
|
43
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
44
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
45
|
+
FROM sqlite_master
|
46
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
47
|
+
[0m
|
48
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
49
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
50
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
51
|
+
FROM sqlite_master
|
52
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
53
|
+
[0m
|
54
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
55
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
56
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
57
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
58
|
+
FROM sqlite_master
|
59
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
60
|
+
[0m
|
61
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
62
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
63
|
+
FROM sqlite_master
|
64
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
65
|
+
[0m
|
66
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
67
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
68
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
69
|
+
FROM sqlite_master
|
70
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
71
|
+
[0m
|
72
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
73
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
74
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
75
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
76
|
+
FROM sqlite_master
|
77
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
78
|
+
[0m
|
79
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
80
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
81
|
+
FROM sqlite_master
|
82
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
83
|
+
[0m
|
84
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
85
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
86
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
87
|
+
FROM sqlite_master
|
88
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
89
|
+
[0m
|
90
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
91
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
92
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
93
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
94
|
+
FROM sqlite_master
|
95
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
96
|
+
[0m
|
97
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
98
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
99
|
+
FROM sqlite_master
|
100
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
101
|
+
[0m
|
102
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
103
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
104
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
105
|
+
FROM sqlite_master
|
106
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
107
|
+
[0m
|
108
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
109
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
110
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
111
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
112
|
+
FROM sqlite_master
|
113
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
114
|
+
[0m
|
115
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
116
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
117
|
+
FROM sqlite_master
|
118
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
119
|
+
[0m
|
120
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
121
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
122
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
123
|
+
FROM sqlite_master
|
124
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
125
|
+
[0m
|
126
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
127
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
128
|
+
[4;35;1mSQL (0.1ms)[0m [0mselect sqlite_version(*)[0m
|
129
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
130
|
+
FROM sqlite_master
|
131
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
132
|
+
[0m
|
133
|
+
[4;35;1mSQL (0.2ms)[0m [0mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
134
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
135
|
+
FROM sqlite_master
|
136
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
137
|
+
[0m
|
138
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
139
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
140
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
141
|
+
FROM sqlite_master
|
142
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
143
|
+
[0m
|
144
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
145
|
+
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
146
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
147
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
148
|
+
FROM sqlite_master
|
149
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
150
|
+
[0m
|
151
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
152
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
153
|
+
FROM sqlite_master
|
154
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
155
|
+
[0m
|
156
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
157
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
158
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
159
|
+
FROM sqlite_master
|
160
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
161
|
+
[0m
|
162
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
163
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
164
|
+
[4;35;1mSQL (0.1ms)[0m [0mselect sqlite_version(*)[0m
|
165
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
166
|
+
FROM sqlite_master
|
167
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
168
|
+
[0m
|
169
|
+
[4;35;1mSQL (0.2ms)[0m [0mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
170
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
171
|
+
FROM sqlite_master
|
172
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
173
|
+
[0m
|
174
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
175
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
176
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
177
|
+
FROM sqlite_master
|
178
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
179
|
+
[0m
|
180
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
181
|
+
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
182
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
183
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
184
|
+
FROM sqlite_master
|
185
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
186
|
+
[0m
|
187
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
188
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
189
|
+
FROM sqlite_master
|
190
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
191
|
+
[0m
|
192
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
193
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
194
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
195
|
+
FROM sqlite_master
|
196
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
197
|
+
[0m
|
198
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
199
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
200
|
+
[4;35;1mSQL (0.2ms)[0m [0mselect sqlite_version(*)[0m
|
201
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
202
|
+
FROM sqlite_master
|
203
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
204
|
+
[0m
|
205
|
+
[4;35;1mSQL (0.2ms)[0m [0mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
206
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
207
|
+
FROM sqlite_master
|
208
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
209
|
+
[0m
|
210
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
211
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
212
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
213
|
+
FROM sqlite_master
|
214
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
215
|
+
[0m
|
216
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
217
|
+
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
218
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
219
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
220
|
+
FROM sqlite_master
|
221
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
222
|
+
[0m
|
223
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
224
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
225
|
+
FROM sqlite_master
|
226
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
227
|
+
[0m
|
228
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
229
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
230
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
231
|
+
FROM sqlite_master
|
232
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
233
|
+
[0m
|
234
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
235
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
236
|
+
[4;35;1mSQL (0.1ms)[0m [0mselect sqlite_version(*)[0m
|
237
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
238
|
+
FROM sqlite_master
|
239
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
240
|
+
[0m
|
241
|
+
[4;35;1mSQL (0.2ms)[0m [0mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
242
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
243
|
+
FROM sqlite_master
|
244
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
245
|
+
[0m
|
246
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
247
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
248
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
249
|
+
FROM sqlite_master
|
250
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
251
|
+
[0m
|
252
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
253
|
+
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
254
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
255
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
256
|
+
FROM sqlite_master
|
257
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
258
|
+
[0m
|
259
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
260
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
261
|
+
FROM sqlite_master
|
262
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
263
|
+
[0m
|
264
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
265
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
266
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
267
|
+
FROM sqlite_master
|
268
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
269
|
+
[0m
|
270
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
271
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
272
|
+
[4;35;1mSQL (0.1ms)[0m [0mselect sqlite_version(*)[0m
|
273
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
274
|
+
FROM sqlite_master
|
275
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
276
|
+
[0m
|
277
|
+
[4;35;1mSQL (0.2ms)[0m [0mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
278
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
279
|
+
FROM sqlite_master
|
280
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
281
|
+
[0m
|
282
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
283
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
284
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
285
|
+
FROM sqlite_master
|
286
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
287
|
+
[0m
|
288
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
289
|
+
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
290
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
291
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
292
|
+
FROM sqlite_master
|
293
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
294
|
+
[0m
|
295
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
296
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
297
|
+
FROM sqlite_master
|
298
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
299
|
+
[0m
|
300
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
301
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
302
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
303
|
+
FROM sqlite_master
|
304
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
305
|
+
[0m
|
306
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
307
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
308
|
+
[4;35;1mSQL (0.1ms)[0m [0mselect sqlite_version(*)[0m
|
309
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
310
|
+
FROM sqlite_master
|
311
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
312
|
+
[0m
|
313
|
+
[4;35;1mSQL (0.2ms)[0m [0mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
314
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
315
|
+
FROM sqlite_master
|
316
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
317
|
+
[0m
|
318
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
319
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
320
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
321
|
+
FROM sqlite_master
|
322
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
323
|
+
[0m
|
324
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
325
|
+
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
326
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
327
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
328
|
+
FROM sqlite_master
|
329
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
330
|
+
[0m
|
331
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
332
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
333
|
+
FROM sqlite_master
|
334
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
335
|
+
[0m
|
336
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
337
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
338
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
339
|
+
FROM sqlite_master
|
340
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
341
|
+
[0m
|
342
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
343
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
344
|
+
[4;35;1mSQL (0.1ms)[0m [0mselect sqlite_version(*)[0m
|
345
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
346
|
+
FROM sqlite_master
|
347
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
348
|
+
[0m
|
349
|
+
[4;35;1mSQL (0.2ms)[0m [0mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
350
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
351
|
+
FROM sqlite_master
|
352
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
353
|
+
[0m
|
354
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
355
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
356
|
+
[4;35;1mSQL (0.2ms)[0m [0m SELECT name
|
357
|
+
FROM sqlite_master
|
358
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
359
|
+
[0m
|
360
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
361
|
+
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
362
|
+
[4;36;1mSQL (0.2ms)[0m [0;1mselect sqlite_version(*)[0m
|
363
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
364
|
+
FROM sqlite_master
|
365
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
366
|
+
[0m
|
367
|
+
[4;36;1mSQL (0.3ms)[0m [0;1mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
368
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
369
|
+
FROM sqlite_master
|
370
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
371
|
+
[0m
|
372
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
373
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
374
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
375
|
+
FROM sqlite_master
|
376
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
377
|
+
[0m
|
378
|
+
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
379
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
380
|
+
[4;35;1mSQL (0.1ms)[0m [0mselect sqlite_version(*)[0m
|
381
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
382
|
+
FROM sqlite_master
|
383
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
384
|
+
[0m
|
385
|
+
[4;35;1mSQL (0.2ms)[0m [0mCREATE TABLE "stocktwits_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "twitter_id" varchar(255), "login" varchar(255), "access_token" varchar(255), "access_secret" varchar(255), "crypted_password" blob, "salt" varchar(255), "remember_token" varchar(255), "remember_token_expires_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
386
|
+
[4;36;1mSQL (0.1ms)[0m [0;1m SELECT name
|
387
|
+
FROM sqlite_master
|
388
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
389
|
+
[0m
|
390
|
+
[4;35;1mSQL (0.1ms)[0m [0mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
391
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
392
|
+
[4;35;1mSQL (0.1ms)[0m [0m SELECT name
|
393
|
+
FROM sqlite_master
|
394
|
+
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
395
|
+
[0m
|
396
|
+
[4;36;1mSQL (0.1ms)[0m [0;1mSELECT version FROM "schema_migrations"[0m
|
397
|
+
[4;35;1mSQL (0.1ms)[0m [0mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
@@ -0,0 +1,17 @@
|
|
1
|
+
development:
|
2
|
+
strategy: oauth
|
3
|
+
base_url: "http://api.stocktwits.com"
|
4
|
+
oauth_consumer_key: devkey
|
5
|
+
oauth_consumer_secret: devsecret
|
6
|
+
oauth_callback: "http://localhost:3000"
|
7
|
+
test:
|
8
|
+
strategy: oauth
|
9
|
+
base_url: "http://api.stocktwits.com"
|
10
|
+
oauth_consumer_key: testkey
|
11
|
+
oauth_consumer_secret: testsecret
|
12
|
+
production:
|
13
|
+
strategy: oauth
|
14
|
+
base_url: "http://api.stocktwits.com"
|
15
|
+
oauth_consumer_key: prodkey
|
16
|
+
oauth_consumer_secret: prodsecret
|
17
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'factory_girl'
|
2
|
+
|
3
|
+
Factory.define(:stocktwits_oauth_user, :class => User) do |u|
|
4
|
+
u.stocktwits_id { User.count + 1 }
|
5
|
+
u.login 'stocktwitsman'
|
6
|
+
u.access_token 'fakeaccesstoken'
|
7
|
+
u.access_secret 'fakeaccesstokensecret'
|
8
|
+
|
9
|
+
u.name 'Stocktwits Man'
|
10
|
+
u.description 'Saving the world for all Stocktwits kind.'
|
11
|
+
end
|
12
|
+
|
13
|
+
Factory.define(:stocktwits_basic_user, :class => User) do |u|
|
14
|
+
u.stocktwits_id { User.count + 1 }
|
15
|
+
u.login 'stocktwitsman'
|
16
|
+
u.password 'test'
|
17
|
+
|
18
|
+
u.name 'Stocktwits Man'
|
19
|
+
u.description 'Saving the world for all Stocktwits kind.'
|
20
|
+
end
|
21
|
+
|
22
|
+
Factory.define(:stocktwits_plain_user, :class => User) do |u|
|
23
|
+
u.stocktwits_id { User.count + 1 }
|
24
|
+
u.login 'stocktwitsman'
|
25
|
+
|
26
|
+
u.name 'Stocktwits Man'
|
27
|
+
u.description 'Saving the world for all Stocktwits kind.'
|
28
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# This is where we fake out all of the URLs that we
|
2
|
+
# will be calling as a part of this spec suite.
|
3
|
+
# You must have the 'fakeweb' gem in order to run
|
4
|
+
# the tests for TwitterAuth.
|
5
|
+
#
|
6
|
+
# gem install 'mbleigh-fakeweb'
|
7
|
+
|
8
|
+
require 'fake_web'
|
9
|
+
|
10
|
+
FakeWeb.allow_net_connect = false
|
11
|
+
|
12
|
+
FakeWeb.register_uri(:post, 'https://twitter.com:443/oauth/request_token', :body => 'oauth_token=faketoken&oauth_token_secret=faketokensecret')
|
13
|
+
|
14
|
+
FakeWeb.register_uri(:post, 'https://twitter.com:443/oauth/access_token', :body => 'oauth_token=fakeaccesstoken&oauth_token_secret=fakeaccesstokensecret')
|
15
|
+
|
16
|
+
FakeWeb.register_uri(:get, 'https://twitter.com:443/account/verify_credentials.json', :body => "{\"profile_image_url\":\"http:\\/\\/static.twitter.com\\/images\\/default_profile_normal.png\",\"description\":\"Saving the world for all Twitter kind.\",\"utc_offset\":null,\"favourites_count\":0,\"profile_sidebar_fill_color\":\"e0ff92\",\"screen_name\":\"twitterman\",\"statuses_count\":0,\"profile_background_tile\":false,\"profile_sidebar_border_color\":\"87bc44\",\"friends_count\":2,\"url\":null,\"name\":\"Twitter Man\",\"time_zone\":null,\"protected\":false,\"profile_background_image_url\":\"http:\\/\\/static.twitter.com\\/images\\/themes\\/theme1\\/bg.gif\",\"profile_background_color\":\"9ae4e8\",\"created_at\":\"Fri Feb 06 18:10:32 +0000 2009\",\"profile_text_color\":\"000000\",\"followers_count\":2,\"location\":null,\"id\":123,\"profile_link_color\":\"0000ff\"}")
|
17
|
+
|
18
|
+
#FakeWeb.register_uri(:get, 'https://twitter.com:443/)
|