datomic-flare 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
 - data/.env.example +4 -0
 - data/.gitignore +3 -0
 - data/.rspec +1 -0
 - data/.rubocop.yml +15 -0
 - data/.ruby-version +1 -0
 - data/Gemfile +19 -0
 - data/Gemfile.lock +100 -0
 - data/LICENSE +9 -0
 - data/README.md +1042 -0
 - data/components/errors.rb +22 -0
 - data/components/http.rb +55 -0
 - data/controllers/api.rb +48 -0
 - data/controllers/client.rb +43 -0
 - data/controllers/documentation/formatter.rb +37 -0
 - data/controllers/documentation/generator.rb +390 -0
 - data/controllers/dsl/querying.rb +39 -0
 - data/controllers/dsl/schema.rb +37 -0
 - data/controllers/dsl/transacting.rb +62 -0
 - data/controllers/dsl.rb +48 -0
 - data/datomic-flare.gemspec +39 -0
 - data/docs/CURL.md +781 -0
 - data/docs/README.md +360 -0
 - data/docs/api.md +395 -0
 - data/docs/dsl.md +257 -0
 - data/docs/templates/.rubocop.yml +15 -0
 - data/docs/templates/README.md +319 -0
 - data/docs/templates/api.md +267 -0
 - data/docs/templates/dsl.md +206 -0
 - data/helpers/h.rb +17 -0
 - data/logic/dangerous_override.rb +108 -0
 - data/logic/querying.rb +34 -0
 - data/logic/schema.rb +91 -0
 - data/logic/transacting.rb +53 -0
 - data/logic/types.rb +141 -0
 - data/ports/cli.rb +26 -0
 - data/ports/dsl/datomic-flare/errors.rb +5 -0
 - data/ports/dsl/datomic-flare.rb +20 -0
 - data/static/gem.rb +15 -0
 - metadata +146 -0
 
    
        checksums.yaml
    ADDED
    
    | 
         @@ -0,0 +1,7 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ---
         
     | 
| 
      
 2 
     | 
    
         
            +
            SHA256:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 2704ccc2cd0019bc614d345c3c3f12264d38243e5f8623f6c8e3e2046bf3f478
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: f6e622d7ecba7aa548d3f471689ddf90792248d4c67b563835a51f8387b0c438
         
     | 
| 
      
 5 
     | 
    
         
            +
            SHA512:
         
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: a32866059f8ec0ad6785ecd002b015260f7749b77a079764b4a0d25d49971a6968a66bc7f778e11c7c8cc82046d7ec6a4549a37f8c9ae0c497c3b6dd2640701a
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 51e0eb87e9e6e4c5cc55f0049d652604f48d3d7e254b99a6961ffe3ed53b695e31eea3b0b8af8f85a1f061c2448c6390615e0c41af52d67113f4ebde84bc19f4
         
     | 
    
        data/.env.example
    ADDED
    
    
    
        data/.gitignore
    ADDED
    
    
    
        data/.rspec
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --require spec_helper
         
     | 
    
        data/.rubocop.yml
    ADDED
    
    
    
        data/.ruby-version
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            3.1.0
         
     | 
    
        data/Gemfile
    ADDED
    
    | 
         @@ -0,0 +1,19 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            source 'https://rubygems.org'
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            gemspec
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            group :test, :development do
         
     | 
| 
      
 8 
     | 
    
         
            +
              gem 'babosa', '~> 2.0'
         
     | 
| 
      
 9 
     | 
    
         
            +
              gem 'liquid', '~> 5.5', '>= 5.5.1'
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
              gem 'dotenv', '~> 3.1', '>= 3.1.4'
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
              gem 'rspec', '~> 3.13'
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
              gem 'rubocop', '~> 1.66', '>= 1.66.1'
         
     | 
| 
      
 16 
     | 
    
         
            +
              gem 'rubocop-rspec', '~> 3.0', '>= 3.0.5'
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
              gem 'pry-byebug', '~> 3.10', '>= 3.10.1'
         
     | 
| 
      
 19 
     | 
    
         
            +
            end
         
     | 
    
        data/Gemfile.lock
    ADDED
    
    | 
         @@ -0,0 +1,100 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            PATH
         
     | 
| 
      
 2 
     | 
    
         
            +
              remote: .
         
     | 
| 
      
 3 
     | 
    
         
            +
              specs:
         
     | 
| 
      
 4 
     | 
    
         
            +
                datomic-flare (1.0.0)
         
     | 
| 
      
 5 
     | 
    
         
            +
                  faraday (~> 2.12)
         
     | 
| 
      
 6 
     | 
    
         
            +
                  faraday-typhoeus (~> 1.1)
         
     | 
| 
      
 7 
     | 
    
         
            +
                  typhoeus (~> 1.4, >= 1.4.1)
         
     | 
