diff --git a/.idea/appsautoupdater.iml b/.idea/appsautoupdater.iml
new file mode 100644
index 0000000..d6ebd48
--- /dev/null
+++ b/.idea/appsautoupdater.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..15a15b2
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..28a804d
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..3323003
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..298c569
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,204 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $PROJECT_DIR$/composer.json
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ applicationsautoupdater
+ ApplicationsAutoUpdater
+
+
+ appsautoupdater
+ AppsAutoUpdater
+
+
+ $PROJECT_DIR$
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1548770653075
+
+
+ 1548770653075
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 11
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
index 76db853..0a1ed50 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -35,7 +35,7 @@ before_install:
# install core
- cd ../
- git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b $CORE_BRANCH nextcloud
- - mv "$TRAVIS_BUILD_DIR" nextcloud/apps/applicationsautoupdater
+ - mv "$TRAVIS_BUILD_DIR" nextcloud/apps/appsautoupdater
before_script:
- if [[ "$DB" == 'pgsql' ]]; then createuser -U travis -s oc_autotest; fi
@@ -45,9 +45,9 @@ before_script:
- cd nextcloud
- mkdir data
- ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
- - ./occ app:enable applicationsautoupdater
+ - ./occ app:enable appsautoupdater
- php -S localhost:8080 &
- - cd apps/applicationsautoupdater
+ - cd apps/appsautoupdater
script:
- make test
diff --git a/Makefile b/Makefile
index ada504f..016db80 100644
--- a/Makefile
+++ b/Makefile
@@ -128,8 +128,7 @@ source:
appstore:
rm -rf $(appstore_build_directory)
mkdir -p $(appstore_build_directory)
- tar cvzf $(appstore_package_name).tar.gz ../$(app_name) \
- --exclude-vcs \
+ tar cvzf $(appstore_package_name).tar.gz --exclude-vcs \
--exclude="../$(app_name)/build" \
--exclude="../$(app_name)/tests" \
--exclude="../$(app_name)/Makefile" \
@@ -150,6 +149,7 @@ appstore:
--exclude="../$(app_name)/protractor\.*" \
--exclude="../$(app_name)/.*" \
--exclude="../$(app_name)/js/.*" \
+ ../$(app_name)
.PHONY: test
test: composer
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 6480dfa..921761b 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -1,20 +1,20 @@
- applicationsautoupdater
+ appsautoupdater
Applications Auto Updater
Apllications auto updater
0.0.1
agpl
Adphi Apps
- ApplicationsAutoUpdater
+ AppsAutoUpdater
tools
- https://git.adphi.net/Adphi/ApplicationsAutoUpdater/issues
+ https://git.adphi.net/Adphi/AppsAutoUpdater/issues
- OCA\ApplicationsAutoUpdater\Cron\AppsAutoUpdateTask
+ OCA\AppsAutoUpdater\Cron\AppsAutoUpdateTask
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 1f6eede..cd1bbd1 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -2,7 +2,7 @@
/**
* Create your routes in here. The name is the lowercase name of the controller
* without the controller part, the stuff after the hash is the method.
- * e.g. page#index -> OCA\ApplicationsAutoUpdater\Controller\PageController->index()
+ * e.g. page#index -> OCA\AppsAutoUpdater\Controller\PageController->index()
*
* The controller class has to be registered in the application.php file since
* it's instantiated in there
diff --git a/build/artifacts/appstore/appautoupdater.tar.gz b/build/artifacts/appstore/appautoupdater.tar.gz
new file mode 100644
index 0000000..fec1639
Binary files /dev/null and b/build/artifacts/appstore/appautoupdater.tar.gz differ
diff --git a/build/artifacts/appstore/applicationsautoupdater.tar.gz b/build/artifacts/appstore/applicationsautoupdater.tar.gz
deleted file mode 100644
index 6b00deb..0000000
Binary files a/build/artifacts/appstore/applicationsautoupdater.tar.gz and /dev/null differ
diff --git a/build/artifacts/source/appautoupdater.tar.gz b/build/artifacts/source/appautoupdater.tar.gz
new file mode 100644
index 0000000..10ec600
Binary files /dev/null and b/build/artifacts/source/appautoupdater.tar.gz differ
diff --git a/build/artifacts/source/applicationsautoupdater.tar.gz b/build/artifacts/source/applicationsautoupdater.tar.gz
deleted file mode 100644
index de71c7a..0000000
Binary files a/build/artifacts/source/applicationsautoupdater.tar.gz and /dev/null differ
diff --git a/lib/Controller/AppsAutoUpdateController.php b/lib/Controller/AppsAutoUpdateController.php
index 64a4996..7d1392d 100644
--- a/lib/Controller/AppsAutoUpdateController.php
+++ b/lib/Controller/AppsAutoUpdateController.php
@@ -1,5 +1,5 @@
container = $app->getContainer();
}
public function testAppInstalled() {
$appManager = $this->container->query('OCP\App\IAppManager');
- $this->assertTrue($appManager->isInstalled('applicationsautoupdater'));
+ $this->assertTrue($appManager->isInstalled('appsautoupdater'));
}
}
diff --git a/tests/Unit/Controller/PageControllerTest.php b/tests/Unit/Controller/PageControllerTest.php
index 37bc3f8..3021e98 100644
--- a/tests/Unit/Controller/PageControllerTest.php
+++ b/tests/Unit/Controller/PageControllerTest.php
@@ -1,12 +1,12 @@
getMockBuilder('OCP\IRequest')->getMock();
$this->controller = new AppsAutoUpdateController(
- 'applicationsautoupdater', $request, $this->userId
+ 'appsautoupdater', $request, $this->userId
);
}
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 9eb0858..1cb7c78 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -9,8 +9,8 @@ require_once __DIR__.'/../../../lib/base.php';
// Fix for "Autoload path not allowed: .../tests/lib/testcase.php"
\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
-// Fix for "Autoload path not allowed: .../applicationsautoupdater/tests/testcase.php"
-\OC_App::loadApp('applicationsautoupdater');
+// Fix for "Autoload path not allowed: .../appsautoupdater/tests/testcase.php"
+\OC_App::loadApp('appsautoupdater');
if(!class_exists('PHPUnit_Framework_TestCase')) {
require_once('PHPUnit/Autoload.php');