kalibro_gem 0.0.1.rc12 → 0.0.1.rc13

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: 5c55b6af63b35117fbdc10228274c00013fec978
4
- data.tar.gz: cae10e7afd2917f0d9f24d73580de95dde3622ae
3
+ metadata.gz: dd8b60835b7edaa3b4e962a9231e6a66099de7b7
4
+ data.tar.gz: e7cb4e3dd41a4c456cf8f06e062e7b52958a2726
5
5
  SHA512:
6
- metadata.gz: 7329f9ff65bf45f116ab2e11681920b27b40973066e6b3b982ce05784dfb54ec16ec350ece40e081dd7529ae802375ec7a0684a4baf50c46d97adeaa4c7dcd51
7
- data.tar.gz: 66b05bb65b6b7ad08cbac5cabfa2e228c465dad2e48a7190cb1fadda1906fc4dcb5b33dae10ac7e89f578a9246594a29cba57dbdcc5ddb8741766ec527031df5
6
+ metadata.gz: 1ceb5256578e7d651d9ba8b31528c606885a9102a2fe04c84583bef6996de11b63b0affe828b994dcc6e03966ddc71e9d30a4e7033305954333797a2fdb6c5e6
7
+ data.tar.gz: c7308b5f8de49e0b3a9ea193abd4622ceca31b098018e0fee760d029d6ae862e99acdddb170dc309e3d4046b61e010c50f5ea76b9323a11a93d4da216f25ad8d
@@ -119,6 +119,10 @@ module KalibroGem
119
119
  class_name
120
120
  end
121
121
 
122
+ def instance_class_name
123
+ self.class.name.gsub(/KalibroGem::Entities::/,"")
124
+ end
125
+
122
126
  protected
123
127
 
124
128
  def instance_variable_names
@@ -141,9 +145,6 @@ module KalibroGem
141
145
  field.to_s[0] != '@' and field != :attributes! and (field.to_s =~ /xsi/).nil?
142
146
  end
143
147
 
144
- def instance_class_name
145
- self.class.name.gsub(/KalibroGem::Entities::/,"")
146
- end
147
148
 
148
149
  include RequestMethods
149
150
  extend RequestMethods::ClassMethods
@@ -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.1.rc12"
18
+ VERSION = "0.0.1.rc13"
19
19
  end
@@ -278,4 +278,10 @@ describe KalibroGem::Entities::Model do
278
278
  KalibroGem::Entities::Model.endpoint.should eq("Model")
279
279
  end
280
280
  end
281
+
282
+ describe 'instance_class_name' do
283
+ it 'should return the class name' do
284
+ subject.instance_class_name.should eq("Model")
285
+ end
286
+ end
281
287
  end
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.1.rc12
4
+ version: 0.0.1.rc13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Morais