From 2f4e05f169f3184e1d62edb5d074742997bba3a7 Mon Sep 17 00:00:00 2001 From: Patrick Filler Date: Wed, 3 Jul 2013 12:12:47 -0400 Subject: [PATCH 1/7] Update the jQuery page. --- public/index.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/public/index.html b/public/index.html index af53b19faf4..a4922c32ac1 100644 --- a/public/index.html +++ b/public/index.html @@ -16,11 +16,13 @@

Chosen

-

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 online documentation This page is implemented using the jQuery plugin. For Prototype users, please see the Prototype example page.

- -

Downloads

- Stable Version (v0.11.1) - Edge Version (Master) +

Chosen is a jQuery plugin that makes long, unwieldy select boxes much more user-friendly.

+ +

+ Downloads + Project Source + Contribute +

Standard Select

@@ -1420,7 +1422,7 @@

Labels work, too

Setup

Using Chosen is easy as can be.

    -
  1. Download the plugin and copy the chosen files to your app.
  2. +
  3. Download the plugin and copy the chosen files to your app.
  4. Activate the plugin on the select boxes of your choice: $(".chzn-select").chosen()
  5. Disco.
@@ -1435,6 +1437,10 @@

Something doesn't work. Can you fix it?

What browsers are supported?

All modern browsers are supported (Firefox, Chrome, Safari and IE9). Legacy support for IE8 is also enabled.

