mobility 0.8.6 → 0.8.7
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 +63 -11
- data/README.md +1 -1
- data/lib/mobility/plugins/active_record/dirty.rb +1 -1
- data/lib/mobility/version.rb +1 -1
- metadata +3 -4
- metadata.gz.sig +0 -0
- data/Guardfile +0 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c347d2cb881657a30cf9d29d8fc22d3e7b7cad53ef7d6e3657d401e3ba6f7db
|
4
|
+
data.tar.gz: 454240eac73b967bc37a85c74f651cc13e83084f74eadb9f7fd070792d2418e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d81cfb2d60312a20eba5f17e86b39f3a2f9ae12a8a572306e0f8f604657f2391555480d643587a7cff0b0dceb5c4467967384129e011844b658f06e227999eb
|
7
|
+
data.tar.gz: 1f564a704a2dfabefb81b0bd135fccd38d737fc42917b81ff12642dd4f4752d2bfb494b7ede4d9060edaaad4db7d65e0ac9246d4963e82d2df801211eddb73b8
|
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.7 (November 30, 2018)
|
6
|
+
* Handle case when attribute name passed to has_attribute is not a string
|
7
|
+
([#309](https://github.com/shioyama/mobility/pull/309)).
|
8
|
+
|
5
9
|
### 0.8.6 (November 23, 2018)
|
6
10
|
* Fix destroying empty translations in AR table backend
|
7
11
|
([#307](https://github.com/shioyama/mobility/pull/307)).
|
data/Gemfile.lock
CHANGED
@@ -8,16 +8,46 @@ PATH
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
|
11
|
+
actionpack (5.1.6.1)
|
12
|
+
actionview (= 5.1.6.1)
|
13
|
+
activesupport (= 5.1.6.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.1.6.1)
|
19
|
+
activesupport (= 5.1.6.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.1.6.1)
|
25
|
+
activesupport (= 5.1.6.1)
|
26
|
+
activerecord (5.1.6.1)
|
27
|
+
activemodel (= 5.1.6.1)
|
28
|
+
activesupport (= 5.1.6.1)
|
29
|
+
arel (~> 8.0)
|
30
|
+
activesupport (5.1.6.1)
|
31
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
32
|
+
i18n (>= 0.7, < 2)
|
33
|
+
minitest (~> 5.1)
|
34
|
+
tzinfo (~> 1.1)
|
35
|
+
arel (8.0.0)
|
12
36
|
benchmark-ips (2.7.2)
|
37
|
+
builder (3.2.3)
|
13
38
|
byebug (10.0.2)
|
14
39
|
coderay (1.1.2)
|
15
|
-
concurrent-ruby (1.
|
40
|
+
concurrent-ruby (1.1.3)
|
41
|
+
crass (1.0.4)
|
16
42
|
database_cleaner (1.7.0)
|
17
43
|
diff-lcs (1.3)
|
44
|
+
erubi (1.7.1)
|
18
45
|
ffi (1.9.25)
|
19
46
|
formatador (0.2.5)
|
20
|
-
|
47
|
+
generator_spec (0.9.4)
|
48
|
+
activesupport (>= 3.0.0)
|
49
|
+
railties (>= 3.0.0)
|
50
|
+
guard (2.15.0)
|
21
51
|
formatador (>= 0.2.4)
|
22
52
|
listen (>= 2.7, < 4.0)
|
23
53
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -37,21 +67,41 @@ GEM
|
|
37
67
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
38
68
|
rb-inotify (~> 0.9, >= 0.9.7)
|
39
69
|
ruby_dep (~> 1.2)
|
70
|
+
loofah (2.2.3)
|
71
|
+
crass (~> 1.0.2)
|
72
|
+
nokogiri (>= 1.5.9)
|
40
73
|
lumberjack (1.0.13)
|
41
|
-
method_source (0.9.
|
74
|
+
method_source (0.9.2)
|
75
|
+
mini_portile2 (2.3.0)
|
76
|
+
minitest (5.11.3)
|
42
77
|
mysql2 (0.4.10)
|
43
78
|
nenv (0.3.0)
|
79
|
+
nokogiri (1.8.5)
|
80
|
+
mini_portile2 (~> 2.3.0)
|
44
81
|
notiffany (0.1.1)
|
45
82
|
nenv (~> 0.1)
|
46
83
|
shellany (~> 0.0)
|
47
84
|
pg (0.21.0)
|
48
|
-
pry (0.
|
85
|
+
pry (0.12.2)
|
49
86
|
coderay (~> 1.1.0)
|
50
87
|
method_source (~> 0.9.0)
|
51
88
|
pry-byebug (3.6.0)
|
52
89
|
byebug (~> 10.0)
|
53
90
|
pry (~> 0.10)
|
54
|
-
rack (2.0.
|
91
|
+
rack (2.0.6)
|
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.1.6.1)
|
100
|
+
actionpack (= 5.1.6.1)
|
101
|
+
activesupport (= 5.1.6.1)
|
102
|
+
method_source
|
103
|
+
rake (>= 0.8.7)
|
104
|
+
thor (>= 0.18.1, < 2.0)
|
55
105
|
rake (12.3.1)
|
56
106
|
rb-fsevent (0.10.3)
|
57
107
|
rb-inotify (0.9.10)
|
@@ -72,19 +122,22 @@ GEM
|
|
72
122
|
rspec-support (~> 3.8.0)
|
73
123
|
rspec-support (3.8.0)
|
74
124
|
ruby_dep (1.5.0)
|
75
|
-
sequel (5.14.0)
|
76
125
|
shellany (0.0.1)
|
77
126
|
sqlite3 (1.3.13)
|
78
|
-
thor (0.20.
|
127
|
+
thor (0.20.3)
|
128
|
+
thread_safe (0.3.6)
|
129
|
+
tzinfo (1.2.5)
|
130
|
+
thread_safe (~> 0.1)
|
79
131
|
yard (0.9.16)
|
80
132
|
|
81
133
|
PLATFORMS
|
82
134
|
ruby
|
83
135
|
|
84
136
|
DEPENDENCIES
|
85
|
-
|
137
|
+
activerecord (>= 5.1, < 5.2)
|
86
138
|
benchmark-ips
|
87
139
|
database_cleaner (~> 1.5, >= 1.5.3)
|
140
|
+
generator_spec (~> 0.9.4)
|
88
141
|
guard-rspec
|
89
142
|
mobility!
|
90
143
|
mysql2 (~> 0.4.9)
|
@@ -92,9 +145,8 @@ DEPENDENCIES
|
|
92
145
|
pry-byebug
|
93
146
|
rake (~> 12, >= 12.2.1)
|
94
147
|
rspec (~> 3.0)
|
95
|
-
sequel (>= 5.0.0, < 6.0.0)
|
96
148
|
sqlite3
|
97
149
|
yard (~> 0.9.0)
|
98
150
|
|
99
151
|
BUNDLED WITH
|
100
|
-
1.
|
152
|
+
1.17.1
|
data/README.md
CHANGED
@@ -49,7 +49,7 @@ AR::Dirty plugin adds support for the following persistence-specific methods
|
|
49
49
|
method_name_regex = /\A(#{names.join('|')})_([a-z]{2}(_[a-z]{2})?)(=?|\??)\z/.freeze
|
50
50
|
has_attribute = Module.new do
|
51
51
|
define_method :has_attribute? do |attr_name|
|
52
|
-
super(attr_name) || !!method_name_regex.match(attr_name)
|
52
|
+
super(attr_name) || (String === attr_name && !!method_name_regex.match(attr_name))
|
53
53
|
end
|
54
54
|
end
|
55
55
|
model_class.extend has_attribute
|
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.7
|
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-11-
|
38
|
+
date: 2018-11-30 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: request_store
|
@@ -151,7 +151,6 @@ files:
|
|
151
151
|
- CONTRIBUTING.md
|
152
152
|
- Gemfile
|
153
153
|
- Gemfile.lock
|
154
|
-
- Guardfile
|
155
154
|
- ISSUE_TEMPLATE.md
|
156
155
|
- LICENSE.txt
|
157
156
|
- README.md
|
@@ -275,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
275
274
|
version: '0'
|
276
275
|
requirements: []
|
277
276
|
rubyforge_project:
|
278
|
-
rubygems_version: 2.7.
|
277
|
+
rubygems_version: 2.7.6
|
279
278
|
signing_key:
|
280
279
|
specification_version: 4
|
281
280
|
summary: Pluggable Ruby translation framework
|
metadata.gz.sig
CHANGED
Binary file
|
data/Guardfile
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
# A sample Guardfile
|
2
|
-
# More info at https://github.com/guard/guard#readme
|
3
|
-
|
4
|
-
## Uncomment and set this to only include directories you want to watch
|
5
|
-
# directories %w(app lib config test spec features) \
|
6
|
-
# .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
7
|
-
|
8
|
-
## Note: if you are using the `directories` clause above and you are not
|
9
|
-
## watching the project directory ('.'), then you will want to move
|
10
|
-
## the Guardfile to a watched dir and symlink it back, e.g.
|
11
|
-
#
|
12
|
-
# $ mkdir config
|
13
|
-
# $ mv Guardfile config/
|
14
|
-
# $ ln -s config/Guardfile .
|
15
|
-
#
|
16
|
-
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
17
|
-
|
18
|
-
# Note: The cmd option is now required due to the increasing number of ways
|
19
|
-
# rspec may be run, below are examples of the most common uses.
|
20
|
-
# * bundler: 'bundle exec rspec'
|
21
|
-
# * bundler binstubs: 'bin/rspec'
|
22
|
-
# * spring: 'bin/rspec' (This will use spring if running and you have
|
23
|
-
# installed the spring binstubs per the docs)
|
24
|
-
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
25
|
-
# * 'just' rspec: 'rspec'
|
26
|
-
|
27
|
-
guard :rspec, cmd: "bundle exec rspec" do
|
28
|
-
require "guard/rspec/dsl"
|
29
|
-
dsl = Guard::RSpec::Dsl.new(self)
|
30
|
-
|
31
|
-
# Feel free to open issues for suggestions and improvements
|
32
|
-
|
33
|
-
# RSpec files
|
34
|
-
rspec = dsl.rspec
|
35
|
-
watch(rspec.spec_helper) { rspec.spec_dir }
|
36
|
-
watch(rspec.spec_support) { rspec.spec_dir }
|
37
|
-
watch(rspec.spec_files)
|
38
|
-
|
39
|
-
# Ruby files
|
40
|
-
ruby = dsl.ruby
|
41
|
-
dsl.watch_spec_files_for(ruby.lib_files)
|
42
|
-
|
43
|
-
# Turnip features and steps
|
44
|
-
watch(%r{^spec/acceptance/(.+)\.feature$})
|
45
|
-
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
46
|
-
Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
|
47
|
-
end
|
48
|
-
end
|