lexxy 0.7.6.beta → 0.8.2.beta

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.
data/config/ci.rb CHANGED
@@ -8,6 +8,9 @@ CI.run do
8
8
  step "Tests: Rails (prepare)", "env RAILS_ENV=test bin/rails db:test:prepare"
9
9
  step "Tests: Rails (run)", "env RAILS_ENV=test bin/rails test:all -d"
10
10
 
11
+ step "Tests: Playwright (install)", "npx playwright install --with-deps chromium"
12
+ step "Tests: Playwright (run)", "yarn test:browser:chromium"
13
+
11
14
  unless success?
12
15
  failure "Signoff: CI failed.", "Fix the issues and try again."
13
16
  end
data/ext/Rakefile ADDED
@@ -0,0 +1,31 @@
1
+ task :default do
2
+ root = File.expand_path("..", __dir__)
3
+ target = File.join(root, "app", "assets", "javascript", "lexxy.js")
4
+
5
+ next if File.exist?(target)
6
+
7
+ puts <<~MSG
8
+
9
+ Lexxy: JavaScript assets not found — building from source.
10
+
11
+ This is expected when using Lexxy via `git:` in your Gemfile.
12
+ It requires Node.js and Yarn to be installed.
13
+
14
+ MSG
15
+
16
+ Dir.chdir(root) do
17
+ unless system("command -v yarn > /dev/null 2>&1")
18
+ abort <<~MSG
19
+
20
+ Lexxy: `yarn` is not installed. Lexxy needs Node.js and Yarn
21
+ to build its JavaScript assets when installed from git.
22
+
23
+ Install Yarn: https://yarnpkg.com/getting-started/install
24
+
25
+ MSG
26
+ end
27
+
28
+ sh "yarn install --frozen-lockfile"
29
+ sh "yarn build"
30
+ end
31
+ end
@@ -2,7 +2,6 @@ module Lexxy
2
2
  module TagHelper
3
3
  def lexxy_rich_textarea_tag(name, value = nil, options = {}, &block)
4
4
  options = options.symbolize_keys
5
- form = options.delete(:form)
6
5
 
7
6
  value = render_custom_attachments_in(value)
8
7
  # remove the html_safe attribute to preserve attribute escape
data/lib/lexxy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lexxy
2
- VERSION = "0.7.6.beta"
2
+ VERSION = "0.8.2.beta"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lexxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6.beta
4
+ version: 0.8.2.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Manrubia
@@ -111,7 +111,8 @@ description: A new editor for Action Text based on Meta's Lexical framework.
111
111
  email:
112
112
  - jorge@37signals.com
113
113
  executables: []
114
- extensions: []
114
+ extensions:
115
+ - ext/Rakefile
115
116
  extra_rdoc_files: []
116
117
  files:
117
118
  - MIT-LICENSE
@@ -130,6 +131,7 @@ files:
130
131
  - app/assets/stylesheets/lexxy.css
131
132
  - app/views/action_text/attachables/_remote_video.html.erb
132
133
  - config/ci.rb
134
+ - ext/Rakefile
133
135
  - lib/action_text/attachables/remote_video.rb
134
136
  - lib/active_storage/blob_with_preview_url.rb
135
137
  - lib/lexxy.rb