Skip to content

Commit b8e3198

Browse files
committed
version 1.1.8
1 parent a4d831f commit b8e3198

File tree

5 files changed

+87
-7
lines changed

5 files changed

+87
-7
lines changed

ChangeLog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
2014.11.08 Version 1.1.8
22

33
* API Changes
44
- `editor.commands.commandKeyBinding` now contains direct map from keys to commands instead of grouping them by hashid

build

Submodule build updated 409 files

lib/ace/ext/menu_tools/generate_settings_menu.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ module.exports.generateSettingsMenu = function generateSettingsMenu (editor) {
9191
elements.forEach(function(element) {
9292
topmenu.appendChild(element);
9393
});
94+
95+
var el = topmenu.appendChild(document.createElement('div'));
96+
var version = "1.1.7";
97+
el.style.padding = "1em";
98+
el.textContent = "Ace version " + version;
99+
94100
return topmenu;
95101
}
96102
/**

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "ace",
33
"description": "Ajax.org Code Editor is a full featured source code highlighting editor that powers the Cloud9 IDE",
4-
"version": "1.1.7",
5-
"homepage" : "http://github.com/ajaxorg/ace",
4+
"version": "1.1.8",
5+
"homepage": "http://github.com/ajaxorg/ace",
66
"engines": {"node": ">= 0.6.0"},
77
"author": "Fabian Jakobs <[email protected]>",
88
"main": "lib/ace",
9-
"repository" : {
10-
"type" : "git",
11-
"url" : "http://github.com/ajaxorg/ace.git"
9+
"repository": {
10+
"type": "git",
11+
"url": "http://github.com/ajaxorg/ace.git"
1212
},
1313
"dependencies": {
1414
"mime": "1.2.x"

tool/release.sh

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
pause() {
2+
while true; do
3+
read -p "$1 " yn
4+
case $yn in
5+
[Yy]* ) break;;
6+
[Nn]* ) exit;;
7+
* ) echo "Please answer yes or no.";;
8+
esac
9+
done
10+
}
11+
12+
read -p "enter version number for the build " VERSION_NUM
13+
14+
cd `dirname $0`/..
15+
SOURCE=`pwd`
16+
17+
node -e "
18+
var fs = require('fs');
19+
var version = '$VERSION_NUM';
20+
function replaceVersion(str) {
21+
return str.replace(/(['\"]?version['\"]?\s*[:=]\s*['\"])[\\d.\\w\\-](['\"])/, function(_, m1, m2) {
22+
return m1 + version + m2;
23+
});
24+
}
25+
function update(path, replace) {
26+
var pkg = fs.readFileSync(path, 'utf8');
27+
pkg = (replace || replaceVersion)(pkg);
28+
fs.writeFileSync(path, pkg, 'utf8');
29+
}
30+
update('package.json');
31+
update('build/package.json');
32+
update('./lib/ace/ext/menu_tools/generate_settings_menu.js');
33+
update('ChangeLog.txt', function(str) {
34+
var date='"`date +%Y.%m.%d`"';
35+
return date + ' Version ' + version + '\n' + str.replace(/^\d+.*/, '').replace(/^\n/, '');
36+
});
37+
"
38+
39+
40+
41+
node Makefile.dryice.js full
42+
cd build
43+
git add .
44+
git commit --all -m "package `date +%d.%m.%y`"
45+
46+
47+
echo "build task completed."
48+
pause "continue creating the tag for v$VERSION_NUM [y/n]"
49+
if [[ ${VERSION_NUM} != *"-"* ]]; then
50+
git tag "v"$VERSION_NUM
51+
fi
52+
53+
pause "continue pushing to github? [y/n]"
54+
55+
git push --progress --tags "origin" HEAD:gh-pages HEAD:master
56+
57+
echo "build repository updated"
58+
59+
pause "continue update ace repo? [y/n]"
60+
cd ..
61+
62+
63+
echo "new commit added"
64+
pause "continue creating the tag for v$VERSION_NUM [y/n]"
65+
if [[ ${VERSION_NUM} != *"-"* ]]; then
66+
git tag "v"$VERSION_NUM
67+
fi
68+
69+
pause "continue pushing to github? [y/n]"
70+
71+
echo git push --progress --tags "origin" HEAD:gh-pages HEAD:master
72+
echo "All done!"
73+
pause "May I go now? [y/n]"
74+

0 commit comments

Comments
 (0)