bcrypt 3.1.9-x86-mingw32 → 3.1.10-x86-mingw32
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 +15 -7
 - data/.travis.yml +1 -0
 - data/CHANGELOG +3 -0
 - data/Gemfile.lock +1 -1
 - data/README.md +1 -1
 - data/bcrypt.gemspec +1 -1
 - data/lib/bcrypt/password.rb +1 -1
 - data/spec/bcrypt/password_spec.rb +1 -0
 - metadata +62 -53
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,15 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            --- 
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
               
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
      
 1 
     | 
    
         
            +
            ---
         
     | 
| 
      
 2 
     | 
    
         
            +
            !binary "U0hBMQ==":
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: !binary |-
         
     | 
| 
      
 4 
     | 
    
         
            +
                Y2U5YTk4NjhhNGQ0MWNmMDA4NDc4MzNhYzAxZTc5NWFkNmFjMzdmYQ==
         
     | 
| 
      
 5 
     | 
    
         
            +
              data.tar.gz: !binary |-
         
     | 
| 
      
 6 
     | 
    
         
            +
                M2EwNDRjMmM2Mzk5YWM0ZmIxMDJlMmRmNzAyYjA3MDQ3ZTU1NjM2YQ==
         
     | 
| 
      
 7 
     | 
    
         
            +
            SHA512:
         
     | 
| 
      
 8 
     | 
    
         
            +
              metadata.gz: !binary |-
         
     | 
| 
      
 9 
     | 
    
         
            +
                ZTUyYmMxMWEzYzI0OWNiYjFkYTAzYTMxZGJiOThmYWM0N2IyYWMyMzljYWI3
         
     | 
| 
      
 10 
     | 
    
         
            +
                NWM5MWFkYzllZjcwM2ZlY2M4ZWJiM2FmOTY3OTE5YmVkNTVkZTA2MWZmY2Q2
         
     | 
| 
      
 11 
     | 
    
         
            +
                ZTU5ZmU0YmVlNjgxNzlhOGM4NTE2M2RlMjRjY2U2ZDIwMTNiODM=
         
     | 
| 
      
 12 
     | 
    
         
            +
              data.tar.gz: !binary |-
         
     | 
| 
      
 13 
     | 
    
         
            +
                OGNhNjQ2ODQ5ZDUxOTQ3N2Y2OGUxYzE4YWM3Njg4N2JjZDYyNWQ5OTMxZTI0
         
     | 
| 
      
 14 
     | 
    
         
            +
                NTllMWM3ZTFhODBkMjhiOTAzMDYyNDQwNzhmMzIxNWVkMzVkODRhNzg0MzI1
         
     | 
| 
      
 15 
     | 
    
         
            +
                YzkxNzBjMWFjMWRkYWUxYzE0NWQ0ZWE2NzBkNjg2YzA4YTdmNWU=
         
     | 
    
        data/.travis.yml
    CHANGED
    
    
    
        data/CHANGELOG
    CHANGED
    
    
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | 
         @@ -31,7 +31,7 @@ The bcrypt gem is available on the following ruby platforms: 
     | 
|
| 
       31 
31 
     | 
    
         | 
| 
       32 
32 
     | 
    
         
             
            * JRuby
         
     | 
| 
       33 
33 
     | 
    
         
             
            * RubyInstaller 1.8, 1.9, 2.0, and 2.1 builds on win32
         
     | 
| 
       34 
     | 
    
         
            -
            * Any 1.8, 1.9, 2.0, or 2. 
     | 
| 
      
 34 
     | 
    
         
            +
            * Any 1.8, 1.9, 2.0, 2.1, or 2.2 Ruby on a BSD/OS X/Linux system with a compiler
         
     | 
| 
       35 
35 
     | 
    
         | 
| 
       36 
36 
     | 
    
         
             
            ## How to use `bcrypt()` in your Rails application
         
     | 
| 
       37 
37 
     | 
    
         | 
    
        data/bcrypt.gemspec
    CHANGED
    
    
    
        data/lib/bcrypt/password.rb
    CHANGED
    
    | 
         @@ -80,7 +80,7 @@ module BCrypt 
     | 
|
| 
       80 
80 
     | 
    
         
             
                # Splits +h+ into version, cost, salt, and hash and returns them in that order.
         
     | 
| 
       81 
81 
     | 
    
         
             
                def split_hash(h)
         
     | 
| 
       82 
82 
     | 
    
         
             
                  _, v, c, mash = h.split('$')
         
     | 
| 
       83 
     | 
    
         
            -
                  return v, c.to_i, h[0, 29].to_str, mash[-31, 31].to_str
         
     | 
| 
      
 83 
     | 
    
         
            +
                  return v.to_str, c.to_i, h[0, 29].to_str, mash[-31, 31].to_str
         
     | 
| 
       84 
84 
     | 
    
         
             
                end
         
     | 
| 
       85 
85 
     | 
    
         
             
              end
         
     | 
| 
       86 
86 
     | 
    
         | 
| 
         @@ -75,6 +75,7 @@ describe "Reading a hashed password" do 
     | 
|
| 
       75 
75 
     | 
    
         
             
              specify "should read the version, cost, salt, and hash" do
         
     | 
| 
       76 
76 
     | 
    
         
             
                password = BCrypt::Password.new(@hash)
         
     | 
| 
       77 
77 
     | 
    
         
             
                expect(password.version).to eql("2a")
         
     | 
| 
      
 78 
     | 
    
         
            +
                expect(password.version.class).to eq String
         
     | 
| 
       78 
79 
     | 
    
         
             
                expect(password.cost).to equal(5)
         
     | 
| 
       79 
80 
     | 
    
         
             
                expect(password.salt).to eql("$2a$05$CCCCCCCCCCCCCCCCCCCCC.")
         
     | 
| 
       80 
81 
     | 
    
         
             
                expect(password.salt.class).to eq String
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,53 +1,64 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            --- !ruby/object:Gem::Specification 
     | 
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: bcrypt
         
     | 
| 
       3 
     | 
    
         
            -
            version: !ruby/object:Gem::Version 
     | 
| 
       4 
     | 
    
         
            -
              version: 3.1. 
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 3.1.10
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: x86-mingw32
         
     | 
| 
       6 
     | 
    
         
            -
            authors: 
     | 
| 
      
 6 
     | 
    
         
            +
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Coda Hale
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency 
         
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2015-01-29 00:00:00.000000000 Z
         
     | 
| 
      
 12 
     | 
    
         
            +
            dependencies:
         
     | 
| 
      
 13 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
14 
     | 
    
         
             
              name: rake-compiler
         
     | 
| 
       16 
     | 
    
         
            -
               
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
                requirements: 
         
     | 
| 
      
 15 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 16 
     | 
    
         
            +
                requirements:
         
     | 
| 
       19 
17 
     | 
    
         
             
                - - ~>
         
     | 
| 
       20 
     | 
    
         
            -
                  - !ruby/object:Gem::Version 
     | 
| 
      
 18 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
       21 
19 
     | 
    
         
             
                    version: 0.9.2
         
     | 
| 
       22 
     | 
    
         
            -
              version_requirements: *id001
         
     | 
| 
       23 
20 
     | 
    
         
             
              type: :development
         
     | 
| 
       24 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       25 
     | 
    
         
            -
              name: rspec
         
     | 
| 
       26 
21 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       27 
     | 
    
         
            -
               
     | 
| 
       28 
     | 
    
         
            -
                requirements: 
     | 
| 
       29 
     | 
    
         
            -
                - -  
     | 
| 
       30 
     | 
    
         
            -
                  - !ruby/object:Gem::Version 
     | 
| 
       31 
     | 
    
         
            -
                    version:  
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
      
 22 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 23 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 24 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 25 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 26 
     | 
    
         
            +
                    version: 0.9.2
         
     | 
| 
      
 27 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 28 
     | 
    
         
            +
              name: rspec
         
     | 
| 
      
 29 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 30 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 31 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 32 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 33 
     | 
    
         
            +
                    version: '3'
         
     | 
| 
       33 
34 
     | 
    
         
             
              type: :development
         
     | 
