hiroshimarb 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in hiroshimarb.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Tomohiko Himura
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,16 @@
1
+ # Hiroshima.rb
2
+
3
+ この gem は Hiroshima.rb が提供する gem です。
4
+ 基本的にネタです。
5
+ まずは hiroshimarb コマンドを提供したいと思いますが、未定です。
6
+
7
+ ## Installation
8
+
9
+ $ gem install hiroshimarb
10
+
11
+ ## Usage
12
+
13
+
14
+ $ hiroshimarb open
15
+
16
+ ブラウザで Hiroshima.rb のウェブサイトを表示します。
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
data/bin/hiroshimarb ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ lib_dir = File.join(File.dirname(__FILE__), '..', 'lib')
4
+ $LOAD_PATH.unshift lib_dir if File.directory?(lib_dir)
5
+
6
+ require 'hiroshimarb'
7
+
8
+ Hiroshimarb.execute ARGV
@@ -0,0 +1,20 @@
1
+ # -*- coding: utf-8 -*-
2
+ require File.expand_path('../lib/hiroshimarb/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Tomohiko Himura"]
6
+ gem.email = ["eiel.hal@gmail.com"]
7
+ gem.description = %q{provide `hiroshimarb` command. hiroshimarb is Hiroshima.rb. Hiroshima.rb is local community of Ruby in Hiroshima/Japan}
8
+ gem.summary = %q{provide `hiroshimarb` command. hiroshimarb is Hiroshima.rb}
9
+ gem.homepage = "http://github.com/hiroshimarb/hiroshimarb-gem"
10
+ gem.rubyforge_project = 'github'
11
+
12
+ gem.files = `git ls-files`.split($\)
13
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
14
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
15
+ gem.name = "hiroshimarb"
16
+ gem.require_paths = ["lib"]
17
+ gem.version = Hiroshimarb::VERSION
18
+
19
+ gem.add_dependency "launchy", "~> 2.1.2"
20
+ end
@@ -0,0 +1,3 @@
1
+ module Hiroshimarb
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,19 @@
1
+ require "hiroshimarb/version"
2
+ require 'rubygems'
3
+ require 'launchy'
4
+
5
+ module Hiroshimarb
6
+ class << self
7
+ def execute(argv)
8
+ if argv.first == 'open'
9
+ Launchy.open 'http://hiroshimarb.github.com'
10
+ else
11
+ puts <<EOD
12
+ Usage: hiroshimarb command
13
+ Available commands:
14
+ open : open the Hiroshima.rb website in a web browser
15
+ EOD
16
+ end
17
+ end
18
+ end
19
+ end
metadata ADDED
@@ -0,0 +1,73 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hiroshimarb
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Tomohiko Himura
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-09-01 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: launchy
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 2.1.2
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 2.1.2
30
+ description: provide `hiroshimarb` command. hiroshimarb is Hiroshima.rb. Hiroshima.rb
31
+ is local community of Ruby in Hiroshima/Japan
32
+ email:
33
+ - eiel.hal@gmail.com
34
+ executables:
35
+ - hiroshimarb
36
+ extensions: []
37
+ extra_rdoc_files: []
38
+ files:
39
+ - .gitignore
40
+ - Gemfile
41
+ - LICENSE
42
+ - README.md
43
+ - Rakefile
44
+ - bin/hiroshimarb
45
+ - hiroshimarb.gemspec
46
+ - lib/hiroshimarb.rb
47
+ - lib/hiroshimarb/version.rb
48
+ homepage: http://github.com/hiroshimarb/hiroshimarb-gem
49
+ licenses: []
50
+ post_install_message:
51
+ rdoc_options: []
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ requirements: []
67
+ rubyforge_project: github
68
+ rubygems_version: 1.8.23
69
+ signing_key:
70
+ specification_version: 3
71
+ summary: provide `hiroshimarb` command. hiroshimarb is Hiroshima.rb
72
+ test_files: []
73
+ has_rdoc: