salesforce_client_app 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 417a5a3d0de60ac5382064e62e2000ea6e389442
4
- data.tar.gz: ae2afce90ceb6a3eb9043070d3fbc9f94cdebd3b
3
+ metadata.gz: 5aad4db0818fc89b57e224d53c577b1dfc2a4f90
4
+ data.tar.gz: c47339e4f05c47a7e0a4f60d55b4662c2e9d5d0f
5
5
  SHA512:
6
- metadata.gz: 031c9bbe912101c524da7acda0681ff76273722ae67e35125141da22e062ab9fccf9719cacd9e6c681e41be87036ff9522cf092bd3bd4aaff3740e5702ae30b9
7
- data.tar.gz: bd863a8b9a625943ac58d2da6919e835b74d087cac67cadbb8fa3bd9f9da378797cc74ec32b14f8e8dd18b0ffcd69e27e6beed79a92a3fd33773f6d8c89fe9ed
6
+ metadata.gz: b5f7e2d9e3f73ce416b35ba3bf85d69c97c223de1f475da8ed8c5dad79d6a4101690dc0f919753a521b7d9c306733fa0420a5e138deab4a8c1c1326cf9f0c3e6
7
+ data.tar.gz: e0859e8b7ba330813449f9bb3566337eaca198762304b45fd086544f63963ab65849217851f15fd7b769627e4cd4e04bf7ac7d6aaa76ffb9b5e7addf036d43b2
@@ -2,86 +2,8 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Salesforce Client App</title>
5
- <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
6
5
  </head>
7
6
  <body>
8
- <h2>Salesforce Client App</h2>
9
- <div>
10
- <a href='/login'>Login</a>
11
- </div>
12
- <div>
13
- <a href='/logout'>Logout</a>
14
- </div>
15
- <div>
16
- <a href='/connected'>Connected?</a>
17
- </div>
18
- <br>
19
- <div>
20
- <a href='/accounts'>Get Accounts</a>
21
- </div>
22
- <br>
23
- <div>
24
- <form action="/accounts" method="post">
25
- <div>
26
- NAME:<input type=text name="name">
27
- </div>
28
- <div>
29
- <input type="submit" name="submit" value="Create Account" />
30
- </div>
31
- </form>
32
- <br>
33
- <form id="update-form">
34
- <div>
35
- ID:<input type=text name="id">
36
- </div>
37
- <div>
38
- NAME:<input type=text name="name">
39
- </div>
40
- <div>
41
- <input type="button" onclick="doPut()" value="Update Account" />
42
- </div>
43
- </form>
44
- <br>
45
- <form id="delete-form">
46
- <div>
47
- ID:<input type=text name="id">
48
- </div>
49
- <div>
50
- <input type="button" onclick="doDelete()" value="Delete Account" />
51
- </div>
52
- </form>
53
- </div>
54
- <br>
55
- <div>
56
- <a href='/campaigns'>Get Campaigns</a>
57
- </div>
58
- <div>
59
- <a href='/leads'>Get Leads</a>
60
- </div>
61
- <script type="text/javascript">
62
- function doPut() {
63
- var id = $('#update-form [name=id]').val();
64
- var name = $('#update-form [name=name]').val();
65
- $.ajax({
66
- url: 'accounts',
67
- type: 'PUT',
68
- data: {
69
- id: id,
70
- name: name
71
- }
72
- });
73
- }
74
-
75
- function doDelete() {
76
- var id = $('#update-form [name=id]').val();
77
- $.ajax({
78
- url: 'accounts',
79
- type: 'DELETE',
80
- data: {
81
- id: id
82
- }
83
- });
84
- }
85
- </script>
7
+ <a href="/test">Go to Test page.</a>
86
8
  </body>
87
9
  </html>
@@ -0,0 +1,87 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Salesforce Client App</title>
5
+ <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
6
+ </head>
7
+ <body>
8
+ <h2>Salesforce Client App</h2>
9
+ <div>
10
+ <a href='/login'>Login</a>
11
+ </div>
12
+ <div>
13
+ <a href='/logout'>Logout</a>
14
+ </div>
15
+ <div>
16
+ <a href='/connected'>Connected?</a>
17
+ </div>
18
+ <br>
19
+ <div>
20
+ <a href='/accounts'>Get Accounts</a>
21
+ </div>
22
+ <br>
23
+ <div>
24
+ <form action="/accounts" method="post">
25
+ <div>
26
+ NAME:<input type=text name="name">
27
+ </div>
28
+ <div>
29
+ <input type="submit" name="submit" value="Create Account" />
30
+ </div>
31
+ </form>
32
+ <br>
33
+ <form id="update-form">
34
+ <div>
35
+ ID:<input type=text name="id">
36
+ </div>
37
+ <div>
38
+ NAME:<input type=text name="name">
39
+ </div>
40
+ <div>
41
+ <input type="button" onclick="doPut()" value="Update Account" />
42
+ </div>
43
+ </form>
44
+ <br>
45
+ <form id="delete-form">
46
+ <div>
47
+ ID:<input type=text name="id">
48
+ </div>
49
+ <div>
50
+ <input type="button" onclick="doDelete()" value="Delete Account" />
51
+ </div>
52
+ </form>
53
+ </div>
54
+ <br>
55
+ <div>
56
+ <a href='/campaigns'>Get Campaigns</a>
57
+ </div>
58
+ <div>
59
+ <a href='/leads'>Get Leads</a>
60
+ </div>
61
+ <script type="text/javascript">
62
+ function doPut() {
63
+ var id = $('#update-form [name=id]').val();
64
+ var name = $('#update-form [name=name]').val();
65
+ $.ajax({
66
+ url: '/accounts',
67
+ type: 'PUT',
68
+ data: {
69
+ id: id,
70
+ name: name
71
+ }
72
+ });
73
+ }
74
+
75
+ function doDelete() {
76
+ var id = $('#update-form [name=id]').val();
77
+ $.ajax({
78
+ url: '/accounts',
79
+ type: 'DELETE',
80
+ data: {
81
+ id: id
82
+ }
83
+ });
84
+ }
85
+ </script>
86
+ </body>
87
+ </html>
@@ -151,6 +151,10 @@ module SalesforceClientApp
151
151
  data.to_json
152
152
  end
153
153
 
154
+ get '/test' do
155
+ send_file File.join(settings.public_folder, 'test.html')
156
+ end
157
+
154
158
  end
155
159
 
156
160
  end
@@ -1,3 +1,3 @@
1
1
  module SalesforceClientApp
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesforce_client_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - KAWANO Shinobu
@@ -169,6 +169,7 @@ files:
169
169
  - example/Procfile
170
170
  - example/app.rb
171
171
  - example/public/index.html
172
+ - example/public/test.html
172
173
  - images/1.png
173
174
  - lib/salesforce_client_app.rb
174
175
  - lib/salesforce_client_app/cli.rb