got_fixed 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 027ff45f3ff17b25bb665942b41e374f579b69e4
4
- data.tar.gz: 433c9d7e918a1ad8795f420b9f1bf1f932b5c19e
3
+ metadata.gz: e72650c137dba95fbdd267574d3a658c5f95a6e2
4
+ data.tar.gz: 7a8730f517f86d63368744776dd337663abafa2d
5
5
  SHA512:
6
- metadata.gz: c21c10e091d3dbdfc4e1a1a5aeb259cffd662d748157e6298cbb5c983735641a4e254881c68abd6af56d0013e3296110d839b5e870c310e2fc92b952ad208610
7
- data.tar.gz: a8697772cf7694c515fdd4ac12cbc0220bf95c57fe45aa4224ebf5b87d9f9d8ab113b80db46f93feaf996fe9462f266e031a148713b2bb40035b04fcd5dbc8c5
6
+ metadata.gz: 9d2bedd046cb2f2a7a77216b393f37a5424a8137663688da74dff85735cf0736622eb238c1fc3510b8da22aab30c295fde8234bf6d17818b3887ac062670d7d3
7
+ data.tar.gz: f09f8a7d7542475ba0653a73ea5f44f941b47d465d3c34aff686f14bd02b294475085a25ae0d720e780d933b44e3f04c6c526bbe75b98aac19d49451b5a071bf
@@ -1,21 +1,3 @@
1
- <h1>Listing issues</h1>
1
+ Please create app/views/got_fixed/issues/index.html.erb in your app.
2
2
 
3
- <table>
4
- <thead>
5
- <tr>
6
- <th></th>
7
- <th>Title</th>
8
- <th>Resolved?</th>
9
- </tr>
10
- </thead>
11
-
12
- <tbody>
13
- <% @issues.each do |issue| %>
14
- <tr>
15
- <td>#<%= issue.number %></td>
16
- <td><%= issue.title %></td>
17
- <td><%= issue.closed ? "yes" : "no" %></td>
18
- </tr>
19
- <% end %>
20
- </tbody>
21
- </table>
3
+ The following variable is available: <code>@issues</code>.
@@ -1 +1 @@
1
- alert('<%= j @user.email %> subscribed to issue #<%= @issue.vendor_id %>');
1
+ alert('Please create app/views/got_fixed/issues/subscribe.js.erb in your app.');
@@ -1,13 +1,3 @@
1
- Hello,
1
+ Please create app/views/got_fixed/user_mailer/issue_got_fixed_email.{text,html}.erb in your app.
2
2
 
3
- We are happy to announce you that the issue
4
- "<%= @issue.title %>"
5
- has been closed.
6
-
7
- In a few minutes, this change will be promoted to production which should fix your problem.
8
-
9
- Best regards.
10
-
11
- --
12
- You received this email because you subscribed to issue updates.
13
- You will only receive emails for issues you registered for.
3
+ The following variables are available: @issue and @user.
@@ -1,4 +1,9 @@
1
- config = YAML.load(ERB.new(File.read(Rails.root.join('config', 'got_fixed.yml'))).result)
1
+ config = {}
2
+ begin
3
+ config = YAML.load(ERB.new(File.read(Rails.root.join('config', 'got_fixed.yml'))).result)
4
+ rescue Errno::ENOENT
5
+ # Could not find the config/got_fixed.yml file
6
+ end
2
7
 
3
8
  # https://gist.github.com/ssaunier/3866812
4
9
  def symbolize(object)
@@ -15,3 +20,4 @@ def symbolize(object)
15
20
  end
16
21
 
17
22
  GotFixed.config = symbolize(config)
23
+ GotFixed.config[:github] ||= []
@@ -14,6 +14,10 @@ module GotFixed
14
14
  route "mount GotFixed::Engine => '/got_fixed'"
15
15
  end
16
16
 
17
+ def copy_views
18
+ directory "views", "app/views"
19
+ end
20
+
17
21
  end
18
22
  end
19
23
  end
@@ -1,7 +1,7 @@
1
1
  # TODO: Update the user_mailer.from attribute with your email address.
2
2
  user_mailer:
