ninja_van_api 0.2.9 → 0.2.11

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: 46b63ab57efde18cf00b9342b26cbb6c18d8ff5bbe7d43446441eabec61e7f3d
4
- data.tar.gz: fbbab02f3c92f0e38a1497ead24d9c9eb3069db1362fb5445e26e1795740fe07
3
+ metadata.gz: 80e501e9ba5e96f165d1ca603c84d9bac00f0c11bd7912d2a6decda09f66f643
4
+ data.tar.gz: 917e4943f46048398d32d4e8b9188cff4f5c1163da54a44478fd30ecb7c528da
5
5
  SHA512:
6
- metadata.gz: cb957e9d78ac9cc693afb08bc3981688f0156181566a49391d3e75d5968c9418a59e4e4fb7c903d01b29edbfcdb14a6568f2b552cf568c98decf30791ff194ca
7
- data.tar.gz: 823aaf159927b5738f841e285ba97c57f371a2228f79116d6087f0307ea9fee28b5b10647585c3e24a6e49a9bb107118bfb4b012e9b2c600291ddf9c0e0244aa
6
+ metadata.gz: c6f4faf1bf3990d305d86d13b4e0dc0a6d79e14adb17c59137f375a4a34e25373d9f14f8675246576d83ed7ad122a43383d807303ed17a4582df378028903192
7
+ data.tar.gz: 4390af670ccfa608d407583cb59dab991e3b2e579950b8e234744484153fc1e688da8d637c8e134d204495eaed3cc41ef68d66a77651323803580ad8a8d34a33
@@ -1,5 +1,5 @@
1
1
  module NinjaVanApi
2
- class WebhookController < ActionController::Base
2
+ class WebhooksController < ActionController::Base
3
3
  protect_from_forgery with: :null_session
4
4
  before_action :verify_webhook_signature
5
5
 
data/config/routes.rb CHANGED
@@ -1,3 +1,5 @@
1
1
  NinjaVanAPI::Engine.routes.draw do
2
- post '/webhooks', to: 'webhook#create'
2
+ controller :webhooks do
3
+ post "/" => :create
4
+ end
3
5
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NinjaVanAPI
4
- VERSION = '0.2.9'
4
+ VERSION = '0.2.11'
5
5
  end
data/lib/ninja_van_api.rb CHANGED
@@ -8,10 +8,12 @@ module NinjaVanAPI
8
8
  engine_name "ninja_van_api"
9
9
  isolate_namespace NinjaVanAPI
10
10
 
11
- # initializer "ninja_van_api.inflections" do
12
- # ActiveSupport::Inflector.inflections(:en) { |inflect| inflect.acronym "NinjaVanAPI" }
13
- # Rails.autoloaders.main.inflector.inflect("ninja_van_api" => "NinjaVanAPI")
14
- # end
11
+ initializer "ninja_van_api.inflections" do
12
+ ActiveSupport::Inflector.inflections(:en) do |inflect|
13
+ inflect.acronym "API"
14
+ inflect.acronym "NinjaVan"
15
+ end
16
+ end
15
17
  end
16
18
 
17
19
  # Objects
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ninja_van_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jane Trang Mai Nguyen
@@ -136,7 +136,7 @@ files:
136
136
  - LICENSE.txt
137
137
  - README.md
138
138
  - Rakefile
139
- - app/controllers/ninja_van_api/webhook_controller.rb
139
+ - app/controllers/ninja_van_api/webhooks_controller.rb
140
140
  - config/routes.rb
141
141
  - lib/ninja_van_api.rb
142
142
  - lib/ninja_van_api/client.rb