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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e72650c137dba95fbdd267574d3a658c5f95a6e2
4
- data.tar.gz: 7a8730f517f86d63368744776dd337663abafa2d
3
+ metadata.gz: 42dbb2553267250f9eb62dedae0f9ef24aafb332
4
+ data.tar.gz: 68cc98b8e19d867dbd9cb7f625649e1833f8e639
5
5
  SHA512:
6
- metadata.gz: 9d2bedd046cb2f2a7a77216b393f37a5424a8137663688da74dff85735cf0736622eb238c1fc3510b8da22aab30c295fde8234bf6d17818b3887ac062670d7d3
7
- data.tar.gz: f09f8a7d7542475ba0653a73ea5f44f941b47d465d3c34aff686f14bd02b294475085a25ae0d720e780d933b44e3f04c6c526bbe75b98aac19d49451b5a071bf
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"]
@@ -1,3 +1,3 @@
1
1
  module GotFixed
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -3209,3 +3209,59 @@ Migrating to UniqueUserEmails (20130929180909)
3209
3209
   (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
3210
3210
   (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924121816')
3211
3211
   (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
3212
+  (1.2ms) CREATE 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)) 
3213
+  (1.3ms) CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
3214
+  (1.1ms) CREATE TABLE "got_fixed_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) 
3215
+  (1.0ms) CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
3216
+  (1.1ms) CREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) 
3217
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3218
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3219
+  (0.1ms) SELECT version FROM "schema_migrations"
3220
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929180909')
3221
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
3222
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130913195152')
3223
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
3224
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924121816')
3225
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
3226
+  (2.1ms) CREATE 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)) 
3227
+  (0.9ms) CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
3228
+  (0.9ms) CREATE TABLE "got_fixed_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) 
3229
+  (0.9ms) CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
3230
+  (1.0ms) CREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) 
3231
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3232
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3233
+  (0.1ms) SELECT version FROM "schema_migrations"
3234
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929180909')
3235
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
3236
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130913195152')
3237
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
3238
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924121816')
3239
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
3240
+  (1.2ms) CREATE 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)) 
3241
+  (6.9ms) CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
3242
+  (11.8ms) CREATE TABLE "got_fixed_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) 
3243
+  (1.1ms) CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
3244
+  (1.2ms) CREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) 
3245
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3246
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3247
+  (0.1ms) SELECT version FROM "schema_migrations"
3248
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929180909')
3249
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
3250
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130913195152')
3251
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
3252
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924121816')
3253
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
3254
+  (2.3ms) CREATE 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)) 
3255
+  (1.3ms) CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
3256
+  (1.2ms) CREATE TABLE "got_fixed_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) 
3257
+  (1.1ms) CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
3258
+  (1.1ms) CREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) 
3259
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3260
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3261
+  (0.1ms) SELECT version FROM "schema_migrations"
3262
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929180909')
3263
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
3264
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130913195152')
3265
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
3266
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924121816')
3267
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')