schovi / baked_file_system

Virtual File System for Crystal language. Embedding your assets into final binary.
MIT License
177 stars 18 forks source link

Shards installing the old version of shard #29

Closed creadone closed 6 years ago

creadone commented 6 years ago

Hi!

  1. I have shards yml:
    dependencies:
    baked_file_system:
    github: schovi/baked_file_system
    version: 0.9.6
  2. test.cr
    
    require "baked_file_system"

module Test class FileStorage extend BakedFileSystem bake_folder "./html" end end

3. Directory `html` on the same level like `test.cr` with `test.html` 
4. And `crystal -v`
```bash
Crystal 0.25.1 (2018-06-30)

LLVM: 5.0.2
Default target: x86_64-apple-macosx

When i run crystal test.cr i got the error:

in lib/baked_file_system/src/loader/loader.cr:31: undefined method 'stat' for File:Class

        io << "  size:            " << File.stat(path).size << ",\n"
                                            ^~~~

In the code i see old version: image

Could you say me how i can update shard for version in master?

straight-shoota commented 6 years ago

Replace version: 0.9.6 with branch: master.

@schovi We could use a new release!

creadone commented 6 years ago

@straight-shoota, thanks!

schovi commented 6 years ago

bump 0.9.8