Skip to content

Commit

Permalink
Update to release v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Jun 17, 2015
1 parent a59166b commit d2d65a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ The preferred way to install this extension is through [composer](http://getcomp
To install, either run

```
$ php composer.phar require kartik-v/yii2-widget-select2 "*"
$ php composer.phar require kartik-v/yii2-widget-select2 "@dev"
```

or add

```
"kartik-v/yii2-widget-select2": "*"
"kartik-v/yii2-widget-select2": "@dev"
```

to the ```require``` section of your `composer.json` file.

## Latest Release

> NOTE: The latest version of the module is v2.0 Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-widget-select2/blob/master/CHANGE.md) for details.
> NOTE: The latest version of the module is v2.0.1 Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-widget-select2/blob/master/CHANGE.md) for details.
The widget has a major version revamp with v2.0. This release includes updates to use Select2 plugin release v4.0. Select2 release v4.0 is a major rewrite over Select2 v3.x and hence quite a few enhancements or changes should be expected. To use the earlier plugin release v3.5.2, you must point it to the [v1.0.1 release](https://github.com/kartik-v/yii2-widget-select2/releases/tag/v1.0.1) of the widget.

Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"homepage": "https://github.com/kartik-v/yii2-widget-select2",
"type": "yii2-extension",
"license": "BSD-3-Clause",
"minimum-stability": "stable",

This comment has been minimized.

Copy link
@magefad

magefad Jun 18, 2015

now composer not update select2 to version>=2.0
because base lib require "minimum-stability": "stable",
:(
@dev not working

"authors": [
{
"name": "Kartik Visweswaran",
Expand All @@ -21,4 +20,4 @@
"kartik\\select2\\": ""
}
}
}
}

7 comments on commit d2d65a7

@kartik-v
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required. The 2.0.1 release is already tagged and is stable.

@magefad
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look to https://github.com/kartik-v/yii2-krajee-base/blob/master/composer.json#L15
my select2 lib downgraded to 2.0.0 after composer update

what I do wrong?

@kartik-v
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You must check your application root's composer.json.

Assuming you have minimum-stability: stable on your composer.json ... you may modify or add one of the lines below:

  1. To get updated stable release for 2.0.x do this:
"require": {
    "kartik-v/yii2-widget-select2": "~2.0"
},
  1. OR do this for getting any updated release
"require": {
    "kartik-v/yii2-widget-select2": "@dev"
},

@kartik-v
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that minimum-stability is applicable and read only for your application root's composer.json - not for individual packages.

@magefad
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tried as you wrote
Still taken only version 2.0
And I tried to production server - also downgrade to 2.0

any @ dev in composer not helped

@kartik-v
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You seem to be having some composer caching issue... not sure why. Try this on another machine.

See if you can try instructions in this web tip to refresh packages via composer.

@kartik-v
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also ensure you have set your composer.json in a way where you are not causing a dependency issue.

For example if you have yii2-dynagird extension - it already depends on and requires yii2-widget-select2 so this is auto installed (and you need not add yii2-widget-select2). However if you add yii2-widget-select2 in composer.json along with yii2-dynagrid then ensure you have it in correct sequence with the right versions.

The simplest method to trace the root cause is -- remove all packages from require section of your composer.json... then do a composer update. Then add a package one by one to require section and do composer update check then where you face an error (if at all you face one).

Please sign in to comment.