lhs 2.2.2 → 3.0.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.
- checksums.yaml +4 -4
- data/README.md +296 -30
- data/lhs.gemspec +3 -3
- data/lib/lhs.rb +0 -7
- data/lib/lhs/collection.rb +4 -4
- data/lib/lhs/concerns/item/destroy.rb +2 -2
- data/lib/lhs/concerns/item/save.rb +3 -3
- data/lib/lhs/concerns/item/update.rb +2 -2
- data/lib/lhs/concerns/item/validation.rb +4 -5
- data/lib/lhs/concerns/{service → record}/all.rb +2 -2
- data/lib/lhs/concerns/{service → record}/batch.rb +3 -3
- data/lib/lhs/concerns/{service → record}/create.rb +4 -3
- data/lib/lhs/concerns/{service → record}/endpoints.rb +6 -6
- data/lib/lhs/concerns/{service → record}/find.rb +3 -2
- data/lib/lhs/concerns/{service → record}/find_by.rb +3 -2
- data/lib/lhs/concerns/{service → record}/first.rb +1 -1
- data/lib/lhs/concerns/{service → record}/includes.rb +4 -2
- data/lib/lhs/concerns/{service → record}/mapping.rb +1 -1
- data/lib/lhs/concerns/{service → record}/model.rb +1 -1
- data/lib/lhs/concerns/{service → record}/request.rb +12 -12
- data/lib/lhs/concerns/{service → record}/where.rb +3 -2
- data/lib/lhs/data.rb +25 -53
- data/lib/lhs/endpoint.rb +2 -2
- data/lib/lhs/item.rb +8 -2
- data/lib/lhs/proxy.rb +2 -2
- data/lib/lhs/record.rb +42 -0
- data/lib/lhs/version.rb +1 -1
- data/spec/collection/meta_data_spec.rb +2 -2
- data/spec/collection/without_object_items_spec.rb +1 -1
- data/spec/data/item_spec.rb +2 -14
- data/spec/data/merge_spec.rb +3 -3
- data/spec/data/raw_spec.rb +1 -1
- data/spec/data/respond_to_spec.rb +3 -3
- data/spec/data/root_spec.rb +2 -2
- data/spec/data/to_json_spec.rb +2 -2
- data/spec/endpoint/for_url_spec.rb +1 -1
- data/spec/item/delegate_spec.rb +2 -2
- data/spec/item/destroy_spec.rb +4 -4
- data/spec/item/errors_spec.rb +4 -4
- data/spec/item/getter_spec.rb +2 -2
- data/spec/item/internal_data_structure_spec.rb +1 -1
- data/spec/item/save_spec.rb +3 -4
- data/spec/item/setter_spec.rb +2 -2
- data/spec/item/update_spec.rb +2 -2
- data/spec/item/validation_spec.rb +47 -75
- data/spec/proxy/load_spec.rb +2 -2
- data/spec/{service → record}/all_spec.rb +7 -7
- data/spec/{service → record}/build_spec.rb +5 -4
- data/spec/{service → record}/create_spec.rb +6 -5
- data/spec/{service → record}/creation_failed_spec.rb +6 -5
- data/spec/record/definitions_spec.rb +29 -0
- data/spec/{service → record}/endpoint_misconfiguration_spec.rb +3 -3
- data/spec/{service → record}/endpoint_options_spec.rb +4 -4
- data/spec/{service → record}/endpoints_spec.rb +15 -15
- data/spec/{service → record}/find_by_spec.rb +8 -8
- data/spec/{service → record}/find_each_spec.rb +3 -3
- data/spec/{service → record}/find_in_batches_spec.rb +6 -6
- data/spec/{service → record}/find_spec.rb +10 -9
- data/spec/{service → record}/first_spec.rb +7 -6
- data/spec/{service → record}/includes_spec.rb +7 -7
- data/spec/{service → record}/mapping_spec.rb +27 -16
- data/spec/{service → record}/model_name_spec.rb +2 -2
- data/spec/{service → record}/new_spec.rb +4 -3
- data/spec/{service → record}/request_spec.rb +3 -3
- data/spec/record/where_spec.rb +34 -0
- data/spec/support/cleanup_endpoints.rb +1 -1
- data/spec/support/{cleanup_services.rb → cleanup_records.rb} +2 -2
- metadata +60 -67
- data/docs/collections.md +0 -28
- data/docs/data.md +0 -39
- data/docs/items.md +0 -79
- data/docs/service.jpg +0 -0
- data/docs/service.pdf +2 -650
- data/docs/services.md +0 -266
- data/lib/lhs/concerns/service/build.rb +0 -19
- data/lib/lhs/service.rb +0 -18
- data/spec/data/pagination_spec.rb +0 -60
- data/spec/dummy/README.rdoc +0 -28
- data/spec/service/where_spec.rb +0 -33
| @@ -1,12 +1,12 @@ | |
| 1 1 | 
             
            require 'rails_helper'
         | 
