rail-locator-api 1.0.8 → 1.0.10

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
  SHA256:
3
- metadata.gz: 4f6a408a63b18baacd0dfe6e78ff5e59ec50751cdb43306b0d164c83d9d8b709
4
- data.tar.gz: c1d9412d8ae148de6281f4b22a4fc9a8a8519c9c12d21f29f6df4c9c48628b49
3
+ metadata.gz: 5ad8eb20790a5683007906ec6e12336b735e02ba8f8c21001002741c30af168a
4
+ data.tar.gz: b760d9b7833e224221bb7fdb85c52b014d3a369e32681ea1d1465d3a192ef7f6
5
5
  SHA512:
6
- metadata.gz: d436af701fd497d2570ef16ace73d2c06d8386b6fd310dfb970dd6995955822a0a32680d63ddf6ce984d0252f0113f9ae240722cfe79aa88dec9b54cf7036e99
7
- data.tar.gz: 7638d8aa2b00433bde0d20da180c3df721064c6ce5e772efa971c093c483e5160149e3f034ffa9d846d567de833004dca89a5089437d8aed5192e0cbe226fd50
6
+ metadata.gz: 230d7a53891909a97314b5a708c0d2e702013cd8e78faedbd1e5e3b04c9b658abdaff83239bb8883079a0c7b99f3284f7ab09fc2a8a0c029f8351eb415af7099
7
+ data.tar.gz: d768ac7908a79afd4bee6571a060fec929711e4e96a4bd59aa6045a48269e6e4b0613bb0da5644bfd0db583440d12efa49a93d6798d2b47de3966be5300340b5
@@ -228,7 +228,7 @@ module RailLocatorApi
228
228
  when "app"
229
229
  app_api_url
230
230
  when "union"
231
- @request_builder.shift
231
+ @request_builder.path_parts_shift
232
232
  union_api_url
233
233
  else
234
234
  base_api_url
@@ -76,6 +76,10 @@ module RailLocatorApi
76
76
  @path_parts
77
77
  end
78
78
 
79
+ def path_parts_shift
80
+ @path_parts.shift
81
+ end
82
+
79
83
  def path
80
84
  @path_parts.join('/')
81
85
  end
@@ -1,3 +1,3 @@
1
1
  module RailLocatorApi
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rail-locator-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Osetrov