netsuite_rails 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTVkYzk2NDQyNzI5MGZjODkxOTM4MWFkYjExYTNlZWZkNGFjNjFmMQ==
4
+ MTMwYmZiZTdlNGI4MGE2MDI3OTYzOTNlNzY1MTM5OWYzYWNiMjc2Mw==
5
5
  data.tar.gz: !binary |-
6
- NjdmOWIxMmE0MjNkYjE2MTU2ZDBmMzg4MDViNWZjMzdmZGIwZjgzOQ==
6
+ ZDk1NjdhY2E2NTlhMzE0NjdlZTNkMjAyM2FmOWI2YTY1MmJhODRmNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWJlMzFhMGJhNTM1NGZkMjRmMGMwNmU2ZmUzZTFhODQxMGQzYjZhMWNmMjE2
10
- M2NlYjgwMTc0MWU4Y2FhMTBjNWVjZGM0NzU2NWIxNDY1NjMzYTE2N2ZlYWM4
11
- N2NkOTY2ZTJhNzBiMDg2NjY0MTY4ZWYyYmMxNjk4NDc3NzQ5NjQ=
9
+ ZjI1OTgzYTMyNmIxMDY3MzRhZGE4Y2FkYWEwMTBmMGZmNGMwNjBlZWNjY2Rm
10
+ YmM0YWZlN2M0MDlhZTE5N2FlNmI2MmEzODY3ZGM5MjZmM2NhNDZiMGUyZTlh
11
+ MjMwMmVjZjU1NzM1ZDhkMmNhMGRkOGYyMDY1M2RlZGI1YmY3OTk=
12
12
  data.tar.gz: !binary |-
13
- MDE5NmE5OWZmYjhjYzIyMGQ3ZmFmMzljZDc1ZTkwZDQ1MjRjYjUyZTk4MjAx
14
- YjI2NTM1YmZmNWE5NjE0MGZhMzg1NmZlOTA5ZDA0NWU0OWU2ODgyNmM4NzMx
15
- YzUxOTY5ODQ1MDQ0YWE3NTNkY2YwYjA1NmY4YThlNjUyNTgwMDc=
13
+ ZjQyNjVmMTZmY2E2YTQwNzZkY2IzMTE0MmIxNTIwZjJlY2E0YTk0Njc4NDE4
14
+ MzYwZmJlNDE4YTRiZjQwZTdmMzNhZjE1OTAyZGVlYmU2MjAyZWEzNDRmODAz
15
+ MzY0MDQ1MzczMDRkMzQyMWU5MTMwZjE1MGJhNjkzZmMyODkwMzU=
data/README.md CHANGED
@@ -215,6 +215,18 @@ Implement `changed_attributes` in your non-AR backed model
215
215
  require 'netsuite_rails/spec/spec_helper'
216
216
  ```
217
217
 
218
+ Using the helpers:
219
+
220
+ ```ruby
221
+ it 'does something' do
222
+ # setup...
223
+
224
+ # action
225
+
226
+ ns_customer = get_last_netsuite_object(NetSuite::Records::Customer)
227
+ end
228
+ ```
229
+
218
230
  # Syncing Using Rake Tasks
219
231
 
220
232
  ```ruby
@@ -17,6 +17,8 @@ module NetSuiteRails
17
17
 
18
18
  def phone(phone, direction = :push)
19
19
  if direction == :push
20
+ return nil if phone.nil?
21
+
20
22
  formatted_phone = phone.
21
23
  strip.
22
24
  gsub(/ext(ension)?/, 'x').
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "netsuite_rails"
7
- s.version = "0.3.1"
7
+ s.version = "0.3.2"
8
8
  s.authors = ["Michael Bianco"]
9
9
  s.email = ["mike@cliffsidemedia.com"]
10
10
  s.summary = %q{Write Rails applications that integrate with NetSuite}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netsuite_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bianco
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-11 00:00:00.000000000 Z
11
+ date: 2016-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: netsuite