bullet_train-api 1.0.3 → 1.0.4

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: 5be2aee56fc837d4159a61c26b7e0f7c5a89e1da5823196cccc5b26bd7c96697
4
- data.tar.gz: 13f8db965f6df33908e6ef40d8cfe1f8f96c5cabdea49b18ccd14062baba7124
3
+ metadata.gz: 3193b351fc4f2279c115fb5f0c9b7a4faa716aaf471ef46e1cef99ede8e4f22f
4
+ data.tar.gz: f1833fdccd067769780ddfb225afa34fb4c41180b710a6c8125d212e14b98ced
5
5
  SHA512:
6
- metadata.gz: 1f5350b9b438f680233ec7d39869a6c4b246e2ea33b17a3c96d875f61aa4f7534fd807b639173f9e59829e1eb5e49678ecfb46212275e81772ae748035092db4
7
- data.tar.gz: e9301047e1117f21f63de5f8ce215693ab77573aef93c0509256b12ea5537205070e8d9107f165c02385e47e840495d9b00890e3e6bac8d4ebcfb5f12476d53c
6
+ metadata.gz: eb7b59e156cadb8ac52ecc6e5e1dbf3b9d0910a99fcffcb77b3785f8a557e27fda9ab16049afe08cdbfa23d78975980e10ccf03c3b15e667eb88c793990d5af2
7
+ data.tar.gz: 46aac6d3e39cbc8bd4593f7ee16d77d5669fb582c0949abe6cd78fd5c3d9b6fec07b9aebce72b21d3eac1527446a6902f7d197e894b8c351802adc01c11aceb3
@@ -7,8 +7,7 @@
7
7
  module Api
8
8
  def self.topic
9
9
  path = caller.find { |path| path.include?("controllers/api") && !path.include?("app/controllers/api.rb") }
10
- path.gsub!(/^#{Rails.root}\/app\/controllers\/api\/v\d+\//, "")
11
- path.split("_endpoint.").first
10
+ path.split(/\/app\/controllers\/api\/v\d+\//).last.split("_endpoint.").first
12
11
  end
13
12
 
14
13
  def self.serializer
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Api
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-31 00:00:00.000000000 Z
11
+ date: 2022-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails