egov_utils 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: 2b4f8d1e7b832f1e39353978e0227fe9fe46c337
4
- data.tar.gz: f196d70f9d135cd16c39dbc26d95348f35892868
3
+ metadata.gz: e61e380826e482ca30b993e52ebe1affea6e9c10
4
+ data.tar.gz: 58e85cd16d6d1feba124d7bb731417d680600d32
5
5
  SHA512:
6
- metadata.gz: d49271e7e63b551bc7ea734aca1051f53dd4927b9924bd02714a01b9b3f5b4cbab5b97b15bde02db068c544ccc6c17a13577f8d681057a3ec02533728dcfeab1
7
- data.tar.gz: dba5631a2185d2a7b26f9acbec86a57a1ecc74ba55a88ce734ecc71d1e91d83db1471d69f78957406d03782e6edb35e3913b2067cd898a9443b3a259c870dc41
6
+ metadata.gz: 88cb050c1d625faf5efbda62c3577054f9feb9dba1d2adf49e410a1dc62d60f9a7054590c3cbb8a6e519aa86a20c73a59450b90838a98c65185b9c75e7f62d6e
7
+ data.tar.gz: 8dd06b52581f81970c1cb89d455ec7cfb8c336086c6e9aa4c63489d30caf4496cda5d827d7bfecb2e36219ea90b09279e611f4e86ceef078cd5bf9e811b7c809
@@ -1,16 +1,14 @@
1
1
  module EgovUtils
2
2
  class FullAddress < AzaharaSchema::Attribute
3
3
 
4
- def initialize
5
- super(EgovUtils::Address, 'full_address', 'string')
6
- end
7
-
8
4
  def arel_field
9
5
  Arel::Nodes::NamedFunction.new 'CONCAT', [EgovUtils::Address.arel_table[:city], Arel::Nodes::SqlLiteral.new('\' \'') , EgovUtils::Address.arel_table[:street]]
10
6
  end
11
7
 
12
- def path
13
- 'full_address'
8
+ def build_json_options!(options)
9
+ options[:methods] ||= []
10
+ options[:methods] << 'full_address'
11
+ options
14
12
  end
15
13
 
16
14
  end
@@ -22,7 +22,7 @@ module EgovUtils
22
22
 
23
23
  def initialize_available_attributes
24
24
  @available_attributes ||= []
25
- @available_attributes << FullAddress.new
25
+ @available_attributes << FullAddress.new(model, 'full_address', 'string')
26
26
  super
27
27
  end
28
28
 
@@ -1,3 +1,3 @@
1
1
  module EgovUtils
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egov_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-17 00:00:00.000000000 Z
11
+ date: 2017-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails