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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c347d2cb881657a30cf9d29d8fc22d3e7b7cad53ef7d6e3657d401e3ba6f7db
4
- data.tar.gz: 454240eac73b967bc37a85c74f651cc13e83084f74eadb9f7fd070792d2418e3
3
+ metadata.gz: 157698dc2cfdf847b956ae45dd3ff8c447800053b07b3b68bf848feefc8e690f
4
+ data.tar.gz: b711720dae3e3eb480bcd630045daa56873b03f101b623b707c0eb8735b5936a
5
5
  SHA512:
6
- metadata.gz: 6d81cfb2d60312a20eba5f17e86b39f3a2f9ae12a8a572306e0f8f604657f2391555480d643587a7cff0b0dceb5c4467967384129e011844b658f06e227999eb
7
- data.tar.gz: 1f564a704a2dfabefb81b0bd135fccd38d737fc42917b81ff12642dd4f4752d2bfb494b7ede4d9060edaaad4db7d65e0ac9246d4963e82d2df801211eddb73b8
6
+ metadata.gz: 22843bcb2a06b050a0b38fe76a970097ea0e1082c2095414419ad1f32fd980f21f7a9853bb471c18a9c6c8bb5786652b0f42e3a6577d17ae103257ddf19da0fe
7
+ data.tar.gz: 0527fabbd7ed167e6431b8ce2bc9239cf99c13c6f0d2ac9e3074896423fa459453091b54471b43c74f17bbbc2c44af89452854c59313b071828eacc236940590
@@ -1,4 +1,2 @@
1
- ��H{v/:�e-i �:.'��!�/V<�
2
- .�� Hf�����I;ř�<�
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
+ LM$%�(��+)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
@@ -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
- else
15
- gem 'activerecord', '>= 5.2.0.rc2', '< 5.3'
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
@@ -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.1.3)
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
- generator_spec (0.9.4)
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.2)
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.12.2)
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.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)
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.3)
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
- sqlite3
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.1
98
+ 1.17.3
@@ -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
@@ -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.7'
54
+ gem 'mobility', '~> 0.8.8'
55
55
  ```
56
56
 
57
57
  Mobility is cryptographically signed. To be sure the gem you install hasn't
@@ -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
- #TODO avoid automatically including the inflector extension
73
- require "sequel/extensions/inflector"
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
@@ -14,10 +14,10 @@ module Mobility
14
14
 
15
15
  private
16
16
 
17
- def visit(object)
17
+ def visit(*args)
18
18
  super
19
19
  rescue TypeError
20
- visit_default(object)
20
+ visit_default(*args)
21
21
  end
22
22
 
23
23
  def visit_collection(_objects)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mobility
4
- VERSION = "0.8.7"
4
+ VERSION = "0.8.8"
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.7
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/MQ4wDAYD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S9X67Bslwtggy4qAdarGCucjGEhSaPY1WKjisfR4FMD+F2s
25
+ B8ecdtdQ1WrUPMaSqt0bKmb05XkXUuEPgQ8OFSnqqI/djQIDAQABo3cwdTAJBgNV
26
+ HRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUx6G+Mil2q/PCdUmStPcxKekY
27
+ 2rowHQYDVR0RBBYwFIESY2hyaXNAZGVqaW1hdGEuY29tMB0GA1UdEgQWMBSBEmNo
28
+ cmlzQGRlamltYXRhLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEAb6QN+TfzNfYu5FiY
29
+ M9UkremeV22FFCvdMUa3rYfHXEi+4B6hVAZ1SFuGnFg4hs55zGMAbn3U1TVxPpTh
30
+ ayCWP90Q3QQnuErBYd8a2kZQQst3JiM1SqzBP1sl0A2GgPxJnZ/86hxGX779kJEK
31
+ xaaUIfFpOZmCi8lU3PQPXo7VS8xQD1/mjDNJQ3siYHj1D2M2XTTBiN/Pmn13g/OL
32
+ iGNjSIVjF5vnyabdfN19bkMIP9SUSrRAJrUSBR83yeuHkMQVcIU2KqxCH6tFauyL
33
+ XF6FOrEM/w0DX76aDqvrJDngawLQdvLSxjDXGiw53RS1Y6ZoTSmiGNNlRqXAfMSY
34
+ rtbaaRGru2JGceCASdGGE4EBJCpAjSYtk1I4x+6rTaMd4Tnfl6zrHfTlASLpfxfL
35
+ cbyauX5dx2EyKhuidQ7l3jDOcpFUDWeaqqZllz/0i2LFBILAlYRy82zaspW5k6g3
36
+ YL4OF4e7t6EeQyBoILL36f8LpD9odUTRdNruhmuEtoQ+kchZ
37
37
  -----END CERTIFICATE-----
38
- date: 2018-11-30 00:00:00.000000000 Z
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
- rubyforge_project:
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