+
  • +

    Didn't there used to be a Prototype version of Chosen?

    +

    There still is!

    +
  • Credits

    From b73fa8c652127bfa86137180e8b6ad2cfa19b648 Mon Sep 17 00:00:00 2001 From: Patrick Filler Date: Wed, 3 Jul 2013 12:16:36 -0400 Subject: [PATCH 2/7] Update the Prototype documenation --- public/index.proto.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/public/index.proto.html b/public/index.proto.html index 583139ae492..f604fd4f155 100644 --- a/public/index.proto.html +++ b/public/index.proto.html @@ -12,10 +12,18 @@
    -

    Chosen - Prototype Example

    +

    Chosen - Prototype Version

    -

    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 online documentation.

    +

    Chosen is a Prototype plugin that makes long, unwieldy select boxes much more user-friendly.

    +

    + Downloads + Project Source + Contribute +

    + +

    Looking for the jQuery version?

    +

    Standard Select

    @@ -1419,7 +1427,7 @@

    Labels work, too

    Setup

    Using Chosen is easy as can be.

      -
    1. Download the plugin and copy the chosen files to your app.
    2. +
    3. Download the plugin and copy the chosen files to your app.
    4. Activate the plugin by creating a new instance of Chosen: New Chosen(some_form_field,some_options);
    5. Disco.
    From 642c4bf133c00f7ceafbce574fd195cbe16e7434 Mon Sep 17 00:00:00 2001 From: Patrick Filler Date: Wed, 3 Jul 2013 12:18:36 -0400 Subject: [PATCH 3/7] Update readme --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ab6cc7a50c7..5ddfa6f188e 100644 --- a/README.md +++ b/README.md @@ -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 From c8f9306c444f2cc60bc8a26e121796315bdbf06b Mon Sep 17 00:00:00 2001 From: Patrick Filler Date: Wed, 3 Jul 2013 12:22:31 -0400 Subject: [PATCH 4/7] Revert all the S3 stuff. It was fun while it lasted! --- .gitignore | 1 - Gruntfile.coffee | 22 ---------------------- chosen.jquery.json | 4 ++-- package.json | 3 +-- 4 files changed, 3 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index e5f0a0b42ee..c3f0ce87e7e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,4 @@ node_modules dist/ public/*.js public/*.min.css -grunt-aws.json chosen.zip diff --git a/Gruntfile.coffee b/Gruntfile.coffee index dff35601886..17ce82ae713 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -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") @@ -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' @@ -110,12 +92,9 @@ 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 'package_jquery', 'Generate a jquery.json manifest file from package.json', () -> @@ -127,7 +106,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 diff --git a/chosen.jquery.json b/chosen.jquery.json index b29f64eca5b..6db2a3aac97 100644 --- a/chosen.jquery.json +++ b/chosen.jquery.json @@ -8,7 +8,7 @@ "url": "https://github.com/harvesthq/chosen/blob/master/LICENSE.md" } ], - "download": "http://chosen.getharvest.com.s3.amazonaws.com/chosen_v0.11.1.zip", + "download": "https://github.com/harvesthq/chosen/releases", "title": "Chosen", "keywords": [ "select", @@ -36,4 +36,4 @@ "dependencies": { "jquery": ">=1.4.4" } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 348f250b312..2caaf321b62 100644 --- a/package.json +++ b/package.json @@ -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": [ { From 3071b76f49e74513a3034dcbd5eeadc467f93cfb Mon Sep 17 00:00:00 2001 From: Patrick Filler Date: Wed, 3 Jul 2013 12:26:23 -0400 Subject: [PATCH 5/7] Add a prep-release command. To be called just before a tag is added. --- Gruntfile.coffee | 1 + chosen.jquery.json | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 17ce82ae713..8fe280a26af 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -96,6 +96,7 @@ module.exports = (grunt) -> grunt.registerTask 'default', ['build'] grunt.registerTask 'build', ['coffee', 'concat', 'uglify', 'cssmin'] 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" diff --git a/chosen.jquery.json b/chosen.jquery.json index 6db2a3aac97..546a8135d1d 100644 --- a/chosen.jquery.json +++ b/chosen.jquery.json @@ -8,7 +8,6 @@ "url": "https://github.com/harvesthq/chosen/blob/master/LICENSE.md" } ], - "download": "https://github.com/harvesthq/chosen/releases", "title": "Chosen", "keywords": [ "select", @@ -36,4 +35,4 @@ "dependencies": { "jquery": ">=1.4.4" } -} +} \ No newline at end of file From 93507a7ec87f7a70f2d0f567c4a69281e4d0a9dd Mon Sep 17 00:00:00 2001 From: Patrick Filler Date: Wed, 3 Jul 2013 15:17:08 -0400 Subject: [PATCH 6/7] Add a download URL to the jquery package file. --- chosen.jquery.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chosen.jquery.json b/chosen.jquery.json index 546a8135d1d..6db2a3aac97 100644 --- a/chosen.jquery.json +++ b/chosen.jquery.json @@ -8,6 +8,7 @@ "url": "https://github.com/harvesthq/chosen/blob/master/LICENSE.md" } ], + "download": "https://github.com/harvesthq/chosen/releases", "title": "Chosen", "keywords": [ "select", @@ -35,4 +36,4 @@ "dependencies": { "jquery": ">=1.4.4" } -} \ No newline at end of file +} From 4170743493289c73d1111318914e96b0a814f255 Mon Sep 17 00:00:00 2001 From: Patrick Filler Date: Wed, 3 Jul 2013 16:10:35 -0400 Subject: [PATCH 7/7] Add download URL to package.json - so it doesn't getten overwritten. --- chosen.jquery.json | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/chosen.jquery.json b/chosen.jquery.json index 6db2a3aac97..011c10972ce 100644 --- a/chosen.jquery.json +++ b/chosen.jquery.json @@ -8,7 +8,6 @@ "url": "https://github.com/harvesthq/chosen/blob/master/LICENSE.md" } ], - "download": "https://github.com/harvesthq/chosen/releases", "title": "Chosen", "keywords": [ "select", @@ -30,10 +29,11 @@ "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", "dependencies": { "jquery": ">=1.4.4" } -} +} \ No newline at end of file diff --git a/package.json b/package.json index 2caaf321b62..5e729421abf 100644 --- a/package.json +++ b/package.json @@ -52,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",