mobility 0.1.13 → 0.1.14

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
  SHA1:
3
- metadata.gz: 461e43683e242cc5055cd76569443b0d5df9e966
4
- data.tar.gz: 4f3035a319e5d910d466513a9d90e36a3584edc6
3
+ metadata.gz: 118e3d6777198cb2f765275f22636876be026bc6
4
+ data.tar.gz: f30e14ab8bbf9e3123494232c26fc41d5daa3901
5
5
  SHA512:
6
- metadata.gz: c5a346cb7c05ac59ecc1cfb834e47e3471c66734a7a0e1655bd4064f51811a07ff789199154102b7123569aff8b6228562127b4b8bf599792d6b88215ded2b7a
7
- data.tar.gz: 73e5e46907ae6315682f14dc0344180a72a95192808167339928ae10b99d6d4e5f4f1bd7c2b05fbc3922ddd9181ac53fd5fe19de76336ae4270df4b0cdcb8a34
6
+ metadata.gz: 866b6af79e61063c29ee5b4791cbf47433fb82f53c40f7603b466e7941c43444804eb4bbda197105be8d1572a6d6dfa03d427386a38867672837ce73c85d56cb
7
+ data.tar.gz: a90b4deb486ff6e23cc9d83ba6e068460cfb394cecc9c651c19ebe65b8493d1cdee01b83570de6e1d9c1d0d091fd84ee8fed4591abd4d3bd2e32ebe49ae99cf7
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## 0.1
4
4
 
5
+ ### 0.1.14 (April 27, 2017)
6
+ * Reset memoized backends when duplicating ([#26](https://github.com/shioyama/mobility/issues/25))
7
+
5
8
  ### 0.1.13 (April 19, 2017)
6
9
  * Allow passing `cache: false` to disable cache in getter
7
10
  ([b4858a](https://github.com/shioyama/mobility/commit/b4858acfb0cf5dae0761672269c248d0e3762bab))
data/Gemfile.lock CHANGED
@@ -1,50 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mobility (0.1.12)
5
- i18n (>= 0.6.10)
4
+ mobility (0.1.13)
5
+ i18n (>= 0.6.10, < 0.9)
6
6
  request_store (~> 1.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionpack (5.0.2)
12
- actionview (= 5.0.2)
13
- activesupport (= 5.0.2)
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.0.2)
19
- activesupport (= 5.0.2)
20
- builder (~> 3.1)
21
- erubis (~> 2.7.0)
22
- rails-dom-testing (~> 2.0)
23
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
24
- activemodel (5.0.2)
25
- activesupport (= 5.0.2)
26
- activerecord (5.0.2)
27
- activemodel (= 5.0.2)
28
- activesupport (= 5.0.2)
29
- arel (~> 7.0)
30
- activesupport (5.0.2)
31
- concurrent-ruby (~> 1.0, >= 1.0.2)
32
- i18n (~> 0.7)
33
- minitest (~> 5.1)
34
- tzinfo (~> 1.1)
35
- arel (7.1.4)
36
- builder (3.2.3)
37
11
  byebug (9.0.6)
38
12
  coderay (1.1.1)
39
- concurrent-ruby (1.0.5)
40
13
  database_cleaner (1.5.3)
41
14
  diff-lcs (1.3)
42
- erubis (2.7.0)
43
15
  ffi (1.9.18)
44
16
  formatador (0.2.5)
45
- generator_spec (0.9.3)
46
- activesupport (>= 3.0.0)
47
- railties (>= 3.0.0)
48
17
  guard (2.14.1)
49
18
  formatador (>= 0.2.4)
50
19
  listen (>= 2.7, < 4.0)
@@ -64,16 +33,10 @@ GEM
64
33
  rb-fsevent (~> 0.9, >= 0.9.4)
65
34
  rb-inotify (~> 0.9, >= 0.9.7)
66
35
  ruby_dep (~> 1.2)
67
- loofah (2.0.3)
68
- nokogiri (>= 1.5.9)
69
36
  lumberjack (1.0.11)
70
37
  method_source (0.8.2)
71
- mini_portile2 (2.1.0)
72
- minitest (5.10.1)
73
38
  mysql2 (0.3.21)
74
39
  nenv (0.3.0)
75
- nokogiri (1.7.1)
76
- mini_portile2 (~> 2.1.0)
77
40
  notiffany (0.1.1)
78
41
  nenv (~> 0.1)
79
42
  shellany (~> 0.0)
@@ -85,20 +48,6 @@ GEM
85
48
  pry-byebug (3.4.2)
86
49
  byebug (~> 9.0)
87
50
  pry (~> 0.10)
88
- rack (2.0.1)
89
- rack-test (0.6.3)
90
- rack (>= 1.0)
91
- rails-dom-testing (2.0.2)
92
- activesupport (>= 4.2.0, < 6.0)
93
- nokogiri (~> 1.6)
94
- rails-html-sanitizer (1.0.3)
95
- loofah (~> 2.0)
96
- railties (5.0.2)
97
- actionpack (= 5.0.2)
98
- activesupport (= 5.0.2)
99
- method_source
100
- rake (>= 0.8.7)
101
- thor (>= 0.18.1, < 2.0)
102
51
  rake (10.5.0)
103
52
  rb-fsevent (0.9.8)
104
53
  rb-inotify (0.9.8)
@@ -122,19 +71,14 @@ GEM
122
71
  slop (3.6.0)
123
72
  sqlite3 (1.3.13)
124
73
  thor (0.19.4)
125
- thread_safe (0.3.6)
126
- tzinfo (1.2.3)
127
- thread_safe (~> 0.1)
128
74
  yard (0.9.8)
129
75
 
130
76
  PLATFORMS
131
77
  ruby
132
78
 
133
79
  DEPENDENCIES
134
- activerecord (>= 5.0, < 5.1)
135
80
  bundler (~> 1.12)
136
- database_cleaner (~> 1.5.3)
137
- generator_spec (~> 0.9.3)
81
+ database_cleaner (~> 1.5, >= 1.5.3)
138
82
  guard-rspec
139
83
  mobility!
140
84
  mysql2 (~> 0.3.10)
data/Guardfile CHANGED
@@ -40,28 +40,6 @@ 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
-
65
43
  # Turnip features and steps
66
44
  watch(%r{^spec/acceptance/(.+)\.feature$})
67
45
  watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
data/README.md CHANGED
@@ -46,7 +46,7 @@ Installation
46
46
  Add this line to your application's Gemfile:
47
47
 
48
48
  ```ruby
49
- gem 'mobility', '~> 0.1.13'
49
+ gem 'mobility', '~> 0.1.14'
50
50
  ```
51
51
 
52
52
  To translate attributes on a model, include (or extend) `Mobility`, then call
data/lib/mobility.rb CHANGED
@@ -86,6 +86,11 @@ module Mobility
86
86
  send(Backend.method_name(attribute))
87
87
  end
88
88
 
89
+ def initialize_dup(other)
90
+ @mobility_backends = nil
91
+ super
92
+ end
93
+
89
94
  class << self
90
95
  include Translates
91
96
 
@@ -1,3 +1,3 @@
1
1
  module Mobility
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobility
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Salzberg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-19 00:00:00.000000000 Z
11
+ date: 2017-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: request_store