Skip to content

Commit

Permalink
Add enums support (#25)
Browse files Browse the repository at this point in the history
* Fix escaped string array (#6)

* Update Spek version

* Fix print wrong escaped character, Fix #4

* Rewrite the GraphQLPrintSpek for preetty print test

* Bump hotfix version

* Update build status link

* Migrate kotlin v1.1.1 (#7)

* bump to kotlin v1.1.1

* Add type alias for more readable code

* Change the package name to me.lazmaid.kraph

* Fix build failed dur to hamkrest error

* Update spek version

* Update ENV for release

* Update README

* Refactor arguments (#9)

* WIP

* Split the print logic into sealed class

* Update UTs

* Add exception message

* Refactor

* Add Test Coverage (#11)

* Add Test Coverage

* Update spek version

* Fix test result path

* Add codecov YAML

* Add onlyIf

* Update config

* Fix travis command

* Add coverage badge

* Fix wrong download badge

* Bump version to 0.5.1

* Support boolean type in Argument (#15)

* Add support for boolean type

* Add Tests

* Fix typo in README (#16)

missing "h" in the example call to `println(query.toGrapQueryString())`

* Added basic fragment support (#17)

* improve readme

* Allow using field with a block in place of field object

* Update readme to include new changes

* Cheap implementation of fragment that doesn't use actual GraphQL Fragments

* Add fragment docs to readme

* Fix tests

* Change function to 'defineFragment'

* Update Kotlin and library dependcies (#18)

* Update .gitignore

* Update dependecies

* Add secondary constructor for DataEntry.NonDecimalNUmber

* Add Test for DataEntry classes

* Fix failed UTs

* Added partial request printing functions (#19)

* improve readme

* Allow using field with a block in place of field object

* Update readme to include new changes

* Cheap implementation of fragment that doesn't use actual GraphQL Fragments

* Add fragment docs to readme

* Fix tests

* Add separate methods to print the different parts of the request separately

* Use spaces instead of newlines for request format

* Rewrite printing operations to optionally escape quotes

* update readme a bit

* Change function to 'defineFragment'

* Use an enum to choose print format and write tests to cover all formats

* Add note about variables

* Update version (#20)

* add support for variables (#23)

* add support for variables

* add support for variables

* Added enums support

* add some test for enums support

* add test for GraphQLPrintSpek
  • Loading branch information
makarenkoanton authored and VerachadW committed Nov 22, 2018
1 parent be90274 commit c1e689d
Show file tree
Hide file tree
Showing 41 changed files with 1,233 additions and 597 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
**/out

build
out
gradle.properties
16 changes: 10 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
language: java
jdk:
- oraclejdk8

cache:
directories:
- $HOME/.gradle

- "$HOME/.gradle"
env:
global:
- secure: E2jm3qJrcyavBwWkBQxqKrLjprl4QRT3vGtX87HyEzCYAveh+bdiY+gvu0q+RoFhAklzSEJnND5vBDbHD4gzV9bx9UdafrPzwKFEWt3ZcVGI70JEYHfcID0jzQ6pI7LismrTOpVkHyUZudBnG3yNh6PxID8890I5IMPHInvvVMUDhJ+jpLtjnn5HnRLVIEOX1A368pQoqiAKvSPuIHmDdFofYbAlgprWEtkrpdLd/1Yp95yrE5EjC6nwjhvG2LHiKTr5FgAWD9/owmemioBnexSxEgZe76cRm38WDQVWpEppp7FHJ7eo0LhtEBXYUXJX2UE6W5A0rRBfRRoOCa8eABmY2kxsm5TajlA7yrxqeQebuvcQzVmSjPJ3t7JLkgcYMI88HbpvKjhA5fFVi8TeThd85wXp58eQkIU/7EoLPaqALUHw8WCAaBOmcQ37MLeSk6oX8SQUS0owo58guh1SN95BpTrMuzvvN4V9LPGNMfnVBxuKjnfOxxPkBWLEsuvgGwdC9pYj3dDYVDD7igrGy5qTwTJ8qTtqud3uUY0JVzpPpN6m3IKI0qxEOYTDS3WrJh14P8flFZXYU/Vot1xkmZPMlAAqYxdRWLnNAjwS+c8VePKqZmIp3FVxFyrs9yJehFWynB0ZYi3ZUtc0UKkoIKLocMi1huHgAmRrJbteN9Y=
- secure: VLdggtNem5VHnUyGPfyrA05wnpmOqAlMbfd6fyNTh0/YpYzwnJ/2kqEcnCdcJn/GsDyubGcEvl7+PXzI4LmCS1fedQgj/9h+/nAFYEx6UInrczXEAKf3d53DH+rSCgTzvilqFBvLl6fJhkCv+/YuvDkOhWvBWN6QqZjBLCNc60Qw4kXsExU8TfG09wnu37TJuo78zmmY51Y85YDtsgnvw0C7mLk7n4R7yBiPEFi2ZAYehVdaN2eyUdl6uQsNm3rTdXMLRo0rQDsUOe7hFJYJz8F1ASMQmsY5xDGRfUpIBG78pV4IpMCTzoxpH3IaaK7Misxj3H5lgDzXEvtPf5t8SpKYfTBz1Pmc2ogVifV9YayRWl2K6bHabundAJQcYzhrBXZMPebpu5Pdi1GompOXdyhLx053x7+3/qhNK+81Tw71vNNt8+vRDNE9bIV00M1TE1YfHFz/GzBgUuPmigAl+CIY14w+PGJABFG7UHVDkjABMkOJHhFtLLwkkwx73CoPr8PzaXR9WzduPAwjiOpu0P69e5S4C5ZM3XxfBma8hW5K5RFvnw1FYSkE9+FEjhgdUX9bpfiHIhRS/3scTzscPhwuy804nmJqJbADjNtYVklVk6QaondMlEBu530uC57OHwRaLWLSDbPCWQwy2PsoBxtHewcld2x6IBGrPFj+qz0=

script:
- ./gradlew check jacocTestReport

after_success:
- bash <(curl -s https://codecov.io/bash)

deploy:
- provider: script
skip_cleanup: true
script: ./gradlew build bintrayUpload -PdryRun=false
script: "./gradlew build bintrayUpload -PdryRun=false"
on:
branch: master
tags: true
tags: true

0 comments on commit c1e689d

Please sign in to comment.