Skip to content

Commit

Permalink
Bump package version.
Browse files Browse the repository at this point in the history
- Updating README and CHANGELOG
  • Loading branch information
albertinad committed Jun 13, 2015
1 parent 4ec222c commit b921945
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 8 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## v0.2.12
* Project and packages synchronization based on the bower.json file:
- Keep track of the project status.
- Synchronize with the current packages installed
- Synchronize with the bower.json definition.
* Keep track of bower.json changes.
* Tests clean up.
* Bug fixing.

## v0.2.11
* Fixing bug when loading project dependencies.

Expand Down
6 changes: 5 additions & 1 deletion nls/es/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,9 @@ define({
"SUMMARY_ERROR": "Oops! Ocurrió un error.",
"SYNC_WITH_PROJECT_TITLE": "Sincronizar con paquetes del proyecto",
"SYNC_WITH_BOWER_JSON_TITLE": "Sincronizar con bower.json",
"PROJECT_OUT_OF_SYNC_MESSAGE": "No sincronizado"
"SYNC_PROJECT_MESSAGE": "Sincronizando proyecto",
"SYNC_PROJECT_SUCCESS_MESSAGE": "Proyecto sincronizado",
"PROJECT_OUT_OF_SYNC_MESSAGE": "No sincronizado",
"PKG_STATUS_MISSING": "No instalado",
"PKG_STATUS_VERSIONS": "Versiones no coinciden"
});
7 changes: 6 additions & 1 deletion nls/root/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,10 @@ define({
"SUMMARY_ERROR": "Oops! An error ocurred.",
"SYNC_WITH_PROJECT_TITLE": "Synchronize with project packages",
"SYNC_WITH_BOWER_JSON_TITLE": "Synchronize with bower.json",
"PROJECT_OUT_OF_SYNC_MESSAGE": "Out of sync"
"SYNC_PROJECT_MESSAGE": "Synchronizing project",
"SYNC_PROJECT_SUCCESS_MESSAGE": "Project synchronized",
"PROJECT_OUT_OF_SYNC_MESSAGE": "Out of sync",
"PKG_STATUS_MISSING": "Missing",
"PKG_STATUS_NOT_TRACKED": "Not tracked",
"PKG_STATUS_VERSIONS": "Versions don\'t match"
});
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "brackets-bower",
"title": "Brackets Bower",
"version": "0.2.11",
"version": "0.2.12",
"description": "Manage your application's front-end dependencies using Bower. You can install and prune dependencies using the bower.json file and configure Bower through .bowerrc. Also, quickly install front-end packages by hitting Ctrl/Cmd-Alt-B, then start typing the name of a package. Once you see the package you want, hit Enter and the package will be installed into your project folder. NOTE: To install some packages, you must have Git installed.",
"author": "Albertina Durante (https:/albertinad)",
"homepage": "https:/albertinad/brackets-bower",
Expand Down Expand Up @@ -34,6 +34,7 @@
"bower",
"package manager",
"javascript",
"JavaScript",
"libraries",
"dependencies",
"packages",
Expand Down
4 changes: 2 additions & 2 deletions src/panel/controllers/PanelController.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ define(function (require, exports, module) {
syncOption = ProjectManager.SyncOptions.MATCH_PROJECT_FOLDER;
}

var statusId = StatusBarController.post("Synchronizing project", true);
var statusId = StatusBarController.post(Strings.SYNC_PROJECT_MESSAGE, true);

ProjectManager.synchronizeProject(syncOption).then(function () {

StatusBarController.update(statusId, "Successfuly synchronized", false);
StatusBarController.update(statusId, Strings.SYNC_PROJECT_SUCCESS_MESSAGE, false);
}).fail(function (error) {

that._view.syncFailed();
Expand Down
5 changes: 4 additions & 1 deletion src/project/PackageFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,12 @@ define(function (require, exports, module) {
Package.prototype.isVersionInSync = function () {
var isInSync;

if ((this._bowerJsonVersion !== null) && (semver.validRange(this._bowerJsonVersion) !== null)) {
if (this._version !== null && this._bowerJsonVersion !== null &&
semver.validRange(this._bowerJsonVersion) !== null) {

isInSync = semver.satisfies(this._version, this._bowerJsonVersion);
} else {

isInSync = true;
}

Expand Down
10 changes: 8 additions & 2 deletions templates/packages-section.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,22 @@

{{ #isNotTracked }}
<div class="bower-row-item">
<div class="bower-pkg-warning">Not Tracked</div>
<div class="bower-pkg-warning">{{ Strings.PKG_STATUS_NOT_TRACKED }}</div>
</div>
{{ /isNotTracked }}

{{ #isMissing }}
<div class="bower-row-item">
<div class="bower-pkg-warning">Missing</div>
<div class="bower-pkg-warning">{{ Strings.PKG_STATUS_MISSING }}</div>
</div>
{{ /isMissing }}

{{ ^isVersionInSync }}
<div class="bower-row-item">
<div class="bower-pkg-warning">{{ Strings.PKG_STATUS_VERSIONS }}</div>
</div>
{{ /isVersionInSync }}

<div class="bower-row-item">
{{ #isProductionDependency }}
<div class="bower-pkg-prod">Prod</div>
Expand Down

0 comments on commit b921945

Please sign in to comment.