| 2 2 |  | 
| 3 | 
            -
            describe LHS:: | 
| 3 | 
            +
            describe LHS::Record do
         | 
| 4 4 |  | 
| 5 5 | 
             
              let(:datastore) { 'http://local.ch/v2' }
         | 
| 6 6 |  | 
| 7 7 | 
             
              before(:each) do
         | 
| 8 8 | 
             
                LHC.config.placeholder(:datastore, datastore)
         | 
| 9 | 
            -
                class  | 
| 9 | 
            +
                class Record < LHS::Record
         | 
| 10 10 | 
             
                  endpoint ':datastore/content-ads/:campaign_id/feedbacks'
         | 
| 11 11 | 
             
                  endpoint ':datastore/feedbacks'
         | 
| 12 12 | 
             
                end
         | 
| @@ -17,14 +17,15 @@ describe LHS::Service do | |
| 17 17 | 
             
                it 'finds a single record' do
         | 
| 18 18 | 
             
                  stub_request(:get, "#{datastore}/feedbacks?limit=1")
         | 
| 19 19 | 
             
                    .to_return(status: 200, body: load_json(:feedback))
         | 
| 20 | 
            -
             | 
| 21 | 
            -
                   | 
| 20 | 
            +
                  record = Record.first
         | 
| 21 | 
            +
                  expect(record).to be_kind_of Record
         | 
| 22 | 
            +
                  expect(record.source_id).to be
         | 
| 22 23 | 
             
                end
         | 
| 23 24 |  | 
| 24 25 | 
             
                it 'returns nil if no record was found' do
         | 
| 25 26 | 
             
                  stub_request(:get, "#{datastore}/feedbacks?limit=1")
         | 
| 26 27 | 
             
                    .to_return(status: 404)
         | 
