pave 0.10.0 → 0.10.1

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: a32c736c3ff194d168d9f2cd6fc05f2e65492bef
4
- data.tar.gz: 6e55111b71cb0e533939c1fba03d237d190966c4
3
+ metadata.gz: eb24e6e597843c89fac5966ab4ff7aa84c39c374
4
+ data.tar.gz: e83b5a8d7ba9daa544f4a37c5fbeceb99cb20501
5
5
  SHA512:
6
- metadata.gz: bcebfee711427e2bd3331e8ac1a2a4da96cfc3346841ea4ca9c9214871b22f48fe9f5b13c8a1b255a0471e71134df36e35ff6b37be431d157dd02b7cdfa6554a
7
- data.tar.gz: 3586b76889c4ef68da99655b9112345be3f30df4c443feaab76c37a10f54d461351080e7b6212974be9ae5bc7a251863d41d1919ce255b83de29315602ff6698
6
+ metadata.gz: 8ce93b4e77b114c964be21180e0b23fc25a8b21c7d2217032ea2fb11fd6c2f21bd4c30aa53af2cff0bdce744a307355298fe159dd01975078833f1857f68530f
7
+ data.tar.gz: 0a1e42502cbe7d084aeeb2c0f08fe155965a1f93c8dfb7cf94fa06bed8d5110169a5032a6c408d86c55aee9cdc0546d5582f0ff93f99dc7c3e7380212106b977
data/README.md CHANGED
@@ -68,23 +68,23 @@ Pulls the remote `files/*` folder and replaces your local version.
68
68
 
69
69
  ## Virtual host setup
70
70
 
71
- $ pave vh:create myhost.site
71
+ $ sudo pave vh:create myhost.site
72
72
 
73
73
  Sets up an Apache virtual host in the current directory on `myhost.site`.
74
74
 
75
- $ pave vh:remove myhost.site
75
+ $ sudo pave vh:remove myhost.site
76
76
 
77
77
  Removes myhost.site virtual host.
78
78
 
79
- $ pave vh:backup
79
+ $ sudo pave vh:backup
80
80
 
81
81
  Backs up your hosts file and vhost file.
82
82
 
83
- $ pave vh:restore
83
+ $ sudo pave vh:restore
84
84
 
85
85
  Restores your previously backed up virtual host file.
86
86
 
87
- $ pave vh:restart
87
+ $ sudo pave vh:restart
88
88
 
89
89
  Restarts Apache.
90
90
 
data/bin/pave CHANGED
@@ -144,7 +144,7 @@ command :"db:dump" do |c|
144
144
  c.description = "Create SQL dump of the project's database."
145
145
  c.action do |args|
146
146
  name = args.first || "#{File.basename(Dir.pwd)}"
147
- Pave::Database.new(name).dump
147
+ Pave::Database.new(name).dump_local
148
148
  end
149
149
  end
150
150
  alias_command :"db:backup", :"db:dump"
@@ -164,7 +164,7 @@ command :"db:execute" do |c|
164
164
  c.description = "Execute SQL dump on the project's database."
165
165
  c.action do |args|
166
166
  name = args.first || "#{File.basename(Dir.pwd)}"
167
- Pave::Database.new(name).execute
167
+ Pave::Database.new(name).execute_remote_dump_on_local_db
168
168
  end
169
169
  end
170
170
 
@@ -173,7 +173,7 @@ command :"db:remote:execute" do |c|
173
173
  c.description = "Execute SQL dump on the project's live database."
174
174
  c.action do |args|
175
175
  name = args.first || "#{File.basename(Dir.pwd)}"
176
- Pave::Database.new(name).execute_remote
176
+ Pave::Database.new(name).execute_local_dump_on_remote_db
177
177
  end
178
178
  end
179
179
 
@@ -182,7 +182,7 @@ command :"db:download" do |c|
182
182
  c.description = "Download SQL dump of the project's live database."
183
183
  c.action do |args|
184
184
  name = args.first || "#{File.basename(Dir.pwd)}"
185
- Pave::Database.new(name).download
185
+ Pave::Database.new(name).download_remote_to_local
186
186
  end
187
187
  end
188
188
 
@@ -191,7 +191,7 @@ command :"db:upload" do |c|
191
191
  c.description = "Upload SQL dump of the project's database."
192
192
  c.action do |args|
193
193
  name = args.first || "#{File.basename(Dir.pwd)}"
194
- Pave::Database.new(name).upload
194
+ Pave::Database.new(name).upload_local_dump_to_remote
195
195
  end
196
196
  end
197
197
 
@@ -1,3 +1,3 @@
1
1
  module Pave
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
@@ -23,4 +23,6 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency("rake", "~> 10.1")
24
24
  spec.add_development_dependency("rspec", "~> 2")
25
25
  spec.add_dependency("commander", "~> 4.1")
26
+
27
+ spec.required_ruby_version = '>= 1.9.3'
26
28
  end
@@ -1,12 +1,12 @@
1
- <?php
2
- defined('C5_EXECUTE') or die("Access Denied.");
3
- $this->inc('elements/header.php');
1
+ <?php
2
+ defined("C5_EXECUTE") or die("Access Denied.");
3
+ $this->inc("elements/header.php");
4
4
  ?>
5
5
 
6
6
  <?php
7
- $a = new Area('Main');
7
+ $a = new Area("Main");
8
8
  $a->display($c);
