japanese-train-access 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/{lib/japanese/train/cli.rb → exe/japanese-train-access} +6 -0
- data/japanese-train-access.gemspec +2 -8
- data/lib/japanese/train/access.rb +0 -1
- data/lib/japanese/train/access/version.rb +1 -1
- metadata +21 -7
- data/bin/.japanese-train-access.swp +0 -0
- data/bin/japanese-train-access +0 -5
- data/lib/japanese/train/.cli.rb.swp +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc334b6c580bf0d0c5a81278a24e9b2454bea8ac
|
4
|
+
data.tar.gz: 0314889802733cb96fe26249e5d819802895a7b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fc3b0b6740ce3431752b9ad6720fc251f138c9f1aa5d92b36cda244735171de13ccb93c89a8556fac19fe0322af56c571fc981f591b504d7a6db73912d10422
|
7
|
+
data.tar.gz: 4ce64ae41eb19a8866681c0743f5fe45d5b791d93d8fa922510172e1b9779579a3827e324e61436e3816fc6b89a50e56e09e24b60a6d654cee66eed6dec5ce48
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "japanese/train/access"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -1,8 +1,12 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
1
3
|
require 'japanese/train/access'
|
2
4
|
require 'thor'
|
3
5
|
|
4
6
|
module JapaneseTrainAccess
|
5
7
|
class CLI < Thor
|
8
|
+
|
9
|
+
default_task :jta
|
6
10
|
desc "jta", "If you want to seach train access information in japan near by now time."
|
7
11
|
def jta
|
8
12
|
Japanese::Train::Access.route
|
@@ -14,3 +18,5 @@ module JapaneseTrainAccess
|
|
14
18
|
end
|
15
19
|
end
|
16
20
|
end
|
21
|
+
|
22
|
+
JapaneseTrainAccess::CLI.start(ARGV)
|
@@ -16,14 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
18
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
-
|
20
|
-
if spec.respond_to?(:metadata)
|
21
|
-
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
22
|
-
else
|
23
|
-
raise "RubyGems 2.0 or newer is required to protect against " \
|
24
|
-
"public gem pushes."
|
25
|
-
end
|
26
|
-
=end
|
19
|
+
|
27
20
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
28
21
|
f.match(%r{^(test|spec|features)/})
|
29
22
|
end
|
@@ -36,4 +29,5 @@ Gem::Specification.new do |spec|
|
|
36
29
|
spec.add_development_dependency "rspec", "~> 3.0"
|
37
30
|
spec.add_runtime_dependency "nokogiri"
|
38
31
|
spec.add_development_dependency "pry"
|
32
|
+
spec.add_dependency 'thor'
|
39
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: japanese-train-access
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- haneru
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,10 +80,25 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: thor
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
description: You can seach japanese train roots.
|
84
98
|
email:
|
85
99
|
- haneru3@gmail.com
|
86
|
-
executables:
|
100
|
+
executables:
|
101
|
+
- japanese-train-access
|
87
102
|
extensions: []
|
88
103
|
extra_rdoc_files: []
|
89
104
|
files:
|
@@ -95,13 +110,12 @@ files:
|
|
95
110
|
- LICENSE.txt
|
96
111
|
- README.md
|
97
112
|
- Rakefile
|
98
|
-
- bin
|
99
|
-
- bin/
|
113
|
+
- bin/console
|
114
|
+
- bin/setup
|
115
|
+
- exe/japanese-train-access
|
100
116
|
- japanese-train-access.gemspec
|
101
|
-
- lib/japanese/train/.cli.rb.swp
|
102
117
|
- lib/japanese/train/access.rb
|
103
118
|
- lib/japanese/train/access/version.rb
|
104
|
-
- lib/japanese/train/cli.rb
|
105
119
|
homepage: https://github.com/haneru/japanese-train-access
|
106
120
|
licenses:
|
107
121
|
- MIT
|
Binary file
|
data/bin/japanese-train-access
DELETED
Binary file
|