zvv-cli 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 777c903a2c90173b69cd59862ca8c003b71444c5
4
- data.tar.gz: 00ede3ddf90dc5cdde3e534dd9a6c7229a78d8d0
3
+ metadata.gz: 73048c291b55fcae9442dcfce0cef615284c17dd
4
+ data.tar.gz: debe2ec3713322463c0d51678491d0ba46c1f150
5
5
  SHA512:
6
- metadata.gz: f719422c9297a4c32f9f2d55f42f83dacf7ec4429bc0d207507b9bde89f6f01308f27c4f14f158833fb8ebf5062a2d726e63900bd3035a091ba576aaffb201e5
7
- data.tar.gz: 718013646b054953415be891f577714010fec8515682e78af74bc30dd6e9df092af4feec248ca4886f98a623ec2dbf8aa549477b11bc133dafef40d3a94dc8dd
6
+ metadata.gz: decaedd03da53003a10801207e53c75a55e52eb19619c1cae7aa658c1b8aa800f74801bbf0456856a60f777804c2e34661d060a1a27745528d4b93170ed8a3ff
7
+ data.tar.gz: 5bff1a218c2c562967ba20163157c75adf7542425d2034ed11314de5f1400582c490cf0e9925901e5f60556b76794b5c67d74ce3785a241a7883a63a72d6496e
data/Gemfile CHANGED
@@ -1,10 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in zvv-cli.gemspec
4
- gemspec group: :development
5
-
6
- group :runtime do
7
- gem 'commander'
8
- gem 'transprt'
9
- gem 'colorize'
10
- end
3
+ gemspec
data/exe/zvv CHANGED
@@ -63,7 +63,7 @@ class App
63
63
  c.action do |args, options|
64
64
  time = args[2] || Time.now.to_s
65
65
 
66
- isArrivalTime = time.start_with?('@') || time.end_with?('@') ? 1 : 0
66
+ isArrivalTime = time.start_with?('@') || time.end_with?('@') ? '1' : '0'
67
67
  time = time.gsub('@', '')
68
68
 
69
69
  time += ':00' unless time.include? ':'
@@ -71,7 +71,7 @@ class App
71
71
  time += 24 * 60 ** 2 if time < Time.now # Look up tomorrow's connections
72
72
 
73
73
 
74
- connections = Transprt.connections(
74
+ connections = Transprt::Client.new.connections(
75
75
  from: args[0],
76
76
  to: args[1],
77
77
  date: time.strftime('%Y-%m-%d'),
data/lib/zvv/cli.rb CHANGED
@@ -4,9 +4,3 @@ if ENV['ZVV_DEBUG']
4
4
  require 'byebug'
5
5
  require 'pry-byebug'
6
6
  end
7
-
8
- module Zvv
9
- module Cli
10
- # Your code goes here...
11
- end
12
- end
@@ -1,5 +1,5 @@
1
1
  module Zvv
2
2
  module Cli
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
data/zvv-cli.gemspec CHANGED
@@ -28,6 +28,6 @@ Gem::Specification.new do |spec|
28
28
 
29
29
  # TODO fork & update
30
30
  spec.add_dependency "commander"
31
- spec.add_dependency "transprt"
31
+ spec.add_dependency "transprt", "~> 0.2.2"
32
32
  spec.add_dependency "colorize"
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zvv-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - PJK
@@ -112,16 +112,16 @@ dependencies:
112
112
  name: transprt
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: 0.2.2
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 0.2.2
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: colorize
127
127
  requirement: !ruby/object:Gem::Requirement