post_pusher 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/post_pusher/rake_task_runner.rb +1 -1
- data/lib/post_pusher/version.rb +1 -1
- metadata +34 -43
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/post_push/1_broken_task.log +0 -7
- data/test/dummy/log/post_push/3_runnable_task.log +0 -1
- data/test/dummy/log/test.log +0 -127
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8c075270ea055b6c37e28f6bd4e5f4d04c2ea444d7e5fd778e7e383872a7af8
|
4
|
+
data.tar.gz: 17a834e02031b085ca403a82d9d1ae5266633460d450de239f64c09ae0dcdac0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dcfca7ce58d41fbc3275ad2363b0ca5fbd7228bf5625daa0b6aac51d49a8950a59a90e2404a7617ff731bdd2e4970b8f7bda3b96f47771df2b255107f871559
|
7
|
+
data.tar.gz: df616fa091701d274f76022233d35d0ba2aeaa8c025bdfd9671ee9763e5603e71564f2a316d1dc75d4f76277e922de95aa6141cb3899c7b9d357b1f1d325207b
|
data/lib/post_pusher/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: post_pusher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PatientsLikeMe
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -177,11 +177,7 @@ files:
|
|
177
177
|
- test/dummy/db/migrate/20151229195418_create_soft_deletables.rb
|
178
178
|
- test/dummy/db/migrate/20160620190743_create_post_push_status.rb
|
179
179
|
- test/dummy/db/schema.rb
|
180
|
-
- test/dummy/db/test.sqlite3
|
181
180
|
- test/dummy/lib/tasks/dummy_tasks.rake
|
182
|
-
- test/dummy/log/post_push/1_broken_task.log
|
183
|
-
- test/dummy/log/post_push/3_runnable_task.log
|
184
|
-
- test/dummy/log/test.log
|
185
181
|
- test/dummy/public/404.html
|
186
182
|
- test/dummy/public/422.html
|
187
183
|
- test/dummy/public/500.html
|
@@ -194,7 +190,7 @@ homepage: https://www.patientslikeme.com
|
|
194
190
|
licenses:
|
195
191
|
- MIT
|
196
192
|
metadata: {}
|
197
|
-
post_install_message:
|
193
|
+
post_install_message:
|
198
194
|
rdoc_options: []
|
199
195
|
require_paths:
|
200
196
|
- lib
|
@@ -209,56 +205,51 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
205
|
- !ruby/object:Gem::Version
|
210
206
|
version: '0'
|
211
207
|
requirements: []
|
212
|
-
|
213
|
-
|
214
|
-
signing_key:
|
208
|
+
rubygems_version: 3.2.0
|
209
|
+
signing_key:
|
215
210
|
specification_version: 4
|
216
211
|
summary: A tool to run a set of tasks after deploys
|
217
212
|
test_files:
|
218
|
-
- test/post_push_exe_test.rb
|
219
|
-
- test/dummy/Rakefile
|
220
213
|
- test/dummy/app/controllers/application_controller.rb
|
221
|
-
- test/dummy/app/helpers/application_helper.rb
|
222
214
|
- test/dummy/app/views/layouts/application.html.erb
|
223
215
|
- test/dummy/app/assets/javascripts/application.js
|
224
216
|
- test/dummy/app/assets/stylesheets/application.css
|
225
|
-
- test/dummy/
|
226
|
-
- test/dummy/README.rdoc
|
227
|
-
- test/dummy/public/500.html
|
228
|
-
- test/dummy/public/422.html
|
229
|
-
- test/dummy/public/404.html
|
230
|
-
- test/dummy/public/favicon.ico
|
231
|
-
- test/dummy/log/test.log
|
232
|
-
- test/dummy/log/post_push/1_broken_task.log
|
233
|
-
- test/dummy/log/post_push/3_runnable_task.log
|
234
|
-
- test/dummy/bin/rails
|
235
|
-
- test/dummy/bin/bundle
|
236
|
-
- test/dummy/bin/setup
|
217
|
+
- test/dummy/app/helpers/application_helper.rb
|
237
218
|
- test/dummy/bin/rake
|
238
|
-
- test/dummy/
|
239
|
-
- test/dummy/
|
240
|
-
- test/dummy/
|
241
|
-
- test/dummy/db/migrate/20151229195418_create_soft_deletables.rb
|
242
|
-
- test/dummy/db/schema.rb
|
243
|
-
- test/dummy/config/boot.rb
|
244
|
-
- test/dummy/config/application.rb
|
245
|
-
- test/dummy/config/routes.rb
|
219
|
+
- test/dummy/bin/setup
|
220
|
+
- test/dummy/bin/bundle
|
221
|
+
- test/dummy/bin/rails
|
246
222
|
- test/dummy/config/secrets.yml
|
223
|
+
- test/dummy/config/routes.rb
|
224
|
+
- test/dummy/config/locales/en.yml
|
225
|
+
- test/dummy/config/environments/production.rb
|
226
|
+
- test/dummy/config/environments/development.rb
|
227
|
+
- test/dummy/config/environments/test.rb
|
228
|
+
- test/dummy/config/environment.rb
|
229
|
+
- test/dummy/config/application.rb
|
247
230
|
- test/dummy/config/database.yml
|
231
|
+
- test/dummy/config/boot.rb
|
232
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
248
233
|
- test/dummy/config/initializers/mime_types.rb
|
249
234
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
250
235
|
- test/dummy/config/initializers/session_store.rb
|
251
|
-
- test/dummy/config/initializers/assets.rb
|
252
236
|
- test/dummy/config/initializers/wrap_parameters.rb
|
253
|
-
- test/dummy/config/initializers/
|
254
|
-
- test/dummy/config/initializers/inflections.rb
|
237
|
+
- test/dummy/config/initializers/assets.rb
|
255
238
|
- test/dummy/config/initializers/cookies_serializer.rb
|
256
|
-
- test/dummy/config/
|
257
|
-
- test/dummy/config/locales/en.yml
|
258
|
-
- test/dummy/config/environments/production.rb
|
259
|
-
- test/dummy/config/environments/development.rb
|
260
|
-
- test/dummy/config/environments/test.rb
|
239
|
+
- test/dummy/config/initializers/inflections.rb
|
261
240
|
- test/dummy/config.ru
|
262
|
-
- test/
|
241
|
+
- test/dummy/Rakefile
|
242
|
+
- test/dummy/public/favicon.ico
|
243
|
+
- test/dummy/public/422.html
|
244
|
+
- test/dummy/public/500.html
|
245
|
+
- test/dummy/public/404.html
|
246
|
+
- test/dummy/lib/tasks/dummy_tasks.rake
|
247
|
+
- test/dummy/db/schema.rb
|
248
|
+
- test/dummy/db/migrate/20151229195418_create_soft_deletables.rb
|
249
|
+
- test/dummy/db/migrate/20160620190743_create_post_push_status.rb
|
250
|
+
- test/dummy/db/migrate/20150618161222_create_user.rb
|
251
|
+
- test/dummy/README.rdoc
|
263
252
|
- test/test_helper.rb
|
253
|
+
- test/post_push_exe_test.rb
|
264
254
|
- test/generators/post_pusher/install/install_generator_test.rb
|
255
|
+
- test/rake_task_runner_test.rb
|
data/test/dummy/db/test.sqlite3
DELETED
Binary file
|
@@ -1,7 +0,0 @@
|
|
1
|
-
rake aborted!
|
2
|
-
NoMethodError: undefined method `shit_the_bed' for main:Object
|
3
|
-
/home/balves/src/post_pusher/test/dummy/lib/tasks/dummy_tasks.rake:19:in `block (3 levels) in <top (required)>'
|
4
|
-
/home/balves/.rbenv/versions/2.5.3/bin/bundle:23:in `load'
|
5
|
-
/home/balves/.rbenv/versions/2.5.3/bin/bundle:23:in `<main>'
|
6
|
-
Tasks: TOP => post_push:1:broken_task
|
7
|
-
(See full trace by running task with --trace)
|
@@ -1 +0,0 @@
|
|
1
|
-
I'm wicked runnable, bro
|
data/test/dummy/log/test.log
DELETED
@@ -1,127 +0,0 @@
|
|
1
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
|
-
[1m[35m (9.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3
|
-
[1m[35m (8.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
4
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
5
|
-
Migrating to CreateUser (20150618161222)
|
6
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7
|
-
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL)[0m
|
8
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150618161222"]]
|
9
|
-
[1m[35m (8.9ms)[0m [1m[36mcommit transaction[0m
|
10
|
-
Migrating to CreateSoftDeletables (20151229195418)
|
11
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
12
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "soft_deletables" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "user_deleted" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
13
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20151229195418"]]
|
14
|
-
[1m[35m (8.7ms)[0m [1m[36mcommit transaction[0m
|
15
|
-
Migrating to CreatePostPushStatus (20160620190743)
|
16
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
17
|
-
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "post_push_statuses" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "task_name" varchar NOT NULL)[0m
|
18
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_post_push_statuses_on_task_name" ON "post_push_statuses" ("task_name")[0m
|
19
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160620190743"]]
|
20
|
-
[1m[35m (8.7ms)[0m [1m[36mcommit transaction[0m
|
21
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
22
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
23
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2020-07-07 17:55:53.234467"], ["updated_at", "2020-07-07 17:55:53.234467"]]
|
24
|
-
[1m[35m (6.2ms)[0m [1m[36mcommit transaction[0m
|
25
|
-
------------------------------------------------------
|
26
|
-
happy path: test_0001_should log the rake tasks output
|
27
|
-
------------------------------------------------------
|
28
|
-
-----------------------------------------------------------------------
|
29
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
30
|
-
-----------------------------------------------------------------------
|
31
|
-
[1m[35m (12.4ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
32
|
-
[1m[35m (6.3ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
33
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
34
|
-
--------------------------------------------------------------------------
|
35
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
36
|
-
--------------------------------------------------------------------------
|
37
|
-
[1m[35m (6.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
38
|
-
[1m[35m (6.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
39
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
40
|
-
--------------------------------------------------------------------------------------------------
|
41
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
42
|
-
--------------------------------------------------------------------------------------------------
|
43
|
-
[1m[35m (6.9ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
44
|
-
[1m[35m (6.3ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
45
|
-
[1m[35m (6.2ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
46
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
47
|
-
-------------------------------------------------------------------------------
|
48
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
49
|
-
-------------------------------------------------------------------------------
|
50
|
-
[1m[35m (6.2ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
51
|
-
[1m[35m (6.3ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
52
|
-
----------------------------------------------------------------------------------
|
53
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
54
|
-
----------------------------------------------------------------------------------
|
55
|
-
-----------------------------------------------------------------------------------------------------
|
56
|
-
PostPusher::Generators::InstallGeneratorTest: test_0002_skips the migration file if it already exists
|
57
|
-
-----------------------------------------------------------------------------------------------------
|
58
|
-
---------------------------------------------------------
|
59
|
-
#work: test_0001_should not mark failed tasks as finished
|
60
|
-
---------------------------------------------------------
|
61
|
-
[1m[35m (6.1ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
62
|
-
[1m[35m (6.2ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
63
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
64
|
-
[1m[35m (12.0ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
65
|
-
----------------------------------------------------
|
66
|
-
broken tasks: test_0001_should also log busted tasks
|
67
|
-
----------------------------------------------------
|
68
|
-
---------------------------------------------------------------------
|
69
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
70
|
-
---------------------------------------------------------------------
|
71
|
-
[1m[35m (7.0ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
72
|
-
[1m[35m (6.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
73
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
74
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
75
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
76
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
77
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
78
|
-
-------------------------------------------------------------------------------
|
79
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
80
|
-
-------------------------------------------------------------------------------
|
81
|
-
[1m[35m (6.8ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
82
|
-
[1m[35m (6.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
83
|
-
----------------------------------------------------------------------------------
|
84
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
85
|
-
----------------------------------------------------------------------------------
|
86
|
-
-----------------------------------------------------------------------------------------------------
|
87
|
-
PostPusher::Generators::InstallGeneratorTest: test_0002_skips the migration file if it already exists
|
88
|
-
-----------------------------------------------------------------------------------------------------
|
89
|
-
---------------------------------------------------------------------
|
90
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
91
|
-
---------------------------------------------------------------------
|
92
|
-
[1m[35m (6.3ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
93
|
-
[1m[35m (6.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
94
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
95
|
-
---------------------------------------------------------
|
96
|
-
#work: test_0001_should not mark failed tasks as finished
|
97
|
-
---------------------------------------------------------
|
98
|
-
[1m[35m (6.1ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
99
|
-
[1m[35m (6.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
100
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
101
|
-
[1m[35m (12.0ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
102
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
103
|
-
----------------------------------------------------
|
104
|
-
broken tasks: test_0001_should also log busted tasks
|
105
|
-
----------------------------------------------------
|
106
|
-
------------------------------------------------------
|
107
|
-
happy path: test_0001_should log the rake tasks output
|
108
|
-
------------------------------------------------------
|
109
|
-
--------------------------------------------------------------------------
|
110
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
111
|
-
--------------------------------------------------------------------------
|
112
|
-
[1m[35m (11.3ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
113
|
-
[1m[35m (6.3ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
114
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
115
|
-
-----------------------------------------------------------------------
|
116
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
117
|
-
-----------------------------------------------------------------------
|
118
|
-
[1m[35m (9.9ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
119
|
-
[1m[35m (18.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
120
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
121
|
-
--------------------------------------------------------------------------------------------------
|
122
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
123
|
-
--------------------------------------------------------------------------------------------------
|
124
|
-
[1m[35m (10.3ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
125
|
-
[1m[35m (6.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
126
|
-
[1m[35m (6.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
127
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|