zvv-cli 0.1.1 → 0.1.2
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 +4 -4
- data/Gemfile +1 -8
- data/exe/zvv +2 -2
- data/lib/zvv/cli.rb +0 -6
- data/lib/zvv/cli/version.rb +1 -1
- data/zvv-cli.gemspec +1 -1
- metadata +5 -5
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 73048c291b55fcae9442dcfce0cef615284c17dd
         | 
| 4 | 
            +
              data.tar.gz: debe2ec3713322463c0d51678491d0ba46c1f150
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: decaedd03da53003a10801207e53c75a55e52eb19619c1cae7aa658c1b8aa800f74801bbf0456856a60f777804c2e34661d060a1a27745528d4b93170ed8a3ff
         | 
| 7 | 
            +
              data.tar.gz: 5bff1a218c2c562967ba20163157c75adf7542425d2034ed11314de5f1400582c490cf0e9925901e5f60556b76794b5c67d74ce3785a241a7883a63a72d6496e
         | 
    
        data/Gemfile
    CHANGED
    
    
    
        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
    
    
    
        data/lib/zvv/cli/version.rb
    CHANGED
    
    
    
        data/zvv-cli.gemspec
    CHANGED
    
    
    
        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. | 
| 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:  | 
| 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:  | 
| 124 | 
            +
                    version: 0.2.2
         | 
| 125 125 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 126 126 | 
             
              name: colorize
         | 
| 127 127 | 
             
              requirement: !ruby/object:Gem::Requirement
         |