phraseapp-in-context-editor-ruby 2.1.1 → 2.1.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: 1928034119cb6375765fd9dd82f1d66c859d070482da61e647abc72ddb06d6d9
4
- data.tar.gz: 96ad3d6b6a686e1dbd5104cb1f8b6663072b3879142e308978ccf89d4cbe547d
3
+ metadata.gz: bc5405ba5aa6a41f6c21d509eeaa00d6d5f62fb5bfae1578c16695b252931dcc
4
+ data.tar.gz: 73d0e561de9a0426dfe11b3f0f6f941af7ad1e1dba3de9695add6954eee5af5a
5
5
  SHA512:
6
- metadata.gz: cd71b31c0f1f454af7367d0d4d194c5889613bb83d9ea166199f8634e45edd01c76677dad2911205e1bdf2b8fd95994e7ea7f5fadcb29a68e4088f77ceee9825
7
- data.tar.gz: 19189182859a08240b7cfddab04b63f35c96be6c64cd2e71f6af47010b437ec44b62206fb45ef7e55a8718cd16722b8cffb8f8b249075803f6f2f82dc5fd96a3
6
+ metadata.gz: ff58eb5b36a68c9b9cc03d495f33dd86d0a831fc90b073ca52dff774a6efffe4e89e21053b25ebf20920dd0696c06148a3028204f4fd6063d53dabd234f3c62d
7
+ data.tar.gz: e76bc4e76e5733d8d666f9a5c1e63a6f1954a5d636b4a9237a60b9e845269c1d95120f0d1e8ba167ec3e0d455c26846a65be5b975152444d9f66c5f55424e207
@@ -1,10 +1,10 @@
1
1
  name: Test
2
- on: [ push ]
2
+ on: [push, pull_request]
3
3
  jobs:
4
4
  test:
5
5
  strategy:
6
6
  matrix:
7
- ruby: [ 3.1, 3.2 ]
7
+ ruby: [3.1, 3.2]
8
8
  runs-on: ubuntu-latest
9
9
  steps:
10
10
  - uses: actions/checkout@v4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.1.2](https://github.com/phrase/phraseapp-in-context-editor-ruby/compare/v2.1.1...v2.1.2) (2024-05-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Ruby 3.0 keyword argument error when ICE is enabled ([#79](https://github.com/phrase/phraseapp-in-context-editor-ruby/issues/79)) ([d0efad8](https://github.com/phrase/phraseapp-in-context-editor-ruby/commit/d0efad859b83b7ac78873e012aafcac2d1856481))
7
+
1
8
  ## [2.1.1](https://github.com/phrase/phraseapp-in-context-editor-ruby/compare/v2.1.0...v2.1.1) (2024-04-23)
2
9
 
3
10
 
@@ -55,7 +55,7 @@ module PhraseApp
55
55
  key = given_key_from_args(args)
56
56
  return nil unless present?(key)
57
57
 
58
- options = args[1].nil? ? {} : args[1]
58
+ options = options_from_args(args)
59
59
  PhraseApp::InContextEditor::Delegate::I18nDelegate.new(key, options, args)
60
60
  end
61
61
 
@@ -4,7 +4,7 @@ module PhraseApp
4
4
  module InContextEditor
5
5
  module Delegate
6
6
  class I18nDelegate < Base
7
- attr_accessor :key, :display_key, :options, :api_client, :fallback_keys, :original_args
7
+ attr_accessor :key, :display_key
8
8
 
9
9
  def initialize(key, options = {}, original_args = nil)
10
10
  @key = key
@@ -24,7 +24,7 @@ module PhraseApp
24
24
  data.send(*args, &block)
25
25
  else
26
26
  self.class.log "You tried to execute the missing method ##{args.first} on key #{@key} which is not supported. Please make sure you treat your translations as strings only."
27
- original_translation = ::I18n.translate_without_phraseapp(*@original_args)
27
+ original_translation = ::I18n.translate_without_phraseapp(*@original_args, **@options)
28
28
  original_translation.send(*args, &block)
29
29
  end
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module PhraseApp
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phraseapp-in-context-editor-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phrase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-23 00:00:00.000000000 Z
11
+ date: 2024-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json