Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: xapix-io/axel-f
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.2.4
Choose a base ref
...
head repository: xapix-io/axel-f
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 6,718 additions and 3,301 deletions.
  1. +0 −226 .circleci/config.yml
  2. +2 −0 .clj-kondo/config.edn
  3. +5 −0 .dir-locals.el
  4. +14 −0 .github/workflows/linter.yml
  5. +123 −0 .github/workflows/publish.yml
  6. +44 −0 .github/workflows/tests.yml
  7. +8 −5 .gitignore
  8. +5 −4 .m2/settings.xml
  9. +65 −506 README.md
  10. +0 −9 axel_f.dev.html
  11. +1 −0 axel_f.dev.js.edn
  12. +0 −9 axel_f.min.html
  13. +5 −0 axel_f.min.js.edn
  14. +3 −0 bin/kaocha
  15. +14 −27 deps.edn
  16. +36 −12 pom.xml
  17. +4 −18 release-js/README.md
  18. +1 −1 release-js/package.json
  19. +29 −36 src/axel_f/api.cljs
  20. +147 −198 src/axel_f/autocomplete.cljc
  21. +11 −0 src/axel_f/buddy/bytes.cljc
  22. +74 −0 src/axel_f/buddy/codecs.cljc
  23. +43 −0 src/axel_f/buddy/codecs/base64.cljc
  24. +35 −0 src/axel_f/buddy/codecs/json.cljc
  25. +125 −0 src/axel_f/buddy/dsa.cljc
  26. +180 −0 src/axel_f/buddy/hash.cljc
  27. +176 −0 src/axel_f/buddy/jws.cljc
  28. +25 −0 src/axel_f/buddy/jwt.cljc
  29. +17 −0 src/axel_f/buddy/keys.clj
  30. +137 −0 src/axel_f/buddy/mac.cljc
  31. +56 −0 src/axel_f/buddy/pem.clj
  32. +162 −0 src/axel_f/buddy/util/ECDSA.java
  33. +11 −0 src/axel_f/buddy/util/ecdsa.clj
  34. +227 −0 src/axel_f/compiler.cljc
  35. +0 −375 src/axel_f/core.cljc
  36. +0 −21 src/axel_f/error.cljc
  37. +34 −0 src/axel_f/excel.cljc
  38. +23 −0 src/axel_f/excel/base64.cljc
  39. +111 −0 src/axel_f/excel/coerce.cljc
  40. +51 −0 src/axel_f/excel/collections.cljc
  41. +159 −0 src/axel_f/excel/date.cljc
  42. +11 −0 src/axel_f/excel/fn.cljc
  43. +60 −0 src/axel_f/excel/geo.cljc
  44. +45 −0 src/axel_f/excel/hash.cljc
  45. +22 −0 src/axel_f/excel/json.cljc
  46. +31 −0 src/axel_f/excel/jws.cljc
  47. +22 −0 src/axel_f/excel/jwt.cljc
  48. +44 −0 src/axel_f/excel/keys.cljc
  49. +27 −0 src/axel_f/excel/logic.cljc
  50. +55 −0 src/axel_f/excel/math.cljc
  51. +21 −0 src/axel_f/excel/object.cljc
  52. +152 −0 src/axel_f/excel/operators.cljc
  53. +25 −0 src/axel_f/excel/search.cljc
  54. +133 −0 src/axel_f/excel/special_forms.cljc
  55. +71 −0 src/axel_f/excel/stat.cljc
  56. +420 −0 src/axel_f/excel/text.cljc
  57. +29 −0 src/axel_f/excel/utils.cljc
  58. +28 −0 src/axel_f/excel/validate.cljc
  59. +67 −0 src/axel_f/excel/xpath.cljc
  60. +42 −0 src/axel_f/excel_lite.cljc
  61. +3 −3 src/axel_f/externs.js
  62. +0 −301 src/axel_f/functions.cljc
  63. +0 −27 src/axel_f/functions/coercion.cljc
  64. +0 −10 src/axel_f/functions/logic.cljc
  65. +0 −24 src/axel_f/functions/math.cljc
  66. +0 −43 src/axel_f/functions/stat.cljc
  67. +0 −301 src/axel_f/functions/text.cljc
  68. +305 −0 src/axel_f/lexer.cljc
  69. +45 −0 src/axel_f/merger.cljc
  70. +434 −0 src/axel_f/parser.cljc
  71. +83 −0 src/axel_f/runtime.cljc
  72. +0 −29 test/axel_f/api_test.cljs
  73. +70 −0 test/axel_f/arity_test.cljc
  74. +640 −218 test/axel_f/autocomplete_test.cljc
  75. +20 −0 test/axel_f/base64_test.cljc
  76. +0 −44 test/axel_f/coercion_test.cljc
  77. +19 −0 test/axel_f/comments_test.cljc
  78. +0 −167 test/axel_f/compile_test.cljc
  79. +184 −0 test/axel_f/complex_validation_test.cljc
  80. +7 −0 test/axel_f/converter_test.cljc
  81. +8 −0 test/axel_f/core_test.cljc
  82. +83 −0 test/axel_f/date_test.cljc
  83. +0 −25 test/axel_f/error_test.cljc
  84. +256 −0 test/axel_f/exceptions_test.cljc
  85. +59 −0 test/axel_f/extract_context_test.cljc
  86. +391 −355 test/axel_f/functions_test.cljc
  87. +28 −0 test/axel_f/geo_test.cljc
  88. +55 −0 test/axel_f/hash_test.cljc
  89. +23 −0 test/axel_f/issue_30_test.cljc
  90. +40 −0 test/axel_f/issue_35_test.cljc
  91. +8 −0 test/axel_f/issue_63_test.cljc
  92. +37 −0 test/axel_f/issue_79_test.cljc
  93. +10 −0 test/axel_f/issue_96_test.cljc
  94. +23 −0 test/axel_f/json_test.cljc
  95. +83 −0 test/axel_f/jws_test.cljc
  96. +59 −0 test/axel_f/jwt_test.cljc
  97. +37 −0 test/axel_f/keys_test.cljc
  98. +0 −6 test/axel_f/lib.cljc
  99. +15 −0 test/axel_f/math_test.cljc
  100. +19 −0 test/axel_f/object_test.cljc
  101. +29 −135 test/axel_f/operator_test.cljc
  102. +76 −82 test/axel_f/reference_test.cljc
  103. +0 −84 test/axel_f/run_test.cljc
  104. +20 −0 test/axel_f/search_test.cljc
  105. +9 −0 test/axel_f/trim_whitespaces_test.cljc
  106. +53 −0 test/axel_f/xpath_test.cljc
  107. +19 −0 tests.edn
