[bugzilla-gnome-org-extensions] 4.4 migration: Rename SplinterUtil to Util
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-extensions] 4.4 migration: Rename SplinterUtil to Util
- Date: Thu, 20 Nov 2014 22:25:32 +0000 (UTC)
commit 26b05983f959f39282c7002af4158deebe90fbb3
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Tue Nov 18 11:07:46 2014 +0100
4.4 migration: Rename SplinterUtil to Util
Extension.pm | 2 --
lib/Ops.pm | 2 +-
lib/{SplinterUtil.pm => Util.pm} | 4 ++--
lib/WebServiceUtil.pm | 2 +-
4 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/Extension.pm b/Extension.pm
index 1e2bcc9..580f133 100644
--- a/Extension.pm
+++ b/Extension.pm
@@ -24,9 +24,7 @@ use strict;
use warnings;
use base qw(Bugzilla::Extension);
-# This code for this is in ./extensions/Splinter/lib/Util.pm
use Bugzilla::Extension::Splinter::Ops;
-use Bugzilla::Extension::Splinter::SplinterUtil;
our $VERSION = '0.01';
diff --git a/lib/Ops.pm b/lib/Ops.pm
index 431fe2c..0408b4d 100644
--- a/lib/Ops.pm
+++ b/lib/Ops.pm
@@ -33,7 +33,7 @@ our @EXPORT = qw(
add_dispatch
);
-use Bugzilla::Extension::Splinter::SplinterUtil;
+use Bugzilla::Extension::Splinter::Util;
sub _attachment_id_is_patch {
my ($attach_id) = @_;
diff --git a/lib/SplinterUtil.pm b/lib/Util.pm
similarity index 90%
rename from lib/SplinterUtil.pm
rename to lib/Util.pm
index 56fdd9d..230d398 100644
--- a/lib/SplinterUtil.pm
+++ b/lib/Util.pm
@@ -19,13 +19,13 @@
# Contributor(s):
# Owen Taylor <otaylor fishsoup net>
-package extensions::splinter::lib::SplinterUtil;
+package Bugzilla::Extension::Splinter::Util;
use Bugzilla;
use Bugzilla::Util;
use base qw(Exporter);
- extensions::splinter::lib::SplinterUtil::EXPORT = qw(attachment_is_visible);
+our @EXPORT = qw(attachment_is_visible);
# Checks if the current user can see an attachment
# Based on code from attachment.cgi
diff --git a/lib/WebServiceUtil.pm b/lib/WebServiceUtil.pm
index 6dd7676..f493263 100644
--- a/lib/WebServiceUtil.pm
+++ b/lib/WebServiceUtil.pm
@@ -27,7 +27,7 @@ use Bugzilla::Util;
use base qw(Exporter);
our @EXPORT = qw(check_can_access);
-use Bugzilla::Extension::Splinter::SplinterUtil;
+use Bugzilla::Extension::Splinter::Util;
# Make sure the current user has access to the specified attachment;
# Based on cut-and-paste from attachment.cgi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]