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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e61e380826e482ca30b993e52ebe1affea6e9c10
|
4
|
+
data.tar.gz: 58e85cd16d6d1feba124d7bb731417d680600d32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
13
|
-
|
8
|
+
def build_json_options!(options)
|
9
|
+
options[:methods] ||= []
|
10
|
+
options[:methods] << 'full_address'
|
11
|
+
options
|
14
12
|
end
|
15
13
|
|
16
14
|
end
|
data/lib/egov_utils/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|