repost 0.3.7 → 0.3.8

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: 78397f467abffbff9b3304044d2ed3b42180612329aa79b08b38ab39b5ae0556
4
- data.tar.gz: 7c584b1fe71c7fc5fc853fc2d062b5902ab03876db04fe0cd14d6304672916bb
3
+ metadata.gz: a14ab972e2dc07c9812af6c4faaa53a800f747fc2ea10d0270ef77a5860f9947
4
+ data.tar.gz: c27f117e61525fcdd16c9b7ca3fee667ce5740ab0a4407ea7106a608684bd341
5
5
  SHA512:
6
- metadata.gz: cef261901f56c1914a56b5ea297d8f667d6bddef689b47f976e3585fd36311a42bb25ef8bd733fdaf92e126bc8d18df54c51401f89e7848b634f3dedbb1eea0e
7
- data.tar.gz: 90050bab9e770eca67bc25f1acf3453e8d6d837e1eeacfeaae40f1ecafe2e04e65c8544449a3b8a1150818556ba9b6ec0226db20af0137feb20eb1fdf1163170
6
+ metadata.gz: d354a54440a8089075e919b9a8f4f15f1f17a4f849dffd91602561e6d2ea8d393e0eb503bdb6fd1eda353e3b8f3d704e852020c5aaca2f6e91b4596301280a72
7
+ data.tar.gz: dfce38fbd72e5d8fd8d2896767cfa257721b33c4fdeeefdbcaba73a68dd6d5193dae91a8a26e45cbd7993fc6fcc01d4bfb7fd2b5549068130b965c625cb2899e
@@ -3,6 +3,7 @@ if defined?(Rails) && defined?(ActiveSupport)
3
3
  class ::ActionController::Base
4
4
 
5
5
  def repost(url, params: {}, options: {})
6
+ status = options.delete(:status) || :ok
6
7
  authenticity_token = form_authenticity_token if ['auto', :auto].include?(options[:authenticity_token])
7
8
  render html: Repost::Senpai.perform(
8
9
  url,
@@ -11,7 +12,7 @@ if defined?(Rails) && defined?(ActiveSupport)
11
12
  authenticity_token: authenticity_token,
12
13
  autosubmit_nonce: content_security_policy_nonce,
13
14
  }.compact)
14
- ).html_safe
15
+ ).html_safe, status: status
15
16
  end
16
17
 
17
18
  alias :redirect_post :repost
@@ -1,3 +1,3 @@
1
1
  module Repost
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - YaroslavO
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-20 00:00:00.000000000 Z
11
+ date: 2021-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler