got_fixed 0.0.3 → 0.0.4
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/app/views/got_fixed/issues/index.html.erb +2 -20
- data/app/views/got_fixed/issues/subscribe.js.erb +1 -1
- data/app/views/got_fixed/user_mailer/issue_got_fixed_email.text.erb +2 -12
- data/config/initializers/got_fixed.rb +7 -1
- data/lib/generators/got_fixed/install/install_generator.rb +4 -0
- data/lib/generators/got_fixed/install/templates/got_fixed.yml +2 -2
- data/lib/generators/got_fixed/install/templates/views/got_fixed/issues/index.html.erb +21 -0
- data/lib/generators/got_fixed/install/templates/views/got_fixed/issues/subscribe.js.erb +1 -0
- data/lib/generators/got_fixed/install/templates/views/got_fixed/user_mailer/issue_got_fixed_email.text.erb +13 -0
- data/lib/got_fixed/version.rb +1 -1
- data/spec/dummy/log/development.log +70 -0
- data/spec/dummy/log/test.log +1601 -0
- metadata +5 -12
- data/app/assets/javascripts/got_fixed/application.js +0 -15
- data/app/assets/javascripts/got_fixed/issues.js +0 -2
- data/app/assets/stylesheets/got_fixed/application.css +0 -13
- data/app/assets/stylesheets/got_fixed/issues.css +0 -4
- data/app/assets/stylesheets/scaffold.css +0 -56
- data/app/helpers/got_fixed/application_helper.rb +0 -4
- data/app/helpers/got_fixed/issues_helper.rb +0 -4
- data/app/views/layouts/got_fixed/application.html.erb +0 -14
- data/lib/tasks/auto_annotate_models.rake +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e72650c137dba95fbdd267574d3a658c5f95a6e2
|
4
|
+
data.tar.gz: 7a8730f517f86d63368744776dd337663abafa2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d2bedd046cb2f2a7a77216b393f37a5424a8137663688da74dff85735cf0736622eb238c1fc3510b8da22aab30c295fde8234bf6d17818b3887ac062670d7d3
|
7
|
+
data.tar.gz: f09f8a7d7542475ba0653a73ea5f44f941b47d465d3c34aff686f14bd02b294475085a25ae0d720e780d933b44e3f04c6c526bbe75b98aac19d49451b5a071bf
|
@@ -1,21 +1,3 @@
|
|
1
|
-
|
1
|
+
Please create app/views/got_fixed/issues/index.html.erb in your app.
|
2
2
|
|
3
|
-
<
|
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('
|
1
|
+
alert('Please create app/views/got_fixed/issues/subscribe.js.erb in your app.');
|
@@ -1,13 +1,3 @@
|
|
1
|
-
|
1
|
+
Please create app/views/got_fixed/user_mailer/issue_got_fixed_email.{text,html}.erb in your app.
|
2
2
|
|
3
|
-
|
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 =
|
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] ||= []
|
@@ -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.
|
data/lib/got_fixed/version.rb
CHANGED
@@ -3139,3 +3139,73 @@ Migrating to UniqueUserEmails (20130929180909)
|
|
3139
3139
|
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
|
3140
3140
|
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130924121816')[0m
|
3141
3141
|
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
|
3142
|
+
[1m[36m (1.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
|
3143
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
|
3144
|
+
[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
|
3145
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
|
3146
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) [0m
|
3147
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3148
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
3149
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
3150
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130929180909')[0m
|
3151
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
|
3152
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130913195152')[0m
|
3153
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
|
3154
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130924121816')[0m
|
3155
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
|
3156
|
+
[1m[36m (1.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
|
3157
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
|
3158
|
+
[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
|
3159
|
+
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
|
3160
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) [0m
|
3161
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3162
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
3163
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
3164
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130929180909')[0m
|
3165
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
|
3166
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130913195152')[0m
|
3167
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
|
3168
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130924121816')[0m
|
3169
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
|
3170
|
+
[1m[36m (2.4ms)[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
|
3171
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
|
3172
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "got_fixed_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
3173
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
|
3174
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) [0m
|
3175
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3176
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
3177
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
3178
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130929180909')[0m
|
3179
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
|
3180
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130913195152')[0m
|
3181
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
|
3182
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130924121816')[0m
|
3183
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
|
3184
|
+
[1m[36m (1.4ms)[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
|
3185
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
|
3186
|
+
[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
|
3187
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
|
3188
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) [0m
|
3189
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3190
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
3191
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
3192
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130929180909')[0m
|
3193
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
|
3194
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130913195152')[0m
|
3195
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
|
3196
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130924121816')[0m
|
3197
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
|
3198
|
+
[1m[36m (1.5ms)[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
|
3199
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "got_fixed_issues_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer)
|
3200
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "got_fixed_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
3201
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "index_got_fixed_users_on_email" ON "got_fixed_users" ("email")
|
3202
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "users_issues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "issue_id" integer) [0m
|
3203
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3204
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
3205
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
3206
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130929180909')[0m
|
3207
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130912175851')
|
3208
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130913195152')[0m
|
3209
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130914085003')
|
3210
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130924121816')[0m
|
3211
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130924123004')
|