copy_tuner_client 0.5.0 → 0.5.1

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: 3ce8e1021c4c5609b99be94fa4b0d9e759a6cfe9
4
- data.tar.gz: bf770a959151446f37a7482b8f596a01c2664cf4
3
+ metadata.gz: b3cc0c109c21c0ab75746e4e1c589aba3858137c
4
+ data.tar.gz: 9ef00204b7dd815fbf10578c53c78940820304b7
5
5
  SHA512:
6
- metadata.gz: 3fb2160d11fc2738fb536d2be04f423d0de8888756a18d7b8fd68d4bba5e75189e026d12fc9396e9262009d2d17187eac114d09c8120f7da36005f12b47f9062
7
- data.tar.gz: 45967ed45a23863e55040c53aee2d6a3c3e2c7c781a845fd4511ac2b606a993432be8b03dcd5716bd02b2042bb1f9847c19de2e73ef64e7c1d46b5e0a8504952
6
+ metadata.gz: eea5da6db9d62a3aad0fb45d75d6f0cfb8ae8b7d8b0a8bc03cd4b381ce36a5d5118ca6c54d0c5bd873337b1e8fb4af3d6da5099beb3d5466b9faad7a26803011
7
+ data.tar.gz: 52365f67f27781abde7842b9748f294a5f2a224968d564dcdc366ff1f8a05634d531354ae08bb6519e0e2d9455ce34b85c73b67e6a79e35c37c55849876d507c
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
+ ## 0.5.1
2
+
3
+ - Do not upload downloaded keys
4
+
1
5
  ## 0.5.0
6
+
2
7
  - Drop support for ruby 2.3
3
8
  - Add tt helper
4
9
  - Add copy_tuner:detect_conflict_keys task
@@ -9,79 +14,98 @@
9
14
  - Download translation when initialization
10
15
 
11
16
  ## 0.4.11
17
+
12
18
  - changes
13
19
  - Fix hide toggle button on mobile device.
14
20
 
15
21
  ## 0.4.10
22
+
16
23
  - changes
17
24
  - Hide copyray bar on all media.
18
25
 
19
26
  ## 0.4.9
27
+
20
28
  - changes
21
29
  - Smaller toggle button.
22
30
  - Hide toggle button on mobile device.
23
31
 
24
32
  ## 0.4.8
33
+
25
34
  - changes
26
35
  - Support passenger 5.3.x
27
36
 
28
37
  ## 0.4.7
38
+
29
39
  - changes
30
40
  - Compatibile with bullet gem (rewrap response with ActionDispatch::Response::RackBody)
31
41
 
32
42
  ## 0.4.6
43
+
33
44
  - changes
34
45
  - Performance imporovement (sync with server asynchronously)
35
46
  - Add config.middleware_position
36
47
 
37
48
  ## 0.4.5
49
+
38
50
  - changes
39
51
  - Fix deprecated css.
40
52
 
41
53
  ## 0.4.4
54
+
42
55
  - bug fix
43
56
  - Don't upload resolved default values.
44
57
 
45
58
  ## 0.4.3
59
+
46
60
  - bug fix
47
61
  - Start poller thread regardless of puma mode. #39
48
62
 
49
63
  ## 0.4.2
64
+
50
65
  - changes
51
66
  - span tag is no longer added to translation text.
52
67
 
53
68
  ## 0.4.1
69
+
54
70
  - bug fixes
71
+
55
72
  - js injection failed if jquery is not used. #33
56
73
  - Fix some js error. #34
57
74
  - Wrong key is displayed if scoped option is used. #35
58
75
 
59
76
  - deprecation
60
77
  - config.copyray_js_injection_regexp_for_debug is no longer needed.
61
- - config.copyray_js_injection_regexp_for_precompiled is no longer needed.
78
+ - config.copyray_js_injection_regexp_for_precompiled is no longer needed.
62
79
 
63
80
  ## 0.4.0
81
+
64
82
  - Remove jQuery dependency.
65
83
 
66
84
  ## 0.3.5
85
+
67
86
  - Support Rails 5.1
68
87
 
69
88
  ## 0.3.4
89
+
70
90
  - Use Logger to /dev/null as default when rails console
71
91
 
72
92
  ## 0.3.3
93
+
73
94
  - Add config.locales. (#24)
74
95
  - Fix initialization order bug. (#25)
75
96
 
76
97
  ## 0.3.2
98
+
77
99
  - Support I18n.t :scope option.
78
100
  - Update copyray_js_injection_regexp_for_debug.
79
101
 
80
102
  ## 0.3.1
103
+
81
104
  - Add search box to copyray bar.
82
105
  - Add disable_copyray_comment_injection to configuration.
83
106
 
84
107
  ## 0.3.0
108
+
85
109
  - Use https as default.
86
110
  - Download blurbs from S3.
87
111
  - Add toolbar.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- copy_tuner_client (0.5.0)
4
+ copy_tuner_client (0.5.1)
5
5
  i18n (>= 0.5.0)
6
6
  json
7
7
 
@@ -42,7 +42,7 @@ module CopyTunerClient
42
42
  return if @exclude_key_regexp && key.match?(@exclude_key_regexp)
43
43
  return if @locales.present? && !@locales.member?(key.split('.').first)
44
44
  lock do
45
- return if @blank_keys.member?(key)
45
+ return if @blank_keys.member?(key) || @blurbs.key?(key)
46
46
  @queued[key] = value
47
47
  end
48
48
  end
@@ -1,6 +1,6 @@
1
1
  module CopyTunerClient
2
2
  # Client version
3
- VERSION = '0.5.0'.freeze
3
+ VERSION = '0.5.1'.freeze
4
4
 
5
5
  # API version being used to communicate with the server
6
6
  API_VERSION = '2.0'.freeze
@@ -109,6 +109,16 @@ describe CopyTunerClient::Cache do
109
109
  expect(cache.queued).to be_empty
110
110
  end
111
111
 
112
+ it "Do not upload downloaded keys" do
113
+ client['en.test.key'] = 'test value'
114
+ cache = build_cache
115
+
116
+ cache.download
117
+
118
+ cache['en.test.key'] = 'dummy'
119
+ expect(cache.queued).to be_empty
120
+ end
121
+
112
122
  it "handles connection errors when flushing" do
113
123
  failure = "server is napping"
114
124
  logger = FakeLogger.new
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copy_tuner_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - SonicGarden
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-22 00:00:00.000000000 Z
11
+ date: 2019-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n