go_transit 0.6.0 → 0.7.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
  SHA256:
3
- metadata.gz: b427876f28482bccc9bc67073baaa1909bad6d3e5e72d9a04f2d17fdeda5ed6f
4
- data.tar.gz: fc02cfe20e250e6132debe7144bf0e024d2e4bd0e3abb03036f9e1024a2d47eb
3
+ metadata.gz: 4d5d1fee0d59ee94a133072399a1c48e69ed0a4ae42aefdd912b4e9d9aae1e0a
4
+ data.tar.gz: 578274e45c9f5ea6dbd5ad5cef78dbe51d4257c459523049c1d204fa7f2f8d04
5
5
  SHA512:
6
- metadata.gz: 07432de000d4d7acd545153d575c243581aae65f9f76851e106bd21951a901779162118453048c15bc51f792b60daffb1a02c02d648c8dd9f8fb18e4cd684aa9
7
- data.tar.gz: 5e0b9da7d99f54b9ac820a6939fdc8e81cd642eb65f6f2fd55c0d23e94fa3d8700e6c8502b7dc14d5e71fc1947ad18d21610b7a6ae5744c71beb66677932c74f
6
+ metadata.gz: e73147bc32c8819acee2000c42f589fffcc7c0a1f4a923328d91941e2f8a40db6a12606a76876d2b97126e910f84e3b82c95293a670dfab8eedfcfc35ad1c805
7
+ data.tar.gz: 0f2682655f5c8ce06ff258e20628cdbf1816c1faa41a6feafa9a9bfd744ed9b9492fbacdaed141b1cbc4336895f86010e47c78cf351fa4264578276217ad63bb
@@ -1,5 +1,13 @@
1
1
  module GoTransit
2
2
  class Schedule::AllLines::Line < ApiResource
3
3
  attr_accessor :name, :code, :is_bus, :is_train, :variants
4
+
5
+ def train?
6
+ is_train == true
7
+ end
8
+
9
+ def bus?
10
+ is_bus == true
11
+ end
4
12
  end
5
- end
13
+ end
@@ -8,7 +8,7 @@ module GoTransit
8
8
  :modified_date, :occupancy_percentage
9
9
 
10
10
  def in_motion?
11
- is_in_motion.to_i.positive?
11
+ is_in_motion
12
12
  end
13
13
  end
14
- end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module GoTransit
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: go_transit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Mazur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-21 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport