You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
is a totally awesome idea still being worked on. Check back later.
INSTALL: % gem install args_parser SYNOPSIS: % ruby samples/download_webpage.rb --url http://example.com -o out.html parse ARGV require 'rubygems' require 'args_parser' args = ArgsParser.parse ARGV do arg :url, 'URL', :alias => :u arg :output, 'output file', :alias => :o, :default => 'out.html' arg :verbose, 'verbose mode' arg :help, 'show help', :alias => :h filter :url do |v| v.to_s.strip end va
なんかマジで簡単になった。最近ライブラリ作りまくってるのでその全体的な手順をメモ。 Ruby1.9の前提で書きますが、1.8でも出来るかもですね。Rubygemsの認証周りについては記載してませんが、画面に表示される英文読んでたら楽ショーで出来る思います gemのひな形を作る まずローカルにリポジトリを作ります。これはbundle gemコマンドを使います $ bundle gem your_project create your_project/Gemfile create your_project/Rakefile create your_project/LICENSE create your_project/README.md create your_project/.gitignore create your_project/your_project.gemspec create
Background At work we have several in house gems we use. We don't want to make them public to the internet, but we do want to share them between the developers, and the QA boxes. We were using make-gem-now, but that was always a little messy, and not in keeping with current best practices. So a new plan formed, we need an internal gemcutter.com, which is very doable. So I started looking into it,
About Dr Nic Williams newgem を使った作法を学びます. 必要パッケージのインストール % sudo gem install rubigen % sudo gem install newgem テンプレートの作成 % newgem map_by_method モジュールの作成 これから作るのは MapByMethod モジュールなので,lib/map_by_method.rb が最初に呼び出されます. lib/map_by_method.rb module MapByMethod VERSION = "0.0.1" def self.included(base) super base.module_eval <<-EOS def method_missing(method, *arg, &block) super rescue NoMethodError erro
http://nubyonrails.com/articles/tutorial-publishing-rubygems-with-hoe 次は hoe を使ってみます.内容は前回と同じものを. 必要パッケージのインストール % sudo gem install hoeまあなぜか入ってたので,実際にはインストールしてません. テンプレートの作成 % sow map_by_method creating project map_by_method ... done, now go fix all occurrences of 'FIX' MapByMethod/README.txt:3:* FIX (url) MapByMethod/README.txt:7:FIX (describe your package) MapByMethod/README.txt:11:* FIX (list o
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く