fakecrm 0.9.9.1 → 0.9.9.2

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: 943d42626e767d0f4b6e1ed7e90193599e72e13a
4
- data.tar.gz: b51c51a31072adc759de7ad7b0042903b6048551
3
+ metadata.gz: b4243b3d84c8bf9185cfb014c6b746d81a346941
4
+ data.tar.gz: 0b523fb5f92c63c3d5c494f1332ffccb9a39dfe1
5
5
  SHA512:
6
- metadata.gz: 150f6fb7dbc4710aefc775cf470ee834ad1ed7c8a027d9e5816378650d3d639b82f1c3a292071068f7a8a752670b1afe69d675a2769b4a6c41522c720040457c
7
- data.tar.gz: e46c5acec4423555763c7849160049d0d33fe70ebe1b633914dd18709d000441835753d6e0ac87ecc8eff3edd37fb6fb86462c701a44eabce9de5d70327bd1b8
6
+ metadata.gz: 6409aee45e645eda6a1eb00c11cc8ed3cbe485eb4d2dd7afeeecdc4f428d84a5ac115816499cb206d8a88db435f1fef46a0bbc8dadd015ff2016b9f5413446be
7
+ data.tar.gz: 5507bfe68a96f31be706b9d6c80f660be8267f22ca15f4a774412bfc125e1e658d8760475999b63196b0d2ed7c687ba6972a5a051fe5f7bc58a772b27d91806a
data/lib/fakecrm/fetch.rb CHANGED
@@ -99,7 +99,7 @@ module Fakecrm
99
99
  query_options.merge!(order)
100
100
  end
101
101
 
102
- result = {:results => query.all(query_options), :total => total_count}
102
+ result = {:results => ResourceView.decorate(query.all(query_options)), :total => total_count}
103
103
 
104
104
  if remaining_count > limit
105
105
  result["continuation_handle"] = build_continuation
@@ -75,7 +75,7 @@ module Fakecrm
75
75
 
76
76
  def get_custom_attributes(resource)
77
77
  if resource.respond_to?(:one_of_a_kind?) && resource.one_of_a_kind?
78
- CustomType.get!(resource.kind).custom_attributes.map(&:name).map(&:to_sym)
78
+ CustomType.get!(resource.kind).custom_attributes.map { |attr| :"custom_#{attr.name}" }
79
79
  else
80
80
  get_resource_properties(resource).select {|property| property =~ /^custom/ }
81
81
  end
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Fakecrm
3
- VERSION = "0.9.9.1"
3
+ VERSION = "0.9.9.2"
4
4
  end
5
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fakecrm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9.1
4
+ version: 0.9.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Sojka