⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 06 - distributing your gems.rb

📁 O Reilly Ruby Cookbook source code
💻 RB
字号:
$ wget http://www.example.com/gems/my_gem-1.0.4.gem--10:40:10--  http://www.example.com/gems/my_gem-1.0.4.gem           => `my_gem-1.0.4.gem'Resolving gems.example.com... 204.127.202.4Connecting to gems.example.com|204.127.202.4|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 40,823 (40K) [text/plain]100%[====================================>] 40,823        46.96K/s10:40:11 (46.85 KB/s) - `my_gem-1.0.4.gem' saved [40823/40823]$ gem install ./my_gem-1.0.4.gemAttempting local installation of './my_gem-1.0.4.gem'Successfully installed my_gem, version 1.0.4Installing RDoc documentation for my_gem-1.0.4...#---$ gem install --include-dependencies ./my_gem_with_dependency-1.0.0.gemAttempting local installation of './my_gem_with_dependency.1.0.0.gem'ERROR: Error installing gem ./my_gem_with_dependency-1.0.0.gem[.gem]: my_gem_with_dependency requires my_dependency > 0.0.0#---$ cd ~/public_html/$ mkdir gems$ cp ~/mygem-1.0.0.gem gems/$ generate_yaml_index.rb --dir=~/public_html/ --verboseBuilding yaml file   ... adding mygem-1.0.0Building yaml.Z file$ ls yaml*yaml  yaml.Z#---

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -