mobility 0.8.7 → 0.8.8
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 +2 -4
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile +5 -3
- data/Gemfile.lock +10 -64
- data/Guardfile +48 -0
- data/README.md +1 -1
- data/lib/mobility.rb +4 -2
- data/lib/mobility/arel/visitor.rb +2 -2
- data/lib/mobility/version.rb +1 -1
- metadata +25 -25
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 157698dc2cfdf847b956ae45dd3ff8c447800053b07b3b68bf848feefc8e690f
|
4
|
+
data.tar.gz: b711720dae3e3eb480bcd630045daa56873b03f101b623b707c0eb8735b5936a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22843bcb2a06b050a0b38fe76a970097ea0e1082c2095414419ad1f32fd980f21f7a9853bb471c18a9c6c8bb5786652b0f42e3a6577d17ae103257ddf19da0fe
|
7
|
+
data.tar.gz: 0527fabbd7ed167e6431b8ce2bc9239cf99c13c6f0d2ac9e3074896423fa459453091b54471b43c74f17bbbc2c44af89452854c59313b071828eacc236940590
|
checksums.yaml.gz.sig
CHANGED
@@ -1,4 +1,2 @@
|
|
1
|
-
��
|
2
|
-
|
3
|
-
Җ���=i<�P #�T5l��p%���ٯ���s7�گ���R@$��{<t
|
4
|
-
�T�:�+�9�u$�&��GEB a)���*eqQ[gz��6�F̮�uZ�A��� 7���o,��l͗C���0��O�^ y2�WM��{�j�`�ٳ���c�9��B/����N���Ni�\_$�^A:�gF����<a�wh��,\�'��0ʹ(JW�Z!�`UZ�#Eo��pFC�u0�B�d��&�*.���{|5(|J�'=&y]3?Ҥ�ye{^�|�m��&�+���O���z�g��U3����|�'m��Ajd��<st2���9��l\fp��R
|
1
|
+
��l�N)��$�4�� o6a�2�+�%O�<�E�dY�=�Ş�&��;;3�al)��l���9�3��ץ�2��?�d�Vzg �������f[�W*�2�57\����)�����
|
2
|
+
L�M$%�(��+)3)��6�Cy�\��!��(ZR�zi"E��v���d���ᤤeA�F5��u����a|��m(�$��^K�����Q�r'���-K�}.7�D��E� [?[GXIӳb��`�$^��������_�X��/Y@��@��%*�XL=�(�%9W+�>�,};��ow��C|kEV$�e��
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
|
3
3
|
## 0.8
|
4
4
|
|
5
|
+
### 0.8.8 (September 18, 2019)
|
6
|
+
* Accept any number of arguments to `Arel::Visitors::Visitor#visit`
|
7
|
+
([#339](https://github.com/shioyama/mobility/pull/339)). (Thanks to
|
8
|
+
[fauno](https://github.com/fauno) for [uncovering the
|
9
|
+
issue](https://github.com/shioyama/mobility/issues/334#issuecomment-526281737).)
|
10
|
+
|
5
11
|
### 0.8.7 (November 30, 2018)
|
6
12
|
* Handle case when attribute name passed to has_attribute is not a string
|
7
13
|
([#309](https://github.com/shioyama/mobility/pull/309)).
|
data/Gemfile
CHANGED
@@ -11,8 +11,10 @@ group :development, :test do
|
|
11
11
|
gem 'activerecord', '>= 4.2.6', '< 5.0'
|
12
12
|
elsif ENV['RAILS_VERSION'] == '5.1'
|
13
13
|
gem 'activerecord', '>= 5.1', '< 5.2'
|
14
|
-
|
15
|
-
gem 'activerecord', '>=
|
14
|
+
elsif ENV['RAILS_VERSION'] == 'latest'
|
15
|
+
gem 'activerecord', '>= 6.0.0.beta1'
|
16
|
+
else # Default is Rails 5.2
|
17
|
+
gem 'activerecord', '>= 5.2.0', '< 5.3'
|
16
18
|
gem 'railties', '>= 5.2.0.rc2', '< 5.3'
|
17
19
|
end
|
18
20
|
gem "generator_spec", '~> 0.9.4'
|
@@ -29,7 +31,7 @@ group :development, :test do
|
|
29
31
|
platforms :ruby do
|
30
32
|
gem 'guard-rspec'
|
31
33
|
gem 'pry-byebug'
|
32
|
-
gem 'sqlite3'
|
34
|
+
gem 'sqlite3', '~> 1.3.6'
|
33
35
|
gem 'mysql2', '~> 0.4.9'
|
34
36
|
gem 'pg', '< 1.0'
|
35
37
|
end
|
data/Gemfile.lock
CHANGED
@@ -8,46 +8,15 @@ PATH
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
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)
|
36
11
|
benchmark-ips (2.7.2)
|
37
|
-
builder (3.2.3)
|
38
12
|
byebug (10.0.2)
|
39
13
|
coderay (1.1.2)
|
40
|
-
concurrent-ruby (1.
|
41
|
-
crass (1.0.4)
|
14
|
+
concurrent-ruby (1.0.5)
|
42
15
|
database_cleaner (1.7.0)
|
43
16
|
diff-lcs (1.3)
|
44
|
-
erubi (1.7.1)
|
45
17
|
ffi (1.9.25)
|
46
18
|
formatador (0.2.5)
|
47
|
-
|
48
|
-
activesupport (>= 3.0.0)
|
49
|
-
railties (>= 3.0.0)
|
50
|
-
guard (2.15.0)
|
19
|
+
guard (2.14.2)
|
51
20
|
formatador (>= 0.2.4)
|
52
21
|
listen (>= 2.7, < 4.0)
|
53
22
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -67,41 +36,21 @@ GEM
|
|
67
36
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
68
37
|
rb-inotify (~> 0.9, >= 0.9.7)
|
69
38
|
ruby_dep (~> 1.2)
|
70
|
-
loofah (2.2.3)
|
71
|
-
crass (~> 1.0.2)
|
72
|
-
nokogiri (>= 1.5.9)
|
73
39
|
lumberjack (1.0.13)
|
74
|
-
method_source (0.9.
|
75
|
-
mini_portile2 (2.3.0)
|
76
|
-
minitest (5.11.3)
|
40
|
+
method_source (0.9.0)
|
77
41
|
mysql2 (0.4.10)
|
78
42
|
nenv (0.3.0)
|
79
|
-
nokogiri (1.8.5)
|
80
|
-
mini_portile2 (~> 2.3.0)
|
81
43
|
notiffany (0.1.1)
|
82
44
|
nenv (~> 0.1)
|
83
45
|
shellany (~> 0.0)
|
84
46
|
pg (0.21.0)
|
85
|
-
pry (0.
|
47
|
+
pry (0.11.3)
|
86
48
|
coderay (~> 1.1.0)
|
87
49
|
method_source (~> 0.9.0)
|
88
50
|
pry-byebug (3.6.0)
|
89
51
|
byebug (~> 10.0)
|
90
52
|
pry (~> 0.10)
|
91
|
-
rack (2.0.
|
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)
|
53
|
+
rack (2.0.5)
|
105
54
|
rake (12.3.1)
|
106
55
|
rb-fsevent (0.10.3)
|
107
56
|
rb-inotify (0.9.10)
|
@@ -122,22 +71,18 @@ GEM
|
|
122
71
|
rspec-support (~> 3.8.0)
|
123
72
|
rspec-support (3.8.0)
|
124
73
|
ruby_dep (1.5.0)
|
74
|
+
sequel (5.20.0)
|
125
75
|
shellany (0.0.1)
|
126
76
|
sqlite3 (1.3.13)
|
127
|
-
thor (0.20.
|
128
|
-
thread_safe (0.3.6)
|
129
|
-
tzinfo (1.2.5)
|
130
|
-
thread_safe (~> 0.1)
|
77
|
+
thor (0.20.0)
|
131
78
|
yard (0.9.16)
|
132
79
|
|
133
80
|
PLATFORMS
|
134
81
|
ruby
|
135
82
|
|
136
83
|
DEPENDENCIES
|
137
|
-
activerecord (>= 5.1, < 5.2)
|
138
84
|
benchmark-ips
|
139
85
|
database_cleaner (~> 1.5, >= 1.5.3)
|
140
|
-
generator_spec (~> 0.9.4)
|
141
86
|
guard-rspec
|
142
87
|
mobility!
|
143
88
|
mysql2 (~> 0.4.9)
|
@@ -145,8 +90,9 @@ DEPENDENCIES
|
|
145
90
|
pry-byebug
|
146
91
|
rake (~> 12, >= 12.2.1)
|
147
92
|
rspec (~> 3.0)
|
148
|
-
|
93
|
+
sequel (>= 5.0.0, < 6.0.0)
|
94
|
+
sqlite3 (~> 1.3.6)
|
149
95
|
yard (~> 0.9.0)
|
150
96
|
|
151
97
|
BUNDLED WITH
|
152
|
-
1.17.
|
98
|
+
1.17.3
|
data/Guardfile
ADDED
@@ -0,0 +1,48 @@
|
|
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
|
data/README.md
CHANGED
data/lib/mobility.rb
CHANGED
@@ -69,8 +69,10 @@ module Mobility
|
|
69
69
|
require "sequel"
|
70
70
|
raise VersionNotSupportedError, "Mobility is only compatible with Sequel 4.0 and greater" if ::Sequel::MAJOR < 4
|
71
71
|
require "sequel/plugins/mobility"
|
72
|
-
|
73
|
-
|
72
|
+
unless defined?(ActiveSupport::Inflector)
|
73
|
+
# TODO: avoid automatically including the inflector extension
|
74
|
+
require "sequel/extensions/inflector"
|
75
|
+
end
|
74
76
|
require "sequel/plugins/dirty"
|
75
77
|
require "mobility/sequel"
|
76
78
|
Loaded::Sequel = true
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Salzberg
|
@@ -12,30 +12,30 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MQ4wDAYDVQQDDAVjaHJp
|
14
14
|
czEYMBYGCgmSJomT8ixkARkWCGRlamltYXRhMRMwEQYKCZImiZPyLGQBGRYDY29t
|
15
|
-
|
15
|
+
MB4XDTE5MDkxNzIxNTE0NFoXDTIwMDkxNjIxNTE0NFowPzEOMAwGA1UEAwwFY2hy
|
16
16
|
aXMxGDAWBgoJkiaJk/IsZAEZFghkZWppbWF0YTETMBEGCgmSJomT8ixkARkWA2Nv
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
17
|
+
bTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBAJmJoeQUuRZn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bkMIP9SUSrRAJrUSBR83yeuHkMQVcIU2KqxCH6tFauyL
|
33
|
+
XF6FOrEM/w0DX76aDqvrJDngawLQdvLSxjDXGiw53RS1Y6ZoTSmiGNNlRqXAfMSY
|
34
|
+
rtbaaRGru2JGceCASdGGE4EBJCpAjSYtk1I4x+6rTaMd4Tnfl6zrHfTlASLpfxfL
|
35
|
+
cbyauX5dx2EyKhuidQ7l3jDOcpFUDWeaqqZllz/0i2LFBILAlYRy82zaspW5k6g3
|
36
|
+
YL4OF4e7t6EeQyBoILL36f8LpD9odUTRdNruhmuEtoQ+kchZ
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2019-09-17 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: request_store
|
@@ -151,6 +151,7 @@ files:
|
|
151
151
|
- CONTRIBUTING.md
|
152
152
|
- Gemfile
|
153
153
|
- Gemfile.lock
|
154
|
+
- Guardfile
|
154
155
|
- ISSUE_TEMPLATE.md
|
155
156
|
- LICENSE.txt
|
156
157
|
- README.md
|
@@ -273,8 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
273
274
|
- !ruby/object:Gem::Version
|
274
275
|
version: '0'
|
275
276
|
requirements: []
|
276
|
-
|
277
|
-
rubygems_version: 2.7.6
|
277
|
+
rubygems_version: 3.0.2
|
278
278
|
signing_key:
|
279
279
|
specification_version: 4
|
280
280
|
summary: Pluggable Ruby translation framework
|
metadata.gz.sig
CHANGED
Binary file
|