Skip to content

Commit

Permalink
composer.json enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
saibotd committed Dec 20, 2015
1 parent dd2a357 commit be2709a
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Command line time-tracking app for active.collab - it's at least as sexy as the

## Installation

- [Download the compiled .phar file](https://github.com/saibotd/acTrack/raw/master/dist/actrack.phar).
- [Download the compiled .phar file](https://github.com/saibotd/actrack/raw/master/dist/actrack.phar).
- (optional) Make it executable `chmod +x actrack.phar`.

Alternatively, clone this repository if you know your way around git and composer.
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "saibotd/acTrack",
"name": "saibotd/actrack",
"description": "Minimal time tracking for active.collab",
"type": "Application",
"license": "Apache 2.0",
Expand All @@ -15,7 +15,8 @@
},
"autoload":{
"psr-4": {
"saibotd\\acTrack\\": "src/"
"saibotd\\actrack\\": "src/"
}
}
},
"bin": ["actrack"]
}
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require 'vendor/autoload.php';

use Symfony\Component\Console\Application;
use saibotd\acTrack\AcTrackApplication;
use saibotd\actrack\AcTrackApplication;

$application = new AcTrackApplication('acTrack', '@git-commit-short@');
$application->run();
8 changes: 4 additions & 4 deletions src/ACTimeTrackCommand.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace saibotd\acTrack;
namespace saibotd\actrack;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
Expand All @@ -10,9 +10,9 @@
use Symfony\Component\Console\Question\Question;
use Symfony\Component\Console\Question\ChoiceQuestion;
use Symfony\Component\Console\Helper\ProgressBar;
use saibotd\acTrack\ActiveCollabClient;
use saibotd\acTrack\TimeTrackerDiff;
use saibotd\acTrack\TimeTrackerTick;
use saibotd\actrack\ActiveCollabClient;
use saibotd\actrack\TimeTrackerDiff;
use saibotd\actrack\TimeTrackerTick;

class ACTimeTrackCommand extends Command{
private $acClient, $timeTracker, $session, $tasks, $task, $project, $projects, $companies;
Expand Down
4 changes: 2 additions & 2 deletions src/AcTrackApplication.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace saibotd\acTrack;
namespace saibotd\actrack;

use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\InputInterface;
use saibotd\acTrack\ACTimeTrackCommand;
use saibotd\actrack\ACTimeTrackCommand;

class AcTrackApplication extends Application{
protected function getCommandName(InputInterface $input){
Expand Down
2 changes: 1 addition & 1 deletion src/ActiveCollabClient.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace saibotd\acTrack;
namespace saibotd\actrack;

use GuzzleHttp\Client;
use GuzzleHttp\Middleware;
Expand Down
2 changes: 1 addition & 1 deletion src/Helper.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace saibotd\acTrack;
namespace saibotd\actrack;

class Helper{
public static function format_time($t,$f=':') {
Expand Down
4 changes: 2 additions & 2 deletions src/TimeTrackerDiff.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
namespace saibotd\acTrack;
use saibotd\acTrack\TimeTrackerInterface;
namespace saibotd\actrack;
use saibotd\actrack\TimeTrackerInterface;

class TimeTrackerDiff implements TimeTrackerInterface{
private $startedAt, $secondsPassed, $isTracking;
Expand Down
2 changes: 1 addition & 1 deletion src/TimeTrackerInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace saibotd\acTrack;
namespace saibotd\actrack;

interface TimeTrackerInterface{
public function stop();
Expand Down
4 changes: 2 additions & 2 deletions src/TimeTrackerTick.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
namespace saibotd\acTrack;
use saibotd\acTrack\TimeTrackerInterface;
namespace saibotd\actrack;
use saibotd\actrack\TimeTrackerInterface;

class TimeTrackerTick implements TimeTrackerInterface{
private $secondsPassed = 0, $isTracking = false, $testFile, $saveFile;
Expand Down

0 comments on commit be2709a

Please sign in to comment.