caboose-cms 0.2.103 → 0.2.104
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 +8 -8
- data/app/models/caboose/page.rb +1 -0
- data/app/models/caboose/page_block.rb +1 -1
- data/app/models/caboose/schema.rb +7 -0
- data/bin/caboose +13 -0
- data/lib/caboose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGU3N2VjMjlhNDkxY2Y4YjkxNTMwMjVlYjQ5MzZjZDJlZTMwMjMwNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjFmZDQ0ZTViMjIwYWUxMzlmNDliODkzZDgwMmQyNGUyOTNhMmI0Nw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDY2Nzg4NmJhZWM3NjFlNDYyMTI5ZWNmZWIxYWRmZjRkOGFlZTNkM2EwMjZm
|
10
|
+
OWI5NDQ2ZmNlNjNiNWZmMDBhZmZkMDQ1ZGY1ZjE2NTk2MTViNjljYjI3ZDcz
|
11
|
+
NjNlNDE2MDNlOWM4MDA2ZmIxOGFjMjgxNDZhMTNkZjdjYTk1Y2E=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGEzZGRiNmUzMjU0ZDQ5ZmRhZGQ4NTQwNjVmN2EwMzE2OWZmMTQ5NjZlM2Nk
|
14
|
+
NzU0NGI1NmM1ZjhlZjA3YmY5MmEzY2QwNmI1MjA3OWFkY2I5ZjEwMGI0YjI0
|
15
|
+
MjhiMmZmMjZjMTM5MGFjYmQ5ZWY2NDM2ODM2YmE5YzIxNjljNmE=
|
data/app/models/caboose/page.rb
CHANGED
@@ -85,6 +85,13 @@ class Caboose::Schema < Caboose::Utilities::Schema
|
|
85
85
|
[ :fb_description , :string , :limit => 156 ],
|
86
86
|
[ :gp_description , :string , :limit => 156 ]
|
87
87
|
],
|
88
|
+
Caboose::PageBlock => [
|
89
|
+
[ :page_id , :integer ],
|
90
|
+
[ :type , :string , :default => 'p' ],
|
91
|
+
[ :sort_order , :integer , :default => 0 ],
|
92
|
+
[ :name , :string ],
|
93
|
+
[ :value , :text ]
|
94
|
+
],
|
88
95
|
Caboose::Post => [
|
89
96
|
[ :title , :text ],
|
90
97
|
[ :body , :text ],
|
data/bin/caboose
CHANGED
@@ -73,5 +73,18 @@ when 'pg_restore'
|
|
73
73
|
puts "\nRunning pg_restore...\n"
|
74
74
|
`pg_restore --verbose --clean --no-acl --no-owner -h localhost -d #{db} #{dump_file}`
|
75
75
|
|
76
|
+
when 'sync_db'
|
77
|
+
|
78
|
+
puts "\nCapturing production database...\n"
|
79
|
+
`heroku pgbackups:capture`
|
80
|
+
puts "\nWhere do you want to save the production database dump file?\n"
|
81
|
+
dump_file = gets.chomp
|
82
|
+
puts "\nDownloading production database dump file...\n"
|
83
|
+
`curl -o #{dump_file} \`heroku pgbackups:url\``
|
84
|
+
puts "\nTo what database do you want to restore?"
|
85
|
+
db = gets.chomp
|
86
|
+
puts "\nRunning pg_restore...\n"
|
87
|
+
`pg_restore --verbose --clean --no-acl --no-owner -h localhost -d #{db} #{dump_file}`
|
88
|
+
|
76
89
|
else
|
77
90
|
end
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.104
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|