SFDO-API 0.1.4 → 0.1.5

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: c627cf05d223498b3612c2c9c152f183f422e8f1
4
- data.tar.gz: ee2535a593751055205437893ee947279bc05171
3
+ metadata.gz: 6e4fb8c9db613614f675fc0157594bcb6751911c
4
+ data.tar.gz: 22e020c4781a686dab58dae5fe6722ac6a9bb91f
5
5
  SHA512:
6
- metadata.gz: f1cea12846844cd70926fd2c68e4270f30c0158273fc2e9d173db612c2f7fe8cbf54052ee0c9129a5de6d145dce7b3b7fe073dac437633abffd660007990c469
7
- data.tar.gz: 7940ad8a382c3eebfa65c06a192ecd2bd5fef2974dd2cf8306d8d50b63b94c6eb0f94f7490af618a32962adb3b3dc1ba212467e4ddc9474c750948dded92692e
6
+ metadata.gz: 5e8553ee5611a0ebc8063aca224324a79cef8b75e52bf2b8b83aec93e9d8ee8b829bf254b04114ec18edd7cd5fcc9b8dee4071324b8a76bdea1e87be47a9ec25
7
+ data.tar.gz: f473ab15546f20136c93ce91f136e17092fc6e72350dd3ab8afee3bfd9b6dadc798c0fbb9f2012a411b22c748f50ff32047c6e98e0ce077b5aefe1584b8fd3c3
data/README.md CHANGED
@@ -80,17 +80,14 @@ To delete all instances of an object
80
80
 
81
81
  ### Custom Objects
82
82
 
83
- To create instances of custom objects that may have managed or unmanaged namespace use true_object_name.
83
+ To create instances of custom objects do not use any namespace value, SFDO-API does that for you
84
84
 
85
85
  ```ruby
86
86
  def create_gau_via_api(gau_name)
87
- @gau_id = create "#{true_object_name('General_Accounting_Unit__c')}", Name: gau_name
87
+ @gau_id = create 'General_Accounting_Unit__c', Name: gau_name
88
88
  end
89
89
  ```
90
90
 
91
- NOTE: in the future we will remove the need to use true_object_name() from calling code when creating and selecting custom objects,
92
- but for now this is how it works.
93
-
94
91
  When using delete_one_foo or delete_all_foo do not use any namespace value, SFDO-API does that for you
95
92
 
96
93
  ```ruby
data/lib/SFDO/API.rb CHANGED
@@ -12,6 +12,7 @@ module SfdoAPI
12
12
  end
13
13
 
14
14
  def create(type, obj_hash)
15
+ type = true_object_name(type)
15
16
  if is_valid_obj_hash?(type, obj_hash, @fields_acceptibly_nil)
16
17
  obj_id = api_client do
17
18
  @api_client.create! type, obj_hash
@@ -116,6 +117,10 @@ module SfdoAPI
116
117
  when /^delete_one/
117
118
  delete obj_type, *args
118
119
  when /^create_/
120
+ create obj_type, *args
121
+ when /^update/
122
+ #TODO
123
+ when /^select/
119
124
  #TODO
120
125
  else
121
126
  super.method_missing
@@ -1,5 +1,5 @@
1
1
  module SFDO
2
2
  module API
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SFDO-API
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris McMahon
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-09-08 00:00:00.000000000 Z
12
+ date: 2016-09-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler