Skip to content

Commit

Permalink
Merge pull request #1323 from harvesthq/releases-change
Browse files Browse the repository at this point in the history
Updated release procedure to remove S3 #1323
  • Loading branch information
pfiller committed Jul 10, 2013
2 parents a2bb3fd + 4170743 commit a72da82
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 36 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ node_modules
dist/
public/*.js
public/*.min.css
grunt-aws.json
chosen.zip
23 changes: 1 addition & 22 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ module.exports = (grunt) ->
grunt.file.readJSON("package.json").version
version_tag = ->
"v#{version()}"
version_url = ->
"http://chosen.getharvest.com.s3.amazonaws.com/chosen_#{version_tag()}.zip"
aws = ->
file = 'grunt-aws.json'
if grunt.file.exists file then grunt.file.readJSON file else {}

grunt.initConfig
pkg: grunt.file.readJSON("package.json")
Expand Down Expand Up @@ -87,19 +82,6 @@ module.exports = (grunt) ->
src: ['public/**/*']
dest: 'chosen.zip'

s3:
options: aws()
master:
upload: [
src: 'chosen.zip'
dest: "chosen_master.zip"
]
latest_version:
upload: [
src: 'chosen.zip'
dest: "chosen_#{version_tag()}.zip"
]

grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-concat'
Expand All @@ -110,13 +92,11 @@ module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-build-gh-pages'
grunt.loadNpmTasks 'grunt-zip'
grunt.loadNpmTasks 'grunt-dom-munger'
grunt.loadNpmTasks 'grunt-s3'

grunt.registerTask 'default', ['build']
grunt.registerTask 'build', ['coffee', 'concat', 'uglify', 'cssmin']
grunt.registerTask 'master-s3', ['build', 'zip:chosen', 's3:master', 'clean:chosen_zip']
grunt.registerTask 'update-s3', ['build', 'zip:chosen', 'dom_munger:download_links', 's3:master', 's3:latest_version', 'package_jquery', 'clean:chosen_zip']
grunt.registerTask 'gh_pages', ['copy:dist', 'build_gh_pages:gh_pages']
grunt.registerTask 'prep_release', ['build','zip:chosen','package_jquery']

grunt.registerTask 'package_jquery', 'Generate a jquery.json manifest file from package.json', () ->
src = "package.json"
Expand All @@ -127,7 +107,6 @@ module.exports = (grunt) ->
"description": pkg.description
"version": version()
"licenses": pkg.licenses
"download": version_url()
json2 = pkg.jqueryJSON
json1[key] = json2[key] for key of json2
json1.author.name = pkg.author
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ Chosen is a library for making long, unwieldy select boxes more user friendly.
- jQuery support: 1.4+
- Prototype support: 1.7+

For documentation, usage, and examples, see:
For **documentation**, usage, and examples, see:
http://harvesthq.github.io/chosen/

For **downloads**, see:
https://github.com/harvesthq/chosen/releases/

### Contributing to this project

We welcome all to participate in making Chosen the best software it can be. The repository is maintained by only a few people, but has accepted contributions from over 50 authors after reviewing hundreds of pull requests related to thousands of issues. You can help reduce the maintainers' workload (and increase your chance of having an accepted contribution to Chosen) by following the
Expand Down
2 changes: 1 addition & 1 deletion chosen.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"url": "https://github.com/harvesthq/chosen/blob/master/LICENSE.md"
}
],
"download": "http://chosen.getharvest.com.s3.amazonaws.com/chosen_v0.11.1.zip",
"title": "Chosen",
"keywords": [
"select",
Expand All @@ -30,6 +29,7 @@
"name": "Ken Earley"
}
],
"download": "https://github.com/harvesthq/chosen/releases",
"homepage": "http://harvesthq.github.io/chosen/",
"docs": "http://harvesthq.github.io/chosen/",
"bugs": "https://github.com/harvesthq/chosen/issues",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"grunt-contrib-cssmin": "~0.6.1",
"grunt-build-gh-pages": "0.0.4",
"grunt-zip": "~0.9.2",
"grunt-dom-munger": "~2.0.1",
"grunt-s3": "~0.2.0-alpha.2"
"grunt-dom-munger": "~2.0.1"
},
"licenses": [
{
Expand Down Expand Up @@ -53,6 +52,7 @@
"name": "Ken Earley"
}
],
"download": "https://github.com/harvesthq/chosen/releases",
"homepage": "http://harvesthq.github.io/chosen/",
"docs": "http://harvesthq.github.io/chosen/",
"bugs": "https://github.com/harvesthq/chosen/issues",
Expand Down
18 changes: 12 additions & 6 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
<header>
<h1>Chosen</h1>
</header>
<p>Chosen is a JavaScript plugin for jQuery and Prototype that makes long, unwieldy select boxes much more user-friendly. For more information (including usage, explanation and faqs), check out the <a href="http://harvesthq.github.com/chosen/">online documentation</a> This page is implemented using the jQuery plugin. For Prototype users, please see <a href="index.proto.html">the Prototype example page</a>.</p>