| 
       34 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       35 
     | 
    
         
            -
              name: rdoc
         
     | 
| 
       36 
35 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       37 
     | 
    
         
            -
               
     | 
| 
       38 
     | 
    
         
            -
                requirements: 
     | 
| 
      
 36 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 37 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 38 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 39 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 40 
     | 
    
         
            +
                    version: '3'
         
     | 
| 
      
 41 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 42 
     | 
    
         
            +
              name: rdoc
         
     | 
| 
      
 43 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 44 
     | 
    
         
            +
                requirements:
         
     | 
| 
       39 
45 
     | 
    
         
             
                - - ~>
         
     | 
| 
       40 
     | 
    
         
            -
                  - !ruby/object:Gem::Version 
     | 
| 
       41 
     | 
    
         
            -
                    version:  
     | 
| 
       42 
     | 
    
         
            -
              version_requirements: *id003
         
     | 
| 
      
 46 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 47 
     | 
    
         
            +
                    version: '3.12'
         
     | 
| 
       43 
48 
     | 
    
         
             
              type: :development
         
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
      
 49 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 50 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 51 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 52 
     | 
    
         
            +
                - - ~>
         
     | 
| 
      
 53 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 54 
     | 
    
         
            +
                    version: '3.12'
         
     | 
| 
      
 55 
     | 
    
         
            +
            description: ! "    bcrypt() is a sophisticated and secure hash algorithm designed
         
     | 
| 
      
 56 
     | 
    
         
            +
              by The OpenBSD project\n    for hashing passwords. The bcrypt Ruby gem provides
         
     | 
| 
      
 57 
     | 
    
         
            +
              a simple wrapper for safely handling\n    passwords.\n"
         
     | 
| 
       45 
58 
     | 
    
         
             
            email: coda.hale@gmail.com
         
     | 
| 
       46 
59 
     | 
    
         
             
            executables: []
         
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
60 
     | 
    
         
             
            extensions: []
         
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
            extra_rdoc_files: 
         
     | 
| 
      
 61 
     | 
    
         
            +
            extra_rdoc_files:
         
     | 
| 
       51 
62 
     | 
    
         
             
            - README.md
         
     | 
| 
       52 
63 
     | 
    
         
             
            - COPYING
         
     | 
| 
       53 
64 
     | 
    
         
             
            - CHANGELOG
         
     | 
| 
         @@ -55,7 +66,7 @@ extra_rdoc_files: 
     | 
|
| 
       55 
66 
     | 
    
         
             
            - lib/bcrypt/error.rb
         
     | 
| 
       56 
67 
     | 
    
         
             
            - lib/bcrypt/password.rb
         
     | 
| 
       57 
68 
     | 
    
         
             
            - lib/bcrypt.rb
         
     | 
| 
       58 
     | 
    
         
            -
            files: 
     | 
| 
      
 69 
     | 
    
         
            +
            files:
         
     | 
| 
       59 
70 
     | 
    
         
             
            - .gitignore
         
     | 
| 
       60 
71 
     | 
    
         
             
            - .rspec
         
     | 
| 
       61 
72 
     | 
    
         
             
            - .travis.yml
         
     | 
| 
         @@ -75,6 +86,10 @@ files: 
     | 
|
| 
       75 
86 
     | 
    
         
             
            - ext/mri/extconf.rb
         
     | 
| 
       76 
87 
     | 
    
         
             
            - ext/mri/ow-crypt.h
         
     | 
| 
       77 
88 
     | 
    
         
             
            - ext/mri/wrapper.c
         
     | 
| 
      
 89 
     | 
    
         
            +
            - lib/1.8/bcrypt_ext.so
         
     | 
| 
      
 90 
     | 
    
         
            +
            - lib/1.9/bcrypt_ext.so
         
     | 
| 
      
 91 
     | 
    
         
            +
            - lib/2.0/bcrypt_ext.so
         
     | 
| 
      
 92 
     | 
    
         
            +
            - lib/2.1/bcrypt_ext.so
         
     | 
| 
       78 
93 
     | 
    
         
             
            - lib/bcrypt.rb
         
     | 
| 
       79 
