wolf_core 1.0.88 → 1.0.90
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 +4 -4
- data/lib/wolf_core/infrastructure/application_repository.rb +1 -0
- data/lib/wolf_core/infrastructure/application_serializer.rb +5 -0
- data/lib/wolf_core/infrastructure/no_sql_db_data_source.rb +8 -0
- data/lib/wolf_core/infrastructure/no_sql_db_operations.rb +10 -0
- data/lib/wolf_core/infrastructure/serializable.rb +17 -0
- data/lib/wolf_core/version.rb +1 -1
- data/lib/wolf_core.rb +1 -0
- metadata +18 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 2c418670e6c67ff34988b86d67169af4b9516daf79872be6831c8812267dc1c4
         | 
| 4 | 
            +
              data.tar.gz: 0d6b4fa0a8377fdfd89ec9b24c834e342b59487d9401d8d3d8d563f2c4efe697
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: dc53fb7c1efb44810944647f8cce199b0d6c966eb4c3a9092c86ecaf2d695665ee1989bd9e43f34d8a7047b3afd2a15816fe15ecae5d3159b6e9685c334c3968
         | 
| 7 | 
            +
              data.tar.gz: d3c4e50ff16403f4f49e9e3ddd67651789aefceb2837f7cc0e51e0b0b2ffa14421337331f42a4c1dd3510651f6a03db6e4ae71abeda265f8ca505b840d5f3afa
         | 
| @@ -23,5 +23,13 @@ module WolfCore | |
| 23 23 | 
             
                    key: key
         | 
| 24 24 | 
             
                  }).item
         | 
| 25 25 | 
             
                end
         | 
| 26 | 
            +
             | 
| 27 | 
            +
                def query(table_name:, key_condition_expression:, expression_attribute_values: nil)
         | 
| 28 | 
            +
                  instance.query({
         | 
| 29 | 
            +
                    table_name: table_name,
         | 
| 30 | 
            +
                    key_condition_expression: key_condition_expression,
         | 
| 31 | 
            +
                    expression_attribute_values: expression_attribute_values
         | 
| 32 | 
            +
                  }).items
         | 
| 33 | 
            +
                end
         | 
| 26 34 | 
             
              end
         | 
| 27 35 | 
             
            end
         | 
| @@ -1,5 +1,15 @@ | |
| 1 1 | 
             
            module WolfCore
         | 
| 2 2 | 
             
              module NoSqlDbOperations
         | 
| 3 | 
            +
                module_function
         | 
| 4 | 
            +
             | 
| 5 | 
            +
                def query_no_sql_items(table_name:, key_condition_expression:, expression_attribute_values: nil)
         | 
| 6 | 
            +
                  NoSqlDbDataSource.query(
         | 
| 7 | 
            +
                    table_name: table_name,
         | 
| 8 | 
            +
                    key_condition_expression: key_condition_expression,
         | 
| 9 | 
            +
                    expression_attribute_values: expression_attribute_values
         | 
| 10 | 
            +
                  )
         | 
| 11 | 
            +
                end
         | 
| 12 | 
            +
             | 
| 3 13 | 
             
                def put_no_sql_item(table_name:, item:)
         | 
| 4 14 | 
             
                  WolfCore::NoSqlDbDataSource.put_item(
         | 
| 5 15 | 
             
                    table_name: table_name,
         | 
| @@ -0,0 +1,17 @@ | |
| 1 | 
            +
            module WolfCore
         | 
| 2 | 
            +
              module Serializable
         | 
| 3 | 
            +
                def serialize_with(serializer, entity, options = {})
         | 
| 4 | 
            +
                  serializer.new(entity, options).as_json.with_indifferent_access
         | 
| 5 | 
            +
                end
         | 
| 6 | 
            +
              
         | 
| 7 | 
            +
                def serialize_all_with(serializer, collection, options = {})
         | 
| 8 | 
            +
                  collection.map do |item|
         | 
| 9 | 
            +
                    serialize_with(
         | 
| 10 | 
            +
                      serializer,
         | 
| 11 | 
            +
                      item,
         | 
| 12 | 
            +
                      options
         | 
| 13 | 
            +
                    )
         | 
| 14 | 
            +
                  end
         | 
| 15 | 
            +
                end
         | 
| 16 | 
            +
              end
         | 
| 17 | 
            +
            end
         | 
    
        data/lib/wolf_core/version.rb
    CHANGED
    
    
    
        data/lib/wolf_core.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: wolf_core
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.0. | 
| 4 | 
            +
              version: 1.0.90
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Javier Roncallo
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2025-02- | 
| 11 | 
            +
            date: 2025-02-28 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: httparty
         | 
| @@ -108,6 +108,20 @@ dependencies: | |
| 108 108 | 
             
                - - ">="
         | 
| 109 109 | 
             
                  - !ruby/object:Gem::Version
         | 
| 110 110 | 
             
                    version: '0'
         | 
| 111 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 112 | 
            +
              name: active_model_serializers
         | 
| 113 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 114 | 
            +
                requirements:
         | 
| 115 | 
            +
                - - ">="
         | 
| 116 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 117 | 
            +
                    version: '0'
         | 
| 118 | 
            +
              type: :runtime
         | 
| 119 | 
            +
              prerelease: false
         | 
| 120 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 121 | 
            +
                requirements:
         | 
| 122 | 
            +
                - - ">="
         | 
| 123 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 124 | 
            +
                    version: '0'
         | 
| 111 125 | 
             
            description: Repository to store shared code among Ruby projects.
         | 
| 112 126 | 
             
            email:
         | 
| 113 127 | 
             
            - jroncallo96@gmail.com
         | 
| @@ -137,6 +151,7 @@ files: | |
| 137 151 | 
             
            - lib/wolf_core/domain/entity.rb
         | 
| 138 152 | 
             
            - lib/wolf_core/domain/value_object.rb
         | 
| 139 153 | 
             
            - lib/wolf_core/infrastructure/application_repository.rb
         | 
| 154 | 
            +
            - lib/wolf_core/infrastructure/application_serializer.rb
         | 
| 140 155 | 
             
            - lib/wolf_core/infrastructure/fkm_operations.rb
         | 
| 141 156 | 
             
            - lib/wolf_core/infrastructure/http_data_source.rb
         | 
| 142 157 | 
             
            - lib/wolf_core/infrastructure/http_operations.rb
         | 
| @@ -146,6 +161,7 @@ files: | |
| 146 161 | 
             
            - lib/wolf_core/infrastructure/lambda_function_operations.rb
         | 
| 147 162 | 
             
            - lib/wolf_core/infrastructure/no_sql_db_data_source.rb
         | 
| 148 163 | 
             
            - lib/wolf_core/infrastructure/no_sql_db_operations.rb
         | 
| 164 | 
            +
            - lib/wolf_core/infrastructure/serializable.rb
         | 
| 149 165 | 
             
            - lib/wolf_core/utils/array_utils.rb
         | 
| 150 166 | 
             
            - lib/wolf_core/utils/async_utils.rb
         | 
| 151 167 | 
             
            - lib/wolf_core/utils/file_utils.rb
         |