diff --git a/CHANGELOG.md b/CHANGELOG.md index d1afdd6..e2a336c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,16 +4,16 @@ All notable changes to this project will be documented in this file. See [standa -# [0.2.0](https://github.com/alexlafroscia/ember-observable/compare/v0.1.0...v0.2.0) (2019-01-29) +# [0.2.0](https://github.com/alexlafroscia/ember-rx/compare/v0.1.0...v0.2.0) (2019-01-29) ### Bug Fixes -- remove original source of `subscribe` decorator ([a0d5959](https://github.com/alexlafroscia/ember-observable/commit/a0d5959)) +- remove original source of `subscribe` decorator ([a0d5959](https://github.com/alexlafroscia/ember-rx/commit/a0d5959)) ### Features -- add observable source from property changes ([6b66b92](https://github.com/alexlafroscia/ember-observable/commit/6b66b92)), closes [#1](https://github.com/alexlafroscia/ember-observable/issues/1) -- add utility for getting the first value as a Promise ([f6ac06d](https://github.com/alexlafroscia/ember-observable/commit/f6ac06d)), closes [#3](https://github.com/alexlafroscia/ember-observable/issues/3) +- add observable source from property changes ([6b66b92](https://github.com/alexlafroscia/ember-rx/commit/6b66b92)), closes [#1](https://github.com/alexlafroscia/ember-rx/issues/1) +- add utility for getting the first value as a Promise ([f6ac06d](https://github.com/alexlafroscia/ember-rx/commit/f6ac06d)), closes [#3](https://github.com/alexlafroscia/ember-rx/issues/3) @@ -21,6 +21,6 @@ All notable changes to this project will be documented in this file. See [standa ### Features -- add decorator for subscribing to an observable ([949039a](https://github.com/alexlafroscia/ember-observable/commit/949039a)) -- add helper subscribes to observable ([f92e65a](https://github.com/alexlafroscia/ember-observable/commit/f92e65a)) -- add route base class for observable models ([29f7c7a](https://github.com/alexlafroscia/ember-observable/commit/29f7c7a)) +- add decorator for subscribing to an observable ([949039a](https://github.com/alexlafroscia/ember-rx/commit/949039a)) +- add helper subscribes to observable ([f92e65a](https://github.com/alexlafroscia/ember-rx/commit/f92e65a)) +- add route base class for observable models ([29f7c7a](https://github.com/alexlafroscia/ember-rx/commit/29f7c7a)) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2c68869..56b7551 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,25 +2,25 @@ ## Installation -* `git clone ` -* `cd ember-observable` -* `yarn install` +- `git clone ` +- `cd ember-rx` +- `yarn install` ## Linting -* `yarn lint:hbs` -* `yarn lint:js` -* `yarn lint:js --fix` +- `yarn lint:hbs` +- `yarn lint:js` +- `yarn lint:js --fix` ## Running tests -* `ember test` – Runs the test suite on the current Ember version -* `ember test --server` – Runs the test suite in "watch mode" -* `ember try:each` – Runs the test suite against multiple Ember versions +- `ember test` – Runs the test suite on the current Ember version +- `ember test --server` – Runs the test suite in "watch mode" +- `ember try:each` – Runs the test suite against multiple Ember versions ## Running the dummy application -* `ember serve` -* Visit the dummy application at [http://localhost:4200](http://localhost:4200). +- `ember serve` +- Visit the dummy application at [http://localhost:4200](http://localhost:4200). -For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/). \ No newline at end of file +For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/). diff --git a/README.md b/README.md index 6675773..e8bd99d 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,22 @@ -ember-observable -============================================================================== +# ember-rx [Short description of the addon.] +## Compatibility -Compatibility ------------------------------------------------------------------------------- +- Ember.js v2.18 or above +- Ember CLI v2.13 or above -* Ember.js v2.18 or above -* Ember CLI v2.13 or above - - -Installation ------------------------------------------------------------------------------- +## Installation ``` -ember install ember-observable +ember install ember-rx ``` - -Usage ------------------------------------------------------------------------------- +## Usage [Longer description of how to use the addon in apps.] - -License ------------------------------------------------------------------------------- +## License This project is licensed under the [MIT License](LICENSE.md). diff --git a/app/helpers/subscribe.js b/app/helpers/subscribe.js index beeb0d5..dfeb988 100644 --- a/app/helpers/subscribe.js +++ b/app/helpers/subscribe.js @@ -1 +1 @@ -export { default, subscribe } from 'ember-observable/helpers/subscribe'; +export { default, subscribe } from "ember-rx/helpers/subscribe"; diff --git a/package.json b/package.json index 06a67d7..8e5eb3e 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,11 @@ { - "name": "ember-observable", + "name": "ember-rx", "version": "0.2.0", - "description": "The default blueprint for ember-cli addons.", + "description": "RxJS integration for Ember.js", "keywords": [ - "ember-addon" + "ember-addon", + "rxjs", + "observable" ], "repository": "", "license": "MIT", diff --git a/tests/acceptance/observable-model-test.js b/tests/acceptance/observable-model-test.js index 02dc565..cbf5502 100644 --- a/tests/acceptance/observable-model-test.js +++ b/tests/acceptance/observable-model-test.js @@ -2,8 +2,8 @@ import { module, test } from "qunit"; import { visit } from "@ember/test-helpers"; import { setupApplicationTest } from "ember-qunit"; import td from "testdouble"; -import { setupScheduler } from "ember-observable/test-support"; -import { LATER_VALUE_SUBSCRIPTION } from "ember-observable/-private/symbols"; +import { setupScheduler } from "ember-rx/test-support"; +import { LATER_VALUE_SUBSCRIPTION } from "ember-rx/-private/symbols"; import { of, merge } from "rxjs"; import { delay } from "rxjs/operators"; diff --git a/tests/dummy/app/observable-model/route.js b/tests/dummy/app/observable-model/route.js index 397ba18..f014517 100644 --- a/tests/dummy/app/observable-model/route.js +++ b/tests/dummy/app/observable-model/route.js @@ -1,4 +1,4 @@ -import Route from "ember-observable/route"; +import Route from "ember-rx/route"; export default class ObservableModel extends Route { constructor() { diff --git a/tests/integration/helpers/subscribe-test.js b/tests/integration/helpers/subscribe-test.js index 9c1ae13..d70d0e6 100644 --- a/tests/integration/helpers/subscribe-test.js +++ b/tests/integration/helpers/subscribe-test.js @@ -1,6 +1,6 @@ import { module, test } from "qunit"; import { setupRenderingTest } from "ember-qunit"; -import { setupScheduler } from "ember-observable/test-support"; +import { setupScheduler } from "ember-rx/test-support"; import { render, clearRender } from "@ember/test-helpers"; import hbs from "htmlbars-inline-precompile"; import td from "testdouble"; diff --git a/tests/unit/decorators/subscribe-test.js b/tests/unit/decorators/subscribe-test.js index b531d28..7b2b48d 100644 --- a/tests/unit/decorators/subscribe-test.js +++ b/tests/unit/decorators/subscribe-test.js @@ -1,7 +1,7 @@ import { module, test } from "qunit"; -import { setupScheduler } from "ember-observable/test-support"; +import { setupScheduler } from "ember-rx/test-support"; import EmberObject from "@ember/object"; -import { subscribe } from "ember-observable"; +import { subscribe } from "ember-rx"; module("Unit | Decorator | subscribe", function(hooks) { setupScheduler(hooks); diff --git a/tests/unit/observables/from-property-change-test.js b/tests/unit/observables/from-property-change-test.js index fdf2d83..2d4a82a 100644 --- a/tests/unit/observables/from-property-change-test.js +++ b/tests/unit/observables/from-property-change-test.js @@ -1,8 +1,8 @@ import { module, test } from "qunit"; -import { setupScheduler } from "ember-observable/test-support"; +import { setupScheduler } from "ember-rx/test-support"; import td from "testdouble"; import EmberObject from "@ember/object"; -import { fromPropertyChange } from "ember-observable"; +import { fromPropertyChange } from "ember-rx"; class Dummy extends EmberObject { foo = "foo"; diff --git a/tests/unit/utils/first-to-promise-test.js b/tests/unit/utils/first-to-promise-test.js index 1f5ae8e..79392ed 100644 --- a/tests/unit/utils/first-to-promise-test.js +++ b/tests/unit/utils/first-to-promise-test.js @@ -1,7 +1,7 @@ import { module, test } from "qunit"; -import { setupScheduler } from "ember-observable/test-support"; +import { setupScheduler } from "ember-rx/test-support"; import td from "testdouble"; -import { firstToPromise } from "ember-observable"; +import { firstToPromise } from "ember-rx"; import { Promise as RSVPPromise } from "rsvp"; module("Unit | Utils | firstToPromise", function(hooks) {