Skip to content

Commit

Permalink
Fixed a parse error in the package manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Evans committed Jan 17, 2013
1 parent bd2846d commit 319cc83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ def compress(source):
os.system('java -jar closure-compiler.jar --js ' + source + ' --js_output_file ' + minified + ' --compilation_level SIMPLE_OPTIMIZATIONS')

# Update version in given source file
def update_version(source, version_prefix, version):
def update_version(source, version):
# Open source file for reading and writing
f = open(source, 'r+')
# Read contents from source file
contents = f.read()
f.close()

# Update source version
contents = re.sub(version_prefix + '([\d\.]+)', (version_prefix + version), contents, 1)
contents = re.sub('\d{2}\.\d{2}\.\d{2}', version, contents, 1)

# Write updated source to source file
f = open(source, 'w+')
Expand All @@ -42,8 +42,8 @@ def main():
readme = '../README.md'

# Update version in source and readme files
update_version(source, ' v', version)
update_version(manifest, '"version": "', version)
update_version(source, version)
update_version(manifest, version)

# Compress jCanvas source
compress(source)
Expand Down
4 changes: 2 additions & 2 deletions jcanvas.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"docs": "http://calebevans.me/projects/jcanvas/docs.php",
"download": "http://calebevans.me/projects/jcanvas/downloads.php",
"bugs": "https://github.com/caleb531/jcanvas/issues",
"manitainers": {
"manitainers": [
{
"name": "Caleb Evans",
"email": "calebevans.me@gmail.com",
Expand All @@ -31,5 +31,5 @@
{
"name": "Dave Smith"
}
}
]
}

0 comments on commit 319cc83

Please sign in to comment.