hiroshimarb 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -0
- data/features/event.feature +16 -0
- data/features/info.feature +9 -0
- data/features/step_definitions/default_steps.rb +13 -0
- data/features/support/env.rb +1 -0
- data/hiroshimarb.gemspec +1 -0
- data/lib/hiroshimarb/cli.rb +12 -1
- data/lib/hiroshimarb/version.rb +1 -1
- data/lib/hiroshimarb.rb +2 -0
- data/resource/member.rb +20 -4
- data/spec/hiroshimarb/cli_spec.rb +1 -1
- metadata +28 -2
data/README.md
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
# language: ja
|
2
|
+
機能: hiroshima.rb のイベント情報を表示する
|
3
|
+
サブコマンド `event` を使用すると hiroshima.rb の近日のイベントを調べることができる。
|
4
|
+
|
5
|
+
$ hiroshimarb event
|
6
|
+
|
7
|
+
シナリオ: イベントについての表示
|
8
|
+
もし "hiroshimarb event" を実行
|
9
|
+
ならば 以下の内容を表示:
|
10
|
+
"""
|
11
|
+
2012-11-03 (土) 14:00-18:00 広島Ruby勉強会 #025
|
12
|
+
|
13
|
+
http://hiroshimarb.github.com/blog/2012/10/15/hiroshimarb-25/
|
14
|
+
|
15
|
+
|
16
|
+
"""
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'aruba/cucumber'
|
data/hiroshimarb.gemspec
CHANGED
data/lib/hiroshimarb/cli.rb
CHANGED
@@ -16,7 +16,7 @@ module Hiroshimarb
|
|
16
16
|
when 'oc-h'
|
17
17
|
'http://oc-h.jp'
|
18
18
|
when 'ipad'
|
19
|
-
URI.encode 'http://kita.dyndns.org/wiki
|
19
|
+
URI.encode 'http://kita.dyndns.org/wiki/?広島弁吹き替えシリーズ'
|
20
20
|
when 'city'
|
21
21
|
'http://www.city.hiroshima.lg.jp'
|
22
22
|
when 'pref'
|
@@ -39,6 +39,16 @@ module Hiroshimarb
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
+
# Hiroshima.rbのイベントを標準出力へ表示
|
43
|
+
def event
|
44
|
+
puts <<EOD
|
45
|
+
2012-11-03 (土) 14:00-18:00 広島Ruby勉強会 #025
|
46
|
+
|
47
|
+
http://hiroshimarb.github.com/blog/2012/10/15/hiroshimarb-25/
|
48
|
+
|
49
|
+
EOD
|
50
|
+
end
|
51
|
+
|
42
52
|
def help
|
43
53
|
puts <<EOD
|
44
54
|
Usage: hiroshimarb command
|
@@ -52,6 +62,7 @@ Available commands:
|
|
52
62
|
: pref - 広島県
|
53
63
|
info : disploy information of Hiroshimar.rb
|
54
64
|
member : display the member of Hiroshima.rb
|
65
|
+
event : display next event of Hiroshima.rb
|
55
66
|
EOD
|
56
67
|
end
|
57
68
|
end
|
data/lib/hiroshimarb/version.rb
CHANGED
data/lib/hiroshimarb.rb
CHANGED
data/resource/member.rb
CHANGED
@@ -55,7 +55,7 @@ Hiroshimarb::Member.define do
|
|
55
55
|
website 'http://majosystems.com'
|
56
56
|
profile 'なかなか参加できてませんが・・・勉強中です'
|
57
57
|
end
|
58
|
-
|
58
|
+
|
59
59
|
member do
|
60
60
|
name 'Hidetoshi Kawaguchi'
|
61
61
|
github 'nill'
|
@@ -63,7 +63,7 @@ Hiroshimarb::Member.define do
|
|
63
63
|
website 'nill'
|
64
64
|
profile '勉強中・・・'
|
65
65
|
end
|
66
|
-
|
66
|
+
|
67
67
|
member do
|
68
68
|
name 'Kazuya Matsubara'
|
69
69
|
github 'Torokun'
|
@@ -71,7 +71,7 @@ Hiroshimarb::Member.define do
|
|
71
71
|
website 'http://switch.dip.jp/toro/blog/'
|
72
72
|
profile 'たまにもくもくしに参加してます。Rubyは使ったことがない初心者です・・・。'
|
73
73
|
end
|
74
|
-
|
74
|
+
|
75
75
|
member do
|
76
76
|
name 'Tomohiro Morishita'
|
77
77
|
github 'moriC'
|
@@ -79,5 +79,21 @@ Hiroshimarb::Member.define do
|
|
79
79
|
website ''
|
80
80
|
profile 'よろしくお願いします'
|
81
81
|
end
|
82
|
-
|
82
|
+
|
83
|
+
member do
|
84
|
+
name 'Tomokazu Ogawa'
|
85
|
+
github 'ogatomo'
|
86
|
+
twitter 'ogatomo'
|
87
|
+
website ''
|
88
|
+
profile 'Ruby勉強中です。よろしくお願いします。'
|
89
|
+
end
|
90
|
+
|
91
|
+
member do
|
92
|
+
name 'Kakenavi'
|
93
|
+
github 'kakenavi'
|
94
|
+
twitter 'kakenavi'
|
95
|
+
website 'http://kakenavi.blog.fc2.com/'
|
96
|
+
profile ''
|
97
|
+
end
|
98
|
+
|
83
99
|
end
|
@@ -37,7 +37,7 @@ describe Hiroshimarb::CLI do
|
|
37
37
|
context '引数 "ipad"' do
|
38
38
|
let(:arg) { "ipad" }
|
39
39
|
it "広島弁吹替シリーズのサイトを表示" do
|
40
|
-
Launchy.should_receive(:open).with('http://kita.dyndns.org/wiki/?%E5%BA%83%E5%B3%B6%E5%BC%81%E5%90%B9%E6%9B%BF%E3%82%B7%E3%83%AA%E3%83%BC%E3%82%BA')
|
40
|
+
Launchy.should_receive(:open).with('http://kita.dyndns.org/wiki/?%E5%BA%83%E5%B3%B6%E5%BC%81%E5%90%B9%E3%81%8D%E6%9B%BF%E3%81%88%E3%82%B7%E3%83%AA%E3%83%BC%E3%82%BA')
|
41
41
|
subject
|
42
42
|
end
|
43
43
|
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.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -15,10 +15,12 @@ authors:
|
|
15
15
|
- Hidetoshi Kawaguchi
|
16
16
|
- Kazuya Matsubara
|
17
17
|
- Tomohiro Morishita
|
18
|
+
- Tomokazu Ogawa
|
19
|
+
- Kakenavi
|
18
20
|
autorequire:
|
19
21
|
bindir: bin
|
20
22
|
cert_chain: []
|
21
|
-
date: 2012-10-
|
23
|
+
date: 2012-10-19 00:00:00.000000000 Z
|
22
24
|
dependencies:
|
23
25
|
- !ruby/object:Gem::Dependency
|
24
26
|
name: launchy
|
@@ -52,6 +54,22 @@ dependencies:
|
|
52
54
|
- - ~>
|
53
55
|
- !ruby/object:Gem::Version
|
54
56
|
version: '2.11'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: aruba
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
61
|
+
requirements:
|
62
|
+
- - ! '>='
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
type: :development
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ! '>='
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0'
|
55
73
|
description: provide `hiroshimarb` command. hiroshimarb is Hiroshima.rb. Hiroshima.rb
|
56
74
|
is local community of Ruby in Hiroshima/Japan
|
57
75
|
email:
|
@@ -68,6 +86,10 @@ files:
|
|
68
86
|
- README.md
|
69
87
|
- Rakefile
|
70
88
|
- bin/hiroshimarb
|
89
|
+
- features/event.feature
|
90
|
+
- features/info.feature
|
91
|
+
- features/step_definitions/default_steps.rb
|
92
|
+
- features/support/env.rb
|
71
93
|
- hiroshimarb.gemspec
|
72
94
|
- lib/hiroshimarb.rb
|
73
95
|
- lib/hiroshimarb/cli.rb
|
@@ -106,6 +128,10 @@ signing_key:
|
|
106
128
|
specification_version: 3
|
107
129
|
summary: provide `hiroshimarb` command. hiroshimarb is Hiroshima.rb
|
108
130
|
test_files:
|
131
|
+
- features/event.feature
|
132
|
+
- features/info.feature
|
133
|
+
- features/step_definitions/default_steps.rb
|
134
|
+
- features/support/env.rb
|
109
135
|
- spec/hiroshimarb/cli_spec.rb
|
110
136
|
- spec/hiroshimarb/dsl_spec.rb
|
111
137
|
- spec/hiroshimarb/information_spec.rb
|