decko 0.4.0 → 0.4.1

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 +15 -7
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ed380851656fbfa0a29cbab66ee7ca7d0a8d4f1
4
- data.tar.gz: d07151d0e726e19a0e2feefd4cfcc39ffe11efa0
3
+ metadata.gz: 99a4594d5caeb6cbbea5f6b64601e0abcb2e35b7
4
+ data.tar.gz: 76056b34c7e3787097a0275a93db7da4c7c1dca9
5
5
  SHA512:
6
- metadata.gz: 3574ead2833ec59413ca9b2ee999757aa8c6838fd7fb86e8d4dcadc36e31edec8c3030e5df68399716aea55f27b73b8747c50e0a4547aae96387d64dc9b01614
7
- data.tar.gz: 2ee900eaf2ee79ef16196cf2301fdeef2d1fc2bedfc3714d252fe980ab508fde5fe0384680ef3404541643c23e4fd1d27d48783e80191218ad1528d35c00d618
6
+ metadata.gz: 6299cfb3551012410c3a63ceb5832b72a1776294706b48ff6222d7f3c75a39b6f45d99a94f59569b9857c5a59d56f600adfd703dcd6235faa475469b0b33ab44
7
+ data.tar.gz: 9fa9e18c025a73b5aafd535f8f94bbd0b1d2df690eaba6dff843f10a309a64a066e244189ef8a2f0f7c824df71629cb62b672cd93be98fa3eb5def5b02d07a41
@@ -69,17 +69,25 @@ decko_namespace = namespace :decko do
69
69
  decko_namespace["update_assets_symlink"].invoke
70
70
  end
71
71
 
72
+ desc "reset with an empty tmp directory"
73
+ task :reset_tmp do
74
+ tmp_dir = Decko.paths["tmp"].first
75
+ if Decko.paths["tmp"].existent
76
+ Dir.foreach(tmp_dir) do |filename|
77
+ next if filename.starts_with? "."
78
+ FileUtils.rm_rf File.join(tmp_dir, filename), secure: true
79
+ end
80
+ else
81
+ Dir.mkdir tmp_dir
82
+ end
83
+ end
84
+
72
85
  desc "update decko gems and database"
73
86
  task :update do
74
87
  ENV["NO_RAILS_CACHE"] = "true"
75
- # system 'bundle update'
76
- if Decko.paths["tmp"].existent
77
- FileUtils.rm_rf Decko.paths["tmp"].first, secure: true
78
- end
79
- Dir.mkdir Decko.paths["tmp"].first
80
88
  decko_namespace["migrate"].invoke
81
- # FIXME: remove tmp dir / clear cache
82
- puts "set symlink for assets"
89
+ decko_namespace["reset_tmp"].invoke
90
+ Card::Cache.reset_all
83
91
  decko_namespace["update_assets_symlink"].invoke
84
92
  end
85
93
 
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.4.0
4
+ version: 0.4.1
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-03-20 00:00:00.000000000 Z
14
+ date: 2018-03-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -33,14 +33,14 @@ dependencies:
33
33
  requirements:
34
34
  - - '='
35
35
  - !ruby/object:Gem::Version
36
- version: 1.94.0
36
+ version: 1.94.1
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - '='
42
42
  - !ruby/object:Gem::Version
43
- version: 1.94.0
43
+ version: 1.94.1
44
44
  description: a wiki approach to stuctured data, dynamic interaction, and web design
45
45
  email:
46
46
  - info@decko.org