i18n_proofreading 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 578d960a613d57612657b905fb64b4625dd665e19ef02d90c61493d032058372
4
- data.tar.gz: b8653d8cee11804f5765391a55e8b055d415ccb0681d7def0b144c1987f6410f
3
+ metadata.gz: e12e98fe3e32eab4dae56415912d4fed0568efa383f84750cd40e47735f216bf
4
+ data.tar.gz: b9f9fff4ecbe7f6ff3a1189ad8ce7e234f45c7350b41c44b6ebcf027010f4f12
5
5
  SHA512:
6
- metadata.gz: c85beac359797b0eb32321adcce88f0859e4b30943754e9ff4fa106168ccc4891ccf678e31b0f908d80f1b42183a5696ad7371dddd529378df49c11d9d2016f4
7
- data.tar.gz: 04e0f42e8a0c1991094fc13b84530cb39876073f1f9e615d6d1c8df2f11e398c867ef78f66f46570bd9e5c51b311f00c2d0df1a180206de533ac25e94a3b0acf
6
+ metadata.gz: 10c800c066572e20ce3b3f650ded68b86758a8b0401aca97b5738220c2d38792decd0c804db4ab19bc5d2a8253b9bc3aeec5ef22ab3204d5666e915962d1454d
7
+ data.tar.gz: 5393883b7d37a4ef85bda0611ab34a9663330ec14adec2e02bfadc5b69a78e3f72ba8a7dc656a6a98b2721c58de4257f22d7f9f6532345fccbd4e14d3e4a8bb7
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.1]
6
+
7
+ - Add Minitest **system tests** that drive the widget in headless Chrome
8
+ (Capybara + Selenium): entering suggest mode, marker stripping, opening the
9
+ popover, submitting a suggestion, and Escape to exit. Run with
10
+ `rake test:system`; `rake test` stays browser-free. Dev/test only — no runtime
11
+ change and no new runtime dependencies.
12
+
5
13
  ## [0.9.0]
6
14
 
7
15
  - **Renamed the gem `i18n_feedback` → `i18n_proofreading`.** The name now says
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Gem Version](https://img.shields.io/gem/v/i18n_proofreading)](https://rubygems.org/gems/i18n_proofreading)
4
4
  [![Downloads](https://img.shields.io/gem/dt/i18n_proofreading)](https://rubygems.org/gems/i18n_proofreading)
5
- [![CI](https://github.com/yshmarov/i18n-proofreading/actions/workflows/ci.yml/badge.svg)](https://github.com/yshmarov/i18n-proofreading/actions/workflows/ci.yml)
5
+ [![CI](https://github.com/yshmarov/i18n_proofreading/actions/workflows/ci.yml/badge.svg)](https://github.com/yshmarov/i18n_proofreading/actions/workflows/ci.yml)
6
6
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](MIT-LICENSE)
7
7
 
8
8
  In-context translation proofreading for Rails.
@@ -14,9 +14,9 @@ It is meant for development and staging, never production.
14
14
 
15
15
  ![Click any string in your running app and suggest a better wording](i18n-proofreading-demo.gif)
16
16
 
17
- <video src="https://github.com/yshmarov/i18n-proofreading/raw/main/i18n-proofreading-demo-640-high.mp4" controls muted playsinline width="640">
17
+ <video src="https://github.com/yshmarov/i18n_proofreading/raw/main/i18n-proofreading-demo-640-high.mp4" controls muted playsinline width="640">
18
18
  Your browser can't play this video —
19
- <a href="https://github.com/yshmarov/i18n-proofreading/raw/main/i18n-proofreading-demo-640-high.mp4">download it here</a>.
19
+ <a href="https://github.com/yshmarov/i18n_proofreading/raw/main/i18n-proofreading-demo-640-high.mp4">download it here</a>.
20
20
  </video>
21
21
 
22
22
  - **Zero UI dependencies.** The widget is plain JavaScript and styles itself. No
data/Rakefile CHANGED
@@ -6,9 +6,19 @@ require 'bundler/setup'
6
6
  require 'bundler/gem_tasks'
7
7
 
8
8
  require 'rake/testtask'
9
+
10
+ # Unit/integration tests — no browser, runs on every Ruby x Rails combo.
9
11
  Rake::TestTask.new(:test) do |t|
10
12
  t.libs << 'test'
11
- t.pattern = 'test/**/*_test.rb'
13
+ t.test_files = FileList['test/**/*_test.rb'].exclude('test/system/**/*')
14
+ t.warning = false
15
+ t.verbose = false
16
+ end
17
+
18
+ # System tests — drive the widget in headless Chrome (needs a browser).
19
+ Rake::TestTask.new('test:system') do |t|
20
+ t.libs << 'test'
21
+ t.test_files = FileList['test/system/**/*_test.rb']
12
22
  t.warning = false
13
23
  t.verbose = false
14
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module I18nProofreading
4
- VERSION = '0.9.0'
4
+ VERSION = '0.9.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_proofreading
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Shmarov
@@ -83,12 +83,12 @@ files:
83
83
  - lib/i18n_proofreading/version.rb
84
84
  - lib/i18n_proofreading/widget.js
85
85
  - lib/i18n_proofreading/widget.rb
86
- homepage: https://github.com/yshmarov/i18n-proofreading
86
+ homepage: https://github.com/yshmarov/i18n_proofreading
87
87
  licenses:
88
88
  - MIT
89
89
  metadata:
90
- source_code_uri: https://github.com/yshmarov/i18n-proofreading
91
- changelog_uri: https://github.com/yshmarov/i18n-proofreading/blob/main/CHANGELOG.md
90
+ source_code_uri: https://github.com/yshmarov/i18n_proofreading
91
+ changelog_uri: https://github.com/yshmarov/i18n_proofreading/blob/main/CHANGELOG.md
92
92
  rubygems_mfa_required: 'true'
93
93
  rdoc_options: []
94
94
  require_paths:
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  requirements: []
107
- rubygems_version: 4.0.6
107
+ rubygems_version: 3.6.9
108
108
  specification_version: 4
109
109
  summary: 'In-context i18n proofreading for Rails: click any translated string and
110
110
  suggest a fix.'