This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createApi } from 'resticle' | |
| import { httpOptions } from 'resticle-middlewares' | |
| const api = createApi() | |
| api.use(httpOptions({ | |
| Authorization: 'Bearer someSuperSecretToken' | |
| })) | |
| playAroundWithTheApi() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createApi, Schema } from 'resticle' | |
| import { httpOptions } from 'resticle-middlewares' | |
| const api = createApi() | |
| api.use(httpOptions({ | |
| Authorization: 'Bearer someSuperSecretToken' | |
| })) | |
| const Post = api.createModel('post', { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createApi, Schema } from 'resticle' | |
| import { githubHrefResolver } from './middlewares.js' | |
| const api = createApi() | |
| api.use(githubResolver) | |
| const Repo = api.createModel('repo') | |
| const User = api.createModel('user', { | |
| repos: Schema.Collection(Repo) | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import expect from 'expect.js'; | |
| import { Pool } from '../../lib/'; | |
| describe('Pool (functional test)', () => { | |
| const pool = new Pool(); | |
| const jobs = [], promises = []; | |
| const handler = (input, done) => { | |
| done(input); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| andy@ubuntu-vostro:~/workspace/index-vivus$ ./railscmd rails s | |
| Error listing versions of com.google.guava:guava:13.+ using class org.gradle.api.internal.artifacts.repositories.resolver.MavenVersionLister$1. Will attempt an alternate way to list versions. This behaviour has been deprecated and is scheduled to be removed in Gradle 2.0 | |
| Error listing versions of log4j:log4j:1.2.+ using class org.gradle.api.internal.artifacts.repositories.resolver.MavenVersionLister$1. Will attempt an alternate way to list versions. This behaviour has been deprecated and is scheduled to be removed in Gradle 2.0 | |
| FAILURE: Build failed with an exception. | |
| * Where: | |
| Build file '/home/andy/workspace/index-vivus/frontend/build.gradle' line: 40 | |
| * What went wrong: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| andy@ubuntu-vostro:~/workspace/index-vivus$ ./gradlew ruby -PcmdArgs='-S bundle install' | |
| :backend:compileJava UP-TO-DATE | |
| :backend:processResources UP-TO-DATE | |
| :backend:classes UP-TO-DATE | |
| :frontend:ruby | |
| /home/andy/workspace/index-vivus/frontend/ruby/jruby-1.7.8/bin/jruby --1.9 -J-cp /home/andy/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/13.0.1/d6f22b1e60a2f1ef99e22c9f5fde270b2088365/guava-13.0.1.jar:/home/andy/.gradle/caches/modules-2/files-2.1/log4j/log4j/1.2.17/5af35056b4d257e4b64b9e8069c0746e8b08629f/log4j-1.2.17.jar:/home/andy/workspace/index-vivus/backend/build/classes/main:/home/andy/workspace/index-vivus/backend/build/resources/main -S bundle install | |
| Gem::LoadError: Could not find 'bundler' (>= 0) among 0 total gem(s) | |
| to_specs at /home/andy/workspace/index-vivus/frontend/ruby/jruby-1.7.8/lib/ruby/shared/rubygems/dependency.rb:298 | |
| to_spec at /home/andy/workspace/index-vivus/frontend/ruby/jruby-1.7.8/lib/ruby/shared/rubygems/dependency.rb:309 | |
| gem at /home/andy/workspace/index-vivu |
NewerOlder