stellar_federation-rails 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/stellar_federation/api/v1/queries_controller.rb +1 -1
- data/app/models/stellar_federation/base_model.rb +2 -6
- data/app/models/stellar_federation/query.rb +3 -3
- data/app/models/stellar_federation/query_response.rb +3 -4
- data/lib/stellar_federation.rb +1 -1
- data/lib/stellar_federation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 585781258a8e4388c2ab4c92aae7a6955c93212aa07e95a3d7c8af5654f6dc3d
|
4
|
+
data.tar.gz: ff4f50083360e291de95048bc92798008ea6401ee49881d98744626c2386b8e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 806599864c9d3ff8ceac904a0fb6d5fc74bea7383530c8e1d740aafc49f09f37ad0be10c850354bb90d264f61e3d09886aefb4dba07de6bfd6d3cb72bc60696c
|
7
|
+
data.tar.gz: b5999dc3bbad67ff0817f0156efb91e98c31b366c4932ada2cff7458bdc13a6029407b3f8ae886d4b6ce544ade05d29d3df82b4ef2506b55f2985cfc0232607f
|
@@ -2,7 +2,7 @@ module StellarFederation
|
|
2
2
|
module Api
|
3
3
|
module V1
|
4
4
|
class QueriesController < ApplicationController
|
5
|
-
|
5
|
+
before_action :set_cors_headers, only: %i[index]
|
6
6
|
|
7
7
|
def index
|
8
8
|
result = Queries::ProcessQuery.(query_params: query_params)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module StellarFederation
|
2
2
|
class Query < BaseModel
|
3
3
|
|
4
|
-
attribute :address_id,
|
5
|
-
attribute :address_domain,
|
6
|
-
attribute :address_name,
|
4
|
+
attribute :address_id, String
|
5
|
+
attribute :address_domain, String
|
6
|
+
attribute :address_name, String
|
7
7
|
end
|
8
8
|
end
|
@@ -1,10 +1,9 @@
|
|
1
1
|
module StellarFederation
|
2
2
|
class QueryResponse < BaseModel
|
3
3
|
|
4
|
-
attribute :account_id,
|
5
|
-
attribute :memo,
|
6
|
-
attribute :stellar_address,
|
7
|
-
attr_writer :memo, :account_id, :stellar_address
|
4
|
+
attribute :account_id, String
|
5
|
+
attribute :memo, String
|
6
|
+
attribute :stellar_address, String
|
8
7
|
|
9
8
|
def memo_type
|
10
9
|
"text"
|
data/lib/stellar_federation.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stellar_federation-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ace Subido
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: virtus
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|