decko 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/decko/tasks/decko.rake +19 -6
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fdfd5f7613f9f7fd66ab2d1a0f96fa1babcef1a
4
- data.tar.gz: a1eaca5d28d99e55898d85365668aabfab1363aa
3
+ metadata.gz: b6d4b5cc0477c68446976ca04a09700a6b4660cf
4
+ data.tar.gz: a97b8e3f1cca8cec30ea112bc57ec7a3aacdaa28
5
5
  SHA512:
6
- metadata.gz: 176a398763f18ef5c99c65a6076d8d875b2c1c9318ac87209efaccaca37238f072dc6af9dec07c97f2798568e4177882a9b65af3f5eb132e0448fd5a0077fa3e
7
- data.tar.gz: a4447687610b285df36d44f91e955e2893a223735bdf675b28536c59adad2a2584fe854efff2664838abb799d0d58734af58365cfcfdf11fedf30cf92bd551a2
6
+ metadata.gz: 5b28f42af4aba65c07171a69064b8627c253b0a569f31ac30774986c800cf9972fbdededfa0ce88788c746c9026a958cffc74a28bfcf99669c28f213a75d06cf
7
+ data.tar.gz: de20f2db80df6223c6efe1c313a7305b81ecb2ca2e8f6cef6b5bc4465203ceadf0e19909d06d2066e61571aa9b7ee6cf15b1fb0a2348242d70d2dc7405db83a2
@@ -14,7 +14,9 @@ link_task CARD_TASKS, from: :decko, to: :card
14
14
  decko_namespace = namespace :decko do
15
15
  desc "create a decko database from scratch, load initial data"
16
16
  task :seed do
17
- seed
17
+ failing_loudly "decko seed" do
18
+ seed
19
+ end
18
20
  end
19
21
 
20
22
  desc "create a decko database from scratch, load initial data, don't reset the cache"
@@ -87,11 +89,13 @@ decko_namespace = namespace :decko do
87
89
 
88
90
  desc "update decko gems and database"
89
91
  task :update do
90
- ENV["NO_RAILS_CACHE"] = "true"
91
- decko_namespace["migrate"].invoke
92
- decko_namespace["reset_tmp"].invoke
93
- Card::Cache.reset_all
94
- decko_namespace["update_assets_symlink"].invoke
92
+ failing_loudly "decko update" do
93
+ ENV["NO_RAILS_CACHE"] = "true"
94
+ decko_namespace["migrate"].invoke
95
+ decko_namespace["reset_tmp"].invoke
96
+ Card::Cache.reset_all
97
+ decko_namespace["update_assets_symlink"].invoke
98
+ end
95
99
  end
96
100
 
97
101
  desc "set symlink for assets"
@@ -175,6 +179,15 @@ decko_namespace = namespace :decko do
175
179
  end
176
180
  end
177
181
 
182
+ def failing_loudly task
183
+ yield
184
+ rescue
185
+ # TODO: fix this so that message appears *after* the errors.
186
+ # Solution should ensure that rake still exits with error code 1!
187
+ raise "\n>>>>>> FAILURE! #{task} did not complete successfully." \
188
+ "\n>>>>>> Please address errors and re-run:\n\n\n"
189
+ end
190
+
178
191
  def version
179
192
  ENV["VERSION"] ? ENV["VERSION"].to_i : nil
180
193
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decko
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-11-09 00:00:00.000000000 Z
14
+ date: 2018-11-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: card
@@ -19,14 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 1.96.4
22
+ version: 1.96.5
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 1.96.4
29
+ version: 1.96.5
30
30
  description: a wiki approach to stuctured data, dynamic interaction, and web design
31
31
  email:
32
32
  - info@decko.org