japanese-train-access 1.0.2 → 1.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03ce99500df806e7fe9288c80b7c1d0c17230199
4
- data.tar.gz: 3c573884cfc4d91d2e5e07ba9f31b9207b575688
3
+ metadata.gz: dc334b6c580bf0d0c5a81278a24e9b2454bea8ac
4
+ data.tar.gz: 0314889802733cb96fe26249e5d819802895a7b6
5
5
  SHA512:
6
- metadata.gz: bb6dc093ec64ba0d51cb2bc072c6302d0c321ecc58708bec67f2d46047927b026fb2ae7b0f68e7c104976c59082cc0a7a977aff59ba82b1858953f1186b72552
7
- data.tar.gz: c607f641a277187d989ce581dd0785409abec4c053caa2a8dd829efa3870c48c734eafd9f4318ad4b4c166ebac0796f28076208877c1bd4c1ec627ad10d7a7fd
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
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -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
- =begin
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
@@ -3,7 +3,6 @@ require 'nokogiri'
3
3
  require 'open-uri'
4
4
  require 'pry'
5
5
  require 'thor'
6
- require "japanese/train/cli"
7
6
 
8
7
  module Japanese
9
8
  module Train
@@ -1,7 +1,7 @@
1
1
  module Japanese
2
2
  module Train
3
3
  module Access
4
- VERSION = "1.0.2"
4
+ VERSION = "1.1.0"
5
5
  end
6
6
  end
7
7
  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.2
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-02 00:00:00.000000000 Z
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/.japanese-train-access.swp
99
- - bin/japanese-train-access
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
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'japanese/train/access'
4
-
5
- JapaneseTrainAccess::CLI.start
Binary file