raas-client-rails 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 94c1331c5b736d7cec268742acd323958041d1a1ee484a5064594e8329ac9898
4
- data.tar.gz: aaef60ac317c3ede890f2558f22e1887ddc209390856d54231c180239acf1013
3
+ metadata.gz: b56a61195736f945cd1e9a2f5779a6d3db9386cc7cbcb8c77da0d68dd15f55f8
4
+ data.tar.gz: 7c754de285006edc369ae879e11caf3cd42d86cb072209ba4767567b114bad16
5
5
  SHA512:
6
- metadata.gz: 0b3b5c343c7b6be739cb2ebadeca642767370e0daa73820c9f6784ea23a21d94779b061674ec8a97c22ef2c1f582b44df85512718f4e621d840972a5f8d1b943
7
- data.tar.gz: 5c2e4dd67fd2d05ceb8c82df9016ed6c4d60162db928027f4ac8adff044c5646c6d22ef3ecc8c62d590b3dce7bd00c53bdf80a50ad302e34854382a987c38460
6
+ metadata.gz: 7a9f769596c3fe3a69889adadaa56b0107a3ec6da4dae4b12e623bedca50b7b4437408d72f23088aa384d0c03e9771032dffe72199fcd1e9bbbf4638ef4a6026
7
+ data.tar.gz: d16bb03dce672c082439305a686a8df2f0b2c551264d3a8841039ba11e9b98e0e1b53685206d329c4cf6b56bc1b3e9235c4d7d6f028829440b07310784a42fbc
data/README.md CHANGED
@@ -6,9 +6,10 @@ Adding extra endpoints to access RaaS. These endpoints allows you to fetch exter
6
6
 
7
7
  ### Set your Credentials
8
8
 
9
- `landscape`, `application`, `token` should be set correctly.
10
- You can manage these variables by adding external files such as **RaaS.yml** on your parents app. Of course, you can directly hard code these values on you app as follows.
11
- These credentials are provided by SuTech. Please, ask [SuTech](https://www.sutech.co.jp/) adminisators for further inquiries.
9
+ `landscape`, `application`, `token` are mandatory to interact with RaaS.
10
+ Basically, these variables can be assigned externally with files or hard-code.
11
+ Following is the example of how you set these variables on your code.
12
+ These credentials would be provided by SuTech. Please, ask [SuTech](https://www.sutech.co.jp/) adminisators for further information.
12
13
 
13
14
  ```ruby
14
15
  Raas::Client::Rails::Engine.config.raas_client_rails.landscape = 'LANDSCAPE'
@@ -28,21 +29,32 @@ Once you install your gem, your application has several extra endpoints to inter
28
29
 
29
30
  ## Installation
30
31
 
31
- Add this line to your application's Gemfile:
32
+ The client is provided as [RubyGem](https://rubygems.org/gems/raas-client-rails),
33
+ and this provided as Rails Engine. you should follow the steps below to make the API work
34
+
35
+ 1. Update your gem file
32
36
 
33
37
  ```ruby
34
38
  gem "raas-client-rails"
35
39
  ```
36
40
 
37
- And then execute:
41
+ 2. install gem
42
+
38
43
  ```bash
39
- $ bundle
44
+ $ bundle install
40
45
  ```
41
46
 
42
- Or install it yourself as:
43
- ```bash
44
- $ gem install raas-client-rails
47
+ 3. mount endPoint on `config/routes.rb`
48
+
49
+ ```ruby
50
+ mount Raas::Client::Rails::Engine => "[PATH]"
45
51
  ```
46
52
 
53
+ 4. Launch your rails server
54
+
55
+ 5. then you can use this with...
56
+
57
+ `/PATH/raas/endPointList`
58
+
47
59
  ## License
48
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
60
+ All the patents belong to SuTech
@@ -3,6 +3,7 @@ module Raas::Client::Rails
3
3
  require_relative 'rest_client'
4
4
 
5
5
  class RaasController < ApplicationController
6
+ skip_before_action :verify_authenticity_token
6
7
 
7
8
  MSA_REPORT = "report";
8
9
  MSA_DT = "datatraveler";
@@ -15,8 +16,8 @@ module Raas::Client::Rails
15
16
 
16
17
  def prepare(params)
17
18
  # seven arguments are needed to make this work
18
- application = Raas::Client::Rails::Engine.config.raas_client_rails.landscape
19
- landscape = Raas::Client::Rails::Engine.config.raas_client_rails.application
19
+ application = Raas::Client::Rails::Engine.config.raas_client_rails.application
20
+ landscape = Raas::Client::Rails::Engine.config.raas_client_rails.landscape
20
21
  token = Raas::Client::Rails::Engine.config.raas_client_rails.token
21
22
  @backUrl = params[:backUrl]
22
23
  @subUrl = params[:subUrl]
@@ -1,7 +1,7 @@
1
1
  module Raas
2
2
  module Client
3
3
  module Rails
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raas-client-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunao Suzuki
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-20 00:00:00.000000000 Z
11
+ date: 2023-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -57,7 +57,7 @@ metadata:
57
57
  homepage_uri: https://www.sutech.co.jp/
58
58
  source_code_uri: https://github.com/SuTechDevelop/raas-client-for-rails
59
59
  changelog_uri: https://github.com/SuTechDevelop/raas-client-for-rails/activity
60
- post_install_message:
60
+ post_install_message:
61
61
  rdoc_options: []
62
62
  require_paths:
63
63
  - lib
@@ -72,8 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
- rubygems_version: 3.2.15
76
- signing_key:
75
+ rubygems_version: 3.1.6
76
+ signing_key:
77
77
  specification_version: 4
78
78
  summary: Summary
79
79
  test_files: []