babl 0.4.0 → 0.4.1
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 +4 -4
- data/README.md +2 -0
- data/babl.gemspec +1 -1
- data/bin/babl-rpc_darwin_amd64 +0 -0
- data/bin/babl-rpc_linux_amd64 +0 -0
- data/lib/babl.rb +3 -2
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 32128f3b1a42e8162b1cbad857f3e6932801e03a
         | 
| 4 | 
            +
              data.tar.gz: f17f8ff3d1eb6e13c78891ee955401b8c4b884e3
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: d416c5cb2d5b1ae296cecc1f1781c8bdc90ce380d4faa084aa9ca314f5cc32f72448a99e0bb0bb7cf0da0c683d0245e7765168c505d46d26723f5d0c6615681d
         | 
| 7 | 
            +
              data.tar.gz: 62e390516da2511782fe8d089db8452bac4d8910ea91416ccf438ee387669221e0e5b31696c05657233f02f2d5d6ac8ca2c77ac81dc76d47f0e959f837596d23
         | 
    
        data/README.md
    CHANGED
    
    | @@ -25,6 +25,8 @@ Babl.module "string-append", in: "foo", env: {APPENDIX: "bar"} | |
| 25 25 | 
             
             => "foobar"
         | 
| 26 26 | 
             
            ```
         | 
| 27 27 |  | 
| 28 | 
            +
            To connect to another endpoint, you can specify the env `BABL_ENDPOINT` with `"host:port", this will be picked up automatically.
         | 
| 29 | 
            +
             | 
| 28 30 | 
             
            ## Development
         | 
| 29 31 |  | 
| 30 32 | 
             
            After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
         | 
    
        data/babl.gemspec
    CHANGED
    
    
    
        data/bin/babl-rpc_darwin_amd64
    CHANGED
    
    | Binary file | 
    
        data/bin/babl-rpc_linux_amd64
    CHANGED
    
    | Binary file | 
    
        data/lib/babl.rb
    CHANGED
    
    | @@ -4,6 +4,7 @@ require 'base64' | |
| 4 4 |  | 
| 5 5 | 
             
            module Babl
         | 
| 6 6 | 
             
              class UnknownModuleError < StandardError; end
         | 
| 7 | 
            +
              class ModuleNameFormatIncorrectError < StandardError; end
         | 
| 7 8 |  | 
| 8 9 | 
             
              class ModuleError < StandardError
         | 
| 9 10 | 
             
                attr_reader :stdout, :stderr, :exitcode
         | 
| @@ -51,8 +52,8 @@ module Babl | |
| 51 52 | 
             
                begin
         | 
| 52 53 | 
             
                  res = client[:babl].call('Module', params)
         | 
| 53 54 | 
             
                rescue Quartz::ResponseError => e
         | 
| 54 | 
            -
                  if e.message == 'babl-rpc:  | 
| 55 | 
            -
                    raise  | 
| 55 | 
            +
                  if e.message == 'babl-rpc: module name format incorrect'
         | 
| 56 | 
            +
                    raise ModuleNameFormatIncorrectError.new('Module Name Format Incorrect')
         | 
| 56 57 | 
             
                  else
         | 
| 57 58 | 
             
                    raise
         | 
| 58 59 | 
             
                  end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: babl
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.4. | 
| 4 | 
            +
              version: 0.4.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Lars Kluge
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2016- | 
| 11 | 
            +
            date: 2016-09-07 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: quartz
         |