hiroshimarb 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -4,4 +4,6 @@ rvm:
4
4
  - "1.9.3"
5
5
  - jruby-19mode # JRuby in 1.9 mode
6
6
  - rbx-19mode
7
- script: bundle exec rspec spec
7
+ script:
8
+ - bundle exec rspec spec
9
+ - bundle exec cucumber
@@ -9,20 +9,7 @@ module Hiroshimarb
9
9
  module CLI
10
10
  # Hiroshim.rbのウェブサイトをブラウザで開く
11
11
  def open(key = nil)
12
- key ||= 'hiroshimarb'
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
@@ -1,3 +1,3 @@
1
1
  module Hiroshimarb
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/hiroshimarb.rb CHANGED
@@ -5,6 +5,7 @@ module Hiroshimarb
5
5
  extend CLI
6
6
 
7
7
  autoload(:Information, "hiroshimarb/information")
8
+ autoload(:Open, "hiroshimarb/open")
8
9
 
9
10
  class << self
10
11
  def execute(argv)
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.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-20 00:00:00.000000000 Z
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