got_fixed 0.0.4 → 0.0.5
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.
- checksums.yaml +4 -4
- data/lib/got_fixed/issue_factory.rb +1 -1
- data/lib/got_fixed/version.rb +1 -1
- data/spec/dummy/log/development.log +56 -0
- data/spec/dummy/log/test.log +1712 -0
- data/spec/lib/got_fixed/issue_factory_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42dbb2553267250f9eb62dedae0f9ef24aafb332
|
4
|
+
data.tar.gz: 68cc98b8e19d867dbd9cb7f625649e1833f8e639
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 750311921dbb76f2c2c2d233b6ffb93e089e4c9d61895b13b024ba78c3d5761efb5818bd4c1e2e2489b457ad1afebe17619503dbb96d40c8a254bcc9315da0f9
|
7
|
+
data.tar.gz: 07671f7d049892029226b979239d100124d099c706d45bc973ecd4419d10565656b0868e5e327a98f5894dc8bfad20df14dea2c8ca8c8f3b3189aa6a3c390501
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module GotFixed
|
2
2
|
class IssueFactory
|
3
3
|
def from_github(github_issue)
|
4
|
-
issue = Issue.find_or_initialize_by :vendor_id => github_issue["id"], :vendor => "github"
|
4
|
+
issue = Issue.find_or_initialize_by :vendor_id => github_issue["id"].to_s, :vendor => "github"
|
5
5
|
issue.title = github_issue["title"]
|
6
6
|
issue.closed = github_issue["state"] == "closed"
|
7
7
|
issue.number = github_issue["number"]
|
data/lib/got_fixed/version.rb
CHANGED
@@ -3209,3 +3209,59 @@ Migrating to UniqueUserEmails (20130929180909)
|
|
3209
3209
|
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
|
3210
3210
|
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130924121816')[0m
|
3211
3211
|
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
|
3212
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "got_fixed_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "closed" boolean, "created_at" datetime, "updated_at" datetime, "number" integer, "vendor_id" varchar(255), "vendor" varchar(255)) [0m
|
3213
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
|
3214
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "got_fixed_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
3215
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
|
3216
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) [0m
|
3217
|
+
[1m[35m (1.5ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3218
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
3219
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
3220
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130929180909')[0m
|
3221
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
|
3222
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130913195152')[0m
|
3223
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
|
3224
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130924121816')[0m
|
3225
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
|
3226
|
+
[1m[36m (2.1ms)[0m [1mCREATE TABLE "got_fixed_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "closed" boolean, "created_at" datetime, "updated_at" datetime, "number" integer, "vendor_id" varchar(255), "vendor" varchar(255)) [0m
|
3227
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
|
3228
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "got_fixed_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
3229
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
|
3230
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) [0m
|
3231
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3232
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
3233
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
3234
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130929180909')[0m
|
3235
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
|
3236
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130913195152')[0m
|
3237
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
|
3238
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130924121816')[0m
|
3239
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
|
3240
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "got_fixed_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "closed" boolean, "created_at" datetime, "updated_at" datetime, "number" integer, "vendor_id" varchar(255), "vendor" varchar(255)) [0m
|
3241
|
+
[1m[35m (6.9ms)[0m CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
|
3242
|
+
[1m[36m (11.8ms)[0m [1mCREATE TABLE "got_fixed_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
3243
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
|
3244
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) [0m
|
3245
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3246
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
3247
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
3248
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130929180909')[0m
|
3249
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
|
3250
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130913195152')[0m
|
3251
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
|
3252
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130924121816')[0m
|
3253
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
|
3254
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "got_fixed_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "closed" boolean, "created_at" datetime, "updated_at" datetime, "number" integer, "vendor_id" varchar(255), "vendor" varchar(255)) [0m
|
3255
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
|
3256
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "got_fixed_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
3257
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
|
3258
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) [0m
|
3259
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3260
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
3261
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
3262
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130929180909')[0m
|
3263
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
|
3264
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130913195152')[0m
|
3265
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
|
3266
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130924121816')[0m
|
3267
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
|