active_house 0.3.0 → 0.3.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
  SHA1:
3
- metadata.gz: 66cbd9730bdc57707ccb5173e7e6fea1cb56568c
4
- data.tar.gz: 4400a745fa25c0deda6feb6a7473457ee770f2ef
3
+ metadata.gz: fb3456c21e51479ac9a7381ebff75d340ee5bac8
4
+ data.tar.gz: f1110b0fe12d72ffbd18d1d09cfbe5e4dd28f07c
5
5
  SHA512:
6
- metadata.gz: c3b48fb5b14a6a97d0162c8d5317c92a2c3a28f8f485bdbf80067dacb6cf4b0ea5b5dd11e0dbda56d34fd48c794a126680d0e4df817a2c3b1be7c97a8af04beb
7
- data.tar.gz: 01569ba0b57269f5aeaae179d34b2dd0fe40d85525b277ae7f967267d37896f07092f44d5965d16be95cbb2a048bdd9ef2fe7cda52204b241e7bbf45ba912e3c
6
+ metadata.gz: c4bc7ca2dd45a9e9aeb2a8000b09450b9404a1489164a170d4bbc37d1180c9b08787269aa2f2e32f6ee05351d031ec5b7e4a5a0914d8e42ad089ee03efeaf818
7
+ data.tar.gz: 95af3b027b082e69d32157e4c167d02cd13e564cbdbe7bca511cd0378ba74ca71a7320478e26e3f7f2cb78d4b49af4c8c128b6cbfd352cb3315791cc630dbe60
data/.rubocop.yml CHANGED
@@ -14,7 +14,7 @@ Metrics/MethodLength:
14
14
  Metrics/AbcSize:
15
15
  Enabled: false
16
16
 
17
- Metrics/MethodLength:
17
+ Metrics/ModuleLength:
18
18
  Enabled: false
19
19
 
20
20
  Metrics/PerceivedComplexity:
@@ -6,9 +6,7 @@ module ActiveHouse
6
6
  private
7
7
 
8
8
  def build_array_join_query_part
9
- unless @array_joins.empty?
10
- "ARRAY JOIN #{@array_joins.join(', ')}"
11
- end
9
+ "ARRAY JOIN #{@array_joins.join(', ')}" unless @array_joins.empty?
12
10
  end
13
11
  end
14
12
 
@@ -70,11 +70,11 @@ module ActiveHouse
70
70
  end
71
71
 
72
72
  def [](key)
73
- @_attributes[key.to_sym]
73
+ get_attribute(key.to_sym)
74
74
  end
75
75
 
76
76
  def []=(key, value)
77
- @_attributes[key.to_sym] = value
77
+ set_attribute(key.to_sym, value)
78
78
  end
79
79
 
80
80
  def assign_attributes(params)
@@ -23,9 +23,9 @@ module ActiveHouse
23
23
  chain_query unions: new_unions
24
24
  end
25
25
 
26
- def update_union(name, &block)
26
+ def update_union(name)
27
27
  raise ArgumentError, "can't find union by name #{name}" unless @unions.key?(name)
28
- new_union = block.call union_for(name)
28
+ new_union = yield union_for(name)
29
29
  union(name, new_union)
30
30
  end
31
31
 
@@ -1,3 +1,3 @@
1
1
  module ActiveHouse
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_house
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Talakevich