crypt-api 0.1.4 → 0.1.5
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/README.md +3 -3
 - data/lib/crypt_api.rb +8 -4
 - data/lib/crypt_api/version.rb +1 -1
 - data/lib/generators/templates/crypt_api.rb +1 -1
 - metadata +10 -10
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: b50fafbc5d06eb8f3e9523e52fd74e36ead9cdf5
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 066c389bf642ac594ecafbc025f7a479424aed44
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 27fee05e09a48e0220813da92114ba5db500c2d8724012ca8e3eda7cbef944956d8c154f8ef0355d96aa46c7efd0568e18adc2ba30748c7936bbf577a821dc31
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 35b4595dd7366b02e0609fc15da2f6253c6071620838d95a495adf3818f57b9eef8c02e5571dfb210cb56fbf824b9a02ee910da31e25eb3c6bbe8122a8b06aae
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # CryptApi
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            The gem sending an encrypted request to the specified address and decrypting of the received response. Demo-version 0. 
     | 
| 
      
 3 
     | 
    
         
            +
            The gem sending an encrypted request to the specified address and decrypting of the received response. Demo-version 0.1.5.
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
            ## Installation
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
         @@ -28,13 +28,13 @@ Sending the encrypted data: 
     | 
|
| 
       28 
28 
     | 
    
         | 
| 
       29 
29 
     | 
    
         
             
              ```ruby
         
     | 
| 
       30 
30 
     | 
    
         
             
              secret_data = { secret_param_1: "param1", secret_param_2: "param2" }
         
     | 
| 
       31 
     | 
    
         
            -
              encrypted_response = CryptApi::Main.send_encrypted_request( 
     | 
| 
      
 31 
     | 
    
         
            +
              encrypted_response = CryptApi::Main.send_encrypted_request(data: secret_data)
         
     | 
| 
       32 
32 
     | 
    
         
             
              ```
         
     | 
| 
       33 
33 
     | 
    
         | 
| 
       34 
34 
     | 
    
         
             
            Decrypting of the response:
         
     | 
| 
       35 
35 
     | 
    
         | 
| 
       36 
36 
     | 
    
         
             
              ```ruby
         
     | 
| 
       37 
     | 
    
         
            -
               CryptApi::Main.decrypt_response(encrypted_response 
     | 
| 
      
 37 
     | 
    
         
            +
               CryptApi::Main.decrypt_response(encrypted_response)
         
     | 
| 
       38 
38 
     | 
    
         
             
              ```
         
     | 
| 
       39 
39 
     | 
    
         | 
| 
       40 
40 
     | 
    
         | 
    
        data/lib/crypt_api.rb
    CHANGED
    
    | 
         @@ -15,10 +15,14 @@ module CryptApi 
     | 
|
| 
       15 
15 
     | 
    
         
             
                include EncryptFactory
         
     | 
| 
       16 
16 
     | 
    
         
             
                include Sender
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
                 
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
      
 18 
     | 
    
         
            +
                mattr_accessor :secret_key
         
     | 
| 
      
 19 
     | 
    
         
            +
                mattr_accessor :algorithm
         
     | 
| 
      
 20 
     | 
    
         
            +
                mattr_accessor :make_signature
         
     | 
| 
      
 21 
     | 
    
         
            +
                mattr_accessor :url
         
     | 
| 
      
 22 
     | 
    
         
            +
                mattr_accessor :signature_token
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
                def self.configurations
         
     | 
| 
      
 25 
     | 
    
         
            +
                  yield(self) 
         
     | 
| 
       22 
26 
     | 
    
         
             
                end
         
     | 
| 
       23 
27 
     | 
    
         | 
| 
       24 
28 
     | 
    
         
             
                def self.send_encrypted_request(data)
         
     | 
    
        data/lib/crypt_api/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,41 +1,41 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: crypt-api
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.5
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Alexey
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2015-01- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2015-01-26 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: bundler
         
     | 
| 
       15 
15 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       16 
16 
     | 
    
         
             
                requirements:
         
     | 
| 
       17 
     | 
    
         
            -
                - - ~>
         
     | 
| 
      
 17 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       18 
18 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       19 
19 
     | 
    
         
             
                    version: '1.7'
         
     | 
| 
       20 
20 
     | 
    
         
             
              type: :development
         
     | 
| 
       21 
21 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       22 
22 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       23 
23 
     | 
    
         
             
                requirements:
         
     | 
| 
       24 
     | 
    
         
            -
                - - ~>
         
     | 
| 
      
 24 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       25 
25 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       26 
26 
     | 
    
         
             
                    version: '1.7'
         
     | 
| 
       27 
27 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       28 
28 
     | 
    
         
             
              name: rake
         
     | 
| 
       29 
29 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       30 
30 
     | 
    
         
             
                requirements:
         
     | 
| 
       31 
     | 
    
         
            -
                - - ~>
         
     | 
| 
      
 31 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       32 
32 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       33 
33 
     | 
    
         
             
                    version: '10.0'
         
     | 
| 
       34 
34 
     | 
    
         
             
              type: :development
         
     | 
| 
       35 
35 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       36 
36 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       37 
37 
     | 
    
         
             
                requirements:
         
     | 
| 
       38 
     | 
    
         
            -
                - - ~>
         
     | 
| 
      
 38 
     | 
    
         
            +
                - - "~>"
         
     | 
| 
       39 
39 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       40 
40 
     | 
    
         
             
                    version: '10.0'
         
     | 
| 
       41 
41 
     | 
    
         
             
            description: The gem sending an encrypted request to the specified address and decrypting
         
     | 
| 
         @@ -46,7 +46,7 @@ executables: [] 
     | 
|
| 
       46 
46 
     | 
    
         
             
            extensions: []
         
     | 
| 
       47 
47 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
       48 
48 
     | 
    
         
             
            files:
         
     | 
| 
       49 
     | 
    
         
            -
            - .gitignore
         
     | 
| 
      
 49 
     | 
    
         
            +
            - ".gitignore"
         
     | 
| 
       50 
50 
     | 
    
         
             
            - Gemfile
         
     | 
| 
       51 
51 
     | 
    
         
             
            - LICENSE.txt
         
     | 
| 
       52 
52 
     | 
    
         
             
            - README.md
         
     | 
| 
         @@ -68,17 +68,17 @@ require_paths: 
     | 
|
| 
       68 
68 
     | 
    
         
             
            - lib
         
     | 
| 
       69 
69 
     | 
    
         
             
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
       70 
70 
     | 
    
         
             
              requirements:
         
     | 
| 
       71 
     | 
    
         
            -
              - -  
     | 
| 
      
 71 
     | 
    
         
            +
              - - ">="
         
     | 
| 
       72 
72 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       73 
73 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       74 
74 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       75 
75 
     | 
    
         
             
              requirements:
         
     | 
| 
       76 
     | 
    
         
            -
              - -  
     | 
| 
      
 76 
     | 
    
         
            +
              - - ">="
         
     | 
| 
       77 
77 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       78 
78 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       79 
79 
     | 
    
         
             
            requirements: []
         
     | 
| 
       80 
80 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       81 
     | 
    
         
            -
            rubygems_version: 2.4. 
     | 
| 
      
 81 
     | 
    
         
            +
            rubygems_version: 2.4.5
         
     | 
| 
       82 
82 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       83 
83 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       84 
84 
     | 
    
         
             
            summary: Api
         
     |