dekiru 0.5.0 → 0.5.2

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: afd167e9d998eb5aa11c66c794a6d7c4c7852d8c000fea2832cff7d1a3b2ba21
4
- data.tar.gz: b91f62debd887e6995fcd11500b3e56f0ae625b7d241b4ed70554b7be5d0b0d3
3
+ metadata.gz: 5236c7dec0f57098ef3278eb56f1ba700885cf19acd5a94fa4b0dea97d9ead96
4
+ data.tar.gz: 8e820fb5946bd66d0a81be3c4b5a07343fd41ee2947641be0ae307c1540c9e44
5
5
  SHA512:
6
- metadata.gz: 3b303856ea984d22f835a31fe670556697e76da4a7741183713afbe8453b80a8ed7d63740e3126d74bae38e2fd6ae48e93d86096af358fc0f33d226908055a9f
7
- data.tar.gz: e32c040b3d0cc23034a1992ac732980886489b3610b641c4d58782c3091ffc90e08e5bfffe51802326983a207bff2c802b052f0fb84391442065ccf209c56a01
6
+ metadata.gz: 4ede10e1096b73e97b2c6fb8d21dd7f85a60660df486a9df0716b4a2ea6c0cbca60cc352be45737b7f1a392d18fbf1e50b011c096416d7f5cfb7c931f70126d4
7
+ data.tar.gz: bed88a1ec88187001cff444c441ab91ea5e884665b96fee28610a01e3f52150a5f30b1230b27b073b47deb900fedc341bbe297ac995370dbced8520bcc2d7951
@@ -16,7 +16,7 @@ jobs:
16
16
  matrix:
17
17
  ruby: ["3.0", "3.1", "3.2"]
18
18
  steps:
19
- - uses: actions/checkout@v3
19
+ - uses: actions/checkout@v4
20
20
 
21
21
  - name: Set up Ruby
22
22
  uses: ruby/setup-ruby@v1
@@ -2,6 +2,10 @@ module Dekiru
2
2
  module Capybara
3
3
  module Matchers
4
4
  class JsNoErrorMatcher
5
+ def initialize(example_description)
6
+ @example_description = example_description
7
+ end
8
+
5
9
  def matches?(page_or_logs)
6
10
  logs = if page_or_logs.respond_to?(:driver)
7
11
  page_or_logs.driver.browser.logs.get(:browser)
@@ -9,7 +13,7 @@ module Dekiru
9
13
  page_or_logs
10
14
  end
11
15
  logs.find_all { |log| log.level == 'WARNING' }.each do |log|
12
- STDERR.puts 'WARN: javascript warning'
16
+ STDERR.puts "WARN: javascript warning in #{@example_description}"
13
17
  STDERR.puts log.message
14
18
  end
15
19
 
@@ -27,7 +31,11 @@ module Dekiru
27
31
  end
28
32
 
29
33
  def have_no_js_errors
30
- JsNoErrorMatcher.new
34
+ # NOTE: Extract "\"displays tooltip\" (./spec/system/my_awesome_spec.rb:101)"
35
+ # From "#<RSpec::ExampleGroups::Nested::Nested_4::Nested_4 \"displays tooltip\" (./spec/system/my_awesome_spec.rb:101)>"
36
+ example_description = self.inspect.split(' ', 2).last.chop
37
+
38
+ JsNoErrorMatcher.new(example_description)
31
39
  end
32
40
  end
33
41
  end
@@ -4,7 +4,7 @@ namespace :db do
4
4
  task check_conflict: :environment do
5
5
  migrations_status =
6
6
  if ActiveRecord::Base.connection.respond_to?(:migration_context)
7
- ActiveRecord::Base.connection.migration_context.migrations_status
7
+ ActiveRecord::Base.connection.migration_context.current_version.zero? ? [] : ActiveRecord::Base.connection.migration_context.migrations_status
8
8
  else
9
9
  paths = ActiveRecord::Tasks::DatabaseTasks.migrations_paths
10
10
  ActiveRecord::Migrator.migrations_status(paths)
@@ -1,3 +1,3 @@
1
1
  module Dekiru
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dekiru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akihiro Matsumura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-09 00:00:00.000000000 Z
11
+ date: 2023-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails