tag:github.com,2008:https://github.com/BlockScore/blockscore-ruby/releasesRelease notes from blockscore-ruby2015-09-18T19:46:53Ztag:github.com,2008:Repository/17101801/v4.2.12015-09-18T19:46:53Zv4.2.1<p>Bump version to 4.2.1</p>alainmeiertag:github.com,2008:Repository/17101801/v4.2.02015-09-15T00:35:46Zv4.2.0<h3>Fixes</h3>
<ul>
<li><code>BlockScore::Collection#all</code> where it previously requested all items in the member resource it nows returns self. This could have lead one to falsely assume something like <code>person.question_sets.all</code> returned a collection that contained question sets belonging to the person. The collection itself is now just tied to the embedded member ids in the parent resource. <strong>This could introduce a breaking change for those expecting <code>Collection#all</code> to behave like QuestionSet#all.</strong></li>
<li>Fixes <code>BlockScore::Person</code> to automatically add previously created question set ids to the <code>BlockScore::Person#question_sets</code> collection</li>
</ul>
<h3>Breaking Changes</h3>
<ul>
<li><code>BlockScore::Collection#all</code> returns self and no longer delegates to the member class method.</li>
<li><code>BlockScore::Collection#retrieve</code> no longer accepts options and returns <code>BlockScore::Collection::Member</code> simple delegator around member instance</li>
<li><code>BlockScore::Collection#create</code> returns <code>BlockScore::Collection::Member</code> simple delegator around instance</li>
</ul>
<h3>Some Improvements</h3>
<ul>
<li>Attributes in <code>BlockScore::Base</code> are lazily loaded when retrieved and maybe refreshed using <code>BlockScore::Base#refresh</code> or <code>BlockScore::Collection#refresh</code>. This allows the QuestionSet id's included in the person attributes to be lazily loaded into a collection.</li>
<li><code>BlockScore::Collection#refresh</code> reloads the persisted and associated members of the parent, but may leave out or not contain items if parent is not refreshed.</li>
<li><code>BlockScore::Collection#create</code> will include parent id automatically and add to collection, e.g. <code>person.questions_sets.create</code> is handles adding the <code>person_id</code> and adding the created question set to the collection, which was previously handled by <code>QuestionSet</code>.</li>
<li>Creation fails if parent is not saved, e.g. <code>person.question_sets.create</code> fails if <code>person.persisted?</code> is <code>false</code>.</li>
<li><code>BlockScore::Collection#retrieve</code> checks parent id and fails if not belonging.</li>
<li><code>BlockScore::Collection#new</code> adds parent id to new member</li>
</ul>
<hr>
<h3>Updates retrieve to be lazy</h3>
<ul>
<li>BlockScore::Actions::Retrieve::ClassMethods#retrieve</li>
</ul>
<h3>Adds methods in Base</h3>
<ul>
<li>BlockScore::Base#force!</li>
<li>BlockScore::Base#id</li>
<li>BlockScore::Base#persisted?</li>
</ul>
<h3>Updates methods in Base</h3>
<ul>
<li>BlockScore::Base#attributes</li>
<li>BlockScore::Base#inspect</li>
<li>BlockScore::Base#initialize</li>
</ul>
<h3>Updates Collection with Actions</h3>
<ul>
<li>BlockScore::Collection#all</li>
<li>BlockScore::Collection#new</li>
<li>BlockScore::Collection#refresh</li>
<li>BlockScore::Collection#create</li>
<li>BlockScore::Collection#retrieve</li>
<li>BlockScore::Collection#parent</li>
<li>BlockScore::Collection#parent_name</li>
</ul>
<h3>Adds Collection::Member simple delegator</h3>
<h3>Updates Person to build Collection from embedded question_set ids</h3>OfTheDelmertag:github.com,2008:Repository/17101801/v4.1.22015-08-28T06:32:54Zv4.1.2<ul>
<li>fix candidate search modifying input options (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="103403090" data-permission-text="Title is private" data-url="https://github.com/BlockScore/blockscore-ruby/issues/30" data-hovercard-type="issue" data-hovercard-url="/BlockScore/blockscore-ruby/issues/30/hovercard" href="https://github.com/BlockScore/blockscore-ruby/issues/30">#30</a>)</li>
</ul>backustag:github.com,2008:Repository/17101801/v4.1.12015-08-28T06:31:40Z4.1.1<h3>Adds predicate methods</h3>
<ul>
<li><code>BlockScore::Person#valid?</code></li>
<li><code>BlockScore::Person#invalid?</code></li>
</ul>backustag:github.com,2008:Repository/17101801/v4.0.02014-11-17T10:41:57Zv4.0.0<p>Regenerate gemspec for version 4.0.0</p>alainmeiertag:github.com,2008:Repository/17101801/v3.0.12014-10-22T04:49:10Zv3.0.1<p>Regenerate gemspec for version 3.0.1</p>alainmeiertag:github.com,2008:Repository/17101801/v3.0.02014-08-05T20:36:56Zv3.0.0<p>Regenerate gemspec for version 3.0.0</p>alainmeiertag:github.com,2008:Repository/17101801/v2.1.22014-07-15T10:08:54Zv2.1.2<p>Regenerate gemspec for version 2.1.2</p>alainmeiertag:github.com,2008:Repository/17101801/v2.1.12014-06-30T17:08:35Zv2.1.1: Merge pull request #11 from karolsarnacki/master<p>Remove unused Nokogiri and ActiveSupport dependencies</p>alainmeiertag:github.com,2008:Repository/17101801/v2.1.02014-06-30T06:27:47Zv2.1.0<p>Regenerate gemspec for version 2.1.0</p>alainmeier