netsuite_client 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,38 @@
1
+ # Borrowed from active support.
2
+ # Ruby 1.9 introduces an inherit argument for Module#const_get and
3
+ # #const_defined? and changes their default behavior.
4
+
5
+ class String
6
+ if Module.method(:const_get).arity == 1
7
+ def constantize #:nodoc:
8
+ names = self.split('::')
9
+ names.shift if names.empty? || names.first.empty?
10
+
11
+ constant = Object
12
+ names.each do |name|
13
+ constant = constant.const_defined?(name) ? constant.const_get(name) : constant.const_missing(name)
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
27
+ end
28
+ end
29
+
30
+ def self.random_string(len = 8)
31
+ ar = 'abcdefgijhklmnopqrstwxyz0123456789'.split('')
32
+ str = ''
33
+ len.times { str << ar[rand(ar.size)]}
34
+ str
35
+ end
36
+
37
+ end
38
+
@@ -0,0 +1,35 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{netsuite_client}
5
+ s.version = "0.0.2"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Vlad Jebelev"]
9
+ s.date = %q{2010-07-07}
10
+ s.description = %q{Ruby soap4r-based Netsuite client.}
11
+ s.email = ["vlad@jebelev.com"]
12
+ s.extra_rdoc_files = ["History.txt", "Manifest.txt"]
13
+ s.files = ["History.txt", "Manifest.txt", "README.rdoc", "Rakefile", "TODO", "lib/netsuite_client.rb", "lib/netsuite_client/client.rb", "lib/netsuite_client/netsuite_exception.rb", "lib/netsuite_client/netsuite_result.rb", "lib/netsuite_client/soap_netsuite.rb", "lib/netsuite_client/string.rb", "netsuite_client.gemspec", "test/test_helper.rb", "test/test_netsuite_client.rb"]
14
+ s.homepage = %q{http://rubygems.org/gems/netsuite_client}
15
+ s.post_install_message = %q{PostInstall.txt}
16
+ s.rdoc_options = ["--main", "README.rdoc"]
17
+ s.require_paths = ["lib"]
18
+ s.rubyforge_project = %q{netsuiteclient}
19
+ s.rubygems_version = %q{1.3.7}
20
+ s.summary = %q{Ruby soap4r-based Netsuite client.}
21
+ s.test_files = ["test/test_netsuite_client.rb", "test/test_helper.rb"]
22
+
23
+ if s.respond_to? :specification_version then
24
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
25
+ s.specification_version = 3
26
+
27
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
28
+ s.add_development_dependency(%q<hoe>, [">= 2.3.3"])
29
+ else
30
+ s.add_dependency(%q<hoe>, [">= 2.3.3"])
31
+ end
32
+ else
33
+ s.add_dependency(%q<hoe>, [">= 2.3.3"])
34
+ end
35
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netsuite_client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Vlad Jebelev
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-06 00:00:00 -04:00
18
+ date: 2010-07-07 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -49,15 +49,21 @@ files:
49
49
  - Manifest.txt
50
50
  - README.rdoc
51
51
  - Rakefile
52
+ - TODO
52
53
  - lib/netsuite_client.rb
53
54
  - lib/netsuite_client/client.rb
55
+ - lib/netsuite_client/netsuite_exception.rb
56
+ - lib/netsuite_client/netsuite_result.rb
57
+ - lib/netsuite_client/soap_netsuite.rb
58
+ - lib/netsuite_client/string.rb
59
+ - netsuite_client.gemspec
54
60
  - test/test_helper.rb
55
61
  - test/test_netsuite_client.rb
56
62
  has_rdoc: true
57
- homepage: http://github.com/vjebelev/netsuite_client
63
+ homepage: http://rubygems.org/gems/netsuite_client
58
64
  licenses: []
59
65
 
60
- post_install_message: PostInstall.txt
66
+ post_install_message:
61
67
  rdoc_options:
62
68
  - --main
63
69
  - README.rdoc