recurly 2.2.5 → 2.2.6
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 +5 -5
- data/lib/recurly/version.rb +1 -1
- data/lib/recurly.rb +18 -0
- metadata +20 -21
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 | 
            -
             | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 2 | 
            +
            SHA256:
         | 
| 3 | 
            +
              metadata.gz: ad8b2a29b7b37f7bdfce5c727e15d642ce9d2862828710acf45ad24abcc47a44
         | 
| 4 | 
            +
              data.tar.gz: 20982fe970032ae0da58c8ed72ce0a5ad307827d6ad1b1a7bfd11192c8d27766
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 935a3fcd8905e2e435585ddb4f7523cba42618c5a33b890314e411abaa39c1b49f5c25f7dc9abf4d0bdb093e3c78aa9d248f18bc97994260bc222860dfb409b9
         | 
| 7 | 
            +
              data.tar.gz: b805d4341d9b06b24bc6830226dd3f53f1d6d74996174a076b97c942feb81a916bbd1f305401b7a5563cc548d2f3137294478cbe7bca57d88deb47d45268be1e
         | 
    
        data/lib/recurly/version.rb
    CHANGED
    
    
    
        data/lib/recurly.rb
    CHANGED
    
    | @@ -67,6 +67,8 @@ module Recurly | |
| 67 67 | 
             
                end
         | 
| 68 68 |  | 
| 69 69 | 
             
                # Assigns a logger to log requests/responses and more.
         | 
| 70 | 
            +
                # The logger can only be set if the environment variable
         | 
| 71 | 
            +
                # `RECURLY_INSECURE_DEBUG` equals `true`.
         | 
| 70 72 | 
             
                #
         | 
| 71 73 | 
             
                # @return [Logger, nil]
         | 
| 72 74 | 
             
                # @example
         | 
| @@ -78,6 +80,22 @@ module Recurly | |
| 78 80 | 
             
                #   Recurly.logger = nil # Or Recurly.logger = Logger.new nil
         | 
| 79 81 | 
             
                attr_accessor :logger
         | 
| 80 82 |  | 
| 83 | 
            +
                def logger=(logger)
         | 
| 84 | 
            +
                  if ENV['RECURLY_INSECURE_DEBUG'].to_s.downcase == 'true'
         | 
| 85 | 
            +
                    @logger = logger
         | 
| 86 | 
            +
                    puts <<-MSG
         | 
| 87 | 
            +
                    [WARNING] Recurly logger enabled. The logger has the potential to leak
         | 
| 88 | 
            +
                    PII and should never be used in production environments.
         | 
| 89 | 
            +
                    MSG
         | 
| 90 | 
            +
                  else
         | 
| 91 | 
            +
                    puts <<-MSG
         | 
| 92 | 
            +
                    [WARNING] Recurly logger has been disabled. If you wish to use it,
         | 
| 93 | 
            +
                    only do so in a non-production environment and make sure
         | 
| 94 | 
            +
                    the `RECURLY_INSECURE_DEBUG` environment variable is set to `true`.
         | 
| 95 | 
            +
                    MSG
         | 
| 96 | 
            +
                  end
         | 
| 97 | 
            +
                end
         | 
| 98 | 
            +
             | 
| 81 99 | 
             
                # Convenience logging method includes a Logger#progname dynamically.
         | 
| 82 100 | 
             
                # @return [true, nil]
         | 
| 83 101 | 
             
                def log level, message
         | 
    
        metadata
    CHANGED
    
    | @@ -1,55 +1,55 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: recurly
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2.2. | 
| 4 | 
            +
              version: 2.2.6
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Recurly
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2018-05-09 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rake
         | 
| 15 15 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 16 | 
             
                requirements:
         | 
| 17 | 
            -
                - - ~>
         | 
| 17 | 
            +
                - - "~>"
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 19 | 
             
                    version: 0.9.2
         | 
| 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: 0.9.2
         | 
| 27 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 28 | 
             
              name: minitest
         | 
| 29 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 30 30 | 
             
                requirements:
         | 
| 31 | 
            -
                - - ~>
         | 
| 31 | 
            +
                - - "~>"
         | 
| 32 32 | 
             
                  - !ruby/object:Gem::Version
         | 
| 33 33 | 
             
                    version: 2.6.1
         | 
| 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: 2.6.1
         | 
| 41 41 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 42 42 | 
             
              name: webmock
         | 
| 43 43 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 44 44 | 
             
                requirements:
         | 
| 45 | 
            -
                - - ~>
         | 
| 45 | 
            +
                - - "~>"
         | 
| 46 46 | 
             
                  - !ruby/object:Gem::Version
         | 
| 47 47 | 
             
                    version: 1.7.6
         | 
| 48 48 | 
             
              type: :development
         | 
| 49 49 | 
             
              prerelease: false
         | 
| 50 50 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 51 51 | 
             
                requirements:
         | 
| 52 | 
            -
                - - ~>
         | 
| 52 | 
            +
                - - "~>"
         | 
| 53 53 | 
             
                  - !ruby/object:Gem::Version
         | 
| 54 54 | 
             
                    version: 1.7.6
         | 