| 
      
 8 
     | 
    
         
            +
                  uuidx (~> 0.10.0)
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            GEM
         
     | 
| 
      
 11 
     | 
    
         
            +
              remote: https://rubygems.org/
         
     | 
| 
      
 12 
     | 
    
         
            +
              specs:
         
     | 
| 
      
 13 
     | 
    
         
            +
                ast (2.4.2)
         
     | 
| 
      
 14 
     | 
    
         
            +
                babosa (2.0.0)
         
     | 
| 
      
 15 
     | 
    
         
            +
                byebug (11.1.3)
         
     | 
| 
      
 16 
     | 
    
         
            +
                coderay (1.1.3)
         
     | 
| 
      
 17 
     | 
    
         
            +
                diff-lcs (1.5.1)
         
     | 
| 
      
 18 
     | 
    
         
            +
                dotenv (3.1.4)
         
     | 
| 
      
 19 
     | 
    
         
            +
                ethon (0.16.0)
         
     | 
| 
      
 20 
     | 
    
         
            +
                  ffi (>= 1.15.0)
         
     | 
| 
      
 21 
     | 
    
         
            +
                faraday (2.12.0)
         
     | 
| 
      
 22 
     | 
    
         
            +
                  faraday-net_http (>= 2.0, < 3.4)
         
     | 
| 
      
 23 
     | 
    
         
            +
                  json
         
     | 
| 
      
 24 
     | 
    
         
            +
                  logger
         
     | 
| 
      
 25 
     | 
    
         
            +
                faraday-net_http (3.3.0)
         
     | 
| 
      
 26 
     | 
    
         
            +
                  net-http
         
     | 
| 
      
 27 
     | 
    
         
            +
                faraday-typhoeus (1.1.0)
         
     | 
| 
      
 28 
     | 
    
         
            +
                  faraday (~> 2.0)
         
     | 
| 
      
 29 
     | 
    
         
            +
                  typhoeus (~> 1.4)
         
     | 
| 
      
 30 
     | 
    
         
            +
                ffi (1.17.0)
         
     | 
| 
      
 31 
     | 
    
         
            +
                json (2.7.2)
         
     | 
| 
      
 32 
     | 
    
         
            +
                language_server-protocol (3.17.0.3)
         
     | 
| 
      
 33 
     | 
    
         
            +
                liquid (5.5.1)
         
     | 
| 
      
 34 
     | 
    
         
            +
                logger (1.6.1)
         
     | 
| 
      
 35 
     | 
    
         
            +
                method_source (1.1.0)
         
     | 
| 
      
 36 
     | 
    
         
            +
                net-http (0.4.1)
         
     | 
| 
      
 37 
     | 
    
         
            +
                  uri
         
     | 
| 
      
 38 
     | 
    
         
            +
                parallel (1.26.3)
         
     | 
| 
      
 39 
     | 
    
         
            +
                parser (3.3.5.0)
         
     | 
| 
      
 40 
     | 
    
         
            +
                  ast (~> 2.4.1)
         
     | 
| 
      
 41 
     | 
    
         
            +
                  racc
         
     | 
| 
      
 42 
     | 
    
         
            +
                pry (0.14.2)
         
     | 
| 
      
 43 
     | 
    
         
            +
                  coderay (~> 1.1)
         
     | 
| 
      
 44 
     | 
    
         
            +
                  method_source (~> 1.0)
         
     | 
| 
      
 45 
     | 
    
         
            +
                pry-byebug (3.10.1)
         
     | 
| 
      
 46 
     | 
    
         
            +
                  byebug (~> 11.0)
         
     | 
| 
      
 47 
     | 
    
         
            +
                  pry (>= 0.13, < 0.15)
         
     | 
| 
      
 48 
     | 
    
         
            +
                racc (1.8.1)
         
     | 
| 
      
 49 
     | 
    
         
            +
                rainbow (3.1.1)
         
     | 
| 
      
 50 
     | 
    
         
            +
                regexp_parser (2.9.2)
         
     | 
| 
      
 51 
     | 
    
         
            +
                rspec (3.13.0)
         
     | 
| 
      
 52 
     | 
    
         
            +
                  rspec-core (~> 3.13.0)
         
     | 
| 
      
 53 
     | 
    
         
            +
                  rspec-expectations (~> 3.13.0)
         
     | 
| 
      
 54 
     | 
    
         
            +
                  rspec-mocks (~> 3.13.0)
         
     | 
| 
      
 55 
     | 
    
         
            +
                rspec-core (3.13.1)
         
     | 
| 
      
 56 
     | 
    
         
            +
                  rspec-support (~> 3.13.0)
         
     | 
| 
      
 57 
     | 
    
         
            +
                rspec-expectations (3.13.3)
         
     | 
