caboose-cms 0.7.84 → 0.7.85

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: e26ea9684ed67352289454d78363dc87365c7304
4
- data.tar.gz: 901ac00e18c77df7b38d3998e0ecaca611096536
3
+ metadata.gz: 57eb564ffe6b9233bff21c05f4a3ecc7504ed5d8
4
+ data.tar.gz: e2daf88c5fc7fdcceb6e0d4f15d638bce08daabc
5
5
  SHA512:
6
- metadata.gz: 2fbba346db6d45291f8119d8018035bb28ec26da722ed2fd3484bbba9b203e69f4615d336b51e3628ee720b1320188eceb2d6e9f0188f7edcca71fa324aa8154
7
- data.tar.gz: c625c160661a5358d143eae93a182092bf09206f8c9fa3c9c2dc86a175b27946cca9afa843eb5ade23b2efe3c87b3c19b1d35e4636680197bdfc468665eaaf51
6
+ metadata.gz: 2650d6671de009284f1ac5d1f74cf4bfec436720a64fd3c42efed9afd5c4cf56f34c209e93f5601bd67399d9f9631c15883b9824823ee7c0ea974bfd4414a9a2
7
+ data.tar.gz: 7655923adc93b7affcc26ac8cfa09854710f9eed8e494b50a8dc43ba6311e0013a7aff2f4f048f11b48003d3085c6d1bb04b6191f32309fdcf4748986b7e45d3
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.7.84'
2
+ VERSION = '0.7.85'
3
3
  end
@@ -3,6 +3,69 @@ require 'aws-sdk'
3
3
 
4
4
  namespace :caboose do
5
5
 
6
+ desc "Check ruby syntax in all ruby files"
7
+ task :check_syntax => :environment do
8
+ puts "Checking syntax in all ruby files...\n\n"
9
+
10
+ str = `find #{Rails.root} -name "*.rb"`
11
+ files = str ? str.strip.split("\n") : []
12
+
13
+ errors = {}
14
+ files.each do |file|
15
+ str = `ruby -c #{file}`
16
+ next if str.nil? || str.strip == 'Syntax OK'
17
+ errors[file] = str
18
+ end
19
+
20
+ if errors.count == 0
21
+ puts " \n"
22
+ puts " █████ \n"
23
+ puts " ███████ \n"
24
+ puts " ███ ██ \n"
25
+ puts " ██ ██ \n"
26
+ puts " ███ ███ \n"
27
+ puts " ███ ███ \n"
28
+ puts " ██ ███ \n"
29
+ puts " ███ ███ \n"
30
+ puts " ███ ████ \n"
31
+ puts " ██ ████ \n"
32
+ puts " ███ ███ \n"
33
+ puts " ███ ███ \n"
34
+ puts " ███ ███ \n"
35
+ puts " ██ ███ \n"
36
+ puts " ███ ███ ██ \n"
37
+ puts " ████████████ ███ \n"
38
+ puts " ████████ ███ \n"
39
+ puts " ███ █████████ \n"
40
+ puts " ███ █████████ █████ \n"
41
+ puts " ██ ███████ ████ ███ \n"
42
+ puts " ██ ███ ███ ██ \n"
43
+ puts " ███ █████ ██ \n"
44
+ puts " ███ ████████ ██ \n"
45
+ puts " ████████████ ████ ██ \n"
46
+ puts " ███ ██████ ████ ██ \n"
47
+ puts " ███ ██████ ██ \n"
48
+ puts " ████ ████ ██████████ ██ \n"
49
+ puts " ████████████ ███ ███ \n"
50
+ puts " ██ ███████ ███████ \n"
51
+ puts " ████ ████████ ████████ \n"
52
+ puts " ████████████ ███ ███ \n"
53
+ puts " ███ █ █ ███ ███ \n"
54
+ puts " ███ █████ █████ \n"
55
+ puts " ██████████████████ \n"
56
+ puts " ██████████████ \n"
57
+ puts "\n"
58
+ puts "Syntax is OK in all files.\n"
59
+ puts "\n"
60
+ else
61
+ puts "\n"
62
+ puts "--------------------------------------------------------------------\n";
63
+ puts "IMPORTANT\n"
64
+ puts "Errors detected. Please correct before pushing to production."
65
+ puts "--------------------------------------------------------------------\n";
66
+ end
67
+ end
68
+
6
69
  desc "Update super admin password"
7
70
  task :update_superadmin_password => :environment do
8
71
  sa = Caboose::User.where(:username => 'superadmin').first
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.84
4
+ version: 0.7.85
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry