copy_tuner_client 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9f6d2b4e483a70c010fa1930a4c11bae94811f8d
4
+ data.tar.gz: 6aaa72cd58975a0a0b12d65fc4fabf6fb1b8f6d6
5
+ SHA512:
6
+ metadata.gz: d1ce73c55768426cd97826dc90f1a857ce047cdf11b62df4ee52f626735a506e923122861a97ccec609a5374dbb204a3301208ffc5acd8e016928d1de63b2b23
7
+ data.tar.gz: 2f6cc526db832322b7ca3aaf63ac1b0e09b67e28cb1df09390ecc8d36c99f906a6d7de7f73696b22d7f209034c03a33b48490aaffd9fac0cbce5744477d8d506
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 1.9.3-p545
1
+ 2.1.6
data/.travis.yml CHANGED
@@ -1,9 +1,11 @@
1
1
  rvm:
2
- - 1.9.3
3
- - 2.0.0
4
- - 2.1.2
2
+ - 1.9
3
+ - 2.0
4
+ - 2.1
5
+ - 2.2
5
6
 
6
7
  gemfile:
7
8
  - gemfiles/3.2.gemfile
8
9
  - gemfiles/4.0.gemfile
9
10
  - gemfiles/4.1.gemfile
11
+ - gemfiles/4.2.gemfile
data/Appraisals CHANGED
@@ -1,12 +1,15 @@
1
1
  appraise '3.2' do
2
- gem 'rails', '3.2.19'
2
+ gem 'rails', '3.2.22'
3
3
  end
4
4
 
5
5
  appraise '4.0' do
6
- gem 'rails', '4.0.8'
6
+ gem 'rails', '4.0.13'
7
7
  end
8
8
 
9
-
10
9
  appraise '4.1' do
11
- gem 'rails', '4.1.4'
10
+ gem 'rails', '4.1.13'
11
+ end
12
+
13
+ appraise '4.2' do
14
+ gem 'rails', '4.2.4'
12
15
  end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- copy_tuner_client (0.2.0)
4
+ copy_tuner_client (0.2.1)
5
5
  i18n (>= 0.5.0)
6
6
  json
7
7
 
@@ -39,7 +39,7 @@ GEM
39
39
  multi_json (~> 1.0)
40
40
  addressable (2.2.6)
41
41
  ansi (1.4.3)
42
- appraisal (1.0.0)
42
+ appraisal (2.1.0)
43
43
  bundler
44
44
  rake
45
45
  thor (>= 0.14.0)
@@ -105,7 +105,7 @@ GEM
105
105
  rake (>= 0.8.7)
106
106
  rdoc (~> 3.4)
107
107
  thor (~> 0.14.6)
108
- rake (10.3.2)
108
+ rake (10.4.2)
109
109
  rdoc (3.9.4)
110
110
  rspec (2.99.0)
111
111
  rspec-core (~> 2.99.0)
@@ -146,7 +146,7 @@ PLATFORMS
146
146
  ruby
147
147
 
148
148
  DEPENDENCIES
149
- appraisal (~> 1.0)
149
+ appraisal (~> 2.1)
150
150
  aruba (~> 0.6.0)
151
151
  bourne
152
152
  copy_tuner_client!
data/README.md CHANGED
@@ -1,9 +1,7 @@
1
1
  CopyTuner Client
2
2
  =================
3
3
 
