failbot_rails 0.5.0 → 0.7.0

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
- SHA1:
3
- metadata.gz: 5c336a0854d71b89ef289b7f511780d501754439
4
- data.tar.gz: 453e2a0c994966177986444085e2f4d2cc6279df
2
+ SHA256:
3
+ metadata.gz: 441b416474c1c69f22134a48f0020ad0785dc5553265f53cc783ee8197a9f5b3
4
+ data.tar.gz: 519fe049ede9e2befbcdd49cf01122dd764f3e1c4a08123dc872084702ee40ca
5
5
  SHA512:
6
- metadata.gz: 6bf616598c15c5dab0bccda0ca25bd156a01b56a4a9eeaad1dfe325fca0b38ef6b464b3a7a77d235592a0332c4067fe00883376654c09888a13d6e3fdbf5d228
7
- data.tar.gz: cc390ef800cdb1ad245c73b0b562d0b1289f06524194662fcb1f9d922da8bb1211cb0e1048b95f5d7b65b874d57b089510039d4314ca5c866cda5080384e4032
6
+ metadata.gz: 3d9abe3b2fa52c43867175219a9a7170404ddf613a69f5c5eb8497e56341e087c7cb109c10dbf43d49274490b4c6f8f4b6b6269251aab4f70dd439775d4df5cf
7
+ data.tar.gz: ffbf33ec1535ce975f005e2b7771a6f026f8f26e860933f5fd72169ccea2ffe423893b4bfe5d2b152b03cae30239d100c28af1bd3e7cb9404621b951fba7c9b8
data/Dockerfile ADDED
@@ -0,0 +1,6 @@
1
+ FROM ruby:2.5
2
+
3
+ WORKDIR /ci
4
+ ADD . .
5
+
6
+ ENTRYPOINT ["/ci/script/cibuild.docker"]
@@ -14,12 +14,16 @@ Gem::Specification.new do |spec|
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
17
+ spec.files.reject! { |filename| filename == ".ruby-version" }
18
+
17
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
21
  spec.require_paths = ["lib"]
20
22
 
21
23
  spec.add_runtime_dependency "failbot", ">= 0.9.2", "< 3"
22
- spec.add_runtime_dependency "rails", ">= 4"
24
+ spec.add_runtime_dependency "rails", "~> 6.0"
23
25
 
24
26
  spec.add_development_dependency "rake", "~> 10.0"
27
+
28
+ spec.required_ruby_version = ">= 2.5.0"
25
29
  end
data/lib/failbot_rails.rb CHANGED
@@ -74,7 +74,7 @@ module FailbotRails
74
74
  def self._failbot_safe_context(context)
75
75
  new_context = {}.merge(context)
76
76
  filters = Rails.application.config.filter_parameters
77
- filter = ActionDispatch::Http::ParameterFilter.new(filters)
77
+ filter = ActiveSupport::ParameterFilter.new(filters)
78
78
 
79
79
  if new_context.key?(:params)
80
80
  new_context[:params] = filter.filter(new_context[:params])
@@ -1,3 +1,3 @@
1
1
  module FailbotRails
2
- VERSION = "0.5.0"
2
+ VERSION = "0.7.0"
3
3
  end
data/script/cibuild CHANGED
@@ -1,6 +1,8 @@
1
- #!/bin/sh
2
- set -e
1
+ #!/bin/bash
3
2
 
4
- bundle --path vendor/gems --binstubs vendor/gems
3
+ set -e
4
+ set -x
5
5
 
6
- bundle exec rake
6
+ img=failbotd:$(git rev-parse HEAD)
7
+ docker build -f Dockerfile . -t $img
8
+ docker run --rm -i $img
@@ -0,0 +1,8 @@
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ export PATH=/usr/share/rbenv/shims:$PATH
5
+
6
+ bundle --path vendor/gems --binstubs vendor/gems
7
+
8
+ bundle exec rake
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: failbot_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sr
8
8
  - Grant Rodgers
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-06-19 00:00:00.000000000 Z
12
+ date: 2021-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: failbot
@@ -35,16 +35,16 @@ dependencies:
35
35
  name: rails
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '4'
40
+ version: '6.0'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '4'
47
+ version: '6.0'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rake
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -67,6 +67,7 @@ extensions: []
67
67
  extra_rdoc_files: []
68
68
  files:
69
69
  - ".gitignore"
70
+ - Dockerfile
70
71
  - Gemfile
71
72
  - LICENSE.txt
72
73
  - README.md
@@ -75,11 +76,12 @@ files:
75
76
  - lib/failbot_rails.rb
76
77
  - lib/failbot_rails/version.rb
77
78
  - script/cibuild
79
+ - script/cibuild.docker
78
80
  homepage: https://github.com/github/failbot_rails
79
81
  licenses:
80
82
  - MIT
81
83
  metadata: {}
82
- post_install_message:
84
+ post_install_message:
83
85
  rdoc_options: []
84
86
  require_paths:
85
87
  - lib
@@ -87,16 +89,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
89
  requirements:
88
90
  - - ">="
89
91
  - !ruby/object:Gem::Version
90
- version: '0'
92
+ version: 2.5.0
91
93
  required_rubygems_version: !ruby/object:Gem::Requirement
92
94
  requirements:
93
95
  - - ">="
94
96
  - !ruby/object:Gem::Version
95
97
  version: '0'
96
98
  requirements: []
97
- rubyforge_project:
98
- rubygems_version: 2.5.1
99
- signing_key:
99
+ rubygems_version: 3.1.4
100
+ signing_key:
100
101
  specification_version: 4
101
102
  summary: Glue code for using Failbot in a Rails app
102
103
  test_files: []