netsuite_client 1.0.1 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/TODO +1 -1
- data/lib/netsuite_client.rb +3 -1
- data/lib/netsuite_client/string.rb +7 -20
- data/lib/netsuite_client/symbol.rb +5 -0
- data/netsuite_client.gemspec +4 -4
- data/test/netsuite_client_test.rb +1 -1
- metadata +32 -51
data/CHANGELOG
CHANGED
data/TODO
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
replace soap4r, at least for runtime
|
data/lib/netsuite_client.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
$:.unshift(File.dirname(__FILE__)) unless
|
2
2
|
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
3
3
|
|
4
|
+
require 'netsuite_client/string'
|
5
|
+
require 'netsuite_client/symbol'
|
6
|
+
|
4
7
|
require 'rubygems'
|
5
8
|
gem 'soap4r'
|
6
9
|
|
@@ -16,7 +19,6 @@ else
|
|
16
19
|
require "netsuite_client/soap_netsuite_#{DEFAULT_NS_WSDL_VERSION}"
|
17
20
|
end
|
18
21
|
|
19
|
-
require 'netsuite_client/string'
|
20
22
|
require 'netsuite_client/netsuite_exception'
|
21
23
|
require 'netsuite_client/netsuite_result'
|
22
24
|
require 'netsuite_client/client'
|
@@ -3,28 +3,15 @@
|
|
3
3
|
# #const_defined? and changes their default behavior.
|
4
4
|
|
5
5
|
class String
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
names.shift if names.empty? || names.first.empty?
|
6
|
+
def constantize #:nodoc:
|
7
|
+
names = self.split('::')
|
8
|
+
names.shift if names.empty? || names.first.empty?
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
end
|
15
|
-
constant
|
16
|
-
end
|
17
|
-
else
|
18
|
-
def constantize(camel_cased_word) #:nodoc:
|
19
|
-
names = camel_cased_word.split('::')
|
20
|
-
names.shift if names.empty? || names.first.empty?
|
21
|
-
|
22
|
-
constant = Object
|
23
|
-
names.each do |name|
|
24
|
-
constant = constant.const_get(name, false) || constant.const_missing(name)
|
25
|
-
end
|
26
|
-
constant
|
10
|
+
constant = Object
|
11
|
+
names.each do |name|
|
12
|
+
constant = constant.const_defined?(name) ? constant.const_get(name) : constant.const_missing(name)
|
27
13
|
end
|
14
|
+
constant
|
28
15
|
end
|
29
16
|
|
30
17
|
def self.random_string(len = 8)
|
data/netsuite_client.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{netsuite_client}
|
5
|
-
s.version = "1.
|
5
|
+
s.version = "1.1"
|
6
6
|
|
7
|
-
s.required_ruby_version = '
|
7
|
+
s.required_ruby_version = '>= 1.8.6'
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.authors = ["Vlad Jebelev"]
|
10
|
-
s.date = %q{2011-
|
10
|
+
s.date = %q{2011-12-23}
|
11
11
|
s.description = %q{Ruby soap4r-based Netsuite client.}
|
12
12
|
s.email = ["vlad@jebelev.com"]
|
13
|
-
s.rdoc_options += ['-m', 'README.rdoc', '-x', 'lib/netsuite_client/soap*.*', 'lib/netsuite_client/netsuite*', 'lib/netsuite_client/string.rb', 'lib/netsuite_client/client.rb', 'README.rdoc']
|
13
|
+
s.rdoc_options += ['-m', 'README.rdoc', '-x', 'lib/netsuite_client/soap*.*', 'lib/netsuite_client/netsuite*', 'lib/netsuite_client/string.rb', 'lib/netsuite_client/symbol.rb', 'lib/netsuite_client/client.rb', 'README.rdoc']
|
14
14
|
s.extra_rdoc_files = ["CHANGELOG", "Manifest.txt"]
|
15
15
|
s.files = ["CHANGELOG", "Manifest.txt", "README.rdoc", "Rakefile", "TODO", "netsuite_client.gemspec"] + Dir['lib/**/*.rb'] + Dir['test/*.rb']
|
16
16
|
s.homepage = %q{http://rubygems.org/gems/netsuite_client}
|
metadata
CHANGED
@@ -1,48 +1,37 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: netsuite_client
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.1'
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 1.0.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Vlad Jebelev
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2011-11-25 00:00:00 -04:00
|
12
|
+
date: 2011-12-23 00:00:00.000000000 -04:00
|
19
13
|
default_executable:
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
22
16
|
name: soap4r
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &2152303260 !ruby/object:Gem::Requirement
|
25
18
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
33
23
|
type: :runtime
|
34
|
-
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *2152303260
|
35
26
|
description: Ruby soap4r-based Netsuite client.
|
36
|
-
email:
|
27
|
+
email:
|
37
28
|
- vlad@jebelev.com
|
38
29
|
executables: []
|
39
|
-
|
40
30
|
extensions: []
|
41
|
-
|
42
|
-
extra_rdoc_files:
|
31
|
+
extra_rdoc_files:
|
43
32
|
- CHANGELOG
|
44
33
|
- Manifest.txt
|
45
|
-
files:
|
34
|
+
files:
|
46
35
|
- CHANGELOG
|
47
36
|
- Manifest.txt
|
48
37
|
- README.rdoc
|
@@ -56,52 +45,44 @@ files:
|
|
56
45
|
- lib/netsuite_client/soap_netsuite_2011_1.rb
|
57
46
|
- lib/netsuite_client/soap_netsuite_2011_2.rb
|
58
47
|
- lib/netsuite_client/string.rb
|
48
|
+
- lib/netsuite_client/symbol.rb
|
59
49
|
- lib/netsuite_client.rb
|
60
50
|
- test/netsuite_client_test.rb
|
61
51
|
- test/test_helper.rb
|
62
52
|
has_rdoc: true
|
63
53
|
homepage: http://rubygems.org/gems/netsuite_client
|
64
54
|
licenses: []
|
65
|
-
|
66
55
|
post_install_message:
|
67
|
-
rdoc_options:
|
56
|
+
rdoc_options:
|
68
57
|
- -m
|
69
58
|
- README.rdoc
|
70
59
|
- -x
|
71
60
|
- lib/netsuite_client/soap*.*
|
72
61
|
- lib/netsuite_client/netsuite*
|
73
62
|
- lib/netsuite_client/string.rb
|
63
|
+
- lib/netsuite_client/symbol.rb
|
74
64
|
- lib/netsuite_client/client.rb
|
75
65
|
- README.rdoc
|
76
|
-
require_paths:
|
66
|
+
require_paths:
|
77
67
|
- lib
|
78
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
79
69
|
none: false
|
80
|
-
requirements:
|
81
|
-
- -
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
|
84
|
-
|
85
|
-
- 1
|
86
|
-
- 8
|
87
|
-
- 7
|
88
|
-
version: 1.8.7
|
89
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ! '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: 1.8.6
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
75
|
none: false
|
91
|
-
requirements:
|
92
|
-
- -
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
|
95
|
-
segments:
|
96
|
-
- 0
|
97
|
-
version: "0"
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
98
80
|
requirements: []
|
99
|
-
|
100
81
|
rubyforge_project: netsuiteclient
|
101
82
|
rubygems_version: 1.6.2
|
102
83
|
signing_key:
|
103
84
|
specification_version: 3
|
104
85
|
summary: Ruby soap4r-based Netsuite client.
|
105
|
-
test_files:
|
86
|
+
test_files:
|
106
87
|
- test/netsuite_client_test.rb
|
107
88
|
- test/test_helper.rb
|