rails-render-component 5.0.1 → 6.0.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
2
  SHA256:
3
- metadata.gz: 645da0a46e68ef46d7b53edacc8e124b3cec5df9586e8fb55ccf062a41ce7555
4
- data.tar.gz: 5ad018080a3cfbc308bf5937fe040ed71e55d1d356bdc7add297e2a6f50dabc4
3
+ metadata.gz: 5c73872e815efc4a077d04f027b1da6b45744084b5dd5ab78591087d67eb4ffb
4
+ data.tar.gz: 6ff17977439f1977d11fe40d9e788d65eecc0455b09e1f30babbee1f4c3991f9
5
5
  SHA512:
6
- metadata.gz: 90fe6727aeb85994873f1a61753681366a63329084f5d9979e228763cc843f031d1846ed4dfd09dc8e72b2ee827b8669ebac8241a1445a1c5f73a2c24e71e346
7
- data.tar.gz: 4d9baa3a66e0476dcc7a34cef7002dd8938a3582b645aaffdec38f7784e8678b1b5119b8e1312bd22d15da484815ed90d21eb76eea7506c0ff802d356a4cf2a0
6
+ metadata.gz: 217a076d62cd010153d5fdd8362f52abaed16f1bc08e339f9049cdaf79705cf425df6a11e16aefabcafaba3ee191b776cdb281c9546f6a36a73567690c7236eb
7
+ data.tar.gz: f9ae14a6e79848ee8916e2b353479e2f64ecd59b864afc3ba0d19f1a3d8067b630de5ac06c6d807446f5b7a5e48a962e70cf3f8ea2ed809eab2131196bf9e1d9
@@ -0,0 +1,54 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: build
9
+
10
+ on: [push, pull_request]
11
+
12
+ jobs:
13
+ test:
14
+ runs-on: ubuntu-20.04
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ ruby:
19
+ - 3.0
20
+ - 2.7
21
+ - 2.6
22
+ - 2.5
23
+ - truffleruby
24
+ - jruby-9.2.15.0
25
+ gemfile:
26
+ - Gemfile-rails.5.0
27
+ - Gemfile-rails.5.1
28
+ - Gemfile-rails.5.2
29
+ - Gemfile-rails.6.0
30
+ - Gemfile-rails.6.1
31
+ - Gemfile-rails.7.0
32
+ exclude:
33
+ - gemfile: Gemfile-rails.7.0
34
+ ruby: 2.5
35
+ - gemfile: Gemfile-rails.7.0
36
+ ruby: 2.6
37
+ - gemfile: Gemfile-rails.7.0
38
+ ruby: jruby-9.2.15.0
39
+ - gemfile: Gemfile-rails.5.0
40
+ ruby: 3.0
41
+ - gemfile: Gemfile-rails.5.1
42
+ ruby: 3.0
43
+ - gemfile: Gemfile-rails.5.2
44
+ ruby: 3.0
45
+
46
+ env:
47
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.x
48
+ steps:
49
+ - uses: actions/checkout@v2
50
+ - uses: ruby/setup-ruby@v1
51
+ with:
52
+ ruby-version: ${{ matrix.ruby }}
53
+ bundler-cache: true
54
+ - run: (cd test/example ; bundle exec rake)
@@ -0,0 +1,9 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Bundler 1.x default to insecure http:// for github: shortcut
4
+ git_source(:github){ |repo_name| "https://github.com/#{repo_name}.git" }
5
+
6
+ gemspec :path => ".."
7
+
8
+ gem "activerecord", github: 'rails/rails', branch: 'main'
9
+
@@ -3,7 +3,7 @@
3
3
  module Rails
4
4
  module Render
5
5
  module Component
6
- VERSION = "5.0.1"
6
+ VERSION = "6.0.0"
7
7
  end
8
8
  end
9
9
  end
@@ -9,7 +9,8 @@ module RenderComponent
9
9
  end
10
10
  end
11
11
 
12
- def flash(refresh = false) #:nodoc:
12
+ # broken, flash never disappear
13
+ def ___flash(refresh = false) #:nodoc:
13
14
  if @component_flash.nil? || refresh
14
15
  @component_flash =
15
16
  if parent_controller&.flash.is_a?(ActionDispatch::Flash::FlashHash)
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = "render actions in other controllers for their rendered response."
12
12
  spec.description = "Components allow you to call other actions for their rendered response while executing another action"
13
- spec.homepage = "http://github.com/mathieujobin/render_component."
13
+ spec.homepage = "http://github.com/mathieujobin/render_component/"
14
14
  spec.licenses = ["MIT"]
15
15
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
16
16
 
@@ -29,6 +29,6 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ["lib"]
31
31
 
32
- spec.add_runtime_dependency("railties", ">= 5.0", "< 7")
32
+ spec.add_runtime_dependency("railties", ">= 5.0", "< 8")
33
33
  spec.add_development_dependency("rubocop")
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-render-component
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2021-02-04 00:00:00.000000000 Z
14
+ date: 2021-08-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties
@@ -22,7 +22,7 @@ dependencies:
22
22
  version: '5.0'
23
23
  - - "<"
24
24
  - !ruby/object:Gem::Version
25
- version: '7'
25
+ version: '8'
26
26
  type: :runtime
27
27
  prerelease: false
28
28
  version_requirements: !ruby/object:Gem::Requirement
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '5.0'
33
33
  - - "<"
34
34
  - !ruby/object:Gem::Version
35
- version: '7'
35
+ version: '8'
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rubocop
38
38
  requirement: !ruby/object:Gem::Requirement
@@ -58,6 +58,7 @@ extensions: []
58
58
  extra_rdoc_files: []
59
59
  files:
60
60
  - ".document"
61
+ - ".github/workflows/build.yml"
61
62
  - ".gitignore"
62
63
  - ".travis.yml"
63
64
  - LICENSE.txt
@@ -70,18 +71,19 @@ files:
70
71
  - gemfiles/Gemfile-rails.5.2.x
71
72
  - gemfiles/Gemfile-rails.6.0.x
72
73
  - gemfiles/Gemfile-rails.6.1.x
74
+ - gemfiles/Gemfile-rails.7.0.x
73
75
  - lib/rails/render/component.rb
74
76
  - lib/rails/render/component/version.rb
75
77
  - lib/render_component/components.rb
76
78
  - rails-render-component.gemspec
77
- homepage: http://github.com/mathieujobin/render_component.
79
+ homepage: http://github.com/mathieujobin/render_component/
78
80
  licenses:
79
81
  - MIT
80
82
  metadata:
81
83
  allowed_push_host: https://rubygems.org
82
- homepage_uri: http://github.com/mathieujobin/render_component.
83
- source_code_uri: http://github.com/mathieujobin/render_component.
84
- changelog_uri: http://github.com/mathieujobin/render_component.
84
+ homepage_uri: http://github.com/mathieujobin/render_component/
85
+ source_code_uri: http://github.com/mathieujobin/render_component/
86
+ changelog_uri: http://github.com/mathieujobin/render_component/
85
87
  post_install_message:
86
88
  rdoc_options: []
87
89
  require_paths:
@@ -97,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
99
  - !ruby/object:Gem::Version
98
100
  version: '0'
99
101
  requirements: []
100
- rubygems_version: 3.0.8
102
+ rubygems_version: 3.0.9
101
103
  signing_key:
102
104
  specification_version: 4
103
105
  summary: render actions in other controllers for their rendered response.