mobility 0.8.9 → 0.8.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +90 -35
- data/Guardfile +23 -1
- data/README.md +1 -1
- data/lib/mobility/active_record/translation.rb +1 -1
- data/lib/mobility/version.rb +1 -1
- metadata +26 -27
- metadata.gz.sig +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd8355a959c296a84759983153fc1233f69aa78cc78228b4b20f0f467372da3d
|
4
|
+
data.tar.gz: 58da1ee48b36cd40c2e1b12edfea91ab22034090c57638f301908dcebf3f9145
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcf5520b40769d00e0a848f6a18865c74ec3a48b74a83c421ad5bca89e19e9ccb86e66b6d7538e57f88a44737bc9bcc0b122f3fa4d1659a0a596c21237b4e1f6
|
7
|
+
data.tar.gz: 12b2ea52538025521a472c9f1b03cc165e677534e559174076a1c6142a6f53b81406636d52715dab7c3aa91fdc16644f1f6e8e61739631e9f841a105cfa1394f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## 0.8
|
4
4
|
|
5
|
+
### 0.8.10 (February 11, 2020)
|
6
|
+
* Enforce case_sensitive comparison for Rails 6.1
|
7
|
+
([#333](https://github.com/shioyama/mobility/pull/333), thanks [morozRed](https://github.com/morozRed)!)
|
8
|
+
|
5
9
|
### 0.8.9 (October 25, 2019)
|
6
10
|
* Fix Dirty plugin to work with Rails 6
|
7
11
|
([#343](https://github.com/shioyama/mobility/pull/343),
|
data/Gemfile.lock
CHANGED
@@ -8,15 +8,47 @@ PATH
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
+
actionpack (4.2.11.1)
|
12
|
+
actionview (= 4.2.11.1)
|
13
|
+
activesupport (= 4.2.11.1)
|
14
|
+
rack (~> 1.6)
|
15
|
+
rack-test (~> 0.6.2)
|
16
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
17
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
18
|
+
actionview (4.2.11.1)
|
19
|
+
activesupport (= 4.2.11.1)
|
20
|
+
builder (~> 3.1)
|
21
|
+
erubis (~> 2.7.0)
|
22
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
23
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
24
|
+
activemodel (4.2.11.1)
|
25
|
+
activesupport (= 4.2.11.1)
|
26
|
+
builder (~> 3.1)
|
27
|
+
activerecord (4.2.11.1)
|
28
|
+
activemodel (= 4.2.11.1)
|
29
|
+
activesupport (= 4.2.11.1)
|
30
|
+
arel (~> 6.0)
|
31
|
+
activesupport (4.2.11.1)
|
32
|
+
i18n (~> 0.7)
|
33
|
+
minitest (~> 5.1)
|
34
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
35
|
+
tzinfo (~> 1.1)
|
36
|
+
arel (6.0.4)
|
11
37
|
benchmark-ips (2.7.2)
|
12
|
-
|
38
|
+
builder (3.2.3)
|
39
|
+
byebug (11.0.1)
|
13
40
|
coderay (1.1.2)
|
14
|
-
concurrent-ruby (1.
|
41
|
+
concurrent-ruby (1.1.5)
|
42
|
+
crass (1.0.5)
|
15
43
|
database_cleaner (1.7.0)
|
16
44
|
diff-lcs (1.3)
|
17
|
-
|
45
|
+
erubis (2.7.0)
|
46
|
+
ffi (1.11.1)
|
18
47
|
formatador (0.2.5)
|
19
|
-
|
48
|
+
generator_spec (0.9.4)
|
49
|
+
activesupport (>= 3.0.0)
|
50
|
+
railties (>= 3.0.0)
|
51
|
+
guard (2.15.1)
|
20
52
|
formatador (>= 0.2.4)
|
21
53
|
listen (>= 2.7, < 4.0)
|
22
54
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -30,59 +62,83 @@ GEM
|
|
30
62
|
guard (~> 2.1)
|
31
63
|
guard-compat (~> 1.1)
|
32
64
|
rspec (>= 2.99.0, < 4.0)
|
33
|
-
i18n (
|
65
|
+
i18n (0.9.5)
|
34
66
|
concurrent-ruby (~> 1.0)
|
35
|
-
listen (3.
|
36
|
-
rb-fsevent (~> 0.
|
37
|
-
rb-inotify (~> 0.9, >= 0.9.
|
38
|
-
|
67
|
+
listen (3.2.0)
|
68
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
69
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
70
|
+
loofah (2.3.1)
|
71
|
+
crass (~> 1.0.2)
|
72
|
+
nokogiri (>= 1.5.9)
|
39
73
|
lumberjack (1.0.13)
|
40
|
-
method_source (0.9.
|
74
|
+
method_source (0.9.2)
|
75
|
+
mini_portile2 (2.4.0)
|
76
|
+
minitest (5.12.2)
|
41
77
|
mysql2 (0.4.10)
|
42
78
|
nenv (0.3.0)
|
43
|
-
|
79
|
+
nokogiri (1.10.4)
|
80
|
+
mini_portile2 (~> 2.4.0)
|
81
|
+
notiffany (0.1.3)
|
44
82
|
nenv (~> 0.1)
|
45
83
|
shellany (~> 0.0)
|
46
84
|
pg (0.21.0)
|
47
|
-
pry (0.
|
85
|
+
pry (0.12.2)
|
48
86
|
coderay (~> 1.1.0)
|
49
87
|
method_source (~> 0.9.0)
|
50
|
-
pry-byebug (3.
|
51
|
-
byebug (~>
|
88
|
+
pry-byebug (3.7.0)
|
89
|
+
byebug (~> 11.0)
|
52
90
|
pry (~> 0.10)
|
53
|
-
rack (
|
54
|
-
|
91
|
+
rack (1.6.11)
|
92
|
+
rack-test (0.6.3)
|
93
|
+
rack (>= 1.0)
|
94
|
+
rails-deprecated_sanitizer (1.0.3)
|
95
|
+
activesupport (>= 4.2.0.alpha)
|
96
|
+
rails-dom-testing (1.0.9)
|
97
|
+
activesupport (>= 4.2.0, < 5.0)
|
98
|
+
nokogiri (~> 1.6)
|
99
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
100
|
+
rails-html-sanitizer (1.3.0)
|
101
|
+
loofah (~> 2.3)
|
102
|
+
railties (4.2.11.1)
|
103
|
+
actionpack (= 4.2.11.1)
|
104
|
+
activesupport (= 4.2.11.1)
|
105
|
+
rake (>= 0.8.7)
|
106
|
+
thor (>= 0.18.1, < 2.0)
|
107
|
+
rake (12.3.3)
|
55
108
|
rb-fsevent (0.10.3)
|
56
|
-
rb-inotify (0.
|
57
|
-
ffi (
|
109
|
+
rb-inotify (0.10.0)
|
110
|
+
ffi (~> 1.0)
|
58
111
|
request_store (1.4.1)
|
59
112
|
rack (>= 1.4)
|
60
|
-
rspec (3.
|
61
|
-
rspec-core (~> 3.
|
62
|
-
rspec-expectations (~> 3.
|
63
|
-
rspec-mocks (~> 3.
|
64
|
-
rspec-core (3.
|
65
|
-
rspec-support (~> 3.
|
66
|
-
rspec-expectations (3.
|
113
|
+
rspec (3.9.0)
|
114
|
+
rspec-core (~> 3.9.0)
|
115
|
+
rspec-expectations (~> 3.9.0)
|
116
|
+
rspec-mocks (~> 3.9.0)
|
117
|
+
rspec-core (3.9.0)
|
118
|
+
rspec-support (~> 3.9.0)
|
119
|
+
rspec-expectations (3.9.0)
|
67
120
|
diff-lcs (>= 1.2.0, < 2.0)
|
68
|
-
rspec-support (~> 3.
|
69
|
-
rspec-mocks (3.
|
121
|
+
rspec-support (~> 3.9.0)
|
122
|
+
rspec-mocks (3.9.0)
|
70
123
|
diff-lcs (>= 1.2.0, < 2.0)
|
71
|
-
rspec-support (~> 3.
|
72
|
-
rspec-support (3.
|
73
|
-
ruby_dep (1.5.0)
|
74
|
-
sequel (5.20.0)
|
124
|
+
rspec-support (~> 3.9.0)
|
125
|
+
rspec-support (3.9.0)
|
75
126
|
shellany (0.0.1)
|
76
127
|
sqlite3 (1.3.13)
|
77
|
-
thor (0.20.
|
78
|
-
|
128
|
+
thor (0.20.3)
|
129
|
+
thread_safe (0.3.6)
|
130
|
+
tzinfo (1.2.5)
|
131
|
+
thread_safe (~> 0.1)
|
132
|
+
yard (0.9.20)
|
79
133
|
|
80
134
|
PLATFORMS
|
81
135
|
ruby
|
82
136
|
|
83
137
|
DEPENDENCIES
|
138
|
+
activerecord (>= 4.2.6, < 5.0)
|
84
139
|
benchmark-ips
|
85
140
|
database_cleaner (~> 1.5, >= 1.5.3)
|
141
|
+
generator_spec (~> 0.9.4)
|
86
142
|
guard-rspec
|
87
143
|
mobility!
|
88
144
|
mysql2 (~> 0.4.9)
|
@@ -90,8 +146,7 @@ DEPENDENCIES
|
|
90
146
|
pry-byebug
|
91
147
|
rake (~> 12, >= 12.2.1)
|
92
148
|
rspec (~> 3.0)
|
93
|
-
|
94
|
-
sqlite3 (~> 1.3.6)
|
149
|
+
sqlite3 (~> 1.3.13)
|
95
150
|
yard (~> 0.9.0)
|
96
151
|
|
97
152
|
BUNDLED WITH
|
data/Guardfile
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
## Uncomment and set this to only include directories you want to watch
|
5
5
|
# directories %w(app lib config test spec features) \
|
6
|
-
# .select{|d| Dir.
|
6
|
+
# .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
7
7
|
|
8
8
|
## Note: if you are using the `directories` clause above and you are not
|
9
9
|
## watching the project directory ('.'), then you will want to move
|
@@ -40,6 +40,28 @@ guard :rspec, cmd: "bundle exec rspec" do
|
|
40
40
|
ruby = dsl.ruby
|
41
41
|
dsl.watch_spec_files_for(ruby.lib_files)
|
42
42
|
|
43
|
+
# Rails files
|
44
|
+
rails = dsl.rails(view_extensions: %w(erb haml slim))
|
45
|
+
dsl.watch_spec_files_for(rails.app_files)
|
46
|
+
dsl.watch_spec_files_for(rails.views)
|
47
|
+
|
48
|
+
watch(rails.controllers) do |m|
|
49
|
+
[
|
50
|
+
rspec.spec.call("routing/#{m[1]}_routing"),
|
51
|
+
rspec.spec.call("controllers/#{m[1]}_controller"),
|
52
|
+
rspec.spec.call("acceptance/#{m[1]}")
|
53
|
+
]
|
54
|
+
end
|
55
|
+
|
56
|
+
# Rails config changes
|
57
|
+
watch(rails.spec_helper) { rspec.spec_dir }
|
58
|
+
watch(rails.routes) { "#{rspec.spec_dir}/routing" }
|
59
|
+
watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
|
60
|
+
|
61
|
+
# Capybara features specs
|
62
|
+
watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") }
|
63
|
+
watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") }
|
64
|
+
|
43
65
|
# Turnip features and steps
|
44
66
|
watch(%r{^spec/acceptance/(.+)\.feature$})
|
45
67
|
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ module Mobility
|
|
6
6
|
|
7
7
|
belongs_to :translatable, polymorphic: true, touch: true
|
8
8
|
|
9
|
-
validates :key, presence: true, uniqueness: { scope: [:translatable_id, :translatable_type, :locale] }
|
9
|
+
validates :key, presence: true, uniqueness: { scope: [:translatable_id, :translatable_type, :locale], case_sensitive: true }
|
10
10
|
validates :translatable, presence: true
|
11
11
|
validates :locale, presence: true
|
12
12
|
end
|
data/lib/mobility/version.rb
CHANGED
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.
|
4
|
+
version: 0.8.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Salzberg
|
@@ -10,32 +10,31 @@ bindir: exe
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
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L
|
25
|
+
BgNVHQ8EBAMCBLAwHQYDVR0OBBYEFOO4919GTuKTQA2Klo2QO3jGlbJTMB0GA1Ud
|
26
|
+
EQQWMBSBEmNocmlzQGRlamltc3RhLmNvbTAdBgNVHRIEFjAUgRJjaHJpc0BkZWpp
|
27
|
+
bXN0YS5jb20wDQYJKoZIhvcNAQELBQADggGBADfIFBldH77wyUv2RZ1kwvuvRvpL
|
28
|
+
RNFdQlCbuVSn3abRAmc9rIsh80syhjWjYnml3guf+g2tYB1rU3NeTFRVupdvcUWJ
|
29
|
+
T6mITUeDHpNoxF6KAp3zSsdoBoEHdOBNH7Jpxp+L3a2LZ0k6fW12xEafmymOD3fp
|
30
|
+
BmIrE2Vr9aUec2Sk4fbKEYqsxhmXx+o8kKU7tnxVYMv4cX5X3yo45FA7Rh2JQuub
|
31
|
+
MBT+NALoYFaSTHWIr/4tAolWVt8NNGUKEokaFjjf5gAGM6piq6ohTHl5dCtcEPX1
|
32
|
+
klHOa2pIFwuUAWoVCpZa9XzRV5qz+mUrU70DF9dX6Cotv/sKOIxiGvQLnwzlSQWH
|
33
|
+
iXMqkM6Y5FSwViOQy4U2egDDSTB5a16iAnN7/qzqex6SYTsQdSmyc0mWCb9rkIoF
|
34
|
+
gSQml7TqcC6dZRsZRwYqzD9kUwdAJoCqno2CBUKs2l0yQAjFT36lRrVJznb7uWwa
|
35
|
+
xpPFnsrtyaZW6Dty8TSG3qzmeGpmpIotA8x1VA==
|
37
36
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
37
|
+
date: 2020-02-11 00:00:00.000000000 Z
|
39
38
|
dependencies:
|
40
39
|
- !ruby/object:Gem::Dependency
|
41
40
|
name: request_store
|
@@ -274,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
274
273
|
- !ruby/object:Gem::Version
|
275
274
|
version: '0'
|
276
275
|
requirements: []
|
277
|
-
rubygems_version: 3.0.
|
276
|
+
rubygems_version: 3.0.6
|
278
277
|
signing_key:
|
279
278
|
specification_version: 4
|
280
279
|
summary: Pluggable Ruby translation framework
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
^��M�s jk���
|
2
|
+
O浴^!�쾽4���c��J;�c���J|�%L��羐�`�ʾ��#�0�ON���� T��lFb��)/~�r|D�W�xV ��� F��-rLd�x�$|UZ�к���H�g�G�P�̹$p���L�,)Ƣ$�V8��ą1������R�K�$l�!�(��}���ܾ�Z�e�����%^�� ڪ�ώ���r��D-���eb'>m��}dHG8L=��
|