hiroshimarb 0.1.1 → 0.1.2
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/.travis.yml +3 -1
- data/lib/hiroshimarb/cli.rb +1 -14
- data/lib/hiroshimarb/open.rb +26 -0
- data/lib/hiroshimarb/version.rb +1 -1
- data/lib/hiroshimarb.rb +1 -0
- data/resource/member.rb +8 -0
- metadata +4 -2
data/.travis.yml
CHANGED
data/lib/hiroshimarb/cli.rb
CHANGED
@@ -9,20 +9,7 @@ module Hiroshimarb
|
|
9
9
|
module CLI
|
10
10
|
# Hiroshim.rbのウェブサイトをブラウザで開く
|
11
11
|
def open(key = nil)
|
12
|
-
key
|
13
|
-
url = case key
|
14
|
-
when 'hiroshimarb'
|
15
|
-
'http://hiroshimarb.github.com'
|
16
|
-
when 'oc-h'
|
17
|
-
'http://oc-h.jp'
|
18
|
-
when 'ipad'
|
19
|
-
URI.encode 'http://kita.dyndns.org/wiki/?広島弁吹き替えシリーズ'
|
20
|
-
when 'city'
|
21
|
-
'http://www.city.hiroshima.lg.jp'
|
22
|
-
when 'pref'
|
23
|
-
'http://www.pref.hiroshima.lg.jp'
|
24
|
-
end
|
25
|
-
Launchy.open url
|
12
|
+
Open.open(key)
|
26
13
|
end
|
27
14
|
|
28
15
|
# Hiroshim.rbの情報を標準出力へ表示
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'rubygems'
|
3
|
+
require 'launchy'
|
4
|
+
|
5
|
+
module Hiroshimarb
|
6
|
+
class Open
|
7
|
+
class << self
|
8
|
+
def open(key = nil)
|
9
|
+
key ||= 'hiroshimarb'
|
10
|
+
url = case key
|
11
|
+
when 'hiroshimarb'
|
12
|
+
'http://hiroshimarb.github.com'
|
13
|
+
when 'oc-h'
|
14
|
+
'http://oc-h.jp'
|
15
|
+
when 'ipad'
|
16
|
+
URI.encode 'http://kita.dyndns.org/wiki/?広島弁吹き替えシリーズ'
|
17
|
+
when 'city'
|
18
|
+
'http://www.city.hiroshima.lg.jp'
|
19
|
+
when 'pref'
|
20
|
+
'http://www.pref.hiroshima.lg.jp'
|
21
|
+
end
|
22
|
+
Launchy.open url
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/lib/hiroshimarb/version.rb
CHANGED
data/lib/hiroshimarb.rb
CHANGED
data/resource/member.rb
CHANGED
@@ -104,4 +104,12 @@ Hiroshimarb::Member.define do
|
|
104
104
|
profile '仕事ではJavaを使っています。たまにPerlを使います。Rubyはこれから使ってみます。'
|
105
105
|
end
|
106
106
|
|
107
|
+
member do
|
108
|
+
name 'Yoshitake Takata'
|
109
|
+
github 'takata'
|
110
|
+
twitter 'takatayoshitake'
|
111
|
+
website 'http://www.takata.tk/'
|
112
|
+
profile '仕事は開発では無くRuby初心者ですがよろしく'
|
113
|
+
end
|
114
|
+
|
107
115
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiroshimarb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -18,10 +18,11 @@ authors:
|
|
18
18
|
- Tomokazu Ogawa
|
19
19
|
- Kakenavi
|
20
20
|
- Hiroyuki Oda
|
21
|
+
- Yoshitake Takata
|
21
22
|
autorequire:
|
22
23
|
bindir: bin
|
23
24
|
cert_chain: []
|
24
|
-
date: 2012-10-
|
25
|
+
date: 2012-10-24 00:00:00.000000000 Z
|
25
26
|
dependencies:
|
26
27
|
- !ruby/object:Gem::Dependency
|
27
28
|
name: launchy
|
@@ -97,6 +98,7 @@ files:
|
|
97
98
|
- lib/hiroshimarb/dsl.rb
|
98
99
|
- lib/hiroshimarb/information.rb
|
99
100
|
- lib/hiroshimarb/member.rb
|
101
|
+
- lib/hiroshimarb/open.rb
|
100
102
|
- lib/hiroshimarb/version.rb
|
101
103
|
- resource/member.rb
|
102
104
|
- spec/hiroshimarb/cli_spec.rb
|