stbaldricks 5.1.1 → 6.0.0.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c7a5706d026ead79d77b0640cff6aa8d5d89d9b75df652b297d2cd712688718
|
4
|
+
data.tar.gz: 5fbfd913bd6c84e2c4d72e65a006414997710872c5e8a82274608f8f10fc49cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d961a8a6d330dd2ce10bbe72337c20907795d5d7473a3f494220967750f9bf197644b1d7f2b3543e70fe8f7d6a53ebba241cb15eeeb111eba85138a3b124805d
|
7
|
+
data.tar.gz: 5ab5b30e3dde15927e8a2d54d56b7f53ab8662da8b65c8da49842194324659a86d58f1dd9bedeeb1d38c5b94ea785b4776b3f01bb58216134518a623e776f01e
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'stbaldricks/endpoints/lib/entity'
|
2
|
+
|
3
|
+
module SBF
|
4
|
+
module Client
|
5
|
+
class KidInstitutionEndpoint < EntityEndpoint
|
6
|
+
def delete(params)
|
7
|
+
response = SBF::Client::Api::Request.post_request("#{base_uri}/delete", params)
|
8
|
+
|
9
|
+
unless ok?(response)
|
10
|
+
error = SBF::Client::ErrorEntity.new(JSON.parse(response.body).symbolize!)
|
11
|
+
end
|
12
|
+
|
13
|
+
SBF::Client::Api::Response.new(http_code: response.code, data: nil, error: error)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -91,8 +91,6 @@ module SBF
|
|
91
91
|
attr_reader :avatar, :default
|
92
92
|
end
|
93
93
|
|
94
|
-
class KidInstitution < SBF::Client::FullInstitution; end
|
95
|
-
|
96
94
|
class Kid < SBF::Client::TopLevelEntity
|
97
95
|
include Entities::DefaultCacheable
|
98
96
|
endpoint SBF::Client::KidEndpoint
|
@@ -144,6 +142,8 @@ module SBF
|
|
144
142
|
attr_accessor :is_submitter
|
145
143
|
entity_attr_accessor :permissions, 'SBF::Client::Kid::Relationship::Permissions'
|
146
144
|
end
|
145
|
+
|
146
|
+
class CustomInstitution < SBF::Client::FullInstitution; end
|
147
147
|
end
|
148
148
|
|
149
149
|
class PartialKid < SBF::Client::Kid
|
@@ -170,7 +170,7 @@ module SBF
|
|
170
170
|
entity_attr_accessor :guardian, 'SBF::Client::Guardian'
|
171
171
|
entity_collection_attr_accessor :relationships, 'SBF::Client::Kid::Relationship'
|
172
172
|
entity_collection_attr_accessor :urls, 'SBF::Client::KidURL'
|
173
|
-
entity_collection_attr_reader :
|
173
|
+
entity_collection_attr_reader :custom_institutions, 'SBF::Client::Kid::CustomInstitution', nil, true
|
174
174
|
entity_attr_accessor :third_party_media, 'SBF::Client::ThirdPartyMedia', nil, true
|
175
175
|
|
176
176
|
attr_accessor :created_at
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'stbaldricks/endpoints/kid_institution'
|
2
|
+
require 'stbaldricks/entities/kid'
|
3
|
+
require 'stbaldricks/entities/institution'
|
4
|
+
require 'stbaldricks/entities/lib/top_level'
|
5
|
+
|
6
|
+
module SBF
|
7
|
+
module Client
|
8
|
+
class KidInstitution < SBF::Client::TopLevelEntity
|
9
|
+
endpoint SBF::Client::KidInstitutionEndpoint
|
10
|
+
actions DEFAULT_CRUD_ACTIONS
|
11
|
+
blacklist_action :get
|
12
|
+
blacklist_action :update
|
13
|
+
blacklist_action :aggregate
|
14
|
+
|
15
|
+
entity_attr_accessor :kid, 'SBF::Client::FullKid', 'SBF::Client::PartialKid'
|
16
|
+
entity_attr_accessor :institution, 'SBF::Client::FullInstitution', 'SBF::Client::PartialInstitution'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/stbaldricks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stbaldricks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0.alpha.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -95,6 +95,7 @@ files:
|
|
95
95
|
- lib/stbaldricks/endpoints/fundraiser.rb
|
96
96
|
- lib/stbaldricks/endpoints/kid.rb
|
97
97
|
- lib/stbaldricks/endpoints/kid_honor.rb
|
98
|
+
- lib/stbaldricks/endpoints/kid_institution.rb
|
98
99
|
- lib/stbaldricks/endpoints/lib/entity.rb
|
99
100
|
- lib/stbaldricks/endpoints/matching_gift_company.rb
|
100
101
|
- lib/stbaldricks/endpoints/message.rb
|
@@ -155,6 +156,7 @@ files:
|
|
155
156
|
- lib/stbaldricks/entities/international_partner.rb
|
156
157
|
- lib/stbaldricks/entities/kid.rb
|
157
158
|
- lib/stbaldricks/entities/kid_honor.rb
|
159
|
+
- lib/stbaldricks/entities/kid_institution.rb
|
158
160
|
- lib/stbaldricks/entities/lib/address.rb
|
159
161
|
- lib/stbaldricks/entities/lib/base.rb
|
160
162
|
- lib/stbaldricks/entities/lib/cacheable.rb
|
@@ -227,9 +229,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
227
229
|
version: '0'
|
228
230
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
231
|
requirements:
|
230
|
-
- - "
|
232
|
+
- - ">"
|
231
233
|
- !ruby/object:Gem::Version
|
232
|
-
version:
|
234
|
+
version: 1.3.1
|
233
235
|
requirements: []
|
234
236
|
rubyforge_project:
|
235
237
|
rubygems_version: 2.7.6
|