94 
     | 
    
         
             
            - lib/bcrypt/engine.rb
         
     | 
| 
       80 
95 
     | 
    
         
             
            - lib/bcrypt/error.rb
         
     | 
| 
         @@ -84,40 +99,34 @@ files: 
     | 
|
| 
       84 
99 
     | 
    
         
             
            - spec/bcrypt/error_spec.rb
         
     | 
| 
       85 
100 
     | 
    
         
             
            - spec/bcrypt/password_spec.rb
         
     | 
| 
       86 
101 
     | 
    
         
             
            - spec/spec_helper.rb
         
     | 
| 
       87 
     | 
    
         
            -
            - lib/1.8/bcrypt_ext.so
         
     | 
| 
       88 
     | 
    
         
            -
            - lib/1.9/bcrypt_ext.so
         
     | 
| 
       89 
     | 
    
         
            -
            - lib/2.0/bcrypt_ext.so
         
     | 
| 
       90 
     | 
    
         
            -
            - lib/2.1/bcrypt_ext.so
         
     | 
| 
       91 
102 
     | 
    
         
             
            homepage: https://github.com/codahale/bcrypt-ruby
         
     | 
| 
       92 
     | 
    
         
            -
            licenses: 
     | 
| 
      
 103 
     | 
    
         
            +
            licenses:
         
     | 
| 
       93 
104 
     | 
    
         
             
            - MIT
         
     | 
| 
       94 
105 
     | 
    
         
             
            metadata: {}
         
     | 
| 
       95 
     | 
    
         
            -
             
     | 
| 
       96 
106 
     | 
    
         
             
            post_install_message: 
         
     | 
| 
       97 
     | 
    
         
            -
            rdoc_options: 
     | 
| 
      
 107 
     | 
    
         
            +
            rdoc_options:
         
     | 
| 
       98 
108 
     | 
    
         
             
            - --title
         
     | 
| 
       99 
109 
     | 
    
         
             
            - bcrypt-ruby
         
     | 
| 
       100 
110 
     | 
    
         
             
            - --line-numbers
         
     | 
| 
       101 
111 
     | 
    
         
             
            - --inline-source
         
     | 
| 
       102 
112 
     | 
    
         
             
            - --main
         
     | 
| 
       103 
113 
     | 
    
         
             
            - README.md
         
     | 
| 
       104 
     | 
    
         
            -
            require_paths: 
     | 
| 
      
 114 
     | 
    
         
            +
            require_paths:
         
     | 
| 
       105 
115 
     | 
    
         
             
            - lib
         
     | 
| 
       106 
     | 
    
         
            -
            required_ruby_version: !ruby/object:Gem::Requirement 
     | 
| 
       107 
     | 
    
         
            -
              requirements: 
     | 
| 
       108 
     | 
    
         
            -
              -  
     | 
| 
       109 
     | 
    
         
            -
                -  
     | 
| 
       110 
     | 
    
         
            -
             
     | 
| 
       111 
     | 
    
         
            -
             
     | 
| 
       112 
     | 
    
         
            -
             
     | 
| 
       113 
     | 
    
         
            -
               
     | 
| 
       114 
     | 
    
         
            -
             
     | 
| 
      
 116 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 117 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 118 
     | 
    
         
            +
              - - ! '>='
         
     | 
| 
      
 119 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 120 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 121 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 122 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 123 
     | 
    
         
            +
              - - ! '>='
         
     | 
| 
      
 124 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 125 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
       115 
126 
     | 
    
         
             
            requirements: []
         
     | 
| 
       116 
     | 
    
         
            -
             
     | 
| 
       117 
127 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       118 
     | 
    
         
            -
            rubygems_version: 2. 
     | 
| 
      
 128 
     | 
    
         
            +
            rubygems_version: 2.4.5
         
     | 
| 
       119 
129 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       120 
130 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       121 
131 
     | 
    
         
             
            summary: OpenBSD's bcrypt() password hashing algorithm.
         
     | 
| 
       122 
132 
     | 
    
         
             
            test_files: []
         
     | 
| 
       123 
     | 
    
         
            -
             
     |