bullet_train-fields 1.0.0 → 1.0.1

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: 7fdef51272f0cd0ac4d760b867f51ac4b6c8d8198c11321ea726b75954752ca6
4
- data.tar.gz: bc88415a493dcde1ce185ccd54429716fe0b61c28d87b842e2c255ecf1be70ba
3
+ metadata.gz: d5d6dcb2c56711e2ad0d96d66cd8c74c71bb52f955470275555874576a924178
4
+ data.tar.gz: 7930b95a428daf8dff8b60f44801016494b4044f60e9a57d3ae186bde090d420
5
5
  SHA512:
6
- metadata.gz: 69e1ff8c6386572480de92c77ed4ca2a1561285d4183bf27fd6eca297d006aff60b5579a6bcc2700fe7edda3b9a4470d1beb43bc3c41ce0e67d00aea9f933ab5
7
- data.tar.gz: df518f2a4f2d6cae1fbc8bd0df7cf39076b7d8b16343285bb35c5569c8271c1c9d9e60b218faa39e465ffeb9a22402a87b7e15c71a9010216b78cd5c7e669f2b
6
+ metadata.gz: ef3732d48c472cbb5d360e895f54f03d8716f6b621aeb14cf06dd93a4283c768f4ea103163ea6244494ab9369d4f6ef12413e18004757af8657120acbffcec8e
7
+ data.tar.gz: c0612f82b23d22c8ec4a411535f59f743a5506e1f9424896ffbd6381ed578fbc7d0e301f2bba90106462ae6c3c1888d1b3105a55da9949552fd8ae9cabd3f945
@@ -0,0 +1,10 @@
1
+ class Account::Cloudinary::UploadSignaturesController < Account::ApplicationController
2
+ skip_before_action :ensure_onboarding_is_complete_and_set_next_step
3
+ def new
4
+ render plain: Cloudinary::Utils.api_sign_request(upload_signature_params.to_h, Cloudinary.config.api_secret)
5
+ end
6
+
7
+ def upload_signature_params
8
+ params.require(:data).permit(:timestamp, :source)
9
+ end
10
+ end
data/config/routes.rb CHANGED
@@ -1,2 +1,9 @@
1
1
  Rails.application.routes.draw do
2
+ namespace :account do
3
+ shallow do
4
+ namespace :cloudinary do
5
+ resources :upload_signatures
6
+ end
7
+ end
8
+ end
2
9
  end
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Fields
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
@@ -35,6 +35,7 @@ files:
35
35
  - README.md
36
36
  - Rakefile
37
37
  - app/assets/config/bullet_train_fields_manifest.js
38
+ - app/controllers/account/cloudinary/upload_signatures_controller.rb
38
39
  - app/controllers/concerns/fields/boolean_support.rb
39
40
  - app/controllers/concerns/fields/controller_support.rb
40
41
  - app/controllers/concerns/fields/date_and_time_support.rb