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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b07fc81960b962583f800de00476b422ffd7af83e1399c6fd45d924cd04a612
4
- data.tar.gz: e97febc55d33d9955dfd50249e255ef4476e45a37e39675d56fe28b57fe76104
3
+ metadata.gz: 585781258a8e4388c2ab4c92aae7a6955c93212aa07e95a3d7c8af5654f6dc3d
4
+ data.tar.gz: ff4f50083360e291de95048bc92798008ea6401ee49881d98744626c2386b8e6
5
5
  SHA512:
6
- metadata.gz: 0ed55ed90a65fb031392a038bf5f415b5bda0f1b7b47f35312e2ae0d0e1923c11a330bb2f2b4b17579e5ec65911327b7b9c416db1a548c42d33b3dbaf408fd5f
7
- data.tar.gz: f66ec9d869e2ffdf40259624a28edbf8057122fd19c2a67d4db9f044f33269143b3087b6fabdf95fc342aa66d7baecec9ede3fbd465879a15090571206ad957c
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
- before_filter :set_cors_headers, only: %i[index]
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,9 +1,5 @@
1
1
  module StellarFederation
2
- module DryTypes
3
- include Dry::Types.module
4
- end
5
-
6
- class BaseModel < Dry::Struct
7
- constructor_type :schema
2
+ class BaseModel
3
+ include Virtus.model
8
4
  end
9
5
  end
@@ -1,8 +1,8 @@
1
1
  module StellarFederation
2
2
  class Query < BaseModel
3
3
 
4
- attribute :address_id, DryTypes::String.optional
5
- attribute :address_domain, DryTypes::String.optional
6
- attribute :address_name, DryTypes::String.optional
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, DryTypes::String.optional
5
- attribute :memo, DryTypes::String.optional
6
- attribute :stellar_address, DryTypes::String.optional
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"
@@ -1,6 +1,6 @@
1
1
  require "gem_config"
2
2
  require "light-service"
3
- require "dry-struct"
3
+ require "virtus"
4
4
  require "stellar_federation/engine"
5
5
 
6
6
  module StellarFederation
@@ -1,3 +1,3 @@
1
1
  module StellarFederation
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
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.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: dry-struct
56
+ name: virtus
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="