Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added sails socket connection mutex #27

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
045c940
Fixed multiple quick initial requests causing failed sails connection…
t3rminus Aug 12, 2015
5edf809
- Cleared mutex before completing callbacks
t3rminus Aug 12, 2015
4169ef7
Created bc-ember-data-sails branch, updated name
t3rminus Aug 13, 2015
7df4169
Updated remote to reflect branch
t3rminus Aug 13, 2015
87b5f65
2.0 compatibility
Aug 18, 2015
7f9c0fe
Ember-data 2.0 compatibility
Aug 18, 2015
45b99fa
updated sails-socket to work with the new pushData function
Aug 19, 2015
3612045
Updated pushPayload to use the new ember-data 2.0 method
Aug 19, 2015
da97112
reset packages.json
Aug 19, 2015
d3233f5
Merge commit '87b5f655855a9788bb44f2e95c675d09abd4f0b8' into bc-ember…
Sep 9, 2015
f1108a1
Merge commit 'bc9c9849766b45fcba4c45f93196d61c347bd5b7'
t3rminus Nov 24, 2015
e51db60
Merge branch 'master' into bc-ember-data-sails
t3rminus Nov 24, 2015
5f8360c
updated push function to handle arrays
Nov 24, 2015
977e2d3
[FIX] Ember.String.fmt deprecations
Nov 24, 2015
4dbeec8
Merge commit '977e2d3047840f6366fe460ea776c702161652f5'
t3rminus Nov 24, 2015
ad1b427
Revert package.son
t3rminus Nov 24, 2015
438b943
Allowed listeners to be added even if you don't need a subscribeEndpo…
Nov 25, 2015
ab3ef47
Use the `ember-data` initializer as a target instead of the soon to b…
bmac Dec 12, 2016
f85faa9
Merge pull request #1 from bmac/patch-2
Feb 15, 2017
4717aa8
[FIX] deprecation warnings for ember 2.0
mukk85 Feb 21, 2017
d103bf4
fixed tests
mukk85 Feb 21, 2017
04ec51d
Updated ember
mukk85 Feb 21, 2017
2f0f33a
bumped version
mukk85 Feb 21, 2017
3a93bc8
code format fixes
mukk85 Mar 1, 2017
bf698ce
updated to match new ember-embedded-records mixin syntax
mukk85 Apr 8, 2017
e54cea4
[FIX] reconnect error
mukk85 May 5, 2017
473133f
removed deprecated store.findById
mukk85 Jun 15, 2017
74ecd5c
[FIX] Hanging on re-connect, because events weren't properly being re…
t3rminus Aug 3, 2017
7fa0b00
[FIX] Added link to repo
t3rminus Aug 3, 2017
f29e1ed
[IMP] removed deprecation warnings
mukk85 Apr 5, 2018
63c710e
[FIX] updated warning and debug messages to use new ember style
mukk85 Sep 5, 2018
33decf9
[UPD] Updated to latest ember-cli
mukk85 Sep 5, 2018
5e1d680
version bump
mukk85 Sep 5, 2018
3b42605
[FIX] debug and info messages
mukk85 Sep 5, 2018
7f1fce2
fix code style
mukk85 Oct 3, 2018
a3635d9
updating ember-cli
mukk85 Oct 3, 2018
047dc43
[NEW] renamed package and added to namespace
mukk85 Oct 3, 2018
eb0a14b
[FIX] updated missing namespaces
mukk85 Oct 3, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# unconventional js
/blueprints/*/files/
/vendor/

# compiled output
/dist/
/tmp/

# dependencies
/bower_components/

# misc
/coverage/

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
51 changes: 51 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module'
},
plugins: [
'ember'
],
extends: [
'eslint:recommended',
'plugin:ember/recommended'
],
env: {
browser: true
},
rules: {
},
overrides: [
// node files
{
files: [
'.template-lintrc.js',
'ember-cli-build.js',
'index.js',
'testem.js',
'blueprints/*/index.js',
'config/**/*.js',
'tests/dummy/config/**/*.js'
],
excludedFiles: [
'addon/**',
'addon-test-support/**',
'app/**',
'tests/dummy/app/**'
],
parserOptions: {
sourceType: 'script',
ecmaVersion: 2015
},
env: {
browser: false,
node: true
},
plugins: ['node'],
rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
// add your custom rules and overrides for node files here
})
}
]
};
23 changes: 14 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
# See https://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/dist/
/tmp/