| 55 55 | 
             
            description: 'An API client library for Recurly: http://recurly.com'
         | 
| @@ -60,17 +60,20 @@ extensions: [] | |
| 60 60 | 
             
            extra_rdoc_files:
         | 
| 61 61 | 
             
            - README.md
         | 
| 62 62 | 
             
            files:
         | 
| 63 | 
            +
            - README.md
         | 
| 64 | 
            +
            - bin/recurly
         | 
| 63 65 | 
             
            - lib/ecurly.rb
         | 
| 64 66 | 
             
            - lib/rails/generators/recurly/config_generator.rb
         | 
| 65 67 | 
             
            - lib/rails/recurly.rb
         | 
| 68 | 
            +
            - lib/recurly.rb
         | 
| 66 69 | 
             
            - lib/recurly/account.rb
         | 
| 67 70 | 
             
            - lib/recurly/add_on.rb
         | 
| 68 71 | 
             
            - lib/recurly/address.rb
         | 
| 69 72 | 
             
            - lib/recurly/adjustment.rb
         | 
| 70 73 | 
             
            - lib/recurly/all.rb
         | 
| 74 | 
            +
            - lib/recurly/api.rb
         | 
| 71 75 | 
             
            - lib/recurly/api/errors.rb
         | 
| 72 76 | 
             
            - lib/recurly/api/net_http_adapter.rb
         | 
| 73 | 
            -
            - lib/recurly/api.rb
         | 
| 74 77 | 
             
            - lib/recurly/billing_info.rb
         | 
| 75 78 | 
             
            - lib/recurly/coupon.rb
         | 
| 76 79 | 
             
            - lib/recurly/helper.rb
         | 
| @@ -79,46 +82,42 @@ files: | |
| 79 82 | 
             
            - lib/recurly/money.rb
         | 
| 80 83 | 
             
            - lib/recurly/plan.rb
         | 
| 81 84 | 
             
            - lib/recurly/redemption.rb
         | 
| 85 | 
            +
            - lib/recurly/resource.rb
         | 
| 82 86 | 
             
            - lib/recurly/resource/errors.rb
         | 
| 83 87 | 
             
            - lib/recurly/resource/pager.rb
         | 
| 84 | 
            -
            - lib/recurly/resource.rb
         | 
| 85 | 
            -
            - lib/recurly/subscription/add_ons.rb
         | 
| 86 88 | 
             
            - lib/recurly/subscription.rb
         | 
| 89 | 
            +
            - lib/recurly/subscription/add_ons.rb
         | 
| 87 90 | 
             
            - lib/recurly/subscription_add_on.rb
         | 
| 88 | 
            -
            - lib/recurly/transaction/errors.rb
         | 
| 89 91 | 
             
            - lib/recurly/transaction.rb
         | 
| 92 | 
            +
            - lib/recurly/transaction/errors.rb
         | 
| 90 93 | 
             
            - lib/recurly/version.rb
         | 
| 94 | 
            +
            - lib/recurly/xml.rb
         | 
| 91 95 | 
             
            - lib/recurly/xml/nokogiri.rb
         | 
| 92 96 | 
             
            - lib/recurly/xml/rexml.rb
         | 
| 93 | 
            -
            - lib/recurly/xml.rb
         | 
| 94 | 
            -
            - lib/recurly.rb
         | 
| 95 | 
            -
            - README.md
         | 
| 96 | 
            -
            - bin/recurly
         | 
| 97 97 | 
             
            homepage: https://github.com/recurly/recurly-client-ruby
         | 
| 98 98 | 
             
            licenses:
         | 
| 99 99 | 
             
            - MIT
         | 
| 100 100 | 
             
            metadata: {}
         | 
| 101 101 | 
             
            post_install_message: 
         | 
| 102 102 | 
             
            rdoc_options:
         | 
| 103 | 
            -
            - --main
         | 
| 103 | 
            +
            - "--main"
         | 
| 104 104 | 
             
            - README.md
         | 
| 105 105 | 
             
            require_paths:
         | 
| 106 106 | 
             
            - lib
         | 
| 107 107 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 108 108 | 
             
              requirements:
         | 
| 109 | 
            -
              - -  | 
| 109 | 
            +
              - - ">="
         | 
| 110 110 | 
             
                - !ruby/object:Gem::Version
         | 
| 111 111 | 
             
                  version: 1.9.3
         | 
| 112 112 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 113 113 | 
             
              requirements:
         | 
| 114 | 
            -
              - -  | 
| 114 | 
            +
              - - ">="
         | 
| 115 115 | 
             
                - !ruby/object:Gem::Version
         | 
| 116 116 | 
             
                  version: '0'
         | 
| 117 117 | 
             
            requirements: []
         | 
| 118 118 | 
             
            rubyforge_project: 
         | 
| 119 | 
            -
            rubygems_version: 2. | 
| 119 | 
            +
            rubygems_version: 2.7.6
         | 
| 120 120 | 
             
            signing_key: 
         | 
| 121 121 | 
             
            specification_version: 4
         | 
| 122 122 | 
             
            summary: Recurly API Client
         | 
| 123 123 | 
             
            test_files: []
         | 
| 124 | 
            -
            has_rdoc: true
         |