9
9
  ?>
10
10
 
11
-
12
- <?php $this->inc('elements/footer.php'); ?>
11
+
12
+ <?php $this->inc("elements/footer.php"); ?>
@@ -1,13 +1,13 @@
1
- <?php defined('C5_EXECUTE') or die("Access Denied."); ?>
1
+ <?php defined("C5_EXECUTE") or die("Access Denied."); ?>
2
2
 
3
3
 
4
- <?php
5
- $a = new GlobalArea('Footer - Meta');
4
+ <?php
5
+ $a = new GlobalArea("Footer - Meta");
6
6
  $a->display($c);
7
- ?>
7
+ ?>
8
8
 
9
9
 
10
- <?php Loader::element('footer_required'); ?>
11
- <script src='<?= $this->getThemePath(); ?>/js/scripts.js'></script>
10
+ <?php Loader::element("footer_required"); ?>
11
+ <script src="<?= $this->getThemePath(); ?>/js/scripts.js"></script>
12
12
  </body>
13
- </html>
13
+ </html>
@@ -1,36 +1,34 @@
1
- <?php defined('C5_EXECUTE') or die("Access Denied.");
2
- $this->inc('includes/view_helpers.php');
1
+ <?php
2
+ defined("C5_EXECUTE") or die("Access Denied.");
3
+ $this->inc("includes/view_helpers.php");
3
4
  ?>
4
5
  <!DOCTYPE html>
5
6
  <html lang="<?php echo LANGUAGE?>">
6
7
  <head>
7
- <?php Loader::element('header_required'); ?>
8
+ <?php Loader::element("header_required"); ?>
8
9
 
9
10
  <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/2.1.3/normalize.min.css" />
10
11
  <link rel="stylesheet" href="<?= $this->getThemePath(); ?>/css/styles.css" />
11
12
 
12
13
  <!--[if lt IE 9]>
13
- <script src='//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js'></script>
14
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script>
14
15
  <![endif]-->
15
16
  </head>
16
-
17
- <body class="<?= $c->getCollectionTypeHandle(); ?>">
18
-
17
+ <body class="<?= $c->getCollectionTypeHandle(); ?>">
19
18
 
20
19
  <!-- BLOCK EXAMPLE -->
21
20
  <?php
22
- $a = new Area('Header');
21
+ $a = new Area("Header");
23
22
  $a->display($c);
24
23
  ?>
25
24
 
26
-
27
25
  <!-- NAV EXAMPLE -->
28
26
  <?php
29
- $nav = BlockType::getByHandle('autonav');
30
- $nav->controller->orderBy = 'display_asc';
31
- $nav->controller->displayPages = 'top';
32
- $nav->controller->displaySubPages = 'all';
33
- $nav->controller->displaySubPageLevels = 'custom';
27
+ $nav = BlockType::getByHandle("autonav");
28
+ $nav->controller->orderBy = "display_asc";
29
+ $nav->controller->displayPages = "top";
30
+ $nav->controller->displaySubPages = "all";
31
+ $nav->controller->displaySubPageLevels = "custom";
34
32
  $nav->controller->displaySubPageLevelsNum = 1;
35
- $nav->render('templates/header_menu');
33
+ $nav->render("templates/header_menu");
36
34
  ?>
@@ -7,14 +7,29 @@
7
7
  }
8
8
  }
9
9
 
10
- function image_tag($t, $img) {
11
- $imgPath = ($t->getThemePath()) . "/images/";
12
- echo "<img src='" . $imgPath . $img . "' />";
13
- }
10
+ function is_logged_in() {
11
+ global $u;
12
+ if ($u -> isLoggedIn ()) {
13
+ echo "logged-in";
14
+ }
15
+ }
14
16
 
15
17
  function has_blocks($area) {
16
18
  global $c;
17
19
  return $area->getTotalBlocksInArea($c) > 0;
18
20
  }
19
21
 
20
- ?>
22
+ function image_tag($t, $img, $html_options = false) {
23
+ $imgPath = ($t->getThemePath()) . "/images/";
24
+ if ($html_options) {
25
+ $options = " alt='" . explode(".", $img, 2)[0] . "'";
26
+ foreach ($html_options as $k => $v) {
27
+ $options .= " " . $k . "='" . addslashes($v) . "'";
28
+ }
29
+ } else {
30
+ $options = " alt='" . explode(".", $img, 2)[0] . "'";
31
+ };
32
+ echo "<img src='" . $imgPath . $img . "'" . $options . " />";
33
+ }
34
+
35
+ ?>
@@ -1,8 +1,8 @@
1
- <?php
2
- defined('C5_EXECUTE') or die("Access Denied.");
3
- $this->inc('elements/header.php');
1
+ <?php
2
+ defined("C5_EXECUTE") or die("Access Denied.");
3
+ $this->inc("elements/header.php");
4
4
  ?>
5
5
 
6
6
  <?php print $innerContent; ?>
7
-
8
- <?php $this->inc('elements/footer.php'); ?>
7
+
8
+ <?php $this->inc("elements/footer.php"); ?>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pave
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamon Holmgren
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-08 00:00:00.000000000 Z
12
+ date: 2014-01-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -139,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
139
  requirements:
140
140
  - - ">="
141
141
  - !ruby/object:Gem::Version
142
- version: '0'
142
+ version: 1.9.3
143
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - ">="