# dependencies
/node_modules
/bower_components
/bower_components/
/node_modules/

# misc
/.sass-cache
/connect.lock
/coverage/*
/coverage/
/libpeerconnection.log
npm-debug.log
testem.log
/.idea
/npm-debug.log*
/testem.log
/yarn-error.log

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
41 changes: 27 additions & 14 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
bower_components/
tests/
tmp/
# compiled output
/dist/
/tmp/

.bowerrc
.editorconfig
.ember-cli
.travis.yml
.npmignore
**/.gitkeep
bower.json
Brocfile.js
testem.json
.idea/
dist/
# dependencies
/bower_components/

# misc
/.bowerrc
/.editorconfig
/.ember-cli
/.eslintignore
/.eslintrc.js
/.gitignore
/.watchmanconfig
/.travis.yml
/bower.json
/config/ember-try.js
/ember-cli-build.js
/testem.js
/tests/
/yarn.lock
.gitkeep

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
5 changes: 5 additions & 0 deletions .template-lintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = {
extends: 'recommended'
};
52 changes: 42 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,54 @@
---
language: node_js
node_js:
- "0.12"
# we recommend testing addons with the same minimum supported node version as Ember CLI
# so that your addon works for all apps
- "6"

sudo: false
dist: trusty

addons:
chrome: stable

cache:
directories:
- node_modules
- $HOME/.npm

before_install:
- "npm config set spin false"
- "npm install -g npm@^2"
env:
global:
# See https://git.io/vdao3 for details.
- JOBS=1

jobs:
fail_fast: true
allow_failures:
- env: EMBER_TRY_SCENARIO=ember-canary

include:
# runs linting and tests with current locked deps

install:
- npm install -g bower
- npm install
- bower install
- stage: "Tests"
name: "Tests"
script:
- npm run lint:hbs
- npm run lint:js
- npm test

# we recommend new addons test the current and previous LTS
# as well as latest stable release (bonus points to beta/canary)
- stage: "Additional Tests"
env: EMBER_TRY_SCENARIO=ember-lts-2.16
- env: EMBER_TRY_SCENARIO=ember-lts-2.18
- env: EMBER_TRY_SCENARIO=ember-release
- env: EMBER_TRY_SCENARIO=ember-beta
- env: EMBER_TRY_SCENARIO=ember-canary
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery

before_install:
- npm config set spin false
- npm install -g npm@4
- npm --version

script:
- npm test
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
3 changes: 3 additions & 0 deletions .watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignore_dirs": ["tmp", "dist"]
}
21 changes: 0 additions & 21 deletions Brocfile.js

This file was deleted.

14 changes: 14 additions & 0 deletions MODULE_REPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Module Report
### Unknown Global

**Global**: `Ember.Logger`

**Location**: `addon/mixins/with-logger.js` at line 13

```js

LEVELS.forEach(function (level) {
methods[level] = bind(Ember.Logger, levelMap[level] || level, '[ed-sails]');
});

```
54 changes: 54 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<<<<<<< HEAD
# ember-data-sails

Adapters and tools for Ember to work well with Sails. Provides `SailsSocketService`, `SailsRESTAdapter`, `SailsSocketAdapter`, `SailsSerializer` and extends the store so that you can subscribe for records while pushing a payload.
Expand Down Expand Up @@ -173,3 +174,56 @@ properties of the adapter to do a request on the API.
_While this was first inspired from [ember-data-sails-adapter](https://github.com/bmac/ember-data-sails-adapter), it has now been fully re-written, with a totally different approach, and, as of the day this was written, with more features._

* <img src="https://s.gravatar.com/avatar/950590a0d4bc96f4a239cac955112eeb?s=24" valign="absmiddle"> [Huafu Gandon](http://huafu.github.com) - [@huafu_g](https://twitter.com/huafu_g)
=======
my-addon
==============================================================================

[Short description of the addon.]

Installation
------------------------------------------------------------------------------

```
ember install my-addon
```


Usage
------------------------------------------------------------------------------

[Longer description of how to use the addon in apps.]


Contributing
------------------------------------------------------------------------------

### Installation

* `git clone <repository-url>`
* `cd my-addon`
* `npm install`

### Linting

* `npm run lint:hbs`
* `npm run lint:js`
* `npm run 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

### Running the dummy application

* `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/).

License
------------------------------------------------------------------------------

This project is licensed under the [MIT License](LICENSE.md).
>>>>>>> da52bfe... message
Loading