leadcreator 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a0554e08d68cb682abd7c01b7bd44184c6404d09
4
+ data.tar.gz: 1c324d66094600df10ecf1e7114181bb1f5649d8
5
+ SHA512:
6
+ metadata.gz: 6657bbd427fc08197691753b2d2f8093859df5cae454a83c00e1e2587f3a1ff148a890b285f43b1d3643c84d46cba9d0ed334770e5d296a015749fa67e18236e
7
+ data.tar.gz: 642997067a3d43d37f97024e706856cdd7584ef7b384186b4c32d582bab942413702f91177b18fe497575d0f40e16ece24d9b5521b1bf6539eef9f67abfa4b3c
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
@@ -0,0 +1 @@
1
+ leadcreator
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
5
+
@@ -0,0 +1,95 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="CompassSettings">
4
+ <option name="compassSupportEnabled" value="true" />
5
+ </component>
6
+ <component name="FacetManager">
7
+ <facet type="gem" name="Ruby Gem">
8
+ <configuration>
9
+ <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
10
+ <option name="GEM_APP_TEST_PATH" value="" />
11
+ <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
12
+ </configuration>
13
+ </facet>
14
+ </component>
15
+ <component name="ModuleRunConfigurationManager">
16
+ <configuration default="false" name="spec" type="RSpecRunConfigurationType" factoryName="RSpec">
17
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
18
+ <module name="leadcreator" />
19
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
20
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
21
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
22
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
23
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
24
+ <envs />
25
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
26
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
27
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
28
+ <COVERAGE_PATTERN ENABLED="true">
29
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
30
+ </COVERAGE_PATTERN>
31
+ </EXTENSION>
32
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
33
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="$MODULE_DIR$/spec" />
34
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
35
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
36
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
37
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
38
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="ALL_IN_FOLDER" />
39
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
40
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
41
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
42
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
43
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
44
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
45
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
46
+ <RunnerSettings RunnerId="RubyDebugRunner" />
47
+ <RunnerSettings RunnerId="RubyRunner" />
48
+ <ConfigurationWrapper RunnerId="RubyDebugRunner" />
49
+ <ConfigurationWrapper RunnerId="RubyRunner" />
50
+ <method />
51
+ </configuration>
52
+ </component>
53
+ <component name="NewModuleRootManager">
54
+ <content url="file://$MODULE_DIR$" />
55
+ <orderEntry type="jdk" jdkName="RVM: ruby-2.1.0" jdkType="RUBY_SDK" />
56
+ <orderEntry type="sourceFolder" forTests="false" />
57
+ <orderEntry type="library" scope="PROVIDED" name="addressable (v2.3.6, RVM: ruby-2.1.0) [gem]" level="application" />
58
+ <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.2, RVM: ruby-2.1.0) [gem]" level="application" />
59
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.5.1, RVM: ruby-2.1.0) [gem]" level="application" />
60
+ <orderEntry type="library" scope="PROVIDED" name="crack (v0.4.2, RVM: ruby-2.1.0) [gem]" level="application" />
61
+ <orderEntry type="library" scope="PROVIDED" name="descendants_tracker (v0.0.4, RVM: ruby-2.1.0) [gem]" level="application" />
62
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.1.3, RVM: ruby-2.1.0) [gem]" level="application" />
63
+ <orderEntry type="library" scope="PROVIDED" name="docile (v1.1.5, RVM: ruby-2.1.0) [gem]" level="application" />
64
+ <orderEntry type="library" scope="PROVIDED" name="faker (v1.3.0, RVM: ruby-2.1.0) [gem]" level="application" />
65
+ <orderEntry type="library" scope="PROVIDED" name="faraday (v0.8.9, RVM: ruby-2.1.0) [gem]" level="application" />
66
+ <orderEntry type="library" scope="PROVIDED" name="faraday_middleware (v0.9.1, RVM: ruby-2.1.0) [gem]" level="application" />
67
+ <orderEntry type="library" scope="PROVIDED" name="git (v1.2.7, RVM: ruby-2.1.0) [gem]" level="application" />
68
+ <orderEntry type="library" scope="PROVIDED" name="github_api (v0.11.3, RVM: ruby-2.1.0) [gem]" level="application" />
69
+ <orderEntry type="library" scope="PROVIDED" name="hashie (v2.1.2, RVM: ruby-2.1.0) [gem]" level="application" />
70
+ <orderEntry type="library" scope="PROVIDED" name="highline (v1.6.21, RVM: ruby-2.1.0) [gem]" level="application" />
71
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v0.6.9, RVM: ruby-2.1.0) [gem]" level="application" />
72
+ <orderEntry type="library" scope="PROVIDED" name="jeweler (v2.0.1, RVM: ruby-2.1.0) [gem]" level="application" />
73
+ <orderEntry type="library" scope="PROVIDED" name="jwt (v1.0.0, RVM: ruby-2.1.0) [gem]" level="application" />
74
+ <orderEntry type="library" scope="PROVIDED" name="mini_portile (v0.6.0, RVM: ruby-2.1.0) [gem]" level="application" />
75
+ <orderEntry type="library" scope="PROVIDED" name="multi_json (v1.10.1, RVM: ruby-2.1.0) [gem]" level="application" />
76
+ <orderEntry type="library" scope="PROVIDED" name="multi_xml (v0.5.5, RVM: ruby-2.1.0) [gem]" level="application" />
77
+ <orderEntry type="library" scope="PROVIDED" name="multipart-post (v1.2.0, RVM: ruby-2.1.0) [gem]" level="application" />
78
+ <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.2.1, RVM: ruby-2.1.0) [gem]" level="application" />
79
+ <orderEntry type="library" scope="PROVIDED" name="oauth2 (v0.9.4, RVM: ruby-2.1.0) [gem]" level="application" />
80
+ <orderEntry type="library" scope="PROVIDED" name="rack (v1.5.2, RVM: ruby-2.1.0) [gem]" level="application" />
81
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.3.2, RVM: ruby-2.1.0) [gem]" level="application" />
82
+ <orderEntry type="library" scope="PROVIDED" name="rdoc (v3.12.2, RVM: ruby-2.1.0) [gem]" level="application" />
83
+ <orderEntry type="library" scope="PROVIDED" name="restforce (v1.4.3@5ed4c8, RVM: ruby-2.1.0) [gem]" level="application" />
84
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v2.8.0, RVM: ruby-2.1.0) [gem]" level="application" />
85
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.8.0, RVM: ruby-2.1.0) [gem]" level="application" />
86
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.8.0, RVM: ruby-2.1.0) [gem]" level="application" />
87
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.8.0, RVM: ruby-2.1.0) [gem]" level="application" />
88
+ <orderEntry type="library" scope="PROVIDED" name="safe_yaml (v1.0.3, RVM: ruby-2.1.0) [gem]" level="application" />
89
+ <orderEntry type="library" scope="PROVIDED" name="simplecov (v0.8.2, RVM: ruby-2.1.0) [gem]" level="application" />
90
+ <orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.8.0, RVM: ruby-2.1.0) [gem]" level="application" />
91
+ <orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.4, RVM: ruby-2.1.0) [gem]" level="application" />
92
+ <orderEntry type="library" scope="PROVIDED" name="webmock (v1.18.0, RVM: ruby-2.1.0) [gem]" level="application" />
93
+ </component>
94
+ </module>
95
+
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p392 [global]" project-jdk-type="RUBY_SDK" />
4
+ </project>
5
+
@@ -0,0 +1,9 @@
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/leadcreator.iml" filepath="$PROJECT_DIR$/.idea/leadcreator.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
9
+
@@ -0,0 +1,5 @@
1
+ <component name="DependencyValidationManager">
2
+ <state>
3
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
+ </state>
5
+ </component>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="" />
5
+ </component>
6
+ </project>
7
+
@@ -0,0 +1,406 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="d01149c8-7166-4d12-b8ec-8ebd34a9c03a" name="Default" comment="" />
5
+ <ignored path="leadcreator.iws" />
6
+ <ignored path=".idea/workspace.xml" />
7
+ <option name="TRACKING_ENABLED" value="true" />
8
+ <option name="SHOW_DIALOG" value="false" />
9
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+ <option name="LAST_RESOLUTION" value="IGNORE" />
12
+ </component>
13
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
14
+ <component name="CoverageDataManager">
15
+ <SUITE FILE_PATH="coverage/leadcreator@spec.coverage" NAME="spec Coverage Results" MODIFIED="1404420170566" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="" MODULE_NAME="leadcreator" />
16
+ </component>
17
+ <component name="CreatePatchCommitExecutor">
18
+ <option name="PATCH_PATH" value="" />
19
+ </component>
20
+ <component name="DaemonCodeAnalyzer">
21
+ <disable_hints />
22
+ </component>
23
+ <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
24
+ <component name="FavoritesManager">
25
+ <favorites_list name="leadcreator" />
26
+ </component>
27
+ <component name="FileEditorManager">
28
+ <leaf>
29
+ <file leaf-file-name="leadcreator.rb" pinned="false" current="false" current-in-tab="false">
30
+ <entry file="file://$PROJECT_DIR$/lib/leadcreator.rb">
31
+ <provider selected="true" editor-type-id="text-editor">
32
+ <state vertical-scroll-proportion="0.0" vertical-offset="90" max-vertical-offset="570">
33
+ <caret line="21" column="45" selection-start-line="21" selection-start-column="28" selection-end-line="21" selection-end-column="28" />
34
+ <folding />
35
+ </state>
36
+ </provider>
37
+ </entry>
38
+ </file>
39
+ <file leaf-file-name="leadcreator_spec.rb" pinned="false" current="false" current-in-tab="false">
40
+ <entry file="file://$PROJECT_DIR$/spec/leadcreator_spec.rb">
41
+ <provider selected="true" editor-type-id="text-editor">
42
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="960">
43
+ <caret line="29" column="45" selection-start-line="29" selection-start-column="43" selection-end-line="29" selection-end-column="43" />
44
+ <folding />
45
+ </state>
46
+ </provider>
47
+ </entry>
48
+ </file>
49
+ <file leaf-file-name="Rakefile" pinned="false" current="true" current-in-tab="true">
50
+ <entry file="file://$PROJECT_DIR$/Rakefile">
51
+ <provider selected="true" editor-type-id="text-editor">
52
+ <state vertical-scroll-proportion="0.21658987" vertical-offset="159" max-vertical-offset="840">
53
+ <caret line="20" column="96" selection-start-line="20" selection-start-column="96" selection-end-line="20" selection-end-column="96" />
54
+ <folding />
55
+ </state>
56
+ </provider>
57
+ </entry>
58
+ </file>
59
+ <file leaf-file-name="spec_helper.rb" pinned="false" current="false" current-in-tab="false">
60
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
61
+ <provider selected="true" editor-type-id="text-editor">
62
+ <state vertical-scroll-proportion="0.0" vertical-offset="344" max-vertical-offset="615">
63
+ <caret line="33" column="84" selection-start-line="33" selection-start-column="84" selection-end-line="33" selection-end-column="84" />
64
+ <folding />
65
+ </state>
66
+ </provider>
67
+ </entry>
68
+ </file>
69
+ <file leaf-file-name="fake_salesforce.rb" pinned="false" current="false" current-in-tab="false">
70
+ <entry file="file://$PROJECT_DIR$/spec/support/fake_salesforce.rb">
71
+ <provider selected="true" editor-type-id="text-editor">
72
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="300">
73
+ <caret line="0" column="24" selection-start-line="0" selection-start-column="22" selection-end-line="0" selection-end-column="22" />
74
+ <folding />
75
+ </state>
76
+ </provider>
77
+ </entry>
78
+ </file>
79
+ </leaf>
80
+ </component>
81
+ <component name="FindManager">
82
+ <FindUsagesManager>
83
+ <setting name="OPEN_NEW_TAB" value="true" />
84
+ </FindUsagesManager>
85
+ </component>
86
+ <component name="IdeDocumentHistory">
87
+ <option name="changedFiles">
88
+ <list>
89
+ <option value="$PROJECT_DIR$/lib/leadcreator.rb" />
90
+ <option value="$PROJECT_DIR$/Gemfile" />
91
+ <option value="$PROJECT_DIR$/spec/support/fake_salesforce.rb" />
92
+ <option value="$PROJECT_DIR$/spec/support/fixtures/response.json" />
93
+ <option value="$PROJECT_DIR$/spec/spec_helper.rb" />
94
+ <option value="$PROJECT_DIR$/spec/leadcreator_spec.rb" />
95
+ <option value="$PROJECT_DIR$/Rakefile" />
96
+ </list>
97
+ </option>
98
+ </component>
99
+ <component name="ProjectFrameBounds">
100
+ <option name="y" value="22" />
101
+ <option name="width" value="1280" />
102
+ <option name="height" value="774" />
103
+ </component>
104
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
105
+ <OptionsSetting value="true" id="Add" />
106
+ <OptionsSetting value="true" id="Remove" />
107
+ <OptionsSetting value="true" id="Checkout" />
108
+ <OptionsSetting value="true" id="Update" />
109
+ <OptionsSetting value="true" id="Status" />
110
+ <OptionsSetting value="true" id="Edit" />
111
+ <ConfirmationsSetting value="0" id="Add" />
112
+ <ConfirmationsSetting value="0" id="Remove" />
113
+ </component>
114
+ <component name="ProjectReloadState">
115
+ <option name="STATE" value="0" />
116
+ </component>
117
+ <component name="ProjectView">
118
+ <navigator currentView="ProjectPane" proportions="" version="1">
119
+ <flattenPackages />
120
+ <showMembers />
121
+ <showModules />
122
+ <showLibraryContents />
123
+ <hideEmptyPackages />
124
+ <abbreviatePackageNames />
125
+ <autoscrollToSource />
126
+ <autoscrollFromSource />
127
+ <sortByType />
128
+ </navigator>
129
+ <panes>
130
+ <pane id="ProjectPane">
131
+ <subPane>
132
+ <PATH>
133
+ <PATH_ELEMENT>
134
+ <option name="myItemId" value="leadcreator" />
135
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
136
+ </PATH_ELEMENT>
137
+ </PATH>
138
+ <PATH>
139
+ <PATH_ELEMENT>
140
+ <option name="myItemId" value="leadcreator" />
141
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
142
+ </PATH_ELEMENT>
143
+ <PATH_ELEMENT>
144
+ <option name="myItemId" value="leadcreator" />
145
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
146
+ </PATH_ELEMENT>
147
+ </PATH>
148
+ </subPane>
149
+ </pane>
150
+ <pane id="Scope" />
151
+ </panes>
152
+ </component>
153
+ <component name="PropertiesComponent">
154
+ <property name="last_opened_file_path" value="$PROJECT_DIR$/spec" />
155
+ <property name="WebServerToolWindowFactoryState" value="false" />
156
+ <property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
157
+ <property name="options.splitter.main.proportions" value="0.3" />
158
+ <property name="options.splitter.details.proportions" value="0.2" />
159
+ <property name="options.searchVisible" value="true" />
160
+ <property name="LayoutCode.rearrangeEntriesRuby" value="false" />
161
+ <property name="recentsLimit" value="5" />
162
+ <property name="restartRequiresConfirmation" value="true" />
163
+ </component>
164
+ <component name="RunManager" selected="RSpec.spec">
165
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
166
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
167
+ <module name="leadcreator" />
168
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
169
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
170
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
171
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
172
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
173
+ <envs />
174
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
175
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
176
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
177
+ <COVERAGE_PATTERN ENABLED="true">
178
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
179
+ </COVERAGE_PATTERN>
180
+ </EXTENSION>
181
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
182
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
183
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
184
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
185
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
186
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
187
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="ALL_IN_FOLDER" />
188
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
189
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
190
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
191
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
192
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
193
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
194
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
195
+ <method />
196
+ </configuration>
197
+ <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
198
+ <method />
199
+ </configuration>
200
+ <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
201
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
202
+ <module name="" />
203
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
204
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
205
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
206
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
207
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
208
+ <envs />
209
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
210
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
211
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
212
+ <COVERAGE_PATTERN ENABLED="true">
213
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
214
+ </COVERAGE_PATTERN>
215
+ </EXTENSION>
216
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
217
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
218
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
219
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
220
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
221
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
222
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
223
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
224
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
225
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
226
+ <method />
227
+ </configuration>
228
+ <configuration default="false" name="spec" type="RSpecRunConfigurationType" factoryName="RSpec">
229
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
230
+ <module name="leadcreator" />
231
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
232
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
233
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
234
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
235
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
236
+ <envs />
237
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
238
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
239
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
240
+ <COVERAGE_PATTERN ENABLED="true">
241
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
242
+ </COVERAGE_PATTERN>
243
+ </EXTENSION>
244
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
245
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="$MODULE_DIR$/spec" />
246
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
247
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
248
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
249
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
250
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="ALL_IN_FOLDER" />
251
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
252
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
253
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
254
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
255
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
256
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
257
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
258
+ <RunnerSettings RunnerId="RubyDebugRunner" />
259
+ <RunnerSettings RunnerId="RubyRunner" />
260
+ <ConfigurationWrapper RunnerId="RubyDebugRunner" />
261
+ <ConfigurationWrapper RunnerId="RubyRunner" />
262
+ <method />
263
+ </configuration>
264
+ <list size="1">
265
+ <item index="0" class="java.lang.String" itemvalue="RSpec.spec" />
266
+ </list>
267
+ </component>
268
+ <component name="ShelveChangesManager" show_recycled="false" />
269
+ <component name="TaskManager">
270
+ <task active="true" id="Default" summary="Default task">
271
+ <changelist id="d01149c8-7166-4d12-b8ec-8ebd34a9c03a" name="Default" comment="" />
272
+ <created>1404395276487</created>
273
+ <updated>1404395276487</updated>
274
+ </task>
275
+ <servers />
276
+ </component>
277
+ <component name="ToolWindowManager">
278
+ <frame x="0" y="22" width="1280" height="774" extended-state="6" />
279
+ <editor active="true" />
280
+ <layout>
281
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3298969" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
282
+ <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
283
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
284
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
285
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
286
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
287
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24959612" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
288
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39911634" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
289
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
290
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
291
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.55964655" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
292
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
293
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
294
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
295
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
296
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
297
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
298
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
299
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
300
+ </layout>
301
+ </component>
302
+ <component name="Vcs.Log.UiProperties">
303
+ <option name="RECENTLY_FILTERED_USER_GROUPS">
304
+ <collection />
305
+ </option>
306
+ <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
307
+ <collection />
308
+ </option>
309
+ </component>
310
+ <component name="VcsContentAnnotationSettings">
311
+ <option name="myLimit" value="2678400000" />
312
+ </component>
313
+ <component name="VcsManagerConfiguration">
314
+ <option name="myTodoPanelSettings">
315
+ <TodoPanelSettings />
316
+ </option>
317
+ </component>
318
+ <component name="XDebuggerManager">
319
+ <breakpoint-manager>
320
+ <option name="time" value="5" />
321
+ </breakpoint-manager>
322
+ </component>
323
+ <component name="editorHistoryManager">
324
+ <entry file="file://$PROJECT_DIR$/README.rdoc">
325
+ <provider selected="true" editor-type-id="text-editor">
326
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="414">
327
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
328
+ <folding />
329
+ </state>
330
+ </provider>
331
+ </entry>
332
+ <entry file="file://$USER_HOME$/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/uri/common.rb">
333
+ <provider selected="true" editor-type-id="text-editor">
334
+ <state vertical-scroll-proportion="0.4028213" vertical-offset="9898" max-vertical-offset="18675">
335
+ <caret line="677" column="8" selection-start-line="677" selection-start-column="8" selection-end-line="677" selection-end-column="8" />
336
+ <folding />
337
+ </state>
338
+ </provider>
339
+ </entry>
340
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-2.1.0/gems/webmock-1.18.0/lib/webmock/api.rb">
341
+ <provider selected="true" editor-type-id="text-editor">
342
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="1365">
343
+ <caret line="4" column="8" selection-start-line="4" selection-start-column="8" selection-end-line="4" selection-end-column="8" />
344
+ <folding />
345
+ </state>
346
+ </provider>
347
+ </entry>
348
+ <entry file="file://$PROJECT_DIR$/spec/support/fixtures/response.json">
349
+ <provider selected="true" editor-type-id="text-editor">
350
+ <state vertical-scroll-proportion="0.042134833" vertical-offset="0" max-vertical-offset="356">
351
+ <caret line="1" column="14" selection-start-line="1" selection-start-column="14" selection-end-line="1" selection-end-column="14" />
352
+ <folding />
353
+ </state>
354
+ </provider>
355
+ </entry>
356
+ <entry file="file://$PROJECT_DIR$/lib/leadcreator.rb">
357
+ <provider selected="true" editor-type-id="text-editor">
358
+ <state vertical-scroll-proportion="0.0" vertical-offset="90" max-vertical-offset="570">
359
+ <caret line="21" column="45" selection-start-line="21" selection-start-column="28" selection-end-line="21" selection-end-column="28" />
360
+ <folding />
361
+ </state>
362
+ </provider>
363
+ </entry>
364
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
365
+ <provider selected="true" editor-type-id="text-editor">
366
+ <state vertical-scroll-proportion="0.0" vertical-offset="344" max-vertical-offset="615">
367
+ <caret line="33" column="84" selection-start-line="33" selection-start-column="84" selection-end-line="33" selection-end-column="84" />
368
+ <folding />
369
+ </state>
370
+ </provider>
371
+ </entry>
372
+ <entry file="file://$PROJECT_DIR$/Gemfile">
373
+ <provider selected="true" editor-type-id="text-editor">
374
+ <state vertical-scroll-proportion="0.88560885" vertical-offset="0" max-vertical-offset="360">
375
+ <caret line="16" column="14" selection-start-line="16" selection-start-column="14" selection-end-line="16" selection-end-column="14" />
376
+ <folding />
377
+ </state>
378
+ </provider>
379
+ </entry>
380
+ <entry file="file://$PROJECT_DIR$/spec/support/fake_salesforce.rb">
381
+ <provider selected="true" editor-type-id="text-editor">
382
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="300">
383
+ <caret line="0" column="24" selection-start-line="0" selection-start-column="22" selection-end-line="0" selection-end-column="22" />
384
+ <folding />
385
+ </state>
386
+ </provider>
387
+ </entry>
388
+ <entry file="file://$PROJECT_DIR$/spec/leadcreator_spec.rb">
389
+ <provider selected="true" editor-type-id="text-editor">
390
+ <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="960">
391
+ <caret line="29" column="45" selection-start-line="29" selection-start-column="43" selection-end-line="29" selection-end-column="43" />
392
+ <folding />
393
+ </state>
394
+ </provider>
395
+ </entry>
396
+ <entry file="file://$PROJECT_DIR$/Rakefile">
397
+ <provider selected="true" editor-type-id="text-editor">
398
+ <state vertical-scroll-proportion="0.21658987" vertical-offset="159" max-vertical-offset="840">
399
+ <caret line="20" column="96" selection-start-line="20" selection-start-column="96" selection-end-line="20" selection-end-column="96" />
400
+ <folding />
401
+ </state>
402
+ </provider>
403
+ </entry>
404
+ </component>
405
+ </project>
406
+
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/Gemfile ADDED
@@ -0,0 +1,18 @@
1
+ source 'http://rubygems.org'
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem 'activesupport', '>= 2.3.5'
5
+
6
+ gem 'restforce', github: 'pachirel/restforce', branch: 'update_dependency'
7
+
8
+ # Add dependencies to develop your gem here.
9
+ # Include everything needed to run rake, tests, features, etc.
10
+ group :development do
11
+ gem 'rspec', '~> 2.8.0'
12
+ gem 'rdoc', '~> 3.12'
13
+ gem 'bundler', '~> 1.0'
14
+ gem 'jeweler', '~> 2.0.1'
15
+ gem 'simplecov', '>= 0'
16
+ gem 'faker', '~> 1.3'
17
+ gem 'webmock'
18
+ end
@@ -0,0 +1,98 @@
1
+ GIT
2
+ remote: git://github.com/pachirel/restforce.git
3
+ revision: 5ed4c81bfd0ffca555a36b36781f2d4977460913
4
+ branch: update_dependency
5
+ specs:
6
+ restforce (1.4.3)
7
+ faraday (~> 0.8.4)
8
+ faraday_middleware (>= 0.8.8)
9
+ hashie (>= 1.2.0, < 2.2)
10
+ json (>= 1.7.5, < 1.9.0)
11
+
12
+ GEM
13
+ remote: http://rubygems.org/
14
+ specs:
15
+ addressable (2.3.6)
16
+ builder (3.2.2)
17
+ crack (0.4.2)
18
+ safe_yaml (~> 1.0.0)
19
+ descendants_tracker (0.0.4)
20
+ thread_safe (~> 0.3, >= 0.3.1)
21
+ diff-lcs (1.1.3)
22
+ docile (1.1.5)
23
+ faker (1.3.0)
24
+ i18n (~> 0.5)
25
+ faraday (0.8.9)
26
+ multipart-post (~> 1.2.0)
27
+ faraday_middleware (0.9.1)
28
+ faraday (>= 0.7.4, < 0.10)
29
+ git (1.2.7)
30
+ github_api (0.11.3)
31
+ addressable (~> 2.3)
32
+ descendants_tracker (~> 0.0.1)
33
+ faraday (~> 0.8, < 0.10)
34
+ hashie (>= 1.2)
35
+ multi_json (>= 1.7.5, < 2.0)
36
+ nokogiri (~> 1.6.0)
37
+ oauth2
38
+ hashie (2.1.2)
39
+ highline (1.6.21)
40
+ i18n (0.6.9)
41
+ jeweler (2.0.1)
42
+ builder
43
+ bundler (>= 1.0)
44
+ git (>= 1.2.5)
45
+ github_api
46
+ highline (>= 1.6.15)
47
+ nokogiri (>= 1.5.10)
48
+ rake
49
+ rdoc
50
+ json (1.8.1)
51
+ jwt (1.0.0)
52
+ mini_portile (0.6.0)
53
+ multi_json (1.10.1)
54
+ multi_xml (0.5.5)
55
+ multipart-post (1.2.0)
56
+ nokogiri (1.6.2.1)
57
+ mini_portile (= 0.6.0)
58
+ oauth2 (0.9.4)
59
+ faraday (>= 0.8, < 0.10)
60
+ jwt (~> 1.0)
61
+ multi_json (~> 1.3)
62
+ multi_xml (~> 0.5)
63
+ rack (~> 1.2)
64
+ rack (1.5.2)
65
+ rake (10.3.2)
66
+ rdoc (3.12.2)
67
+ json (~> 1.4)
68
+ rspec (2.8.0)
69
+ rspec-core (~> 2.8.0)
70
+ rspec-expectations (~> 2.8.0)
71
+ rspec-mocks (~> 2.8.0)
72
+ rspec-core (2.8.0)
73
+ rspec-expectations (2.8.0)
74
+ diff-lcs (~> 1.1.2)
75
+ rspec-mocks (2.8.0)
76
+ safe_yaml (1.0.3)
77
+ simplecov (0.8.2)
78
+ docile (~> 1.1.0)
79
+ multi_json
80
+ simplecov-html (~> 0.8.0)
81
+ simplecov-html (0.8.0)
82
+ thread_safe (0.3.4)
83
+ webmock (1.18.0)
84
+ addressable (>= 2.3.6)
85
+ crack (>= 0.3.2)
86
+
87
+ PLATFORMS
88
+ ruby
89
+
90
+ DEPENDENCIES
91
+ bundler (~> 1.0)
92
+ faker (~> 1.3)
93
+ jeweler (~> 2.0.1)
94
+ rdoc (~> 3.12)
95
+ restforce!
96
+ rspec (~> 2.8.0)
97
+ simplecov
98
+ webmock
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2014 Bruno Silveira
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,19 @@
1
+ = leadcreator
2
+
3
+ Description goes here.
4
+
5
+ == Contributing to leadcreator
6
+
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
+ * Fork the project.
10
+ * Start a feature/bugfix branch.
11
+ * Commit and push until you are happy with your contribution.
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2014 Bruno Silveira. See LICENSE.txt for
18
+ further details.
19
+
@@ -0,0 +1,50 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
17
+ gem.name = "leadcreator"
18
+ gem.homepage = "http://github.com/brunossilveira/leadcreator-gem"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{Wrapper to create Leads through Salesforce Rest API}
21
+ gem.description = %Q{Leadcreator its a gem that uses Restforce to create leads in an easy way.}
22
+ gem.email = "djbrunosilveira@gmail.com"
23
+ gem.authors = ["Bruno Silveira"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rspec/core'
29
+ require 'rspec/core/rake_task'
30
+ RSpec::Core::RakeTask.new(:spec) do |spec|
31
+ spec.pattern = FileList['spec/**/*_spec.rb']
32
+ end
33
+
34
+ desc "Code coverage detail"
35
+ task :simplecov do
36
+ ENV['COVERAGE'] = "true"
37
+ Rake::Task['spec'].execute
38
+ end
39
+
40
+ task :default => :spec
41
+
42
+ require 'rdoc/task'
43
+ Rake::RDocTask.new do |rdoc|
44
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
45
+
46
+ rdoc.rdoc_dir = 'rdoc'
47
+ rdoc.title = "leadcreator #{version}"
48
+ rdoc.rdoc_files.include('README*')
49
+ rdoc.rdoc_files.include('lib/**/*.rb')
50
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,84 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: leadcreator 0.1.0 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "leadcreator"
9
+ s.version = "0.1.0"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
13
+ s.authors = ["Bruno Silveira"]
14
+ s.date = "2014-07-03"
15
+ s.description = "Leadcreator its a gem that uses Restforce to create leads in an easy way."
16
+ s.email = "djbrunosilveira@gmail.com"
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.rdoc"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ ".idea/.name",
24
+ ".idea/.rakeTasks",
25
+ ".idea/encodings.xml",
26
+ ".idea/leadcreator.iml",
27
+ ".idea/misc.xml",
28
+ ".idea/modules.xml",
29
+ ".idea/scopes/scope_settings.xml",
30
+ ".idea/vcs.xml",
31
+ ".idea/workspace.xml",
32
+ ".rspec",
33
+ "Gemfile",
34
+ "Gemfile.lock",
35
+ "LICENSE.txt",
36
+ "README.rdoc",
37
+ "Rakefile",
38
+ "VERSION",
39
+ "leadcreator.gemspec",
40
+ "lib/leadcreator.rb",
41
+ "spec/leadcreator_spec.rb",
42
+ "spec/spec_helper.rb",
43
+ "spec/support/fake_salesforce.rb",
44
+ "spec/support/fixtures/response.json"
45
+ ]
46
+ s.homepage = "http://github.com/brunossilveira/leadcreator-gem"
47
+ s.licenses = ["MIT"]
48
+ s.rubygems_version = "2.2.2"
49
+ s.summary = "Wrapper to create Leads through Salesforce Rest API"
50
+
51
+ if s.respond_to? :specification_version then
52
+ s.specification_version = 4
53
+
54
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
55
+ s.add_runtime_dependency(%q<restforce>, [">= 0"])
56
+ s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
57
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
58
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
59
+ s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
60
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
61
+ s.add_development_dependency(%q<faker>, ["~> 1.3"])
62
+ s.add_development_dependency(%q<webmock>, [">= 0"])
63
+ else
64
+ s.add_dependency(%q<restforce>, [">= 0"])
65
+ s.add_dependency(%q<rspec>, ["~> 2.8.0"])
66
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
67
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
68
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
69
+ s.add_dependency(%q<simplecov>, [">= 0"])
70
+ s.add_dependency(%q<faker>, ["~> 1.3"])
71
+ s.add_dependency(%q<webmock>, [">= 0"])
72
+ end
73
+ else
74
+ s.add_dependency(%q<restforce>, [">= 0"])
75
+ s.add_dependency(%q<rspec>, ["~> 2.8.0"])
76
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
77
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
78
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
79
+ s.add_dependency(%q<simplecov>, [">= 0"])
80
+ s.add_dependency(%q<faker>, ["~> 1.3"])
81
+ s.add_dependency(%q<webmock>, [">= 0"])
82
+ end
83
+ end
84
+
@@ -0,0 +1,32 @@
1
+ require 'restforce'
2
+
3
+ class UnauthorizedError < RuntimeError;
4
+ end
5
+
6
+ class Lead
7
+
8
+ def initialize(instance_url:, client_id:, client_secret:, oauth_token:)
9
+ credential = {:instance_url => instance_url,
10
+ :client_id => client_id,
11
+ :client_secret => client_secret,
12
+ :oauth_token => oauth_token
13
+ }
14
+ @client = Restforce.new(credential)
15
+ end
16
+
17
+
18
+ def create(name:, last_name:, email:, company:, job_title:, phone:, website:)
19
+ raise ArgumentError.new 'last_name and company are required' if company.empty? || last_name.empty?
20
+ attributes =
21
+ {
22
+ FirstName: name,
23
+ LastName: last_name,
24
+ Email: email,
25
+ Company: company,
26
+ Title: job_title,
27
+ Phone: phone,
28
+ Website: website
29
+ }
30
+ @client.create!('Lead', attributes)
31
+ end
32
+ end
@@ -0,0 +1,59 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe 'Leadcreator' do
4
+
5
+ context 'when initializing' do
6
+ let(:attributes) do
7
+ {
8
+ instance_url: Faker::Internet.url,
9
+ client_id: Faker::Lorem.characters(45),
10
+ client_secret: Faker::Number.number(10),
11
+ oauth_token: Faker::Lorem.characters(10)
12
+ }
13
+ end
14
+
15
+ it 'should not accept missing parameters' do
16
+ expect { Lead.new }.to raise_error
17
+ expect { Lead.new(attributes.delete(:instance_url)) }.to raise_error
18
+ end
19
+
20
+ it 'should accept when all parameters are present' do
21
+ expect { Lead.new(attributes) }.to_not raise_error
22
+ end
23
+ end
24
+
25
+ context 'when creating lead' do
26
+ let(:lead) { Lead.new(instance_url: 'https://naX.salesforce.com', client_id: Faker::Lorem.characters(45), client_secret: Faker::Number.number(10), oauth_token: Faker::Lorem.characters(10)) }
27
+ let(:attributes) do
28
+ {
29
+ name: Faker::Name.first_name,
30
+ last_name: Faker::Name.last_name,
31
+ email: Faker::Internet.email,
32
+ company: Faker::Company.name,
33
+ job_title: Faker::Lorem.sentence(3),
34
+ phone: Faker::PhoneNumber.phone_number,
35
+ website: Faker::Internet.url
36
+ }
37
+ end
38
+ it 'should not accept missing parameters' do
39
+ expect { lead.create(attributes.delete(:first_name)).to raise_error }
40
+ end
41
+
42
+ it 'should not accept empty last_name nor company' do
43
+ attributes[:lastname] = ''
44
+ expect { lead.create(attributes) }.to raise_error
45
+ attributes[:lastname] = Faker::Name.last_name
46
+ attributes[:company] = ''
47
+ expect { lead.create(attributes) }.to raise_error
48
+ end
49
+
50
+ it 'should accept all parameters' do
51
+ stub_request(:post, 'https://nax.salesforce.com/services/data/v26.0/sobjects/Lead').
52
+ with(:body => attributes.to_json,
53
+ headers: {'Content-Type' => 'application/json'}).to_return(status: 200, body: '', headers: {})
54
+ response = lead.create(attributes)
55
+ response.should eq('id')
56
+ end
57
+ end
58
+
59
+ end
@@ -0,0 +1,36 @@
1
+ require 'simplecov'
2
+
3
+ module SimpleCov::Configuration
4
+ def clean_filters
5
+ @filters = []
6
+ end
7
+ end
8
+
9
+ SimpleCov.configure do
10
+ clean_filters
11
+ load_adapter 'test_frameworks'
12
+ end
13
+
14
+ ENV["COVERAGE"] && SimpleCov.start do
15
+ add_filter "/.rvm/"
16
+ end
17
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
18
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
19
+
20
+ require 'rspec'
21
+ require 'leadcreator'
22
+ require 'faker'
23
+ require 'webmock/rspec'
24
+
25
+ WebMock.disable_net_connect!(allow_localhost: true)
26
+
27
+
28
+ # Requires supporting files with custom matchers and macros, etc,
29
+ # in ./support/ and its subdirectories.
30
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
31
+
32
+ RSpec.configure do |config|
33
+ config.before(:each) do
34
+ stub_request(:any, 'https://nax.salesforce.com/services/data/v26.0/sobjects/Lead').to_rack(FakeSalesforce)
35
+ end
36
+ end
@@ -0,0 +1,15 @@
1
+ require 'sinatra/base'
2
+
3
+ class FakeSalesforce < Sinatra::Base
4
+ post '/services/data/v26.0/sobjects/Lead' do
5
+ json_response 200, 'response.json'
6
+ end
7
+
8
+ private
9
+
10
+ def json_response(response_code, file_name)
11
+ content_type :json
12
+ status response_code
13
+ File.open(File.dirname(__FILE__) + '/fixtures/' + file_name, 'rb').read
14
+ end
15
+ end
@@ -0,0 +1,5 @@
1
+ {
2
+ "id" : "id",
3
+ "errors" : [ ],
4
+ "success" : true
5
+ }
metadata ADDED
@@ -0,0 +1,181 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: leadcreator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Bruno Silveira
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-07-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: restforce
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.8.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.8.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rdoc
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.12'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.12'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: jeweler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 2.0.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 2.0.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: faker
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.3'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.3'
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: Leadcreator its a gem that uses Restforce to create leads in an easy
126
+ way.
127
+ email: djbrunosilveira@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files:
131
+ - LICENSE.txt
132
+ - README.rdoc
133
+ files:
134
+ - ".document"
135
+ - ".idea/.name"
136
+ - ".idea/.rakeTasks"
137
+ - ".idea/encodings.xml"
138
+ - ".idea/leadcreator.iml"
139
+ - ".idea/misc.xml"
140
+ - ".idea/modules.xml"
141
+ - ".idea/scopes/scope_settings.xml"
142
+ - ".idea/vcs.xml"
143
+ - ".idea/workspace.xml"
144
+ - ".rspec"
145
+ - Gemfile
146
+ - Gemfile.lock
147
+ - LICENSE.txt
148
+ - README.rdoc
149
+ - Rakefile
150
+ - VERSION
151
+ - leadcreator.gemspec
152
+ - lib/leadcreator.rb
153
+ - spec/leadcreator_spec.rb
154
+ - spec/spec_helper.rb
155
+ - spec/support/fake_salesforce.rb
156
+ - spec/support/fixtures/response.json
157
+ homepage: http://github.com/brunossilveira/leadcreator-gem
158
+ licenses:
159
+ - MIT
160
+ metadata: {}
161
+ post_install_message:
162
+ rdoc_options: []
163
+ require_paths:
164
+ - lib
165
+ required_ruby_version: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: '0'
170
+ required_rubygems_version: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ requirements: []
176
+ rubyforge_project:
177
+ rubygems_version: 2.2.2
178
+ signing_key:
179
+ specification_version: 4
180
+ summary: Wrapper to create Leads through Salesforce Rest API
181
+ test_files: []