rhello 0.0.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.
- data/.gitignore +5 -0
- data/Gemfile +4 -0
- data/README +0 -0
- data/Rakefile +2 -0
- data/bin/rhello +5 -0
- data/lib/rhello.rb +28 -0
- data/lib/rhello/version.rb +3 -0
- data/rhello.gemspec +22 -0
- metadata +63 -0
data/Gemfile
ADDED
data/README
ADDED
|
File without changes
|
data/Rakefile
ADDED
data/bin/rhello
ADDED
data/lib/rhello.rb
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
require 'optparse'
|
|
2
|
+
require 'rhello/version'
|
|
3
|
+
|
|
4
|
+
module Rhello
|
|
5
|
+
class Application
|
|
6
|
+
OPTS = {}
|
|
7
|
+
|
|
8
|
+
def run
|
|
9
|
+
optparser = optparse OPTS
|
|
10
|
+
optparser.parse!
|
|
11
|
+
puts "Hello, world!"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def optparse opts
|
|
15
|
+
parser = OptionParser.new
|
|
16
|
+
parser.banner = "Usage: #{parser.program_name} [OPTION]..."
|
|
17
|
+
parser.on('--help') {
|
|
18
|
+
puts parser.to_s
|
|
19
|
+
exit
|
|
20
|
+
}
|
|
21
|
+
parser.on('--version') {
|
|
22
|
+
puts "#{parser.program_name} #{VERSION}"
|
|
23
|
+
exit
|
|
24
|
+
}
|
|
25
|
+
parser
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
data/rhello.gemspec
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
|
3
|
+
require "rhello/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |s|
|
|
6
|
+
s.name = "rhello"
|
|
7
|
+
s.version = Rhello::VERSION
|
|
8
|
+
s.platform = Gem::Platform::RUBY
|
|
9
|
+
s.authors = ["2peta"]
|
|
10
|
+
s.email = ["2peta@suppin.org"]
|
|
11
|
+
s.homepage = ""
|
|
12
|
+
s.summary = %q{produce a familiar, friendly greeting}
|
|
13
|
+
s.description = %q{rhello is another implementation of the hello world program}
|
|
14
|
+
s.bindir = 'bin'
|
|
15
|
+
|
|
16
|
+
s.rubyforge_project = "rhello"
|
|
17
|
+
|
|
18
|
+
s.files = `git ls-files`.split("\n")
|
|
19
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
20
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
21
|
+
s.require_paths = ["lib"]
|
|
22
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: rhello
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- 2peta
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
|
|
12
|
+
date: 2012-02-27 00:00:00 +09:00
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies: []
|
|
15
|
+
|
|
16
|
+
description: rhello is another implementation of the hello world program
|
|
17
|
+
email:
|
|
18
|
+
- 2peta@suppin.org
|
|
19
|
+
executables:
|
|
20
|
+
- rhello
|
|
21
|
+
extensions: []
|
|
22
|
+
|
|
23
|
+
extra_rdoc_files: []
|
|
24
|
+
|
|
25
|
+
files:
|
|
26
|
+
- .gitignore
|
|
27
|
+
- Gemfile
|
|
28
|
+
- README
|
|
29
|
+
- Rakefile
|
|
30
|
+
- bin/rhello
|
|
31
|
+
- lib/rhello.rb
|
|
32
|
+
- lib/rhello/version.rb
|
|
33
|
+
- rhello.gemspec
|
|
34
|
+
has_rdoc: true
|
|
35
|
+
homepage: ""
|
|
36
|
+
licenses: []
|
|
37
|
+
|
|
38
|
+
post_install_message:
|
|
39
|
+
rdoc_options: []
|
|
40
|
+
|
|
41
|
+
require_paths:
|
|
42
|
+
- lib
|
|
43
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: "0"
|
|
48
|
+
version:
|
|
49
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: "0"
|
|
54
|
+
version:
|
|
55
|
+
requirements: []
|
|
56
|
+
|
|
57
|
+
rubyforge_project: rhello
|
|
58
|
+
rubygems_version: 1.3.5
|
|
59
|
+
signing_key:
|
|
60
|
+
specification_version: 3
|
|
61
|
+
summary: produce a familiar, friendly greeting
|
|
62
|
+
test_files: []
|
|
63
|
+
|