4
- [TODO] Write After
5
-
6
-
4
+ [![Build Status](https://travis-ci.org/SonicGarden/copy-tuner-ruby-client.svg?branch=master)](https://travis-ci.org/SonicGarden/copy-tuner-ruby-client)
7
5
 
8
6
  Development
9
7
  =================
@@ -16,11 +14,11 @@ Development
16
14
 
17
15
  ### Appraisal for Multi Version Rails spec
18
16
 
19
- $ bundle exec rake appraisal:install
17
+ $ bundle exec appraisal install
20
18
  $ bundle exec rake appraisal
21
19
 
22
20
  ## release gem
23
21
 
24
- $ bundle exec rake build # build gem to pkg/ dir
22
+ $ bundle exec rake build # build gem to pkg/ dir
25
23
  $ bundle exec rake install # install to local gem
26
24
  $ bundle exec rake release # release gem to rubygems.org
@@ -5,7 +5,7 @@ require 'copy_tuner_client/version'
5
5
  Gem::Specification.new do |s|
6
6
  s.add_dependency 'i18n', '>= 0.5.0'
7
7
  s.add_dependency 'json'
8
- s.add_development_dependency 'appraisal', '~> 1.0'
8
+ s.add_development_dependency 'appraisal', '~> 2.1'
9
9
  s.add_development_dependency 'aruba', '~> 0.6.0'
10
10
  s.add_development_dependency 'bourne'
11
11
  s.add_development_dependency 'cucumber', '~> 1.3.16'
@@ -136,7 +136,7 @@ Feature: Using copy_tuner in a rails app
136
136
  And I wait for changes to be synchronized
137
137
  And the "abc123" project should have the following blurbs:
138
138
  | key | draft content |
139
- | en.users.index.unknown-test | Unknown |
139
+ | en.users.index.unknown-test | |
140
140
 
141
141
  Scenario: configure a bad api key
142
142
  When I configure the copy_tuner client with api key "bogus"
data/gemfiles/3.2.gemfile CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "rails", "3.2.19"
5
+ gem "rails", "3.2.22"
6
6
 
7
7
  gemspec :path => "../"
data/gemfiles/4.0.gemfile CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "rails", "4.0.8"
5
+ gem "rails", "4.0.13"
6
6
 
7
7
  gemspec :path => "../"
data/gemfiles/4.1.gemfile CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "http://rubygems.org"
4
4
 
5
- gem "rails", "4.1.4"
5
+ gem "rails", "4.1.13"
6
6
 
7
7
  gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "rails", "4.2.4"
6
+
7
+ gemspec :path => "../"
@@ -138,7 +138,8 @@ module CopyTunerClient
138
138
  # <script src="/assets/jquery.js"></script>
139
139
  # <script src="/assets/jquery-min.js"></script>
140
140
  # <script src="/assets/jquery.min.1.9.1.js"></script>
141
- self.copyray_js_injection_regexp_for_debug = /<script[^>]+\/jquery([-.]{1}[\d\.]+)?([-.]{1}min)?\.js[^>]+><\/script>/
141
+ # <script src="/assets/jquery.self-xxxxxx.js"></script>
142
+ self.copyray_js_injection_regexp_for_debug = /<script[^>]+\/jquery([-.]{1}[\d\.]+)?([-.]{1}min)?(\.self\-[\da-f]++)?\.js[^>]+><\/script>/
142
143
 
143
144
  # Matches:
144
145
  # <script src="/application-xxxxxxx.js"></script>
@@ -24,7 +24,7 @@ module CopyTunerClient
24
24
  #
25
25
  # @return [Object] the translated key (usually a String)
26
26
  def translate(locale, key, options = {})
27
- content = super(locale, key, options.merge(:fallback => true))
27
+ content = super(locale, key, options)
28
28
  if CopyTunerClient.configuration.inline_translation
29
29
  content = (content.is_a?(Array) ? content : key.to_s)
30
30
  end
@@ -1,6 +1,6 @@
1
1
  module CopyTunerClient
2
2
  # Client version
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
 
5
5
  # API version being used to communicate with the server
6
6
  API_VERSION = '2.0'.freeze
@@ -146,12 +146,13 @@ describe CopyTunerClient::I18nBackend do
146
146
  end
147
147
  end
148
148
 
149
- it "queues missing keys with default" do
149
+ it "queues missing keys with blank string" do
150
150
  default = 'default value'
151
-
152
151
  subject.translate('en', 'test.key', :default => default).should == default
153
152
 
154
- cache['en.test.key'].should == default
153
+ # default と Fallbacks を併用した場合、キャッシュにデフォルト値は入らない仕様に変えた
154
+ # その仕様にしないと、うまく Fallbacks の処理が動かないため
155
+ cache['en.test.key'].should == ''
155
156
  end
156
157
  end
157
158
  end
metadata CHANGED
@@ -1,270 +1,237 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: copy_tuner_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - SonicGarden
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-10-27 00:00:00.000000000 Z
11
+ date: 2016-02-24 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: i18n
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.5.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.5.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: json
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: appraisal
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '1.0'
47
+ version: '2.1'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
- version: '1.0'
54
+ version: '2.1'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: aruba
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
61
  version: 0.6.0
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
68
  version: 0.6.0
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: bourne
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: cucumber
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ~>
87
+ - - "~>"
100
88
  - !ruby/object:Gem::Version
101
89
  version: 1.3.16
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ~>
94
+ - - "~>"
108
95
  - !ruby/object:Gem::Version
109
96
  version: 1.3.16
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: rails
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ~>
101
+ - - "~>"
116
102
  - !ruby/object:Gem::Version
117
103
  version: 3.1.0
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ~>
108
+ - - "~>"
124
109
  - !ruby/object:Gem::Version
125
110
  version: 3.1.0
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: rake
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ! '>='
115
+ - - ">="
132
116
  - !ruby/object:Gem::Version
133
117
  version: '0'
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ! '>='
122
+ - - ">="
140
123
  - !ruby/object:Gem::Version
141
124
  version: '0'
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: rspec
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
- - - ~>
129
+ - - "~>"
148
130
  - !ruby/object:Gem::Version
149
131
  version: '2.3'
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
- - - ~>
136
+ - - "~>"
156
137
  - !ruby/object:Gem::Version
157
138
  version: '2.3'
158
139
  - !ruby/object:Gem::Dependency
159
140
  name: sham_rack
160
141
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
142
  requirements:
163
- - - ! '>='
143
+ - - ">="
164
144
  - !ruby/object:Gem::Version
165
145
  version: '0'
166
146
  type: :development
167
147
  prerelease: false
168
148
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
149
  requirements:
171
- - - ! '>='
150
+ - - ">="
172
151
  - !ruby/object:Gem::Version
173
152
  version: '0'
174
153
  - !ruby/object:Gem::Dependency
175
154
  name: sinatra
176
155
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
156
  requirements:
179
- - - ! '>='
157
+ - - ">="
180
158
  - !ruby/object:Gem::Version
181
159
  version: '0'
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
163
  requirements:
187
- - - ! '>='
164
+ - - ">="
188
165
  - !ruby/object:Gem::Version
189
166
  version: '0'
190
167
  - !ruby/object:Gem::Dependency
191
168
  name: sqlite3
192
169
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
170
  requirements:
195
- - - ! '>='
171
+ - - ">="
196
172
  - !ruby/object:Gem::Version
197
173
  version: '0'
198
174
  type: :development
199
175
  prerelease: false
200
176
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
177
  requirements:
203
- - - ! '>='
178
+ - - ">="
204
179
  - !ruby/object:Gem::Version
205
180
  version: '0'
206
181
  - !ruby/object:Gem::Dependency
207
182
  name: thin
208
183
  requirement: !ruby/object:Gem::Requirement
209
- none: false
210
184
  requirements:
211
- - - ! '>='
185
+ - - ">="
212
186
  - !ruby/object:Gem::Version
213
187
  version: '0'
214
188
  type: :development
215
189
  prerelease: false
216
190
  version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
191
  requirements:
219
- - - ! '>='
192
+ - - ">="
220
193
  - !ruby/object:Gem::Version
221
194
  version: '0'
222
195
  - !ruby/object:Gem::Dependency
223
196
  name: webmock
224
197
  requirement: !ruby/object:Gem::Requirement
225
- none: false
226
198
  requirements:
227
- - - ! '>='
199
+ - - ">="
228
200
  - !ruby/object:Gem::Version
229
201
  version: '0'
230
202
  type: :development
231
203
  prerelease: false
232
204
  version_requirements: !ruby/object:Gem::Requirement
233
- none: false
234
205
  requirements:
235
- - - ! '>='
206
+ - - ">="
236
207
  - !ruby/object:Gem::Version
237
208
  version: '0'
238
209
  - !ruby/object:Gem::Dependency
239
210
  name: yard
240
211
  requirement: !ruby/object:Gem::Requirement
241
- none: false
242
212
  requirements:
243
- - - ! '>='
213
+ - - ">="
244
214
  - !ruby/object:Gem::Version
245
215
  version: '0'
246
216
  type: :development
247
217
  prerelease: false
248
218
  version_requirements: !ruby/object:Gem::Requirement
249
- none: false
250
219
  requirements:
251
- - - ! '>='
220
+ - - ">="
252
221
  - !ruby/object:Gem::Version
253
222
  version: '0'
254
223
  - !ruby/object:Gem::Dependency
255
224
  name: turn
256
225
  requirement: !ruby/object:Gem::Requirement
257
- none: false
258
226
  requirements:
259
- - - ! '>='
227
+ - - ">="
260
228
  - !ruby/object:Gem::Version
261
229
  version: '0'
262
230
  type: :development
263
231
  prerelease: false
264
232
  version_requirements: !ruby/object:Gem::Requirement
265
- none: false
266
233
  requirements:
267
- - - ! '>='
234
+ - - ">="
268
235
  - !ruby/object:Gem::Version
269
236
  version: '0'
270
237
  description:
@@ -273,10 +240,10 @@ executables: []
273
240
  extensions: []
274
241
  extra_rdoc_files: []
275
242
  files:
276
- - .gitignore
277
- - .rspec
278
- - .ruby-version
279
- - .travis.yml
243
+ - ".gitignore"
244
+ - ".rspec"
245
+ - ".ruby-version"
246
+ - ".travis.yml"
280
247
  - Appraisals
281
248
  - Gemfile
282
249
  - Gemfile.lock
@@ -293,6 +260,7 @@ files:
293
260
  - gemfiles/3.2.gemfile
294
261
  - gemfiles/4.0.gemfile
295
262
  - gemfiles/4.1.gemfile
263
+ - gemfiles/4.2.gemfile
296
264
  - init.rb
297
265
  - lib/copy_tuner_client.rb
298
266
  - lib/copy_tuner_client/cache.rb
@@ -337,27 +305,26 @@ files:
337
305
  - ui/views/layouts/copytuner_default.html.erb
338
306
  homepage: https://github.com/SonicGarden/copy-tuner-ruby-client
339
307
  licenses: []
308
+ metadata: {}
340
309
  post_install_message:
341
310
  rdoc_options: []
342
311
  require_paths:
343
312
  - lib
344
313
  required_ruby_version: !ruby/object:Gem::Requirement
345
- none: false
346
314
  requirements:
347
- - - ! '>='
315
+ - - ">="
348
316
  - !ruby/object:Gem::Version
349
317
  version: '0'
350
318
  required_rubygems_version: !ruby/object:Gem::Requirement
351
- none: false
352
319
  requirements:
353
- - - ! '>='
320
+ - - ">="
354
321
  - !ruby/object:Gem::Version
355
322
  version: '0'
356
323
  requirements: []
357
324
  rubyforge_project:
358
- rubygems_version: 1.8.23.2
325
+ rubygems_version: 2.2.3
359
326
  signing_key:
360
- specification_version: 3
327
+ specification_version: 4
361
328
  summary: Client for the CopyTuner copy management service
362
329
  test_files:
363
330
  - features/rails.feature
@@ -386,4 +353,3 @@ test_files:
386
353
  - spec/support/fake_unicorn.rb
387
354
  - spec/support/middleware_stack.rb
388
355
  - spec/support/writing_cache.rb
389
- has_rdoc: