Download all gems dependencies

前端 未结 3 1324
忘掉有多难
忘掉有多难 2021-01-30 07:31

I want to install compass by downloading any required file and taking them to another machine without internet connection. I have downloaded the source package

3条回答
  •  野的像风
    2021-01-30 07:43

    Hm. That's a little tough. gem dependency will show you dependencies for one gem, but it won't go all the way down the tree.

    ➔ gem dependency compass
    Gem compass-0.10.5
      haml (>= 3.0.4, runtime)
    
    Gem compass-0.10.6
      haml (>= 3.0.4, runtime)
    
    ➔ gem dependency haml   
    Gem haml-3.0.21
      maruku (>= 0.5.9, development)
      yard (>= 0.5.3, development)
    
    Gem haml-3.0.22
      maruku (>= 0.5.9, development)
      yard (>= 0.5.3, development)
    
    Gem haml-3.0.23
      maruku (>= 0.5.9, development)
      yard (>= 0.5.3, development)
    
    Gem haml-3.0.24
      maruku (>= 0.5.9, development)
      yard (>= 0.5.3, development)
    

    "development" means it's only required if you are developing the gem itself. "runtime" means you need it to use it.

    so in this case, the only dependency is haml. if it were a more complicated gem, i don't know a good way to generate the whole tree.

提交回复
热议问题