mobility 0.8.5 → 0.8.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
  SHA256:
3
- metadata.gz: 9a4242439552faaeb722300168bed5974112ff0f9a66452073b9f30e4a898f08
4
- data.tar.gz: 14d4bf01f2bed2faa7d795f809707453a44183f50516465dfeb0155bb7ce2061
3
+ metadata.gz: b206124671d37b9e03803eea1d445d80c376b9515d6afff9211ce0445b231d79
4
+ data.tar.gz: 9a551f69a4ea07ef31c3595a73252bcd1cac0b9f6d04aba8bce828c3fcc69d05
5
5
  SHA512:
6
- metadata.gz: 2b36d734faa10f98f87283f1b4a6577c6ba10762d175383ef0ca30c3fedb7b645595b2db02d63800a1545d9ddbcc537dea0ab00b7e31b36473bf625079654bf7
7
- data.tar.gz: 47e035ddd560973c01a64525f6206268eadfce2a38728b6195fae59cecc3822f61ccf72a824bcd14d29028fd943cf89a16d9c61c202a9e2a083cc7bc59125c71
6
+ metadata.gz: fd836eb649e62b7cd84a152247eee9afc9121693acaced6e142ed266a3db0c8d93070ffea72ecef1e9ca16a1dec871f90711363fb6b9a12d98d2bb03d20c2914
7
+ data.tar.gz: 41af09ed779d2d12d3c3c9bed1984bb650b57c0b7c6694aca64fe980d8c3029d1ad588d8c6c95b3ecbab24592fd6cbc633aef2be667ccb6016a442636df28b7f
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## 0.8
4
4
 