| 
      
 58 
     | 
    
         
            +
                  diff-lcs (>= 1.2.0, < 2.0)
         
     | 
| 
      
 59 
     | 
    
         
            +
                  rspec-support (~> 3.13.0)
         
     | 
| 
      
 60 
     | 
    
         
            +
                rspec-mocks (3.13.1)
         
     | 
| 
      
 61 
     | 
    
         
            +
                  diff-lcs (>= 1.2.0, < 2.0)
         
     | 
| 
      
 62 
     | 
    
         
            +
                  rspec-support (~> 3.13.0)
         
     | 
| 
      
 63 
     | 
    
         
            +
                rspec-support (3.13.1)
         
     | 
| 
      
 64 
     | 
    
         
            +
                rubocop (1.66.1)
         
     | 
| 
      
 65 
     | 
    
         
            +
                  json (~> 2.3)
         
     | 
| 
      
 66 
     | 
    
         
            +
                  language_server-protocol (>= 3.17.0)
         
     | 
| 
      
 67 
     | 
    
         
            +
                  parallel (~> 1.10)
         
     | 
| 
      
 68 
     | 
    
         
            +
                  parser (>= 3.3.0.2)
         
     | 
| 
      
 69 
     | 
    
         
            +
                  rainbow (>= 2.2.2, < 4.0)
         
     | 
| 
      
 70 
     | 
    
         
            +
                  regexp_parser (>= 2.4, < 3.0)
         
     | 
| 
      
 71 
     | 
    
         
            +
                  rubocop-ast (>= 1.32.2, < 2.0)
         
     | 
| 
      
 72 
     | 
    
         
            +
                  ruby-progressbar (~> 1.7)
         
     | 
| 
      
 73 
     | 
    
         
            +
                  unicode-display_width (>= 2.4.0, < 3.0)
         
     | 
| 
      
 74 
     | 
    
         
            +
                rubocop-ast (1.32.3)
         
     | 
| 
      
 75 
     | 
    
         
            +
                  parser (>= 3.3.1.0)
         
     | 
| 
      
 76 
     | 
    
         
            +
                rubocop-rspec (3.0.5)
         
     | 
| 
      
 77 
     | 
    
         
            +
                  rubocop (~> 1.61)
         
     | 
| 
      
 78 
     | 
    
         
            +
                ruby-progressbar (1.13.0)
         
     | 
| 
      
 79 
     | 
    
         
            +
                typhoeus (1.4.1)
         
     | 
| 
      
 80 
     | 
    
         
            +
                  ethon (>= 0.9.0)
         
     | 
| 
      
 81 
     | 
    
         
            +
                unicode-display_width (2.6.0)
         
     | 
| 
      
 82 
     | 
    
         
            +
                uri (0.13.1)
         
     | 
| 
      
 83 
     | 
    
         
            +
                uuidx (0.10.0)
         
     | 
| 
      
 84 
     | 
    
         
            +
             
     | 
| 
      
 85 
     | 
    
         
            +
            PLATFORMS
         
     | 
| 
      
 86 
     | 
    
         
            +
              arm64-darwin-23
         
     | 
| 
      
 87 
     | 
    
         
            +
              x86_64-linux
         
     | 
| 
      
 88 
     | 
    
         
            +
             
     | 
| 
      
 89 
     | 
    
         
            +
            DEPENDENCIES
         
     | 
| 
      
 90 
     | 
    
         
            +
              babosa (~> 2.0)
         
     | 
| 
      
 91 
     | 
    
         
            +
              datomic-flare!
         
     | 
| 
      
 92 
     | 
    
         
            +
              dotenv (~> 3.1, >= 3.1.4)
         
     | 
| 
      
 93 
     | 
    
         
            +
              liquid (~> 5.5, >= 5.5.1)
         
     | 
| 
      
 94 
     | 
    
         
            +
              pry-byebug (~> 3.10, >= 3.10.1)
         
     | 
| 
      
 95 
     | 
    
         
            +
              rspec (~> 3.13)
         
     | 
| 
      
 96 
     | 
    
         
            +
              rubocop (~> 1.66, >= 1.66.1)
         
     | 
| 
      
 97 
     | 
    
         
            +
              rubocop-rspec (~> 3.0, >= 3.0.5)
         
     | 
| 
      
 98 
     | 
    
         
            +
             
     | 
| 
      
 99 
     | 
    
         
            +
            BUNDLED WITH
         
     | 
| 
      
 100 
     | 
    
         
            +
               2.4.22
         
     | 
    
        data/LICENSE
    ADDED
    
    | 
         @@ -0,0 +1,9 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            MIT License
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            Copyright 2024 Guilherme Baptista
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            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:
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            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.
         
     |