<h2>Downloads</h2>
<a id="latest_version" class="button button-blue" href="http://chosen.getharvest.com.s3.amazonaws.com/chosen_v0.11.1.zip">Stable Version (v0.11.1)</a>
<a class="button button-blue" href="http://chosen.getharvest.com.s3.amazonaws.com/chosen_master.zip">Edge Version (Master)</a>
<p>Chosen is a jQuery plugin that makes long, unwieldy select boxes much more user-friendly.</p>

<p>
<a class="button button-blue" href="https://github.com/harvesthq/chosen/releases">Downloads</a>
<a class="button" href="https://github.com/harvesthq/chosen">Project Source</a>
<a class="button" href="https://github.com/harvesthq/chosen/blob/master/contributing.md">Contribute</a>
</p>

<h2>Standard Select</h2>
<div class="side-by-side clearfix">
Expand Down Expand Up @@ -1420,7 +1422,7 @@ <h2>Labels work, too</h2>
<h2>Setup</h2>
<p>Using Chosen is easy as can be.</p>
<ol>
<li>Download the plugin and copy the chosen files to your app.</li>
<li><a href="https://github.com/harvesthq/chosen/releases">Download</a> the plugin and copy the chosen files to your app.</li>
<li>Activate the plugin on the select boxes of your choice: <code>$(".chzn-select").chosen()</code></li>
<li><a href="http://www.youtube.com/watch?feature=player_detailpage&v=UkSPUDpe0U8#t=11s">Disco</a>.</li>
</ol>
Expand All @@ -1435,6 +1437,10 @@ <h3>Something doesn't work. Can you fix it?</h3>
<h3>What browsers are supported?</h3>
<p>All modern browsers are supported (Firefox, Chrome, Safari and IE9). Legacy support for IE8 is also enabled.</p>
</li>
<li>
<h3>Didn't there used to be a Prototype version of Chosen?</h3>
<p><a href="index.proto.html">There still is!</a></p>
</li>
</ul>

<h2>Credits</h2>
Expand Down
14 changes: 11 additions & 3 deletions public/index.proto.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@
<div id="container">
<div id="content">
<header>
<h1>Chosen - Prototype Example</h1>
<h1>Chosen - Prototype Version</h1>
</header>
<p>Chosen is a JavaScript plugin for jQuery and Prototype that makes long, unwieldy select boxes much more user-friendly. For more information (including usage, explanation and faqs), check out the <a href="http://harvesthq.github.com/chosen/">online documentation</a>.</p>
<p>Chosen is a Prototype plugin that makes long, unwieldy select boxes much more user-friendly.</p>

<p>
<a class="button button-blue" href="https://github.com/harvesthq/chosen/releases">Downloads</a>
<a class="button" href="https://github.com/harvesthq/chosen">Project Source</a>
<a class="button" href="https://github.com/harvesthq/chosen/blob/master/contributing.md">Contribute</a>
</p>

<p style="margin-top: 40px; font-style: italic;">Looking for the <a href="index.html">jQuery version?</a></p>

<h2>Standard Select</h2>
<div class="side-by-side clearfix">
<div>
Expand Down Expand Up @@ -1419,7 +1427,7 @@ <h2>Labels work, too</h2>
<h2>Setup</h2>
<p>Using Chosen is easy as can be.</p>
<ol>
<li>Download the plugin and copy the chosen files to your app.</li>
<li><a href="https://github.com/harvesthq/chosen/releases">Download</a> the plugin and copy the chosen files to your app.</li>
<li>Activate the plugin by creating a new instance of Chosen: New Chosen(<em>some_form_field</em>,<em>some_options</em>);</li>
<li><a href="http://www.youtube.com/watch?feature=player_detailpage&v=UkSPUDpe0U8#t=11s">Disco</a>.</li>
</ol>
Expand Down

0 comments on commit a72da82

Please sign in to comment.