5
+ ### 0.8.6 (November 23, 2018)
6
+ * Fix destroying empty translations in AR table backend
7
+ ([#307](https://github.com/shioyama/mobility/pull/307)).
8
+ Thanks [Raúl Rodríguez](https://github.com/raulr)!
9
+
5
10
  ### 0.8.5 (November 1, 2018)
6
11
  * Load column_type when building node
7
12
  ([#301](https://github.com/shioyama/mobility/pull/301))
@@ -8,45 +8,15 @@ PATH
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionpack (5.2.1)
12
- actionview (= 5.2.1)
13
- activesupport (= 5.2.1)
14
- rack (~> 2.0)
15
- rack-test (>= 0.6.3)
16
- rails-dom-testing (~> 2.0)
17
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
18
- actionview (5.2.1)
19
- activesupport (= 5.2.1)
20
- builder (~> 3.1)
21
- erubi (~> 1.4)
22
- rails-dom-testing (~> 2.0)
23
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
24
- activemodel (5.2.1)
25
- activesupport (= 5.2.1)
26
- activerecord (5.2.1)
27
- activemodel (= 5.2.1)
28
- activesupport (= 5.2.1)
29
- arel (>= 9.0)
30
- activesupport (5.2.1)
31
- concurrent-ruby (~> 1.0, >= 1.0.2)
32
- i18n (>= 0.7, < 2)
33
- minitest (~> 5.1)
34
- tzinfo (~> 1.1)
35
- arel (9.0.0)
11
+ allocation_stats (0.1.5)
36
12
  benchmark-ips (2.7.2)
37
- builder (3.2.3)
38
13
  byebug (10.0.2)
39
14
  coderay (1.1.2)
40
15
  concurrent-ruby (1.0.5)
41
- crass (1.0.4)
42
16
  database_cleaner (1.7.0)
43
17
  diff-lcs (1.3)
44
- erubi (1.7.1)
45
18
  ffi (1.9.25)
46
19
  formatador (0.2.5)
47
- generator_spec (0.9.4)
48
- activesupport (>= 3.0.0)
49
- railties (>= 3.0.0)
50
20
  guard (2.14.2)
51
21
  formatador (>= 0.2.4)
52
22
  listen (>= 2.7, < 4.0)
@@ -67,17 +37,10 @@ GEM
67
37
  rb-fsevent (~> 0.9, >= 0.9.4)
68
38
  rb-inotify (~> 0.9, >= 0.9.7)
69
39
  ruby_dep (~> 1.2)
70
- loofah (2.2.2)
71
- crass (~> 1.0.2)
72
- nokogiri (>= 1.5.9)
73
40
  lumberjack (1.0.13)
74
41
  method_source (0.9.0)
75
- mini_portile2 (2.3.0)
76
- minitest (5.11.3)
77
42
  mysql2 (0.4.10)
78
43
  nenv (0.3.0)
79
- nokogiri (1.8.5)
80
- mini_portile2 (~> 2.3.0)
81
44
  notiffany (0.1.1)
82
45
  nenv (~> 0.1)
83
46
  shellany (~> 0.0)
@@ -89,19 +52,6 @@ GEM
89
52
  byebug (~> 10.0)
90
53
  pry (~> 0.10)
91
54
  rack (2.0.5)
92
- rack-test (1.1.0)
93
- rack (>= 1.0, < 3)
94
- rails-dom-testing (2.0.3)
95
- activesupport (>= 4.2.0)
96
- nokogiri (>= 1.6)
97
- rails-html-sanitizer (1.0.4)
98
- loofah (~> 2.2, >= 2.2.2)
99
- railties (5.2.1)
100
- actionpack (= 5.2.1)
101
- activesupport (= 5.2.1)
102
- method_source
103
- rake (>= 0.8.7)
104
- thor (>= 0.19.0, < 2.0)
105
55
  rake (12.3.1)
106
56
  rb-fsevent (0.10.3)
107
57
  rb-inotify (0.9.10)
@@ -122,30 +72,27 @@ GEM
122
72
  rspec-support (~> 3.8.0)
123
73
  rspec-support (3.8.0)
124
74
  ruby_dep (1.5.0)
75
+ sequel (5.14.0)
125
76
  shellany (0.0.1)
126
77
  sqlite3 (1.3.13)
127
78
  thor (0.20.0)
128
- thread_safe (0.3.6)
129
- tzinfo (1.2.5)
130
- thread_safe (~> 0.1)
131
79
  yard (0.9.16)
132
80
 
133
81
  PLATFORMS
134
82
  ruby
135
83
 
136
84
  DEPENDENCIES
137
- activerecord (>= 5.2.0.rc2, < 5.3)
85
+ allocation_stats
138
86
  benchmark-ips
139
87
  database_cleaner (~> 1.5, >= 1.5.3)
140
- generator_spec (~> 0.9.4)
141
88
  guard-rspec
142
89
  mobility!
143
90
  mysql2 (~> 0.4.9)
144
91
  pg (< 1.0)
145
92
  pry-byebug
146
- railties (>= 5.2.0.rc2, < 5.3)
147
93
  rake (~> 12, >= 12.2.1)
148
94
  rspec (~> 3.0)
95
+ sequel (>= 5.0.0, < 6.0.0)
149
96
  sqlite3
150
97
  yard (~> 0.9.0)
151
98
 
data/README.md CHANGED
@@ -51,7 +51,7 @@ Installation
51
51
  Add this line to your application's Gemfile:
52
52
 
53
53
  ```ruby
54
- gem 'mobility', '~> 0.8.5'
54
+ gem 'mobility', '~> 0.8.6'
55
55
  ```
56
56
 
57
57
  Mobility is cryptographically signed. To be sure the gem you install hasn't
@@ -299,7 +299,8 @@ columns to that table.
299
299
 
300
300
  # Destroys translations with all empty values
301
301
  def destroy_empty_translations(required_attributes)
302
- each { |t| destroy(t) if required_attributes.map(&t.method(:send)).none? }
302
+ empty_translations = select{ |t| required_attributes.map(&t.method(:send)).none? }
303
+ destroy(empty_translations) if empty_translations.any?
303
304
  end
304
305
  end
305
306
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mobility
4
- VERSION = "0.8.5"
4
+ VERSION = "0.8.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobility
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Salzberg
@@ -35,7 +35,7 @@ cert_chain:
35
35
  m46ezJjnr4uXgSNuTs+RdM6DtrKaFG2HuziSP+dzmWqZiUgj1eTACYsPwfF/Z1Z6
36
36
  2DiDkec/SK4qJBMlNYPo/PTZuh5m1jROtf/hyS0VXJmm+uWc
37
37
  -----END CERTIFICATE-----
38
- date: 2018-10-31 00:00:00.000000000 Z
38
+ date: 2018-11-23 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: request_store
metadata.gz.sig CHANGED
Binary file