3
- from: '"GotFixed Notifications" <noreply@example.org>'
4
- subject_template: "[Fixed] %{title}"
3
+ from: '"GotFixed Notifications" <noreply@example.org>'
4
+ subject_template: "[Fixed] %{title}"
5
5
 
6
6
  # Github repositories exposed on the got_fixed dashboard.
7
7
  # - For private repos, create a personal access token here: https://github.com/settings/applications
@@ -0,0 +1,21 @@
1
+ <h1>Listing issues</h1>
2
+
3
+ <table>
4
+ <thead>
5
+ <tr>
6
+ <th></th>
7
+ <th>Title</th>
8
+ <th>Resolved?</th>
9
+ </tr>
10
+ </thead>
11
+
12
+ <tbody>
13
+ <% @issues.each do |issue| %>
14
+ <tr>
15
+ <td>#<%= issue.number %></td>
16
+ <td><%= issue.title %></td>
17
+ <td><%= issue.closed ? "yes" : "no" %></td>
18
+ </tr>
19
+ <% end %>
20
+ </tbody>
21
+ </table>
@@ -0,0 +1 @@
1
+ alert('<%= j @user.email %> subscribed to issue #<%= @issue.vendor_id %>');
@@ -0,0 +1,13 @@
1
+ Hello,
2
+
3
+ We are happy to announce you that the issue
4
+ "<%= @issue.title %>"
5
+ has been closed.
6
+
7
+ In a few minutes, this change will be promoted to production which should fix your problem.
8
+
9
+ Best regards.
10
+
11
+ --
12
+ You received this email because you subscribed to issue updates.
13
+ You will only receive emails for issues you registered for.
@@ -1,3 +1,3 @@
1
1
  module GotFixed
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -3139,3 +3139,73 @@ Migrating to UniqueUserEmails (20130929180909)
3139
3139
   (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
3140
3140
   (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924121816')
3141
3141
   (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
3142
+  (1.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)) 
3143
+  (1.2ms) CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
3144
+  (1.1ms) CREATE TABLE "got_fixed_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) 
3145
+  (1.2ms) CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
3146
+  (1.1ms) CREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) 
3147
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3148
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3149
+  (0.1ms) SELECT version FROM "schema_migrations"
3150
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929180909')
3151
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
3152
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130913195152')
3153
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
3154
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924121816')
3155
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
3156
+  (1.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)) 
3157
+  (1.0ms) CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
3158
+  (1.2ms) CREATE TABLE "got_fixed_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) 
3159
+  (1.3ms) CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
3160
+  (1.1ms) CREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) 
3161
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3162
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3163
+  (0.1ms) SELECT version FROM "schema_migrations"
3164
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929180909')
3165
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
3166
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130913195152')
3167
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
3168
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924121816')
3169
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
3170
+  (2.4ms) 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)) 
3171
+  (1.4ms) CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
3172
+  (1.0ms) CREATE TABLE "got_fixed_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) 
3173
+  (1.1ms) CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
3174
+  (1.0ms) CREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) 
3175
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3176
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3177
+  (0.1ms) SELECT version FROM "schema_migrations"
3178
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929180909')
3179
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
3180
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130913195152')
3181
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
3182
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924121816')
3183
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
3184
+  (1.4ms) 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)) 
3185
+  (1.1ms) CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
3186
+  (1.2ms) CREATE TABLE "got_fixed_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) 
3187
+  (1.1ms) CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
3188
+  (1.0ms) CREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) 
3189
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3190
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3191
+  (0.1ms) SELECT version FROM "schema_migrations"
3192
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929180909')
3193
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
3194
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130913195152')
3195
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
3196
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924121816')
3197
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
3198
+  (1.5ms) 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)) 
3199
+  (1.3ms) CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
3200
+  (1.6ms) CREATE TABLE "got_fixed_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) 
3201
+  (1.1ms) CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
3202
+  (0.9ms) CREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) 
3203
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3204
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3205
+  (0.1ms) SELECT version FROM "schema_migrations"
3206
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929180909')
3207
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
3208
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130913195152')
3209
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
3210
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924121816')
3211
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')