| 27 | 
            -
                  expect( | 
| 28 | 
            +
                  expect(Record.first).to be_nil
         | 
| 28 29 | 
             
                end
         | 
| 29 30 | 
             
              end
         | 
| 30 31 |  | 
| @@ -33,7 +34,7 @@ describe LHS::Service do | |
| 33 34 | 
             
                it 'raises if nothing was found with parameters' do
         | 
| 34 35 | 
             
                  stub_request(:get, "#{datastore}/feedbacks?limit=1")
         | 
| 35 36 | 
             
                    .to_return(status: 404)
         | 
| 36 | 
            -
                  expect {  | 
| 37 | 
            +
                  expect { Record.first! }.to raise_error LHC::NotFound
         | 
| 37 38 | 
             
                end
         | 
| 38 39 | 
             
              end
         | 
| 39 40 | 
             
            end
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            require 'rails_helper'
         | 
| 2 2 |  | 
| 3 | 
            -
            describe LHS:: | 
| 3 | 
            +
            describe LHS::Record do
         | 
| 4 4 |  | 
| 5 5 | 
             
              let(:datastore) { 'http://local.ch/v2' }
         | 
| 6 6 | 
             
              before(:each) { LHC.config.placeholder('datastore', datastore) }
         | 
| @@ -26,15 +26,15 @@ describe LHS::Service do | |
| 26 26 |  | 
| 27 27 | 
             
              context 'singlelevel includes' do
         | 
| 28 28 | 
             
                before(:each) do
         | 
| 29 | 
            -
                  class LocalEntry < LHS:: | 
| 29 | 
            +
                  class LocalEntry < LHS::Record
         | 
| 30 30 | 
             
                    endpoint ':datastore/local-entries'
         | 
| 31 31 | 
             
                    endpoint ':datastore/local-entries/:id'
         | 
| 32 32 | 
             
                  end
         | 
| 33 | 
            -
                  class User < LHS:: | 
| 33 | 
            +
                  class User < LHS::Record
         | 
| 34 34 | 
             
                    endpoint ':datastore/users'
         | 
| 35 35 | 
             
                    endpoint ':datastore/users/:id'
         | 
| 36 36 | 
             
                  end
         | 
| 37 | 
            -
                  class Favorite < LHS:: | 
| 37 | 
            +
                  class Favorite < LHS::Record
         | 
| 38 38 | 
             
                    endpoint ':datastore/favorites'
         | 
| 39 39 | 
             
                    endpoint ':datastore/favorites/:id'
         | 
| 40 40 | 
             
                  end
         | 
| @@ -70,7 +70,7 @@ describe LHS::Service do | |
| 70 70 | 
             
              context 'multilevel includes' do
         | 
| 71 71 |  | 
| 72 72 | 
             
                before(:each) do
         | 
| 73 | 
            -
                  class Feedback < LHS:: | 
| 73 | 
            +
                  class Feedback < LHS::Record
         | 
| 74 74 | 
             
                    endpoint ':datastore/feedbacks'
         | 
| 75 75 | 
             
                    endpoint ':datastore/feedbacks/:id'
         | 
| 76 76 | 
             
                  end
         | 
| @@ -152,7 +152,7 @@ describe LHS::Service do | |
| 152 152 | 
             
                  end
         | 
| 153 153 |  | 
| 154 154 | 
             
                  before(:each) do
         | 
| 155 | 
            -
                    class Entry < LHS:: | 
| 155 | 
            +
                    class Entry < LHS::Record
         | 
| 156 156 | 
             
                      endpoint ':datastore/local-entries/:id'
         | 
| 157 157 | 
             
                    end
         | 
| 158 158 | 
             
                    class SomeInterceptor < LHC::Interceptor; end
         | 
| @@ -175,7 +175,7 @@ describe LHS::Service do | |
| 175 175 | 
             
              context 'links pointing to nowhere' do
         | 
| 176 176 |  | 
| 177 177 | 
             
                it 'sets nil for links that cannot be included' do
         | 
| 178 | 
            -
                  class Feedback < LHS:: | 
| 178 | 
            +
                  class Feedback < LHS::Record
         | 
| 179 179 | 
             
                    endpoint ':datastore/feedbacks'
         | 
| 180 180 | 
             
                    endpoint ':datastore/feedbacks/:id'
         | 
| 181 181 | 
             
                  end
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            require 'rails_helper'
         | 
| 2 2 |  | 
| 3 | 
            -
            describe LHS:: | 
| 3 | 
            +
            describe LHS::Record do
         | 
| 4 4 |  | 
| 5 5 | 
             
              context 'mapping' do
         | 
| 6 6 |  | 
| @@ -8,46 +8,54 @@ describe LHS::Service do | |
| 8 8 |  | 
| 9 9 | 
             
                before(:each) do
         | 
| 10 10 | 
             
                  LHC.config.placeholder('datastore', datastore)
         | 
| 11 | 
            -
                  class LocalEntry < LHS:: | 
| 11 | 
            +
                  class LocalEntry < LHS::Record
         | 
| 12 12 | 
             
                    endpoint ':datastore/local-entries'
         | 
| 13 13 | 
             
                    endpoint ':datastore/local-entries/:id'
         | 
| 14 14 | 
             
                  end
         | 
| 15 15 | 
             
                end
         | 
| 16 16 |  | 
| 17 17 | 
             
                it 'maps some attr accessors to another target (proxy)' do
         | 
| 18 | 
            -
                  class LocalEntry < LHS:: | 
| 19 | 
            -
                     | 
| 18 | 
            +
                  class LocalEntry < LHS::Record
         | 
| 19 | 
            +
                    def name
         | 
| 20 | 
            +
                      addresses.first.business.identities.first.name
         | 
| 21 | 
            +
                    end
         | 
| 20 22 | 
             
                  end
         | 
| 21 23 | 
             
                  stub_request(:get, "#{datastore}/local-entries/1")
         | 
| 22 | 
            -
             | 
| 24 | 
            +
                    .to_return(status: 200, body: {addresses: [{business: {identities: [{name: 'Löwenzorn'}]}}]}.to_json)
         | 
| 23 25 | 
             
                  entry = LocalEntry.find(1)
         | 
| 24 26 | 
             
                  expect(entry.name).to eq 'Löwenzorn'
         | 
| 25 27 | 
             
                end
         | 
| 26 28 |  | 
| 27 29 | 
             
                it 'maps for root_item even if that item is nested in a root collection' do
         | 
| 28 | 
            -
                  class LocalEntry < LHS:: | 
| 29 | 
            -
                     | 
| 30 | 
            +
                  class LocalEntry < LHS::Record
         | 
| 31 | 
            +
                    def name
         | 
| 32 | 
            +
                      addresses.first.business.identities.first.name
         | 
| 33 | 
            +
                    end
         | 
| 30 34 | 
             
                  end
         | 
| 31 35 | 
             
                  stub_request(:get, "#{datastore}/local-entries/1?limit=1")
         | 
| 32 | 
            -
             | 
| 36 | 
            +
                    .to_return(status: 200, body: {items: [{addresses: [{business: {identities: [{name: 'Löwenzorn'}]}}]}]}.to_json)
         | 
| 33 37 | 
             
                  entry = LocalEntry.find_by(id: 1)
         | 
| 34 38 | 
             
                  expect(entry.name).to eq 'Löwenzorn'
         | 
| 35 39 | 
             
                end
         | 
| 36 40 |  | 
| 37 41 | 
             
                it 'return data proxy in case of item or collection' do
         | 
| 38 | 
            -
                  class LocalEntry < LHS:: | 
| 39 | 
            -
                     | 
| 42 | 
            +
                  class LocalEntry < LHS::Record
         | 
| 43 | 
            +
                    def business
         | 
| 44 | 
            +
                      addresses.first.business
         | 
| 45 | 
            +
                    end
         | 
| 40 46 | 
             
                  end
         | 
| 41 47 | 
             
                  stub_request(:get, "#{datastore}/local-entries/1")
         | 
| 42 | 
            -
             | 
| 48 | 
            +
                    .to_return(status: 200, body: {addresses: [{business: {identities: [{name: 'Löwenzorn'}]}}]}.to_json)
         | 
| 43 49 | 
             
                  entry = LocalEntry.find(1)
         | 
| 44 50 | 
             
                  expect(entry.business).to be_kind_of LHS::Data
         | 
| 45 51 | 
             
                end
         | 
| 46 52 |  | 
| 47 53 | 
             
                it 'clones mappings when using include' do
         | 
| 48 | 
            -
                  class Agb < LHS:: | 
| 54 | 
            +
                  class Agb < LHS::Record
         | 
| 49 55 | 
             
                    endpoint ":datastore/agbs/active?agb_type=CC_TOU"
         | 
| 50 | 
            -
                     | 
| 56 | 
            +
                    def pdf_url
         | 
| 57 | 
            +
                      self['binary_url_pdf_de']
         | 
| 58 | 
            +
                    end
         | 
| 51 59 | 
             
                  end
         | 
| 52 60 |  | 
| 53 61 | 
             
                  preceding_agb_url = "#{datastore}/agbs/547f0b461c266c4830ea6cea"
         | 
| @@ -71,10 +79,12 @@ describe LHS::Service do | |
| 71 79 | 
             
                end
         | 
| 72 80 |  | 
| 73 81 | 
             
                it 'makes mappings available even for nested data' do
         | 
| 74 | 
            -
                  class LocalEntry < LHS:: | 
| 75 | 
            -
                     | 
| 82 | 
            +
                  class LocalEntry < LHS::Record
         | 
| 83 | 
            +
                    def name
         | 
| 84 | 
            +
                      company_name
         | 
| 85 | 
            +
                    end
         | 
| 76 86 | 
             
                  end
         | 
| 77 | 
            -
                  class Favorite < LHS:: | 
| 87 | 
            +
                  class Favorite < LHS::Record
         | 
| 78 88 | 
             
                    endpoint ':datastore/favorites'
         | 
| 79 89 | 
             
                    endpoint ':datastore/favorites/:id'
         | 
| 80 90 | 
             
                  end
         | 
| @@ -84,6 +94,7 @@ describe LHS::Service do | |
| 84 94 | 
             
                    .to_return(body: {local_entry: {href: "#{datastore}/local-entries/1"}}.to_json)
         | 
| 85 95 |  | 
| 86 96 | 
             
                  favorite = Favorite.includes(:local_entry).find(1)
         | 
| 97 | 
            +
                  expect(favorite.local_entry).to be_kind_of LocalEntry
         | 
| 87 98 | 
             
                  expect(favorite.local_entry.name).to eq 'local.ch'
         | 
| 88 99 | 
             
                end
         | 
| 89 100 | 
             
              end
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            require 'rails_helper'
         | 
| 2 2 |  | 
| 3 | 
            -
            describe LHS:: | 
| 3 | 
            +
            describe LHS::Record do
         | 
| 4 4 |  | 
| 5 5 | 
             
              context 'new' do
         | 
| 6 6 |  | 
| @@ -8,7 +8,7 @@ describe LHS::Service do | |
| 8 8 |  | 
| 9 9 | 
             
                before(:each) do
         | 
| 10 10 | 
             
                  LHC.config.placeholder('datastore', datastore)
         | 
| 11 | 
            -
                  class Feedback < LHS:: | 
| 11 | 
            +
                  class Feedback < LHS::Record
         | 
| 12 12 | 
             
                    endpoint ':datastore/content-ads/:campaign_id/feedbacks'
         | 
| 13 13 | 
             
                    endpoint ':datastore/feedbacks'
         | 
| 14 14 | 
             
                  end
         | 
| @@ -16,9 +16,10 @@ describe LHS::Service do | |
| 16 16 |  | 
| 17 17 | 
             
                it 'builds a new item from scratch (like build)' do
         | 
| 18 18 | 
             
                  feedback = Feedback.new recommended: true
         | 
| 19 | 
            +
                  expect(feedback).to be_kind_of Feedback
         | 
| 19 20 | 
             
                  expect(feedback.recommended).to eq true
         | 
| 20 21 | 
             
                  stub_request(:post, "http://local.ch/v2/feedbacks")
         | 
| 21 | 
            -
             | 
| 22 | 
            +
                    .with(body: "{\"recommended\":true}")
         | 
| 22 23 | 
             
                  feedback.save
         | 
| 23 24 | 
             
                end
         | 
| 24 25 | 
             
              end
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            require 'rails_helper'
         | 
| 2 2 |  | 
| 3 | 
            -
            describe LHS:: | 
| 3 | 
            +
            describe LHS::Record do
         | 
| 4 4 |  | 
| 5 5 | 
             
              context 'url pattern' do
         | 
| 6 6 |  | 
| @@ -8,7 +8,7 @@ describe LHS::Service do | |
| 8 8 |  | 
| 9 9 | 
             
                before(:each) do
         | 
| 10 10 | 
             
                  LHC.config.placeholder(:datastore, datastore)
         | 
| 11 | 
            -
                  class  | 
| 11 | 
            +
                  class Record < LHS::Record
         | 
| 12 12 | 
             
                    endpoint ':datastore/content-ads/:campaign_id/feedbacks'
         | 
| 13 13 | 
             
                    endpoint ':datastore/feedbacks'
         | 
| 14 14 | 
             
                  end
         | 
| @@ -16,7 +16,7 @@ describe LHS::Service do | |
| 16 16 |  | 
| 17 17 | 
             
                it 'is using params as query params explicitly when provided in params namespace' do
         | 
| 18 18 | 
             
                  stub_request(:get, "#{datastore}/content-ads/123/feedbacks?campaign_id=456").to_return(status: 200)
         | 
| 19 | 
            -
                   | 
| 19 | 
            +
                  records = Record.where(campaign_id: 123, params: { campaign_id: '456' })
         | 
| 20 20 | 
             
                end
         | 
| 21 21 | 
             
              end
         | 
| 22 22 | 
             
            end
         | 
| @@ -0,0 +1,34 @@ | |
| 1 | 
            +
            require 'rails_helper'
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            describe LHS::Record do
         | 
| 4 | 
            +
             | 
| 5 | 
            +
              let(:datastore) do
         | 
| 6 | 
            +
                'http://datastore/v2'
         | 
| 7 | 
            +
              end
         | 
| 8 | 
            +
             | 
| 9 | 
            +
              before(:each) do
         | 
| 10 | 
            +
                LHC.config.placeholder('datastore', datastore)
         | 
| 11 | 
            +
                class Record < LHS::Record
         | 
| 12 | 
            +
                  endpoint ':datastore/content-ads/:campaign_id/feedbacks'
         | 
| 13 | 
            +
                  endpoint ':datastore/feedbacks'
         | 
| 14 | 
            +
                end
         | 
| 15 | 
            +
              end
         | 
| 16 | 
            +
             | 
| 17 | 
            +
              context 'where' do
         | 
| 18 | 
            +
             | 
| 19 | 
            +
                it 'is querying relevant endpoint when using where' do
         | 
| 20 | 
            +
                  stub_request(:get, "#{datastore}/feedbacks?has_review=true").to_return(status: 200, body: {items: []}.to_json)
         | 
| 21 | 
            +
                  Record.where(has_review: true)
         | 
| 22 | 
            +
                  stub_request(:get, "#{datastore}/content-ads/123/feedbacks?has_review=true").to_return(status: 200, body: [].to_json)
         | 
| 23 | 
            +
                  Record.where(campaign_id: '123', has_review: true)
         | 
| 24 | 
            +
                  stub_request(:get, "#{datastore}/feedbacks").to_return(status: 200, body: [].to_json)
         | 
| 25 | 
            +
                  records = Record.where
         | 
| 26 | 
            +
                  expect(records).to be_kind_of Record
         | 
| 27 | 
            +
                end
         | 
| 28 | 
            +
             | 
| 29 | 
            +
                it 'is using params as query params explicitly when provided in params namespace' do
         | 
| 30 | 
            +
                  stub_request(:get, "#{datastore}/content-ads/123/feedbacks?campaign_id=456").to_return(status: 200, body: [].to_json)
         | 
| 31 | 
            +
                  Record.where(campaign_id: '123', params: { campaign_id: '456' })
         | 
| 32 | 
            +
                end
         | 
| 33 | 
            +
              end
         | 
| 34 | 
            +
            end
         | 
| @@ -1,4 +1,4 @@ | |
| 1 | 
            -
            class LHS:: | 
| 1 | 
            +
            class LHS::Record
         | 
| 2 2 |  | 
| 3 3 | 
             
              CHILDREN = []
         | 
| 4 4 |  | 
| @@ -13,7 +13,7 @@ end | |
| 13 13 | 
             
            RSpec.configure do |config|
         | 
| 14 14 |  | 
| 15 15 | 
             
              config.before(:each) do
         | 
| 16 | 
            -
                LHS:: | 
| 16 | 
            +
                LHS::Record::CHILDREN.each do |child|
         | 
| 17 17 | 
             
                  child.endpoints = [] if !child.name['LHS']
         | 
| 18 18 | 
             
                end
         | 
| 19 19 | 
             
              end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: lhs
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version:  | 
| 4 | 
            +
              version: 3.0.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 | 
            -
            - local | 
| 7 | 
            +
            - https://github.com/local-ch/lhs/graphs/contributors
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2016- | 
| 11 | 
            +
            date: 2016-01-04 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: lhc
         | 
| @@ -108,7 +108,8 @@ dependencies: | |
| 108 108 | 
             
                - - ">="
         | 
| 109 109 | 
             
                  - !ruby/object:Gem::Version
         | 
| 110 110 | 
             
                    version: '0'
         | 
| 111 | 
            -
            description: Rails gem providing an easy interface to use http | 
| 111 | 
            +
            description: Rails gem providing an easy, active-record-like interface to use http
         | 
| 112 | 
            +
              backend services
         | 
| 112 113 | 
             
            email:
         | 
| 113 114 | 
             
            - ws-operations@local.ch
         | 
| 114 115 | 
             
            executables: []
         | 
| @@ -122,14 +123,8 @@ files: | |
| 122 123 | 
             
            - cider-ci.yml
         | 
| 123 124 | 
             
            - cider-ci/contexts/rspec.yml
         | 
| 124 125 | 
             
            - cider-ci/jobs/tests.yml
         | 
| 125 | 
            -
            - docs/collections.md
         | 
| 126 | 
            -
            - docs/data.md
         | 
| 127 126 | 
             
            - docs/examples/claim_no_include.json
         | 
| 128 127 | 
             
            - docs/examples/claim_with_include.json
         | 
| 129 | 
            -
            - docs/items.md
         | 
| 130 | 
            -
            - docs/service.jpg
         | 
| 131 | 
            -
            - docs/service.pdf
         | 
| 132 | 
            -
            - docs/services.md
         | 
| 133 128 | 
             
            - lhs.gemspec
         | 
| 134 129 | 
             
            - lib/lhs.rb
         | 
| 135 130 | 
             
            - lib/lhs/collection.rb
         | 
| @@ -138,25 +133,24 @@ files: | |
| 138 133 | 
             
            - lib/lhs/concerns/item/save.rb
         | 
| 139 134 | 
             
            - lib/lhs/concerns/item/update.rb
         | 
| 140 135 | 
             
            - lib/lhs/concerns/item/validation.rb
         | 
| 141 | 
            -
            - lib/lhs/concerns/ | 
| 142 | 
            -
            - lib/lhs/concerns/ | 
| 143 | 
            -
            - lib/lhs/concerns/ | 
| 144 | 
            -
            - lib/lhs/concerns/ | 
| 145 | 
            -
            - lib/lhs/concerns/ | 
| 146 | 
            -
            - lib/lhs/concerns/ | 
| 147 | 
            -
            - lib/lhs/concerns/ | 
| 148 | 
            -
            - lib/lhs/concerns/ | 
| 149 | 
            -
            - lib/lhs/concerns/ | 
| 150 | 
            -
            - lib/lhs/concerns/ | 
| 151 | 
            -
            - lib/lhs/concerns/ | 
| 152 | 
            -
            - lib/lhs/concerns/ | 
| 153 | 
            -
            - lib/lhs/concerns/service/where.rb
         | 
| 136 | 
            +
            - lib/lhs/concerns/record/all.rb
         | 
| 137 | 
            +
            - lib/lhs/concerns/record/batch.rb
         | 
| 138 | 
            +
            - lib/lhs/concerns/record/create.rb
         | 
| 139 | 
            +
            - lib/lhs/concerns/record/endpoints.rb
         | 
| 140 | 
            +
            - lib/lhs/concerns/record/find.rb
         | 
| 141 | 
            +
            - lib/lhs/concerns/record/find_by.rb
         | 
| 142 | 
            +
            - lib/lhs/concerns/record/first.rb
         | 
| 143 | 
            +
            - lib/lhs/concerns/record/includes.rb
         | 
| 144 | 
            +
            - lib/lhs/concerns/record/mapping.rb
         | 
| 145 | 
            +
            - lib/lhs/concerns/record/model.rb
         | 
| 146 | 
            +
            - lib/lhs/concerns/record/request.rb
         | 
| 147 | 
            +
            - lib/lhs/concerns/record/where.rb
         | 
| 154 148 | 
             
            - lib/lhs/data.rb
         | 
| 155 149 | 
             
            - lib/lhs/endpoint.rb
         | 
| 156 150 | 
             
            - lib/lhs/errors.rb
         | 
| 157 151 | 
             
            - lib/lhs/item.rb
         | 
| 158 152 | 
             
            - lib/lhs/proxy.rb
         | 
| 159 | 
            -
            - lib/lhs/ | 
| 153 | 
            +
            - lib/lhs/record.rb
         | 
| 160 154 | 
             
            - lib/lhs/version.rb
         | 
| 161 155 | 
             
            - script/ci/build.sh
         | 
| 162 156 | 
             
            - spec/.DS_Store
         | 
| @@ -168,13 +162,11 @@ files: | |
| 168 162 | 
             
            - spec/data/collection_spec.rb
         | 
| 169 163 | 
             
            - spec/data/item_spec.rb
         | 
| 170 164 | 
             
            - spec/data/merge_spec.rb
         | 
| 171 | 
            -
            - spec/data/pagination_spec.rb
         | 
| 172 165 | 
             
            - spec/data/raw_spec.rb
         | 
| 173 166 | 
             
            - spec/data/respond_to_spec.rb
         | 
| 174 167 | 
             
            - spec/data/root_spec.rb
         | 
| 175 168 | 
             
            - spec/data/select_spec.rb
         | 
| 176 169 | 
             
            - spec/data/to_json_spec.rb
         | 
| 177 | 
            -
            - spec/dummy/README.rdoc
         | 
| 178 170 | 
             
            - spec/dummy/Rakefile
         | 
| 179 171 | 
             
            - spec/dummy/app/assets/images/.keep
         | 
| 180 172 | 
             
            - spec/dummy/app/assets/javascripts/application.js
         | 
| @@ -226,28 +218,29 @@ files: | |
| 226 218 | 
             
            - spec/item/validation_spec.rb
         | 
| 227 219 | 
             
            - spec/proxy/load_spec.rb
         | 
| 228 220 | 
             
            - spec/rails_helper.rb
         | 
| 229 | 
            -
            - spec/ | 
| 230 | 
            -
            - spec/ | 
| 231 | 
            -
            - spec/ | 
| 232 | 
            -
            - spec/ | 
| 233 | 
            -
            - spec/ | 
| 234 | 
            -
            - spec/ | 
| 235 | 
            -
            - spec/ | 
| 236 | 
            -
            - spec/ | 
| 237 | 
            -
            - spec/ | 
| 238 | 
            -
            - spec/ | 
| 239 | 
            -
            - spec/ | 
| 240 | 
            -
            - spec/ | 
| 241 | 
            -
            - spec/ | 
| 242 | 
            -
            - spec/ | 
| 243 | 
            -
            - spec/ | 
| 244 | 
            -
            - spec/ | 
| 245 | 
            -
            - spec/ | 
| 246 | 
            -
            - spec/ | 
| 221 | 
            +
            - spec/record/all_spec.rb
         | 
| 222 | 
            +
            - spec/record/build_spec.rb
         | 
| 223 | 
            +
            - spec/record/create_spec.rb
         | 
| 224 | 
            +
            - spec/record/creation_failed_spec.rb
         | 
| 225 | 
            +
            - spec/record/definitions_spec.rb
         | 
| 226 | 
            +
            - spec/record/endpoint_misconfiguration_spec.rb
         | 
| 227 | 
            +
            - spec/record/endpoint_options_spec.rb
         | 
| 228 | 
            +
            - spec/record/endpoints_spec.rb
         | 
| 229 | 
            +
            - spec/record/find_by_spec.rb
         | 
| 230 | 
            +
            - spec/record/find_each_spec.rb
         | 
| 231 | 
            +
            - spec/record/find_in_batches_spec.rb
         | 
| 232 | 
            +
            - spec/record/find_spec.rb
         | 
| 233 | 
            +
            - spec/record/first_spec.rb
         | 
| 234 | 
            +
            - spec/record/includes_spec.rb
         | 
| 235 | 
            +
            - spec/record/mapping_spec.rb
         | 
| 236 | 
            +
            - spec/record/model_name_spec.rb
         | 
| 237 | 
            +
            - spec/record/new_spec.rb
         | 
| 238 | 
            +
            - spec/record/request_spec.rb
         | 
| 239 | 
            +
            - spec/record/where_spec.rb
         | 
| 247 240 | 
             
            - spec/spec_helper.rb
         | 
| 248 241 | 
             
            - spec/support/cleanup_configuration.rb
         | 
| 249 242 | 
             
            - spec/support/cleanup_endpoints.rb
         | 
| 250 | 
            -
            - spec/support/ | 
| 243 | 
            +
            - spec/support/cleanup_records.rb
         | 
| 251 244 | 
             
            - spec/support/fixtures/json/feedback.json
         | 
| 252 245 | 
             
            - spec/support/fixtures/json/feedbacks.json
         | 
| 253 246 | 
             
            - spec/support/fixtures/json/localina_content_ad.json
         | 
| @@ -275,7 +268,8 @@ rubyforge_project: | |
| 275 268 | 
             
            rubygems_version: 2.2.2
         | 
| 276 269 | 
             
            signing_key: 
         | 
| 277 270 | 
             
            specification_version: 4
         | 
| 278 | 
            -
            summary:  | 
| 271 | 
            +
            summary: Rails gem providing an easy, active-record-like interface to use http backend
         | 
| 272 | 
            +
              services
         | 
| 279 273 | 
             
            test_files:
         | 
| 280 274 | 
             
            - spec/collection/delegate_spec.rb
         | 
| 281 275 | 
             
            - spec/collection/enumerable_spec.rb
         | 
| @@ -285,13 +279,11 @@ test_files: | |
| 285 279 | 
             
            - spec/data/collection_spec.rb
         | 
| 286 280 | 
             
            - spec/data/item_spec.rb
         | 
| 287 281 | 
             
            - spec/data/merge_spec.rb
         | 
| 288 | 
            -
            - spec/data/pagination_spec.rb
         | 
| 289 282 | 
             
            - spec/data/raw_spec.rb
         | 
| 290 283 | 
             
            - spec/data/respond_to_spec.rb
         | 
| 291 284 | 
             
            - spec/data/root_spec.rb
         | 
| 292 285 | 
             
            - spec/data/select_spec.rb
         | 
| 293 286 | 
             
            - spec/data/to_json_spec.rb
         | 
| 294 | 
            -
            - spec/dummy/README.rdoc
         | 
| 295 287 | 
             
            - spec/dummy/Rakefile
         | 
| 296 288 | 
             
            - spec/dummy/app/assets/images/.keep
         | 
| 297 289 | 
             
            - spec/dummy/app/assets/javascripts/application.js
         | 
| @@ -343,28 +335,29 @@ test_files: | |
| 343 335 | 
             
            - spec/item/validation_spec.rb
         | 
| 344 336 | 
             
            - spec/proxy/load_spec.rb
         | 
| 345 337 | 
             
            - spec/rails_helper.rb
         | 
| 346 | 
            -
            - spec/ | 
| 347 | 
            -
            - spec/ | 
| 348 | 
            -
            - spec/ | 
| 349 | 
            -
            - spec/ | 
| 350 | 
            -
            - spec/ | 
| 351 | 
            -
            - spec/ | 
| 352 | 
            -
            - spec/ | 
| 353 | 
            -
            - spec/ | 
| 354 | 
            -
            - spec/ | 
| 355 | 
            -
            - spec/ | 
| 356 | 
            -
            - spec/ | 
| 357 | 
            -
            - spec/ | 
| 358 | 
            -
            - spec/ | 
| 359 | 
            -
            - spec/ | 
| 360 | 
            -
            - spec/ | 
| 361 | 
            -
            - spec/ | 
| 362 | 
            -
            - spec/ | 
| 363 | 
            -
            - spec/ | 
| 338 | 
            +
            - spec/record/all_spec.rb
         | 
| 339 | 
            +
            - spec/record/build_spec.rb
         | 
| 340 | 
            +
            - spec/record/create_spec.rb
         | 
| 341 | 
            +
            - spec/record/creation_failed_spec.rb
         | 
| 342 | 
            +
            - spec/record/definitions_spec.rb
         | 
| 343 | 
            +
            - spec/record/endpoint_misconfiguration_spec.rb
         | 
| 344 | 
            +
            - spec/record/endpoint_options_spec.rb
         | 
| 345 | 
            +
            - spec/record/endpoints_spec.rb
         | 
| 346 | 
            +
            - spec/record/find_by_spec.rb
         | 
| 347 | 
            +
            - spec/record/find_each_spec.rb
         | 
| 348 | 
            +
            - spec/record/find_in_batches_spec.rb
         | 
| 349 | 
            +
            - spec/record/find_spec.rb
         | 
| 350 | 
            +
            - spec/record/first_spec.rb
         | 
| 351 | 
            +
            - spec/record/includes_spec.rb
         | 
| 352 | 
            +
            - spec/record/mapping_spec.rb
         | 
| 353 | 
            +
            - spec/record/model_name_spec.rb
         | 
| 354 | 
            +
            - spec/record/new_spec.rb
         | 
| 355 | 
            +
            - spec/record/request_spec.rb
         | 
| 356 | 
            +
            - spec/record/where_spec.rb
         | 
| 364 357 | 
             
            - spec/spec_helper.rb
         | 
| 365 358 | 
             
            - spec/support/cleanup_configuration.rb
         | 
| 366 359 | 
             
            - spec/support/cleanup_endpoints.rb
         | 
| 367 | 
            -
            - spec/support/ | 
| 360 | 
            +
            - spec/support/cleanup_records.rb
         | 
| 368 361 | 
             
            - spec/support/fixtures/json/feedback.json
         | 
| 369 362 | 
             
            - spec/support/fixtures/json/feedbacks.json
         | 
| 370 363 | 
             
            - spec/support/fixtures/json/localina_content_ad.json
         |