copy_tuner_client 1.1.0 → 1.1.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:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: '024759cf8ad86f7a91ad5196509733226038d4cb9cf90f0c9d900c41967fd451'
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: e3f684ff74a006c0580d0ddc92bd5eff3cf670a236a740bd7e540350f2847ab1
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: f68fbf635f4c48ea4c76ec82a4de6f101b65e049e7b29d374e2f1466a138a79af7e4ddc7de1d8c55a237c86690cf083af5c79c8043fefa8e2e09cdc44b8be5fc
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: c1118a37ffb6b03700ba7ae4e3addd279bb6ec50b471b93372e067ba79669e197b51761bdf50ebc32087153b93b5604384ccb41bd8e083b9913afa8d73ba4a1c
         
     | 
    
        data/.gitignore
    CHANGED
    
    
    
        data/copy_tuner_client.gemspec
    CHANGED
    
    | 
         @@ -20,10 +20,15 @@ Gem::Specification.new do |s| 
     | 
|
| 
       20 
20 
     | 
    
         
             
              s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
         
     | 
| 
       21 
21 
     | 
    
         
             
              s.files = `git ls-files`.split("\n")
         
     | 
| 
       22 
22 
     | 
    
         
             
              s.homepage = 'https://github.com/SonicGarden/copy-tuner-ruby-client'
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
              s.metadata["homepage_uri"] = s.homepage
         
     | 
| 
      
 25 
     | 
    
         
            +
              s.metadata["source_code_uri"] = "https://github.com/SonicGarden/copy-tuner-ruby-client"
         
     | 
| 
      
 26 
     | 
    
         
            +
              s.metadata["changelog_uri"] = "https://github.com/SonicGarden/copy-tuner-ruby-client/releases"
         
     | 
| 
      
 27 
     | 
    
         
            +
              s.metadata['rubygems_mfa_required'] = 'true'
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
       23 
29 
     | 
    
         
             
              s.name = 'copy_tuner_client'
         
     | 
| 
       24 
30 
     | 
    
         
             
              s.platform = Gem::Platform::RUBY
         
     | 
| 
       25 
31 
     | 
    
         
             
              s.require_paths = ['lib']
         
     | 
| 
       26 
32 
     | 
    
         
             
              s.summary = 'Client for the CopyTuner copy management service'
         
     | 
| 
       27 
33 
     | 
    
         
             
              s.version = CopyTunerClient::VERSION
         
     | 
| 
       28 
     | 
    
         
            -
              s.metadata['rubygems_mfa_required'] = 'true'
         
     | 
| 
       29 
34 
     | 
    
         
             
            end
         
     | 
| 
         @@ -107,9 +107,14 @@ module CopyTunerClient 
     | 
|
| 
       107 
107 
     | 
    
         
             
                  return nil if @tree_cache.nil?
         
     | 
| 
       108 
108 
     | 
    
         | 
| 
       109 
109 
     | 
    
         
             
                  symbol_keys = keys.map(&:to_sym)
         
     | 
| 
       110 
     | 
    
         
            -
                   
     | 
| 
       111 
     | 
    
         
            -
             
     | 
| 
       112 
     | 
    
         
            -
             
     | 
| 
      
 110 
     | 
    
         
            +
                  begin
         
     | 
| 
      
 111 
     | 
    
         
            +
                    result = @tree_cache.dig(*symbol_keys)
         
     | 
| 
      
 112 
     | 
    
         
            +
                    result.is_a?(Hash) ? result : nil
         
     | 
| 
      
 113 
     | 
    
         
            +
                  rescue TypeError
         
     | 
| 
      
 114 
     | 
    
         
            +
                    # Handle the case where dig encounters a non-Hash value
         
     | 
| 
      
 115 
     | 
    
         
            +
                    # (e.g., when ja.hoge exists as a string and ja.hoge.hello is searched)
         
     | 
| 
      
 116 
     | 
    
         
            +
                    nil
         
     | 
| 
      
 117 
     | 
    
         
            +
                  end
         
     | 
| 
       113 
118 
     | 
    
         
             
                end
         
     | 
| 
       114 
119 
     | 
    
         | 
| 
       115 
120 
     | 
    
         
             
                def store_item(locale, data, scope = [])
         
     | 
| 
         @@ -417,6 +417,13 @@ describe 'CopyTunerClient::I18nBackend' do 
     | 
|
| 
       417 
417 
     | 
    
         
             
                    # ignored_keys が動作することを確認
         
     | 
| 
       418 
418 
     | 
    
         
             
                    subject.translate('ja', 'views.secret')
         
     | 
| 
       419 
419 
     | 
    
         
             
                  end
         
     | 
| 
      
 420 
     | 
    
         
            +
             
     | 
| 
      
 421 
     | 
    
         
            +
                  it 'stringキーが存在する場合のsub-keyアクセスでエラーが発生しないこと' do
         
     | 
| 
      
 422 
     | 
    
         
            +
                    cache['ja.hoge'] = 'hoge value'
         
     | 
| 
      
 423 
     | 
    
         
            +
             
     | 
| 
      
 424 
     | 
    
         
            +
                    result = subject.translate('ja', 'hoge.hello', default: nil)
         
     | 
| 
      
 425 
     | 
    
         
            +
                    expect(result).to be_nil
         
     | 
| 
      
 426 
     | 
    
         
            +
                  end
         
     | 
| 
       420 
427 
     | 
    
         
             
                end
         
     | 
| 
       421 
428 
     | 
    
         
             
              end
         
     | 
| 
       422 
429 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: copy_tuner_client
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.1.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - SonicGarden
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2025-07- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2025-07-03 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: i18n
         
     | 
| 
         @@ -267,6 +267,9 @@ files: 
     | 
|
| 
       267 
267 
     | 
    
         
             
            homepage: https://github.com/SonicGarden/copy-tuner-ruby-client
         
     | 
| 
       268 
268 
     | 
    
         
             
            licenses: []
         
     | 
| 
       269 
269 
     | 
    
         
             
            metadata:
         
     | 
| 
      
 270 
     | 
    
         
            +
              homepage_uri: https://github.com/SonicGarden/copy-tuner-ruby-client
         
     | 
| 
      
 271 
     | 
    
         
            +
              source_code_uri: https://github.com/SonicGarden/copy-tuner-ruby-client
         
     | 
| 
      
 272 
     | 
    
         
            +
              changelog_uri: https://github.com/SonicGarden/copy-tuner-ruby-client/releases
         
     | 
| 
       270 
273 
     | 
    
         
             
              rubygems_mfa_required: 'true'
         
     | 
| 
       271 
274 
     | 
    
         
             
            post_install_message:
         
     | 
| 
       272 
275 
     | 
    
         
             
            rdoc_options: []
         
     |