gds-api-adapters 2.2.0 → 2.3.0
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.
    
        data/lib/gds_api/helpers.rb
    CHANGED
    
    | @@ -2,6 +2,7 @@ require 'gds_api/publisher' | |
| 2 2 | 
             
            require 'gds_api/imminence'
         | 
| 3 3 | 
             
            require 'gds_api/panopticon'
         | 
| 4 4 | 
             
            require 'gds_api/content_api'
         | 
| 5 | 
            +
            require 'gds_api/licence_application'
         | 
| 5 6 |  | 
| 6 7 | 
             
            module GdsApi
         | 
| 7 8 | 
             
              module Helpers
         | 
| @@ -17,6 +18,10 @@ module GdsApi | |
| 17 18 | 
             
                  @imminence_api ||= GdsApi::Imminence.new(Plek.current.environment)
         | 
| 18 19 | 
             
                end
         | 
| 19 20 |  | 
| 21 | 
            +
                def licence_application_api
         | 
| 22 | 
            +
                  @licence_application_api ||= GdsApi::LicenceApplication.new(Plek.current.environment)
         | 
| 23 | 
            +
                end
         | 
| 24 | 
            +
             | 
| 20 25 | 
             
                def panopticon_api
         | 
| 21 26 | 
             
                  @panopticon_api ||= GdsApi::Panopticon.new(Plek.current.environment, panopticon_api_credentials)
         | 
| 22 27 | 
             
                end
         | 
| @@ -27,7 +32,7 @@ module GdsApi | |
| 27 32 |  | 
| 28 33 | 
             
                def self.included(klass)
         | 
| 29 34 | 
             
                  if klass.respond_to?(:helper_method)
         | 
| 30 | 
            -
                    klass.helper_method :publisher_api, :panopticon_api, :imminence_api, :content_api
         | 
| 35 | 
            +
                    klass.helper_method :publisher_api, :panopticon_api, :imminence_api, :content_api, :licence_application_api
         | 
| 31 36 | 
             
                  end
         | 
| 32 37 | 
             
                end
         | 
| 33 38 | 
             
              end
         | 
| @@ -3,7 +3,7 @@ require 'gds_api/test_helpers/json_client_helper' | |
| 3 3 | 
             
            module GdsApi
         | 
| 4 4 | 
             
              module TestHelpers
         | 
| 5 5 | 
             
                module LicenceApplication
         | 
| 6 | 
            -
                  LICENCE_APPLICATION_ENDPOINT = "https:// | 
| 6 | 
            +
                  LICENCE_APPLICATION_ENDPOINT = "https://licensify.test.alphagov.co.uk"
         | 
| 7 7 |  | 
| 8 8 | 
             
                  def licence_exists(identifier, licence)
         | 
| 9 9 | 
             
                    licence = licence.to_json unless licence.is_a?(String)
         | 
    
        data/lib/gds_api/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -2,7 +2,7 @@ | |
| 2 2 | 
             
            name: gds-api-adapters
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 4 | 
             
              prerelease: 
         | 
| 5 | 
            -
              version: 2. | 
| 5 | 
            +
              version: 2.3.0
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors: 
         | 
| 8 8 | 
             
            - James Stewart
         | 
| @@ -203,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 203 203 | 
             
              requirements: 
         | 
| 204 204 | 
             
              - - ">="
         | 
| 205 205 | 
             
                - !ruby/object:Gem::Version 
         | 
| 206 | 
            -
                  hash:  | 
| 206 | 
            +
                  hash: 524613631546273849
         | 
| 207 207 | 
             
                  segments: 
         | 
| 208 208 | 
             
                  - 0
         | 
| 209 209 | 
             
                  version: "0"
         | 
| @@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 212 212 | 
             
              requirements: 
         | 
| 213 213 | 
             
              - - ">="
         | 
| 214 214 | 
             
                - !ruby/object:Gem::Version 
         | 
| 215 | 
            -
                  hash:  | 
| 215 | 
            +
                  hash: 524613631546273849
         | 
| 216 216 | 
             
                  segments: 
         | 
| 217 217 | 
             
                  - 0
         | 
| 218 218 | 
             
                  version: "0"
         |