kalibro_gem 0.0.2.rc3 → 0.0.2.rc4

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
  SHA1:
3
- metadata.gz: b75db314b73844be91026dc1ea159680c3e539b2
4
- data.tar.gz: fc759c2a626d68fce846ea4f27e7557b5b7a27bb
3
+ metadata.gz: 830930efd449d2b49a30cd6f356966ea18d970e7
4
+ data.tar.gz: cf9e275345f1ac8cfb3621fe6380a6b2d1a98c75
5
5
  SHA512:
6
- metadata.gz: 6cbe3d71a866bc7b2cc613f203cafeefd1b27a7251276f54c3210ca94a76863470ff42f97628cd94ffc73120933da6094c9192d7900b83c7b514011345a7eecf
7
- data.tar.gz: 0d9886f0edb3536e1e3b09d62cbc1bdf799df073d689ebdabe5ea2a859afe83bc1858b64d363bf82a8dcf553e09cc1cb0d89d7ebaf2ebc8469a955d982777354
6
+ metadata.gz: 566191b84f22260ec44013957d3b9b23c0469ae57d037fe368f5ccfdb756ece1e317f95bf4d349a6c5beaf4a20bf14d8a8610e477dadf7acf62634be07afe541
7
+ data.tar.gz: a9339d04b8db19211982eac43255b254f025142cd457b7e3df19ecb55ef6f9a06f9155d56c3ea5ff139c1be8d89e11e0493c54452f97ee70f05ca7d409da3769
@@ -31,7 +31,6 @@ module KalibroGem
31
31
  def to_hash(options={})
32
32
  hash = Hash.new
33
33
  excepts = options[:except].nil? ? [] : options[:except]
34
- excepts << :kalibro_errors
35
34
  fields.each do |field|
36
35
  hash = field_to_hash(field).merge(hash) if !excepts.include?(field)
37
36
  end
@@ -5,7 +5,7 @@
5
5
  # it under the terms of the GNU General Public License as published by
6
6
  # the Free Software Foundation, either version 3 of the License, or
7
7
  # (at your option) any later version.
8
- #
8
+ #
9
9
  # This program is distributed in the hope that it will be useful,
10
10
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
11
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -16,7 +16,7 @@
16
16
 
17
17
  module RequestMethods
18
18
  def save_params
19
- {instance_class_name.underscore.to_sym => self.to_hash}
19
+ {instance_class_name.underscore.to_sym => self.to_hash({except: [:kalibro_errors]})}
20
20
  end
21
21
 
22
22
  def save_action
@@ -15,5 +15,5 @@
15
15
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
 
17
17
  module KalibroGem
18
- VERSION = "0.0.2.rc3"
18
+ VERSION = "0.0.2.rc4"
19
19
  end
@@ -87,7 +87,7 @@ describe KalibroGem::Entities::Model do
87
87
 
88
88
  describe 'to_hash' do
89
89
  it 'should return an empty hash' do
90
- subject.to_hash.should be_empty
90
+ subject.to_hash.should eq({kalibro_errors: []})
91
91
  end
92
92
  end
93
93
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kalibro_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.rc3
4
+ version: 0.0.2.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Morais
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2014-03-24 00:00:00.000000000 Z
18
+ date: 2014-03-27 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler