connect_wise_rest 0.1.0 → 0.2.0

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: ca51f2eace5087687fdfac37e0fbcdcdb018c817
4
- data.tar.gz: 5db7a1bc4335ce81249df6ae00d34af7609a643b
3
+ metadata.gz: 24937bfeea58ac87b8073419cf78d9e42bf69086
4
+ data.tar.gz: 3d8de6155555724053ec0bbd236358adf3dce4d5
5
5
  SHA512:
6
- metadata.gz: 1eca3fe9a7e2b82c1236b8962843b83b06a5781300d6965f4b2d6409ec358695736638ff774ff89f905675c2381ccf9c7c7f5b0520580a15ce840ab5f1b2847d
7
- data.tar.gz: f3cafeadeae9cf8e7576d5360fe113c804343f6659b14d8e14a5a679ca08a571a4ab36bee7353451101cd01544e45a571036efdad42cc01103805d2a1c355180
6
+ metadata.gz: 91e1fdddcbc7cdef732b7ff7d895a07d05f00f7e4fb025674e670d137ff07e427b82c38c568269a3400a413397d001552d14117b72f2e0c5c6415e20b73d28f6
7
+ data.tar.gz: 7bad6c2a194e07ac0f22bd180aabbd11fc891778f178f7ab6772ca3fdc2218f9f13c0715e21ac0ff41f6a0dbb446c32013a6c3c72a3af0bfe728cbf2e310b848
data/.gitignore CHANGED
@@ -7,3 +7,5 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.gem
11
+ /.idea
data/.travis.yml CHANGED
File without changes
data/CODE_OF_CONDUCT.md CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
@@ -1,8 +1,10 @@
1
+ require 'net/http'
1
2
  require 'httparty'
2
3
 
3
4
  require 'connect_wise_rest/version'
4
5
  require 'connect_wise_rest/configuration'
5
6
  require 'connect_wise_rest/client'
7
+ require 'connect_wise_rest/report'
6
8
 
7
9
  module ConnectWiseRest
8
10
 
@@ -1,31 +1,73 @@
1
1
  module ConnectWiseRest
2
2
  class Client
3
3
 
4
- attr_reader :options
4
+ attr_accessor :options
5
+ attr_reader :resource
5
6
 
6
- DEFAULT_OPTIONS = {
7
- company_id: ConnectWiseRest.configuration.company_id,
8
- public_key: ConnectWiseRest.configuration.public_key,
9
- private_key: ConnectWiseRest.configuration.private_key,
10
- url_prefix: ConnectWiseRest.configuration.url_prefix,
11
- version: ConnectWiseRest.configuration.version
12
- }
7
+ DEFAULT_OPTIONS = ConnectWiseRest.configuration.to_hash.merge(
8
+ {
9
+ timeout: 300,
10
+ query: { 'page' => 1, 'pageSize' => 75 }
11
+ }
12
+ )
13
13
 
14
- def initialize(options = {})
14
+ def initialize(resource, options = {})
15
+ @resource = resource
15
16
  @options = DEFAULT_OPTIONS.merge(options)
16
17
  end
17
18
 
18
- def get(resource)
19
- HTTParty.get(url(resource), headers: { 'Accept' => 'application/json' }).parsed_response
19
+ def data
20
+ @data || fetch
20
21
  end
21
22
 
22
- def url(resource)
23
- url = "https://#{options[:company_id]}+#{options[:public_key]}:#{options[:private_key]}"
24
- url += "@#{options[:url_prefix]}"
25
- url += "/v4_6_release/apis/#{options[:api_version]}"
26
- url += resource
23
+ def fetch(query = {})
24
+ self.options[:query].merge!(query)
27
25
 
28
- return url
26
+ @response = nil
27
+ response
28
+
29
+ if response.response.is_a?(Net::HTTPInternalServerError)
30
+ raise "#{response.parsed_response['code']}: #{response.parsed_response['message']}"
31
+ end
32
+
33
+ @data = response.parsed_response
34
+ end
35
+
36
+ def response
37
+ @response ||= HTTParty.get(
38
+ url,
39
+ headers: { 'Accept' => 'application/json' },
40
+ query: self.options[:query],
41
+ timeout: options[:timeout],
42
+ basic_auth: {
43
+ username: "#{options[:company_id]}+#{options[:public_key]}",
44
+ password: options[:private_key]
45
+ }
46
+ )
47
+ end
48
+
49
+ def url
50
+ "https://#{options[:url_prefix]}/v4_6_release/apis/#{options[:version]}#{resource}"
51
+ end
52
+
53
+ ### Pagination ###
54
+
55
+ def next_page?
56
+ self.data.is_a?(Array) && self.data.count == self.options[:query]['pageSize']
57
+ end
58
+
59
+ def next_page
60
+ self.options[:query]['page'] += 1
61
+ return fetch
62
+ end
63
+
64
+ def previous_page?
65
+ self.options[:query]['page'] > 1
66
+ end
67
+
68
+ def previous_page
69
+ self.options[:query]['page'] -= 1
70
+ return fetch
29
71
  end
30
72
 
31
73
  end
@@ -23,6 +23,12 @@ module ConnectWiseRest
23
23
  options.each { |k, v| self.send("#{k.to_s}=", v) }
24
24
  end
25
25
 
26
+ def to_hash
27
+ hash = {}
28
+ instance_variables.each { |var| hash[var.to_s.delete('@').to_sym] = instance_variable_get(var) }
29
+ hash
30
+ end
31
+
26
32
  end
27
33
 
28
34
  end
@@ -0,0 +1,35 @@
1
+ module ConnectWiseRest
2
+ class Report < Client
3
+
4
+ attr_reader :name
5
+
6
+ def initialize(name, options = {})
7
+ @name = name
8
+ @resource = '/system/reports/' + name
9
+ @options = DEFAULT_OPTIONS.merge(options)
10
+ end
11
+
12
+ def fetch(query = {})
13
+ super
14
+ format!
15
+ end
16
+
17
+ def format!
18
+ rows = []
19
+
20
+ @data['row_values'].each do |values|
21
+ row = {}
22
+
23
+ values.each_with_index do |value, index|
24
+ key = @data['column_definitions'][index].keys[0]
25
+ row[key] = value
26
+ end
27
+
28
+ rows << row
29
+ end
30
+
31
+ @data = rows
32
+ end
33
+
34
+ end
35
+ end
@@ -1,3 +1,3 @@
1
1
  module ConnectWiseRest
2
- VERSION = "0.1.0"
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connect_wise_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Pheasey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-19 00:00:00.000000000 Z
11
+ date: 2016-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -60,11 +60,6 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - ".gitignore"
63
- - ".idea/connect_wise_rest.iml"
64
- - ".idea/encodings.xml"
65
- - ".idea/misc.xml"
66
- - ".idea/modules.xml"
67
- - ".idea/workspace.xml"
68
63
  - ".travis.yml"
69
64
  - CODE_OF_CONDUCT.md
70
65
  - Gemfile
@@ -76,6 +71,7 @@ files:
76
71
  - lib/connect_wise_rest.rb
77
72
  - lib/connect_wise_rest/client.rb
78
73
  - lib/connect_wise_rest/configuration.rb
74
+ - lib/connect_wise_rest/report.rb
79
75
  - lib/connect_wise_rest/version.rb
80
76
  homepage: https://github.com/MSPCFO/connect_wise_rest
81
77
  licenses:
@@ -97,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
93
  version: '0'
98
94
  requirements: []
99
95
  rubyforge_project:
100
- rubygems_version: 2.5.0
96
+ rubygems_version: 2.5.1
101
97
  signing_key:
102
98
  specification_version: 4
103
99
  summary: REST client wrapper for Connect Wise.
@@ -1,25 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="RUBY_MODULE" version="4">
3
- <component name="FacetManager">
4
- <facet type="gem" name="New Gem">
5
- <configuration>
6
- <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
7
- <option name="GEM_APP_TEST_PATH" value="" />
8
- <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
9
- </configuration>
10
- </facet>
11
- </component>
12
- <component name="NewModuleRootManager">
13
- <content url="file://$MODULE_DIR$">
14
- <excludeFolder url="file://$MODULE_DIR$/.bundle" />
15
- <excludeFolder url="file://$MODULE_DIR$/vendor/bundle" />
16
- </content>
17
- <orderEntry type="jdk" jdkName="RVM: ruby-2.2.1" jdkType="RUBY_SDK" />
18
- <orderEntry type="sourceFolder" forTests="false" />
19
- <orderEntry type="library" scope="PROVIDED" name="bundler (v1.10.6, RVM: ruby-2.2.1) [gem]" level="application" />
20
- <orderEntry type="library" scope="PROVIDED" name="httparty (v0.13.7, RVM: ruby-2.2.1) [gem]" level="application" />
21
- <orderEntry type="library" scope="PROVIDED" name="json (v1.8.3, RVM: ruby-2.2.1) [gem]" level="application" />
22
- <orderEntry type="library" scope="PROVIDED" name="multi_xml (v0.5.5, RVM: ruby-2.2.1) [gem]" level="application" />
23
- <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.2.1) [gem]" level="application" />
24
- </component>
25
- </module>
data/.idea/encodings.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Encoding">
4
- <file url="PROJECT" charset="UTF-8" />
5
- </component>
6
- </project>
data/.idea/misc.xml DELETED
@@ -1,14 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectLevelVcsManager" settingsEditedManually="false">
4
- <OptionsSetting value="true" id="Add" />
5
- <OptionsSetting value="true" id="Remove" />
6
- <OptionsSetting value="true" id="Checkout" />
7
- <OptionsSetting value="true" id="Update" />
8
- <OptionsSetting value="true" id="Status" />
9
- <OptionsSetting value="true" id="Edit" />
10
- <ConfirmationsSetting value="0" id="Add" />
11
- <ConfirmationsSetting value="0" id="Remove" />
12
- </component>
13
- <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p551 [carsonstreeth]" project-jdk-type="RUBY_SDK" />
14
- </project>
data/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/connect_wise_rest.iml" filepath="$PROJECT_DIR$/.idea/connect_wise_rest.iml" />
6
- </modules>
7
- </component>
8
- </project>
data/.idea/workspace.xml DELETED
@@ -1,380 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ChangeListManager">
4
- <list default="true" id="b3d96765-78e1-4b45-be3e-a5c76b47cdde" name="Default" comment="" />
5
- <ignored path="connect_wise_rest.iws" />
6
- <ignored path=".idea/workspace.xml" />
7
- <ignored path=".idea/dataSources.local.xml" />
8
- <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
- <option name="TRACKING_ENABLED" value="true" />
10
- <option name="SHOW_DIALOG" value="false" />
11
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
12
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
13
- <option name="LAST_RESOLUTION" value="IGNORE" />
14
- </component>
15
- <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
16
- <component name="CreatePatchCommitExecutor">
17
- <option name="PATCH_PATH" value="" />
18
- </component>
19
- <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
20
- <component name="FavoritesManager">
21
- <favorites_list name="connect_wise_rest" />
22
- </component>
23
- <component name="FileEditorManager">
24
- <leaf>
25
- <file leaf-file-name="client.rb" pinned="false" current-in-tab="false">
26
- <entry file="file://$PROJECT_DIR$/lib/connect_wise_rest/client.rb">
27
- <provider selected="true" editor-type-id="text-editor">
28
- <state relative-caret-position="0">
29
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
30
- <folding />
31
- </state>
32
- </provider>
33
- </entry>
34
- </file>
35
- <file leaf-file-name="connect_wise_rest.rb" pinned="false" current-in-tab="false">
36
- <entry file="file://$PROJECT_DIR$/lib/connect_wise_rest.rb">
37
- <provider selected="true" editor-type-id="text-editor">
38
- <state relative-caret-position="135">
39
- <caret line="9" column="0" selection-start-line="9" selection-start-column="0" selection-end-line="9" selection-end-column="0" />
40
- <folding />
41
- </state>
42
- </provider>
43
- </entry>
44
- </file>
45
- <file leaf-file-name="connect_wise_rest.gemspec" pinned="false" current-in-tab="true">
46
- <entry file="file://$PROJECT_DIR$/connect_wise_rest.gemspec">
47
- <provider selected="true" editor-type-id="text-editor">
48
- <state relative-caret-position="210">
49
- <caret line="14" column="27" selection-start-line="14" selection-start-column="27" selection-end-line="14" selection-end-column="27" />
50
- <folding />
51
- </state>
52
- </provider>
53
- </entry>
54
- </file>
55
- </leaf>
56
- </component>
57
- <component name="IdeDocumentHistory">
58
- <option name="CHANGED_PATHS">
59
- <list>
60
- <option value="$PROJECT_DIR$/lib/connect_wise_rest/configuration.rb" />
61
- <option value="$PROJECT_DIR$/lib/connect_wise_rest/client.rb" />
62
- <option value="$PROJECT_DIR$/lib/connect_wise_rest.rb" />
63
- <option value="$PROJECT_DIR$/connect_wise_rest.gemspec" />
64
- </list>
65
- </option>
66
- </component>
67
- <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
68
- <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
69
- <component name="JsGulpfileManager">
70
- <detection-done>true</detection-done>
71
- <sorting>DEFINITION_ORDER</sorting>
72
- </component>
73
- <component name="ProjectFrameBounds">
74
- <option name="width" value="2560" />
75
- <option name="height" value="1440" />
76
- </component>
77
- <component name="ProjectLevelVcsManager" settingsEditedManually="false">
78
- <OptionsSetting value="true" id="Add" />
79
- <OptionsSetting value="true" id="Remove" />
80
- <OptionsSetting value="true" id="Checkout" />
81
- <OptionsSetting value="true" id="Update" />
82
- <OptionsSetting value="true" id="Status" />
83
- <OptionsSetting value="true" id="Edit" />
84
- <ConfirmationsSetting value="0" id="Add" />
85
- <ConfirmationsSetting value="0" id="Remove" />
86
- </component>
87
- <component name="ProjectView">
88
- <navigator currentView="ProjectPane" proportions="" version="1">
89
- <flattenPackages />
90
- <showMembers />
91
- <showModules />
92
- <showLibraryContents />
93
- <hideEmptyPackages />
94
- <abbreviatePackageNames />
95
- <autoscrollToSource />
96
- <autoscrollFromSource />
97
- <sortByType />
98
- <manualOrder />
99
- <foldersAlwaysOnTop value="true" />
100
- </navigator>
101
- <panes>
102
- <pane id="Scope" />
103
- <pane id="Scratches" />
104
- <pane id="ProjectPane">
105
- <subPane>
106
- <PATH>
107
- <PATH_ELEMENT>
108
- <option name="myItemId" value="connect_wise_rest" />
109
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
110
- </PATH_ELEMENT>
111
- </PATH>
112
- <PATH>
113
- <PATH_ELEMENT>
114
- <option name="myItemId" value="connect_wise_rest" />
115
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
116
- </PATH_ELEMENT>
117
- <PATH_ELEMENT>
118
- <option name="myItemId" value="connect_wise_rest" />
119
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
120
- </PATH_ELEMENT>
121
- </PATH>
122
- <PATH>
123
- <PATH_ELEMENT>
124
- <option name="myItemId" value="connect_wise_rest" />
125
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
126
- </PATH_ELEMENT>
127
- <PATH_ELEMENT>
128
- <option name="myItemId" value="connect_wise_rest" />
129
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
130
- </PATH_ELEMENT>
131
- <PATH_ELEMENT>
132
- <option name="myItemId" value="lib" />
133
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
134
- </PATH_ELEMENT>
135
- </PATH>
136
- <PATH>
137
- <PATH_ELEMENT>
138
- <option name="myItemId" value="connect_wise_rest" />
139
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
140
- </PATH_ELEMENT>
141
- <PATH_ELEMENT>
142
- <option name="myItemId" value="connect_wise_rest" />
143
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
144
- </PATH_ELEMENT>
145
- <PATH_ELEMENT>
146
- <option name="myItemId" value="lib" />
147
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
148
- </PATH_ELEMENT>
149
- <PATH_ELEMENT>
150
- <option name="myItemId" value="connect_wise_rest" />
151
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
152
- </PATH_ELEMENT>
153
- </PATH>
154
- </subPane>
155
- </pane>
156
- </panes>
157
- </component>
158
- <component name="PropertiesComponent">
159
- <property name="settings.editor.selected.configurable" value="reference.settingsdialog.IDE.editor.colors.Font" />
160
- <property name="settings.editor.splitter.proportion" value="0.2" />
161
- <property name="WebServerToolWindowFactoryState" value="false" />
162
- <property name="FullScreen" value="true" />
163
- <property name="js-jscs-nodeInterpreter" value="/usr/local/bin/node" />
164
- </component>
165
- <component name="RecentsManager">
166
- <key name="CopyFile.RECENT_KEYS">
167
- <recent name="$PROJECT_DIR$/lib/connect_wise_rest" />
168
- </key>
169
- </component>
170
- <component name="RunManager">
171
- <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
172
- <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
173
- <module name="" />
174
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
175
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
176
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
177
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
178
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
179
- <envs />
180
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
181
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
182
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
183
- <COVERAGE_PATTERN ENABLED="true">
184
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
185
- </COVERAGE_PATTERN>
186
- </EXTENSION>
187
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
188
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
189
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
190
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
191
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
192
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
193
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
194
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
195
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
196
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
197
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
198
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
199
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
200
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
201
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
202
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
203
- <method />
204
- </configuration>
205
- <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
206
- <method />
207
- </configuration>
208
- <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
209
- <predefined_log_file id="RUBY_RSPEC" enabled="true" />
210
- <module name="" />
211
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
212
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
213
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
214
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
215
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
216
- <envs />
217
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
218
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
219
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
220
- <COVERAGE_PATTERN ENABLED="true">
221
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
222
- </COVERAGE_PATTERN>
223
- </EXTENSION>
224
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
225
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
226
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
227
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
228
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
229
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
230
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
231
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
232
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
233
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
234
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
235
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
236
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
237
- <method />
238
- </configuration>
239
- <configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
240
- <module name="" />
241
- <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
242
- <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
243
- <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
244
- <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
245
- <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
246
- <envs />
247
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
248
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
249
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
250
- <COVERAGE_PATTERN ENABLED="true">
251
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
252
- </COVERAGE_PATTERN>
253
- </EXTENSION>
254
- <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
255
- <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
256
- <method />
257
- </configuration>
258
- <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
259
- <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
260
- <module name="" />
261
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
262
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
263
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
264
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
265
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
266
- <envs />
267
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
268
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
269
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
270
- <COVERAGE_PATTERN ENABLED="true">
271
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
272
- </COVERAGE_PATTERN>
273
- </EXTENSION>
274
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
275
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
276
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
277
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
278
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
279
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
280
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
281
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
282
- <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
283
- <method />
284
- </configuration>
285
- <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
286
- <method />
287
- </configuration>
288
- <configuration default="true" type="js.build_tools.npm" factoryName="npm">
289
- <command value="run-script" />
290
- <scripts />
291
- <node-interpreter value="project" />
292
- <envs />
293
- <method />
294
- </configuration>
295
- </component>
296
- <component name="ShelveChangesManager" show_recycled="false">
297
- <option name="remove_strategy" value="false" />
298
- </component>
299
- <component name="SvnConfiguration">
300
- <configuration />
301
- </component>
302
- <component name="TaskManager">
303
- <task active="true" id="Default" summary="Default task">
304
- <changelist id="b3d96765-78e1-4b45-be3e-a5c76b47cdde" name="Default" comment="" />
305
- <created>1468957837287</created>
306
- <option name="number" value="Default" />
307
- <option name="presentableId" value="Default" />
308
- <updated>1468957837287</updated>
309
- <workItem from="1468957838684" duration="1406000" />
310
- </task>
311
- <servers />
312
- </component>
313
- <component name="TimeTrackingManager">
314
- <option name="totallyTimeSpent" value="1406000" />
315
- </component>
316
- <component name="ToolWindowManager">
317
- <frame x="0" y="0" width="2560" height="1440" extended-state="0" />
318
- <editor active="true" />
319
- <layout>
320
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25178713" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
321
- <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
322
- <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
323
- <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
324
- <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
325
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.33022922" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
326
- <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
327
- <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
328
- <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
329
- <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
330
- <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
331
- <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
332
- <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
333
- <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
334
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
335
- <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
336
- <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
337
- </layout>
338
- </component>
339
- <component name="VcsContentAnnotationSettings">
340
- <option name="myLimit" value="2678400000" />
341
- </component>
342
- <component name="XDebuggerManager">
343
- <breakpoint-manager />
344
- <watches-manager />
345
- </component>
346
- <component name="editorHistoryManager">
347
- <entry file="file://$PROJECT_DIR$/lib/connect_wise_rest/configuration.rb">
348
- <provider selected="true" editor-type-id="text-editor">
349
- <state relative-caret-position="405">
350
- <caret line="27" column="3" selection-start-line="27" selection-start-column="3" selection-end-line="27" selection-end-column="3" />
351
- <folding />
352
- </state>
353
- </provider>
354
- </entry>
355
- <entry file="file://$PROJECT_DIR$/lib/connect_wise_rest/client.rb">
356
- <provider selected="true" editor-type-id="text-editor">
357
- <state relative-caret-position="0">
358
- <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
359
- <folding />
360
- </state>
361
- </provider>
362
- </entry>
363
- <entry file="file://$PROJECT_DIR$/lib/connect_wise_rest.rb">
364
- <provider selected="true" editor-type-id="text-editor">
365
- <state relative-caret-position="135">
366
- <caret line="9" column="0" selection-start-line="9" selection-start-column="0" selection-end-line="9" selection-end-column="0" />
367
- <folding />
368
- </state>
369
- </provider>
370
- </entry>
371
- <entry file="file://$PROJECT_DIR$/connect_wise_rest.gemspec">
372
- <provider selected="true" editor-type-id="text-editor">
373
- <state relative-caret-position="210">
374
- <caret line="14" column="27" selection-start-line="14" selection-start-column="27" selection-end-line="14" selection-end-column="27" />
375
- <folding />
376
- </state>
377
- </provider>
378
- </entry>
379
- </component>
380
- </project>