rdstation-sf 0.2.0

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 865c2047ee197c37f5f8ec3de89030331c29d317
4
+ data.tar.gz: 4263c5b739824425e3fdebb8b7761f54e6fa2ad1
5
+ SHA512:
6
+ metadata.gz: 4bb55bd3ce693bf3f9ef8c60d835ee8f84f1fcd400a87c910ced2b0d9fc598cf07ebee66b6e62092f925c5c19e193282a19abdefe041e4256cd0ecda9669a7a3
7
+ data.tar.gz: 8989fd2bb080fba20d90371c928fc2e19f7d1578d868cc62fef7443255ff173b49c21388a78be25c684d998f248e57f3acfd83b3b72ae113065c1867c9c536bd
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Eduardo Miranda
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
data/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # rdstation-sf-gem
2
+ Test gem which integrates RDStation and SalesForce API to pass 'Pessoas' from one to another
data/Rakefile ADDED
@@ -0,0 +1,9 @@
1
+ require 'rake/clean'
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new do |_t|
5
+ task test: 'clean'
6
+ end
7
+
8
+ desc 'Run tests'
9
+ task default: :test
@@ -0,0 +1,27 @@
1
+ class RDStationSF
2
+
3
+ attr_accessor :client
4
+
5
+ def initialize ( config_file, user = nil, pwd = nil )
6
+ @client = Databasedotcom::Client.new(config_file) if @client.nil?
7
+ if !user.nil?
8
+ @client.authenticate :username=>user,:password=> pwd
9
+ end
10
+ self
11
+ end
12
+
13
+ def all ( class_name )
14
+ cls = @client.materialize(class_name)
15
+ cls.all
16
+ end
17
+
18
+ def first ( class_name )
19
+ cls = @client.materialize(class_name)
20
+ cls.first
21
+ end
22
+
23
+ def create ( class_name , attrs )
24
+ cls = @client.materialize(class_name)
25
+ client.create(class_name,attrs)
26
+ end
27
+ end
@@ -0,0 +1,3 @@
1
+ module RDStationSF
2
+ VERSION = '0.2.0'
3
+ end
@@ -0,0 +1,8 @@
1
+ require 'minitest/autorun'
2
+ require 'rdstation-sf'
3
+
4
+ class RDStationSFTest < Minitest::Test
5
+ def test_init
6
+ assert RDStationSF.new "config/databasedotcom.yml"
7
+ end
8
+ end
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rdstation-sf
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Eduardo MPS
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-05-16 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Test gem which integrates RDStation and SalesForce API to pass
14
+ 'Pessoas' from one to another
15
+ email: eduardo.mps@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - LICENSE
21
+ - README.md
22
+ - Rakefile
23
+ - lib/rdstation-sf.rb
24
+ - lib/rdstation-sf/version.rb
25
+ - test/test_rdstation-sf.rb
26
+ homepage: https://github.com/eduardomps/rdstation-sf-gem
27
+ licenses:
28
+ - MIT
29
+ metadata: {}
30
+ post_install_message:
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 2.2.3
47
+ signing_key:
48
+ specification_version: 4
49
+ summary: RDStation-Salesforce 'Pessoas' Integration
50
+ test_files: []