ns_connector 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +9 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +18 -11
- data/README.rdoc +4 -2
- data/VERSION +1 -1
- data/lib/ns_connector/chunked_searching.rb +2 -0
- data/spec/chunked_searching_spec.rb +7 -4
- data/spec/spec_helper.rb +4 -1
- metadata +6 -5
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -3,14 +3,13 @@ GEM
|
|
3
3
|
specs:
|
4
4
|
addressable (2.3.4)
|
5
5
|
coderay (1.0.9)
|
6
|
-
|
6
|
+
coveralls (0.7.0)
|
7
|
+
multi_json (~> 1.3)
|
8
|
+
rest-client
|
9
|
+
simplecov (>= 0.7)
|
10
|
+
term-ansicolor
|
11
|
+
thor
|
7
12
|
crack (0.3.2)
|
8
|
-
debugger (1.5.0)
|
9
|
-
columnize (>= 0.3.1)
|
10
|
-
debugger-linecache (~> 1.2.0)
|
11
|
-
debugger-ruby_core_source (~> 1.2.0)
|
12
|
-
debugger-linecache (1.2.0)
|
13
|
-
debugger-ruby_core_source (1.2.0)
|
14
13
|
diff-lcs (1.2.4)
|
15
14
|
ffi (1.8.1)
|
16
15
|
formatador (0.2.4)
|
@@ -36,13 +35,12 @@ GEM
|
|
36
35
|
rb-kqueue (>= 0.2)
|
37
36
|
lumberjack (1.0.3)
|
38
37
|
method_source (0.8.1)
|
38
|
+
mime-types (1.25)
|
39
|
+
multi_json (1.8.0)
|
39
40
|
pry (0.9.12.2)
|
40
41
|
coderay (~> 1.0.5)
|
41
42
|
method_source (~> 0.8)
|
42
43
|
slop (~> 3.4)
|
43
|
-
pry-debugger (0.2.2)
|
44
|
-
debugger (~> 1.3)
|
45
|
-
pry (~> 0.9.10)
|
46
44
|
rake (10.0.4)
|
47
45
|
rb-fsevent (0.9.3)
|
48
46
|
rb-inotify (0.9.0)
|
@@ -51,6 +49,8 @@ GEM
|
|
51
49
|
ffi (>= 0.5.0)
|
52
50
|
rdoc (4.0.1)
|
53
51
|
json (~> 1.4)
|
52
|
+
rest-client (1.6.7)
|
53
|
+
mime-types (>= 1.16)
|
54
54
|
rspec (2.13.0)
|
55
55
|
rspec-core (~> 2.13.0)
|
56
56
|
rspec-expectations (~> 2.13.0)
|
@@ -59,8 +59,15 @@ GEM
|
|
59
59
|
rspec-expectations (2.13.0)
|
60
60
|
diff-lcs (>= 1.1.3, < 2.0)
|
61
61
|
rspec-mocks (2.13.1)
|
62
|
+
simplecov (0.7.1)
|
63
|
+
multi_json (~> 1.0)
|
64
|
+
simplecov-html (~> 0.7.1)
|
65
|
+
simplecov-html (0.7.1)
|
62
66
|
slop (3.4.5)
|
67
|
+
term-ansicolor (1.2.2)
|
68
|
+
tins (~> 0.8)
|
63
69
|
thor (0.18.1)
|
70
|
+
tins (0.10.0)
|
64
71
|
webmock (1.11.0)
|
65
72
|
addressable (>= 2.2.7)
|
66
73
|
crack (>= 0.3.2)
|
@@ -70,9 +77,9 @@ PLATFORMS
|
|
70
77
|
|
71
78
|
DEPENDENCIES
|
72
79
|
bundler
|
80
|
+
coveralls
|
73
81
|
guard-rspec
|
74
82
|
jeweler
|
75
|
-
pry-debugger
|
76
83
|
rake
|
77
84
|
rdoc
|
78
85
|
rspec
|
data/README.rdoc
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
{<img src="https://travis-ci.org/christian-marie/ns_connector.png?branch=master" alt="Build Status" />}[https://travis-ci.org/christian-marie/ns_connector]
|
2
|
+
{<img src="https://coveralls.io/repos/christian-marie/ns_connector/badge.png?branch=master" alt="Coverage Status" />}[https://coveralls.io/r/christian-marie/ns_connector?branch=master]
|
1
3
|
= NSConnector intro
|
2
4
|
This library provides an interface to NetSuite via RESTlets, i.e. SuiteScript .
|
3
5
|
This appears to be a quicker and more reliable way of interfacing with NetSuite
|
@@ -14,7 +16,7 @@ How is this different to the other netsuite connector gems out there?
|
|
14
16
|
* It's quicker. Not sure why, but the SOAP API is horrendously slow sometimes,
|
15
17
|
RESTlets seem to be quicker, for now.
|
16
18
|
== Documentation
|
17
|
-
Avaliable at {rubydoc.info}[http://rubydoc.info/gems/ns_connector/0.0.
|
19
|
+
Avaliable at {rubydoc.info}[http://rubydoc.info/gems/ns_connector/0.0.12]
|
18
20
|
|
19
21
|
== Features
|
20
22
|
* No dependencies
|
@@ -235,4 +237,4 @@ MIT
|
|
235
237
|
|
236
238
|
== References
|
237
239
|
[1] {SuiteScript Records Browser}[https://system.netsuite.com/help/helpcenter/en_US/RecordsBrowser/2013_1/index.html]
|
238
|
-
[2] {Supported Transformation Types}[https://system.netsuite.com/help/helpcenter/en_US/Output/Help/
|
240
|
+
[2] {Supported Transformation Types}[https://system.netsuite.com/help/helpcenter/en_US/Output/Help/SuiteCloudCustomizationScriptingWebServices/SuiteScript/RecordAPIs.html#bridgehead_N3033016]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.13
|
@@ -19,13 +19,16 @@ describe NSConnector::ChunkedSearching do
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def mock_chunked_search
|
22
|
-
(0..
|
23
|
-
MagicResource.
|
24
|
-
|
22
|
+
(0..20).each do |i|
|
23
|
+
MagicResource.stub(:grab_chunk) do |arg, n|
|
24
|
+
expect(arg).to eql('filters')
|
25
|
+
expect(0..20).to include(n)
|
26
|
+
[1,2,3]
|
27
|
+
end
|
25
28
|
end
|
26
29
|
|
27
30
|
MagicResource.should_receive(:grab_chunk).
|
28
|
-
with('filters', 6).
|
31
|
+
with('filters', 6).
|
29
32
|
and_raise(NSConnector::Errors::EndChunking, double)
|
30
33
|
end
|
31
34
|
|
data/spec/spec_helper.rb
CHANGED
@@ -6,9 +6,12 @@ require 'pp'
|
|
6
6
|
require 'rspec'
|
7
7
|
require 'webmock/rspec'
|
8
8
|
require 'ns_connector'
|
9
|
-
|
10
9
|
require 'support/mock_data'
|
11
10
|
|
11
|
+
require 'coveralls'
|
12
|
+
Coveralls.wear!
|
13
|
+
|
14
|
+
|
12
15
|
RSpec.configure do |config|
|
13
16
|
config.order = "random"
|
14
17
|
config.color_enabled = true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ns_connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-02-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -108,7 +108,7 @@ dependencies:
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
111
|
+
name: guard-rspec
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
113
113
|
none: false
|
114
114
|
requirements:
|
@@ -124,7 +124,7 @@ dependencies:
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
127
|
+
name: coveralls
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
none: false
|
130
130
|
requirements:
|
@@ -149,6 +149,7 @@ extra_rdoc_files:
|
|
149
149
|
- LICENSE.txt
|
150
150
|
- README.rdoc
|
151
151
|
files:
|
152
|
+
- .travis.yml
|
152
153
|
- CHANGELOG
|
153
154
|
- Gemfile
|
154
155
|
- Gemfile.lock
|
@@ -210,7 +211,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
210
211
|
version: '0'
|
211
212
|
segments:
|
212
213
|
- 0
|
213
|
-
hash: -
|
214
|
+
hash: -2630622618919899588
|
214
215
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
215
216
|
none: false
|
216
217
|
requirements:
|