Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Throw a custom message when not connected #49

Open
wants to merge 668 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
668 commits
Select commit Hold shift + click to select a range
33510da
Fix norethink status check
lbguilherme Nov 14, 2017
43d0375
Implement type assertions for tests
lbguilherme Nov 15, 2017
8dee0d2
Remove dead code
lbguilherme Nov 15, 2017
34fdc0f
Add comment to ignore for coverage
lbguilherme Nov 15, 2017
11d5650
fix to locale from dateformat
Nov 16, 2017
8abc59c
trying to fix calendar
Nov 16, 2017
aeb080f
roll back
Nov 16, 2017
868f017
trying to fix dateformat
Nov 16, 2017
dc7ccac
update android target
lbguilherme Nov 19, 2017
57c6dcd
Update repositories
lbguilherme Nov 19, 2017
a7aef3b
Add google repo
lbguilherme Nov 19, 2017
2e12b6e
Implement spread inheritance!
lbguilherme Nov 19, 2017
31273dc
feat(syntax/lexer, spec/lexer_spec): initial test and implementation …
eowfenth Nov 22, 2017
ed17057
removing bytes validation
Nov 22, 2017
c974ca1
prettify
Nov 22, 2017
d20920b
feat(lexer): add case where multicomment doesn't have a closed bound
eowfenth Nov 22, 2017
df6df7d
feat(spec/lexer_spec): add extensive tests to verify multi-line commets
eowfenth Nov 22, 2017
3b6d1c0
feat(vscode/extension): add multiline comment syntax highlight
eowfenth Nov 22, 2017
b4c0768
project: bump version to 0.0.9
eowfenth Nov 22, 2017
cceaef8
Merge branch 'master' into feature/multiline_comment
eowfenth Nov 22, 2017
853631c
test(lexer_spec): add more cases and adjust order
eowfenth Nov 23, 2017
1d345af
feat(lexer): adjust cases to exceptions and sequences of asterisks
eowfenth Nov 23, 2017
8427de5
Merge branch 'feature/multiline_comment' into 'master'
lbguilherme Nov 23, 2017
8ddab2e
test(lexer_spec): add /*/ case to comment block test
eowfenth Nov 23, 2017
d1f834d
fix(lexer): adjust algorithm to case where characters are as /*/
eowfenth Nov 23, 2017
7229875
Merge branch 'master' into feature/multiline_comment
eowfenth Nov 23, 2017
2638dbd
Add peek_next_char
lbguilherme Nov 23, 2017
91aadbd
fix(lexer): adjust block comment to not break multiple asterisks is t…
eowfenth Nov 27, 2017
9077f37
fix(lexer): fix block comment when '/**x/' case
eowfenth Nov 27, 2017
33835df
test(lexer_spec): add more cases
eowfenth Nov 27, 2017
d373ff3
fix(lexer): adjust position in comments when newline cases
eowfenth Nov 27, 2017
5612eae
test(lexer_spec): add test case when single line comment has a new line
eowfenth Nov 27, 2017
e0da76f
refactor(lexer): adjust multi-line comment to be more concise
eowfenth Nov 27, 2017
d3de564
test(lexer_spec): add more test cases
eowfenth Nov 27, 2017
ea32cb5
Fix keeping deviceId on lack of rethinkdb
lbguilherme Nov 27, 2017
8089461
Fix format
lbguilherme Nov 27, 2017
b3c5302
return DataRequest as @discardableResult in target swift
Nov 28, 2017
65ece18
exit 1 on error
lbguilherme Nov 29, 2017
9a8e324
feat(lexer): adjust character position in multiline comments
eowfenth Nov 29, 2017
f3794e6
Merge branch 'master' into feature/multiline_comment
eowfenth Nov 29, 2017
d268252
Fix support for device id on safari mobile icognito
lbguilherme Nov 30, 2017
1c9a826
Merge branch 'master' of git.cubos.io:cubos/sdkgen2
lbguilherme Nov 30, 2017
9c3a482
Fix var type
lbguilherme Nov 30, 2017
820c7e1
generate fingerprint for ios target;
Nov 30, 2017
4fea5dc
adjust finger print
Dec 1, 2017
0fcf9d5
Add opt-in strict mode
lbguilherme Dec 4, 2017
ff60202
Fix default options
lbguilherme Dec 4, 2017
3732d00
Highlight for true/false
lbguilherme Dec 4, 2017
563b0ea
Fix wrong type
lbguilherme Dec 4, 2017
18a146a
Fix wrong variable
lbguilherme Dec 4, 2017
9434c7e
export functions to convert to json
lbguilherme Dec 6, 2017
ff8868f
set null fields to null on java sdkgen
lbguilherme Dec 6, 2017
a747e89
fix syntax
lbguilherme Dec 6, 2017
157869b
Increase timeout
lbguilherme Dec 11, 2017
40d1efa
iOS: support nullable enums
lbguilherme Dec 11, 2017
e802187
Fix wrong type restriction on optionaltype
lbguilherme Dec 11, 2017
2fbfe6a
Merge branch 'fingerprint-ios' into 'master'
Dec 12, 2017
07c8a4d
update sdkgen2 to swift4
Dec 13, 2017
10d66a4
java stuff
lbguilherme Dec 13, 2017
5b3288d
Merge branch 'master' of git.cubos.io:cubos/sdkgen2
lbguilherme Dec 13, 2017
59abec2
added fromJson
davidcpires Dec 19, 2017
ab619c6
changed name
davidcpires Dec 19, 2017
a3b4671
fix json
davidcpires Dec 19, 2017
189dd59
fix
davidcpires Dec 19, 2017
ebb4ef8
Crystal 0.24.1
lbguilherme Dec 26, 2017
320a13d
Include sentry and debugging with localtunnel
lbguilherme Jan 3, 2018
caad514
Fix build error and make port optional
lbguilherme Jan 3, 2018
e3c8d5f
implement setting url
lbguilherme Jan 7, 2018
e775c87
fix type
lbguilherme Jan 7, 2018
2272b48
fix debugging
lbguilherme Jan 7, 2018
a21064a
Add lastActiveAt
lbguilherme Jan 11, 2018
5e95ca5
Detect more name conflicts
lbguilherme Jan 12, 2018
e7275a1
added enum value to enum in typescript
Jan 16, 2018
136044c
rollback from enum change
Jan 16, 2018
1a9b7cd
improve identation
lbguilherme Jan 19, 2018
0d88db1
fix missing mangle
lbguilherme Jan 19, 2018
1deabf7
Add another missing mangle
lbguilherme Jan 19, 2018
f04ae21
a few more mangle
lbguilherme Jan 19, 2018
ca6a2b0
$syntheticDefaultImports
lbguilherme Jan 25, 2018
f63fa85
fix to_s
lbguilherme Jan 25, 2018
94ae49c
import r
lbguilherme Jan 25, 2018
0ad88d2
fix invalid imports
lbguilherme Jan 26, 2018
6852e95
Fix Raven for ES6
lbguilherme Jan 27, 2018
f34f8d3
add check for header sent on error
lbguilherme Jan 29, 2018
5a9a3e1
moment import
lbguilherme Jan 29, 2018
a2611e6
change response status in case of error
lbguilherme Feb 6, 2018
f40cc0a
fix build
lbguilherme Feb 6, 2018
4837c14
Fix android target ignoring status != 200
lbguilherme Feb 6, 2018
e80bc4b
simplify toBeTypeOf
lbguilherme Feb 6, 2018
b89c409
setHttpClientInterceptor
lbguilherme Feb 9, 2018
5221824
missing semicolon
lbguilherme Feb 9, 2018
4b66e43
semicolon again
lbguilherme Feb 9, 2018
f79319a
proper null check
lbguilherme Feb 9, 2018
1b4733f
addNetworkInterceptor
lbguilherme Feb 9, 2018
0154922
improve strict check description
lbguilherme Feb 9, 2018
2bf6766
fix build
lbguilherme Feb 9, 2018
9a6c092
Adding description and todos
dygufa Feb 11, 2018
3994c6f
Create CODE_OF_CONDUCT.md
lbguilherme Feb 12, 2018
2207b8c
MIT License
lbguilherme Feb 12, 2018
729aaf5
Merge pull request #3 from cubos/mit
dygufa Feb 12, 2018
c42e58a
Add initial travis ci
lbguilherme Mar 7, 2018
9b65373
Travis: skip_cleanup: true
lbguilherme Mar 7, 2018
516da7f
Add Travis badge
lbguilherme Mar 7, 2018
28baf87
Travis: one liner deploy
lbguilherme Mar 7, 2018
cd83ea5
Rename executable to "sdkgen"
lbguilherme Mar 7, 2018
2691a4f
Create hooks for the server. Isolate database specific parts there.
lbguilherme Mar 9, 2018
4c9658f
Fix style
lbguilherme Mar 9, 2018
901a8c1
Add getApiUrl for android
lbguilherme Mar 9, 2018
d7daf8b
error is not always a Error object
lbguilherme Mar 12, 2018
d3576b1
target java android - call callback when 502 response
danielpsantiago Mar 14, 2018
8d99060
Merge branch 'master' of https://github.com/cubos/sdkgen
danielpsantiago Mar 14, 2018
b4dc79d
fix error message when 502
danielpsantiago Mar 14, 2018
65c4dad
unfix 502
lbguilherme Mar 15, 2018
1fb8812
fix 502
lbguilherme Mar 16, 2018
747e375
Add getApiUrl
lbguilherme Mar 16, 2018
1ab48d2
Missing semicolon
lbguilherme Mar 16, 2018
ca277f1
Fix for e being string
lbguilherme Mar 21, 2018
0f7f82a
adding short How to use it section
dygufa Apr 1, 2018
8c86820
adding typescript_nodeclient
dygufa Apr 2, 2018
2c98111
Merge pull request #15 from cubos/features/target-node
dygufa Apr 2, 2018
59a6da6
refactor: Remove moment as a depedency from generated packages
vhfmag Apr 2, 2018
7e58a1b
feat: Implement date & date time encoding/decoding without moment
vhfmag Apr 2, 2018
87973f0
refactor: Stop importing moment
vhfmag Apr 2, 2018
a70aee8
refactor: Reimplement server-side date logging without moment
vhfmag Apr 2, 2018
7b3507c
fix: Handle timezone on DateTime encoding & decoding
vhfmag Apr 3, 2018
65f3054
Merge pull request #17 from cubos/remove-moment
lbguilherme Apr 3, 2018
5773da4
fix: Better formatting for date logs
vhfmag Apr 6, 2018
078b1eb
fix: Date.getMonth is 0-based, so add 1 for logging
vhfmag Apr 6, 2018
a31a4ad
Merge pull request #19 from cubos/feature/fix-date-log
lbguilherme Apr 8, 2018
bdc139e
Reduce connectTimeout for android
lbguilherme Apr 9, 2018
b763fa7
adding setBaseUrl method to web target
dygufa Apr 17, 2018
acef807
adding setBaseUrl to nodeclient target
dygufa Apr 17, 2018
eca82a0
added .copy property for structures
Apr 30, 2018
5ddeada
unsafe unwrap enums when generating copy
May 1, 2018
245fce3
added enum extension to make enum iterable
May 1, 2018
39ac448
fix email regex
lbguilherme May 1, 2018
1461546
added displayableValue variable as overridable for the iOS developer
May 1, 2018
e3d23be
added variable for every spread type
May 2, 2018
585d22d
Merge pull request #22 from cubos/target-ios-improvements
lbguilherme May 2, 2018
b74edb8
added missing comma in spreads initialization
May 3, 2018
6d243c6
Merge pull request #23 from cubos/target-ios-improvements
lbguilherme May 3, 2018
997c698
Modify nodeclient to expose a client
lbguilherme May 7, 2018
442b1bd
ApiClient constructor: take useStaging argument
lbguilherme May 7, 2018
004c30a
improve generated typescript code style
lbguilherme May 7, 2018
874e392
Fix for node:10
lbguilherme May 9, 2018
2c58556
Fix decoding type date
lbguilherme May 9, 2018
6cc63cc
up
joshuapassos May 14, 2018
736904a
Update typescript_nodeclient.cr
joshuapassos May 14, 2018
3567d84
Update typescript_nodeclient.cr
joshuapassos May 14, 2018
546d94e
Merge pull request #27 from joshuapassos/master
lbguilherme May 14, 2018
db07745
fixing typescript_nodeclient format by running crystal tool format
dygufa May 14, 2018
96b9fd5
android: throw 502 error on the correct thread
lbguilherme May 17, 2018
67c9dcc
feature(ios-date-optimization)
victtavares May 23, 2018
f5803e4
Merge pull request #30 from cubos/feature/ios-date-optmization
lbguilherme May 24, 2018
fc0cc9f
datetime convertion outside Internal static class in android target, …
danielpsantiago May 24, 2018
9ca40d4
datetime convertion outside Internal static class in android target, …
danielpsantiago May 24, 2018
c90e623
date time conversion - target java fix
danielpsantiago May 24, 2018
ebb3c42
fix 502 multiple errors in android response
davidcpires Jun 1, 2018
0ea7865
accept preencoded datetime
lbguilherme Jun 13, 2018
1ad41ff
Fix missing closing parens
lbguilherme Jun 13, 2018
73fc617
Fix datetime encoding
lbguilherme Jun 13, 2018
626ff80
remove extra paren closing
lbguilherme Jun 13, 2018
31c9e69
fix datetime again
lbguilherme Jun 13, 2018
0c9c737
Allow datetime "Z"
lbguilherme Jun 14, 2018
adb209e
Add extra as any
lbguilherme Jun 14, 2018
3b2dd27
Allow 2-digit milliseconds
lbguilherme Jun 14, 2018
9e1a3f2
fix typo
lbguilherme Jun 14, 2018
fdc44ab
Support for Crystal 0.25.0
lbguilherme Jun 17, 2018
e9e1545
crystal tool format
lbguilherme Jun 17, 2018
b8a901b
Fix Multiple Function Declaration
Jun 18, 2018
034ce3f
Better name to operations names and add forgotten declaration
icaaro Jun 19, 2018
5083dc9
Formating Code with crystal tool format
icaaro Jun 19, 2018
6ee25a7
fix date encode decode, user timezone
danielpsantiago Jun 21, 2018
1ed16cc
adding logo
dygufa Jun 21, 2018
7acecd7
Merge branch 'master' of github.com:cubos/sdkgen
dygufa Jun 21, 2018
8f04546
implemented possibility to cache functions
davidcpires Jun 21, 2018
b902651
fix missing \
davidcpires Jun 21, 2018
75d390b
fix build
davidcpires Jun 21, 2018
95ea936
fix build
davidcpires Jun 21, 2018
c3368b8
Merge pull request #32 from icaaro/fix_multiple_function_declaration
lbguilherme Jun 21, 2018
95c2795
Merge pull request #33 from cubos/feature/cache
lbguilherme Jun 21, 2018
85fcf9e
fix hash
davidcpires Jun 21, 2018
0bbfc72
Check duplicated function by pretty_name
lbguilherme Jun 21, 2018
96b2a0d
fix expirationSeconds in cache
davidcpires Jun 21, 2018
c891f71
logs
davidcpires Jun 21, 2018
aadda3d
added possibility to expiration date to be null
davidcpires Jun 22, 2018
dba2559
added possibility to expiration date to be null
davidcpires Jun 22, 2018
0cd4172
Added function name and decoded key to set cache (#34)
davidcpires Jun 22, 2018
d37aba8
only push image to registry when a tag is present
dygufa Jul 4, 2018
d2db071
fixing typo on env variable importation
dygufa Jul 4, 2018
d0859a6
adding quotation marks for the env variable to get them parsed by travis
dygufa Jul 4, 2018
427e090
verifing TRAVIS_TAG existence before build
dygufa Jul 4, 2018
7b579d0
adding raw docusaurus
dygufa Jul 4, 2018
da70b1b
implementing ci & cd for docusaurus
dygufa Jul 4, 2018
0b06739
setting title and tagline for docusaurus
dygufa Jul 4, 2018
e8ab932
fix datetime regex
lbguilherme Jul 17, 2018
01261c8
make local tunnel optional
lbguilherme Jul 18, 2018
b8d9de5
WEB: Allow setting baseurl to domain without http
lbguilherme Jul 18, 2018
6c3669b
support returning a string for date as well
lbguilherme Jul 18, 2018
06941d9
Fix deploy script
lbguilherme Jul 18, 2018
3759724
Fix build script
lbguilherme Jul 18, 2018
9809ee1
Add more fields to devicedata on node client
lbguilherme Jul 20, 2018
6c985be
accept datetime without milliseconds
lbguilherme Jul 20, 2018
63b1792
Add fingerprint to nodeclient
lbguilherme Jul 20, 2018
cadb9d5
changed typescript encode to ignore timezone offset
Aug 16, 2018
185b2ae
Fix date as argument
lbguilherme Aug 22, 2018
d2a6c16
[Java Android Target] handle timeout excpetion on call in order to su…
danielpsantiago Sep 11, 2018
b1d65aa
fix (swift-warning) (#36)
victtavares Sep 21, 2018
a4866f5
Add tags per version with branch name (#37)
vhfmag Sep 24, 2018
37c1f37
removec enumCollection and added caseiterable to enums
tironiigor Sep 26, 2018
7766026
Merge pull request #38 from cubos/fix-enum-iterable
victtavares Sep 26, 2018
26ff9f3
Take into account syntheticDefaultImports on target test
lbguilherme Nov 2, 2018
46cd6db
fix parse date when is string
jandersonss Nov 28, 2018
8c8f7bc
Revert "fix parse date when is string"
lbguilherme Nov 29, 2018
7d0c755
fix parse date when is string
jandersonss Nov 28, 2018
17cf7a0
fixeded crystal docker image in 0.26.1
jandersonss Nov 29, 2018
038a622
always build docker image
lbguilherme Nov 29, 2018
409fe51
Upgrade to Crystal 0.27.0
lbguilherme Dec 2, 2018
eb6c993
improve Dockerfile
lbguilherme Dec 2, 2018
f9fd300
adding flag retryRequest
dygufa Dec 27, 2018
9b4225c
create alternative build_and_publish to able change API version
joshuapassos Jan 7, 2019
29ce12a
change travis to create deploy to build_and_publish
joshuapassos Jan 7, 2019
66c8738
Merge pull request #46 from joshuapassos/master
dygufa Jan 8, 2019
ebd4b19
updating improvements on sdkgen's tooling
dygufa Jan 8, 2019
b91c6c7
fixing indentation
dygufa Jan 8, 2019
62544ee
fix deploy
joshuapassos Jan 8, 2019
9d354c7
fix deploy script
joshuapassos Jan 8, 2019
9f10c70
fix script
joshuapassos Jan 8, 2019
0913f07
fix deploy script
joshuapassos Jan 8, 2019
8324dc9
fix deploy script
joshuapassos Jan 8, 2019
ac3ceed
fix deploy script
joshuapassos Jan 9, 2019
efff8f4
deploy rollback
joshuapassos Jan 14, 2019
14e1ce9
look for user's ip on x-fowarded-for
dygufa Jan 21, 2019
453abb0
updating hash algorithm for localtunnel subdomain generation
dygufa Jan 24, 2019
6559c61
feature - change sdkgen to work wih mappable. (#45)
victtavares Feb 22, 2019
bf250a0
fix (name-conflict)
victtavares Mar 5, 2019
9b2d5a6
fix (swift-name-conflict)`
victtavares Mar 5, 2019
cb5031d
fix (namespacing)
victtavares Mar 5, 2019
0210bc1
add setHttpClient method on android target
danielpsantiago Mar 17, 2019
abd60e4
Add binaries to gitignore
dgadelha Mar 18, 2019
9a77b2d
fix timeout on android target
danielpsantiago Mar 18, 2019
a1e52b3
fix timout based on retries count on android taget
danielpsantiago Mar 18, 2019
365133e
schdule call retry at fixed rate on android target
danielpsantiago Mar 18, 2019
a863215
fix typo
danielpsantiago Mar 18, 2019
a3888c0
fix typo
danielpsantiago Mar 18, 2019
25e3901
remove useless useRethink flag from android target
danielpsantiago Mar 19, 2019
9b5d411
Implement timezone in targets (#47)
dgadelha Mar 19, 2019
2223f18
Feature/swift testable (#48)
victtavares Mar 19, 2019
d96ae0d
Add 'in' to Java reserved keywords
dgadelha Mar 31, 2019
79ed28a
Throw a custom message when not connected
danilomartinelli Apr 3, 2019
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: 17 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
test-server
sdkgen2

.DS_Store

node_modules

lib/core/metadata.js
lib/core/MetadataBlog.js

website/translated_docs
website/build/
website/yarn.lock
website/node_modules
website/i18n/*

/sdkgen
/sdkgen.dwarf
34 changes: 34 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
sudo: required

language: node_js
node_js:
- '8'

services:
- docker

script:
- git config --global user.name "${GH_NAME}"
- git config --global user.email "${GH_EMAIL}"
- echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
- cd website
- yarn install && GIT_USER="${GH_NAME}" yarn run publish-gh-pages
- cd ..
- if [[ "$TRAVIS_TAG" ]] ; then
docker image build . -t cubos/sdkgen -t cubos/sdkgen:$TRAVIS_TAG;
docker image build ./target-node -t cubos/sdkgen/target-node -t cubos/sdkgen/target-node:$TRAVIS_TAG;
docker image build ./target-web -t cubos/sdkgen/target-web -t cubos/sdkgen/target-web:$TRAVIS_TAG;
docker image build ./target-android -t cubos/sdkgen/target-android -t cubos/sdkgen/target-android:$TRAVIS_TAG;
docker image build ./target-node -t cubos/sdkgen/target-node -t cubos/sdkgen/target-node:$TRAVIS_TAG;
else
docker image build .;
fi

deploy:
provider: script
skip_cleanup: true
script:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" && docker push cubos/sdkgen:$TRAVIS_TAG
on:
branch: master
tags: true
46 changes: 46 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at contact@cubos.io. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM crystallang/crystal
FROM crystallang/crystal:0.27.0
ADD . /tmp/
WORKDIR /tmp
RUN crystal tool format --check
RUN crystal spec
RUN crystal build main.cr -o sdkgen

FROM crystallang/crystal:0.27.0
CMD ["bash"]
WORKDIR /root
ADD *.cr /tmp/
RUN crystal build /tmp/main.cr -o sdkgen2 && rm /tmp/*.cr
RUN cp sdkgen2 /usr/bin
COPY --from=0 /tmp/sdkgen /usr/bin
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Cubos

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# sdkgen

![Zé Polvinho](assets/ze_polvinho_sdkgen_small.png)

The sdkgen is a tool that aims on solving client-server communication and data layout sharing between server, web, android and ios using a description language also called sdkgen.

[![Build Status](https://travis-ci.org/cubos/sdkgen.svg?branch=master)](https://travis-ci.org/cubos/sdkgen)

## How to use it

`crystal run main.cr -- api.sdkgen -o api.ts -t typescript_nodeserver`


## TODO

- [ ] Improve README
- [ ] Create and host documentation page
- [ ] Make it database neutral
- [x] Move associated tooling related to package publishing to travis
Binary file added assets/ze_polvinho_sdkgen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ze_polvinho_sdkgen_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
108 changes: 0 additions & 108 deletions ast_to_s.cr

This file was deleted.

29 changes: 29 additions & 0 deletions docs/doc1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
id: doc1
title: Latin-ish
sidebar_label: Example Page
---

Check the [documentation](https://docusaurus.io) for how to use Docusaurus.

## Lorem

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus elementum massa eget nulla aliquet sagittis. Proin odio tortor, vulputate ut odio in, ultrices ultricies augue. Cras ornare ultrices lorem malesuada iaculis. Etiam sit amet libero tempor, pulvinar mauris sed, sollicitudin sapien.

## Mauris In Code

```
Mauris vestibulum ullamcorper nibh, ut semper purus pulvinar ut. Donec volutpat orci sit amet mauris malesuada, non pulvinar augue aliquam. Vestibulum ultricies at urna ut suscipit. Morbi iaculis, erat at imperdiet semper, ipsum nulla sodales erat, eget tincidunt justo dui quis justo. Pellentesque dictum bibendum diam at aliquet. Sed pulvinar, dolor quis finibus ornare, eros odio facilisis erat, eu rhoncus nunc dui sed ex. Nunc gravida dui massa, sed ornare arcu tincidunt sit amet. Maecenas efficitur sapien neque, a laoreet libero feugiat ut.
```

## Nulla

Nulla facilisi. Maecenas sodales nec purus eget posuere. Sed sapien quam, pretium a risus in, porttitor dapibus erat. Sed sit amet fringilla ipsum, eget iaculis augue. Integer sollicitudin tortor quis ultricies aliquam. Suspendisse fringilla nunc in tellus cursus, at placerat tellus scelerisque. Sed tempus elit a sollicitudin rhoncus. Nulla facilisi. Morbi nec dolor dolor. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Cras et aliquet lectus. Pellentesque sit amet eros nisi. Quisque ac sapien in sapien congue accumsan. Nullam in posuere ante. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Proin lacinia leo a nibh fringilla pharetra.

## Orci

Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin venenatis lectus dui, vel ultrices ante bibendum hendrerit. Aenean egestas feugiat dui id hendrerit. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur in tellus laoreet, eleifend nunc id, viverra leo. Proin vulputate non dolor vel vulputate. Curabitur pretium lobortis felis, sit amet finibus lorem suscipit ut. Sed non mollis risus. Duis sagittis, mi in euismod tincidunt, nunc mauris vestibulum urna, at euismod est elit quis erat. Phasellus accumsan vitae neque eu placerat. In elementum arcu nec tellus imperdiet, eget maximus nulla sodales. Curabitur eu sapien eget nisl sodales fermentum.

## Phasellus

Phasellus pulvinar ex id commodo imperdiet. Praesent odio nibh, sollicitudin sit amet faucibus id, placerat at metus. Donec vitae eros vitae tortor hendrerit finibus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Quisque vitae purus dolor. Duis suscipit ac nulla et finibus. Phasellus ac sem sed dui dictum gravida. Phasellus eleifend vestibulum facilisis. Integer pharetra nec enim vitae mattis. Duis auctor, lectus quis condimentum bibendum, nunc dolor aliquam massa, id bibendum orci velit quis magna. Ut volutpat nulla nunc, sed interdum magna condimentum non. Sed urna metus, scelerisque vitae consectetur a, feugiat quis magna. Donec dignissim ornare nisl, eget tempor risus malesuada quis.
7 changes: 7 additions & 0 deletions docs/doc2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
id: doc2
title: document number 2
---

This is a link to [another document.](doc3.md)
This is a link to an [external page.](http://www.example.com)
13 changes: 13 additions & 0 deletions docs/doc3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
id: doc3
title: This is document number 3
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In ac euismod odio, eu consequat dui. Nullam molestie consectetur risus id imperdiet. Proin sodales ornare turpis, non mollis massa ultricies id. Nam at nibh scelerisque, feugiat ante non, dapibus tortor. Vivamus volutpat diam quis tellus elementum bibendum. Praesent semper gravida velit quis aliquam. Etiam in cursus neque. Nam lectus ligula, malesuada et mauris a, bibendum faucibus mi. Phasellus ut interdum felis. Phasellus in odio pulvinar, porttitor urna eget, fringilla lectus. Aliquam sollicitudin est eros. Mauris consectetur quam vitae mauris interdum hendrerit. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Duis et egestas libero, imperdiet faucibus ipsum. Sed posuere eget urna vel feugiat. Vivamus a arcu sagittis, fermentum urna dapibus, congue lectus. Fusce vulputate porttitor nisl, ac cursus elit volutpat vitae. Nullam vitae ipsum egestas, convallis quam non, porta nibh. Morbi gravida erat nec neque bibendum, eu pellentesque velit posuere. Fusce aliquam erat eu massa eleifend tristique.

Sed consequat sollicitudin ipsum eget tempus. Integer a aliquet velit. In justo nibh, pellentesque non suscipit eget, gravida vel lacus. Donec odio ante, malesuada in massa quis, pharetra tristique ligula. Donec eros est, tristique eget finibus quis, semper non nisl. Vivamus et elit nec enim ornare placerat. Sed posuere odio a elit cursus sagittis.

Phasellus feugiat purus eu tortor ultrices finibus. Ut libero nibh, lobortis et libero nec, dapibus posuere eros. Sed sagittis euismod justo at consectetur. Nulla finibus libero placerat, cursus sapien at, eleifend ligula. Vivamus elit nisl, hendrerit ac nibh eu, ultrices tempus dui. Nam tellus neque, commodo non rhoncus eu, gravida in risus. Nullam id iaculis tortor.

Nullam at odio in sem varius tempor sit amet vel lorem. Etiam eu hendrerit nisl. Fusce nibh mauris, vulputate sit amet ex vitae, congue rhoncus nisl. Sed eget tellus purus. Nullam tempus commodo erat ut tristique. Cras accumsan massa sit amet justo consequat eleifend. Integer scelerisque vitae tellus id consectetur.
6 changes: 6 additions & 0 deletions docs/exampledoc4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: doc4
title: Other Document
---

this is another document
6 changes: 6 additions & 0 deletions docs/exampledoc5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: doc5
title: Fifth Document
---

Another one
13 changes: 13 additions & 0 deletions ext/vscode/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// A launch configuration that launches the extension inside a new window
{
"version": "0.1.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ]
}
]
}
Empty file added ext/vscode/CHANGELOG.md
Empty file.
1 change: 1 addition & 0 deletions ext/vscode/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Language support for the .sdkgen description language
31 changes: 31 additions & 0 deletions ext/vscode/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"comments": {
// symbol used for single line comment. Remove this entry if your language does not support line comments
"lineComment": "//",
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
"blockComment": [ "/*", "*/" ]
},
// symbols used as brackets
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
],
// symbols that that can be used to surround a selection
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"],
["/*", "*/"]
]
}
Loading