226 changes: 0 additions & 226 deletions .circleci/config.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .clj-kondo/config.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{:lint-as
{axel-f.excel.utils/for-map clojure.core/for}}
5 changes: 5 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")

((clojure-mode
(cider-clojure-cli-global-options . "-A:bench:test")))
14 changes: 14 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Lint project with clj-kondo

on:
pull_request:
types: [synchronize, opened, edited]

jobs:
lint:
runs-on: ubuntu-latest
container: borkdude/clj-kondo:latest
steps:
- uses: actions/checkout@v2.3.4
- name: Run clj-kondo
run: clj-kondo --lint src test --config .clj-kondo/config.edn
123 changes: 123 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
name: Publish

on:
push:
tags:
- '*'

jobs:
clojars-publish:
runs-on: ubuntu-latest
steps:
# useful for Continuous Deployment developing
- name: validate if it is refs/tags/
if: startsWith(github.ref,'refs/tags/') != true
run: exit 1

- name: checkout
uses: actions/checkout@v2.3.4
with:
fetch-depth: 1

- name: Cache maven dependencies
uses: actions/cache@v2.1.4
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-
- name: Set TAG value from refs/tags/TAG
run: |
echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Install java
uses: actions/setup-java@v1
with:
java-version: '1.8'

- name: Install clojure
uses: DeLaGuardo/setup-clojure@3.1
with:
tools-deps: 'latest'

- name: Overwrite pom.xml
run: |
sed -i 's;<version/>;<version>${{ env.GIT_TAG }}</version>;' pom.xml
sed -i 's;<tag/>;<tag>${{ github.sha }}</tag>;' pom.xml
- name: Compile java classes
run: |
javac $(find . -name '*.java' -type f)
- name: Debug pom.xml
run: cat pom.xml

- name: Deploy to Clojars
env:
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}
run: mvn -s .m2/settings.xml deploy

npm-publish:
runs-on: ubuntu-latest
steps:
# useful for Continuous Deployment developing
- name: validate if it is refs/tags/
if: startsWith(github.ref,'refs/tags/') != true
run: exit 1

- name: checkout
uses: actions/checkout@v2.3.4
with:
fetch-depth: 1

- name: Cache maven dependencies
uses: actions/cache@v2.1.4
with:
path: ~/.m2/repository
key: npm-${{ hashFiles('**/pom.xml') }}
restore-keys: |
npm-
- name: Set TAG value from refs/tags/TAG
run: |
echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Install java
uses: actions/setup-java@v1
with:
java-version: '1.8'

- name: Install clojure
uses: DeLaGuardo/setup-clojure@3.1
with:
tools-deps: 'latest'

- name: Install NodeJS
uses: actions/setup-node@v2.1.5
with:
node-version: 13.9.x

- name: Build JS
run: |
clojure -A:cljs:cljs-build
- name: Prepare package
run: |
mkdir -p npm-package
cp js/min/axel_f.min.js npm-package/axel_f.js
cp js/min/axel_f.js.map npm-package/axel_f.js.map
cp LICENSE npm-package/LICENSE
cp release-js/* npm-package/
sed -i 's;%version%;${{ env.GIT_TAG }};' npm-package/package.json
- name: NPM deploy
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm install -g npm-snapshot
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
cd npm-package
BUILD_TAG=$(if [[ $GIT_TAG == *SNAPSHOT ]]; then npm-snapshot "$(date +%s)"; else echo "latest"; fi)
npm publish --tag $BUILD_TAG
Loading