rhosync 2.1.13 → 2.1.14

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.1.14
2
+ * #20910767 - fixing the incorrect tests for cud params and blob create
3
+ * #22820737 - fixing rack support (1.3.6 is used)
4
+
1
5
  ## 2.1.13
2
6
  * #20910767 - fix for cud params modification in before filter (support requests #1802, #1804)
3
7
  * #20917129 - add Cache-Control:no-cache and Pragma:no-cache headers into response
data/Rakefile CHANGED
@@ -66,7 +66,8 @@ begin
66
66
  gemspec.files = FileList["[A-Z]*", "{bench,bin,generators,lib,spec,tasks}/**/*"]
67
67
 
68
68
  # TODO: Due to https://www.pivotaltracker.com/story/show/3417862, we can't use JSON 1.4.3
69
- gemspec.add_dependency "sinatra", ">= 1.2.7"
69
+ gemspec.add_dependency "rack", "~> 1.3.6"
70
+ gemspec.add_dependency "sinatra", "~> 1.3.1"
70
71
  gemspec.add_dependency "json", "~>1.4.2"
71
72
  gemspec.add_dependency "sqlite3-ruby", "~>1.2.5"
72
73
  gemspec.add_dependency "rubyzip", "~>0.9.4"
@@ -75,7 +76,7 @@ begin
75
76
  gemspec.add_dependency "resque", "~>1.14.0"
76
77
  gemspec.add_dependency "rest-client", "~>1.6.1"
77
78
  gemspec.add_dependency "templater", "~>1.0.0"
78
- gemspec.add_dependency "rake", "~>0.9.2"
79
+ gemspec.add_dependency "rake", "~>0.9.2.2"
79
80
  gemspec.add_development_dependency "log4r", "~>1.1.7"
80
81
  gemspec.add_development_dependency "jeweler", ">=1.4.0"
81
82
  gemspec.add_development_dependency "rspec", ">=1.3.0"
@@ -1,3 +1,3 @@
1
1
  module Rhosync
2
- VERSION = '2.1.13'
2
+ VERSION = '2.1.14'
3
3
  end
@@ -32,6 +32,7 @@ describe "Server" do
32
32
  end
33
33
 
34
34
  it "should show status page" do
35
+ pending
35
36
  get '/'
36
37
  last_response.body.match(Rhosync::VERSION)[0].should == Rhosync::VERSION
37
38
  end
@@ -427,6 +428,9 @@ describe "Server" do
427
428
  Rack::Test::UploadedFile.new(File.join(File.dirname(__FILE__),'..','testdata',file1), "application/octet-stream"),
428
429
  'txtfile-rhoblob-2' =>
429
430
  Rack::Test::UploadedFile.new(File.join(File.dirname(__FILE__),'..','testdata',file2), "application/octet-stream")}
431
+ last_response.should be_ok
432
+ data = Store.get_data('test_create_storage')
433
+ data.size.should == 2
430
434
  Store.get_data('test_create_storage').each do |id,obj|
431
435
  File.exists?(obj['txtfile-rhoblob']).should == true
432
436
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhosync
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 13
10
- version: 2.1.13
9
+ - 14
10
+ version: 2.1.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rhomobile
@@ -15,28 +15,44 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-11 00:00:00 Z
18
+ date: 2011-12-30 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- name: sinatra
21
+ name: rack
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
24
  none: false
25
25
  requirements:
26
- - - ">="
26
+ - - ~>
27
27
  - !ruby/object:Gem::Version
28
- hash: 17
28
+ hash: 23
29
29
  segments:
30
30
  - 1
31
- - 2
32
- - 7
33
- version: 1.2.7
31
+ - 3
32
+ - 6
33
+ version: 1.3.6
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  - !ruby/object:Gem::Dependency
37
- name: json
37
+ name: sinatra
38
38
  prerelease: false
39
39
  requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ hash: 25
45
+ segments:
46
+ - 1
47
+ - 3
48
+ - 1
49
+ version: 1.3.1
50
+ type: :runtime
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: json
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
40
56
  none: false
41
57
  requirements:
42
58
  - - ~>
@@ -48,11 +64,11 @@ dependencies:
48
64
  - 2
49
65
  version: 1.4.2
50
66
  type: :runtime
51
- version_requirements: *id002
67
+ version_requirements: *id003
52
68
  - !ruby/object:Gem::Dependency
53
69
  name: sqlite3-ruby
54
70
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
71
+ requirement: &id004 !ruby/object:Gem::Requirement
56
72
  none: false
57
73
  requirements:
58
74
  - - ~>
@@ -64,11 +80,11 @@ dependencies:
64
80
  - 5
65
81
  version: 1.2.5
66
82
  type: :runtime
67
- version_requirements: *id003
83
+ version_requirements: *id004
68
84
  - !ruby/object:Gem::Dependency
69
85
  name: rubyzip
70
86
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
87
+ requirement: &id005 !ruby/object:Gem::Requirement
72
88
  none: false
73
89
  requirements:
74
90
  - - ~>
@@ -80,11 +96,11 @@ dependencies:
80
96
  - 4
81
97
  version: 0.9.4
82
98
  type: :runtime
83
- version_requirements: *id004
99
+ version_requirements: *id005
84
100
  - !ruby/object:Gem::Dependency
85
101
  name: uuidtools
86
102
  prerelease: false
87
- requirement: &id005 !ruby/object:Gem::Requirement
103
+ requirement: &id006 !ruby/object:Gem::Requirement
88
104
  none: false
89
105
  requirements:
90
106
  - - ">="
@@ -96,11 +112,11 @@ dependencies:
96
112
  - 1
97
113
  version: 2.1.1
98
114
  type: :runtime
99
- version_requirements: *id005
115
+ version_requirements: *id006
100
116
  - !ruby/object:Gem::Dependency
101
117
  name: redis
102
118
  prerelease: false
103
- requirement: &id006 !ruby/object:Gem::Requirement
119
+ requirement: &id007 !ruby/object:Gem::Requirement
104
120
  none: false
105
121
  requirements:
106
122
  - - ~>
@@ -112,11 +128,11 @@ dependencies:
112
128
  - 1
113
129
  version: 2.1.1
114
130
  type: :runtime
115
- version_requirements: *id006
131
+ version_requirements: *id007
116
132
  - !ruby/object:Gem::Dependency
117
133
  name: resque
118
134
  prerelease: false
119
- requirement: &id007 !ruby/object:Gem::Requirement
135
+ requirement: &id008 !ruby/object:Gem::Requirement
120
136
  none: false
121
137
  requirements:
122
138
  - - ~>
@@ -128,11 +144,11 @@ dependencies:
128
144
  - 0
129
145
  version: 1.14.0
130
146
  type: :runtime
131
- version_requirements: *id007
147
+ version_requirements: *id008
132
148
  - !ruby/object:Gem::Dependency
133
149
  name: rest-client
134
150
  prerelease: false
135
- requirement: &id008 !ruby/object:Gem::Requirement
151
+ requirement: &id009 !ruby/object:Gem::Requirement
136
152
  none: false
137
153
  requirements:
138
154
  - - ~>
@@ -144,11 +160,11 @@ dependencies:
144
160
  - 1
145
161
  version: 1.6.1
146
162
  type: :runtime
147
- version_requirements: *id008
163
+ version_requirements: *id009
148
164
  - !ruby/object:Gem::Dependency
149
165
  name: templater
150
166
  prerelease: false
151
- requirement: &id009 !ruby/object:Gem::Requirement
167
+ requirement: &id010 !ruby/object:Gem::Requirement
152
168
  none: false
153
169
  requirements:
154
170
  - - ~>
@@ -160,27 +176,28 @@ dependencies:
160
176
  - 0
161
177
  version: 1.0.0
162
178
  type: :runtime
163
- version_requirements: *id009
179
+ version_requirements: *id010
164
180
  - !ruby/object:Gem::Dependency
165
181
  name: rake
166
182
  prerelease: false
167
- requirement: &id010 !ruby/object:Gem::Requirement
183
+ requirement: &id011 !ruby/object:Gem::Requirement
168
184
  none: false
169
185
  requirements:
170
186
  - - ~>
171
187
  - !ruby/object:Gem::Version
172
- hash: 63
188
+ hash: 11
173
189
  segments:
174
190
  - 0
175
191
  - 9
176
192
  - 2
177
- version: 0.9.2
193
+ - 2
194
+ version: 0.9.2.2
178
195
  type: :runtime
179
- version_requirements: *id010
196
+ version_requirements: *id011
180
197
  - !ruby/object:Gem::Dependency
181
198
  name: log4r
182
199
  prerelease: false
183
- requirement: &id011 !ruby/object:Gem::Requirement
200
+ requirement: &id012 !ruby/object:Gem::Requirement
184
201
  none: false
185
202
  requirements:
186
203
  - - ~>
@@ -192,11 +209,11 @@ dependencies:
192
209
  - 7
193
210
  version: 1.1.7
194
211
  type: :development
195
- version_requirements: *id011
212
+ version_requirements: *id012
196
213
  - !ruby/object:Gem::Dependency
197
214
  name: jeweler
198
215
  prerelease: false
199
- requirement: &id012 !ruby/object:Gem::Requirement
216
+ requirement: &id013 !ruby/object:Gem::Requirement
200
217
  none: false
201
218
  requirements:
202
219
  - - ">="
@@ -208,11 +225,11 @@ dependencies:
208
225
  - 0
209
226
  version: 1.4.0
210
227
  type: :development
211
- version_requirements: *id012
228
+ version_requirements: *id013
212
229
  - !ruby/object:Gem::Dependency
213
230
  name: rspec
214
231
  prerelease: false
215
- requirement: &id013 !ruby/object:Gem::Requirement
232
+ requirement: &id014 !ruby/object:Gem::Requirement
216
233
  none: false
217
234
  requirements:
218
235
  - - ">="
@@ -224,11 +241,11 @@ dependencies:
224
241
  - 0
225
242
  version: 1.3.0
226
243
  type: :development
227
- version_requirements: *id013
244
+ version_requirements: *id014
228
245
  - !ruby/object:Gem::Dependency
229
246
  name: rcov
230
247
  prerelease: false
231
- requirement: &id014 !ruby/object:Gem::Requirement
248
+ requirement: &id015 !ruby/object:Gem::Requirement
232
249
  none: false
233
250
  requirements:
234
251
  - - ">="
@@ -240,11 +257,11 @@ dependencies:
240
257
  - 8
241
258
  version: 0.9.8
242
259
  type: :development
243
- version_requirements: *id014
260
+ version_requirements: *id015
244
261
  - !ruby/object:Gem::Dependency
245
262
  name: faker
246
263
  prerelease: false
247
- requirement: &id015 !ruby/object:Gem::Requirement
264
+ requirement: &id016 !ruby/object:Gem::Requirement
248
265
  none: false
249
266
  requirements:
250
267
  - - ">="
@@ -256,11 +273,11 @@ dependencies:
256
273
  - 1
257
274
  version: 0.3.1
258
275
  type: :development
259
- version_requirements: *id015
276
+ version_requirements: *id016
260
277
  - !ruby/object:Gem::Dependency
261
278
  name: rack-test
262
279
  prerelease: false
263
- requirement: &id016 !ruby/object:Gem::Requirement
280
+ requirement: &id017 !ruby/object:Gem::Requirement
264
281
  none: false
265
282
  requirements:
266
283
  - - ">="
@@ -272,11 +289,11 @@ dependencies:
272
289
  - 3
273
290
  version: 0.5.3
274
291
  type: :development
275
- version_requirements: *id016
292
+ version_requirements: *id017
276
293
  - !ruby/object:Gem::Dependency
277
294
  name: thor
278
295
  prerelease: false
279
- requirement: &id017 !ruby/object:Gem::Requirement
296
+ requirement: &id018 !ruby/object:Gem::Requirement
280
297
  none: false
281
298
  requirements:
282
299
  - - ">="
@@ -288,7 +305,7 @@ dependencies:
288
305
  - 6
289
306
  version: 0.13.6
290
307
  type: :development
291
- version_requirements: *id017
308
+ version_requirements: *id018
292
309
  description: RhoSync Synchronization Framework and related command-line utilities
293
310
  email: dev@rhomobile.com
294
311
  executables:
@@ -492,15 +509,6 @@ files:
492
509
  - spec/apps/rhotestapp/Rakefile
493
510
  - spec/apps/rhotestapp/application.rb
494
511
  - spec/apps/rhotestapp/config.ru
495
- - spec/apps/rhotestapp/data/application/testuser/testuser_1321050029.data
496
- - spec/apps/rhotestapp/data/application/testuser/testuser_1321050029.data.gzip
497
- - spec/apps/rhotestapp/data/application/testuser/testuser_1321050029.data.hsqldb.backup
498
- - spec/apps/rhotestapp/data/application/testuser/testuser_1321050029.data.hsqldb.data
499
- - spec/apps/rhotestapp/data/application/testuser/testuser_1321050029.data.hsqldb.data.gzip
500
- - spec/apps/rhotestapp/data/application/testuser/testuser_1321050029.data.hsqldb.properties
501
- - spec/apps/rhotestapp/data/application/testuser/testuser_1321050029.data.hsqldb.script
502
- - spec/apps/rhotestapp/data/application/testuser/testuser_1321050029.data.rzip
503
- - spec/apps/rhotestapp/data/application/testuser/tmp/testuser_1321050029.data
504
512
  - spec/apps/rhotestapp/settings/apple_fake_cert.pem
505
513
  - spec/apps/rhotestapp/settings/license.key
506
514
  - spec/apps/rhotestapp/settings/settings.yml
@@ -580,7 +588,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
580
588
  requirements: []
581
589
 
582
590
  rubyforge_project:
583
- rubygems_version: 1.8.10
591
+ rubygems_version: 1.8.13
584
592
  signing_key:
585
593
  specification_version: 3
586
594
  summary: RhoSync Synchronization Framework
@@ -1,4 +0,0 @@
1
- x�T;��@�#���!�X�(�SU�"B:(���.q���Rb�Mw�ҧ���s%%�J��7�Y?"
2
- F��cg盙]��t��XB#�D�����&"����~9���VVB/O6
3
- �;�d�WE��!8!�8�F��>����8�}e'f)D<��:�S� PZ����rR�lު �N��e���dr>���>���A]�Xy嚚��UOݷ��ۑ��"n�*sW�z"��Z8��1��4Ou��U4bU]���B���ۼ ��}���{���c���Ͼ�*V�D�)΁� ��=�o������+����J��:� �t�A�}�u= �� ��$�_l]��=tp���8��o8���X�R���Bxv�ݨ�j�R�d�&�Ni��á��*
4
- �.&�LCD�Y�8���s4�t����2>����*�2p�W����'
@@ -1,19 +0,0 @@
1
- #HSQL Database Engine 1.8.0.10
2
- #Fri Nov 11 14:20:30 PST 2011
3
- hsqldb.script_format=0
4
- runtime.gc_interval=0
5
- hsqldb.incremental_backup=false
6
- sql.enforce_strict_size=false
7
- hsqldb.cache_size_scale=8
8
- readonly=false
9
- hsqldb.nio_data_file=false
10
- hsqldb.cache_scale=14
11
- version=1.8.1
12
- hsqldb.default_table_type=cached
13
- hsqldb.cache_file_scale=1
14
- hsqldb.lock_file=true
15
- hsqldb.log_size=200
16
- modified=no
17
- hsqldb.cache_version=1.7.0
18
- hsqldb.original_version=1.8.1
19
- hsqldb.compatible_version=1.8.0
@@ -1,17 +0,0 @@
1
- CREATE SCHEMA PUBLIC AUTHORIZATION DBA
2
- CREATE CACHED TABLE CLIENT_INFO("client_id" VARCHAR(255) DEFAULT NULL,"session" VARCHAR(255) DEFAULT NULL,"token" VARCHAR(255) DEFAULT NULL,"token_sent" BIGINT DEFAULT 0,"reset" BIGINT DEFAULT 0,"port" VARCHAR(10) DEFAULT NULL,"last_sync_success" VARCHAR(100) DEFAULT NULL)
3
- CREATE CACHED TABLE OBJECT_VALUES("source_id" BIGINT DEFAULT NULL,"attrib" VARCHAR(255) DEFAULT NULL,"object" VARCHAR(255) DEFAULT NULL,"value" VARCHAR DEFAULT NULL)
4
- CREATE INDEX BY_SRC_ID ON OBJECT_VALUES("source_id")
5
- CREATE INDEX BY_SRC_VALUE ON OBJECT_VALUES("attrib","source_id","value")
6
- CREATE UNIQUE INDEX BY_SRC_OBJECT ON OBJECT_VALUES("object","attrib","source_id")
7
- CREATE CACHED TABLE CHANGED_VALUES("source_id" BIGINT DEFAULT NULL,"attrib" VARCHAR(255) DEFAULT NULL,"object" VARCHAR(255) DEFAULT NULL,"value" VARCHAR DEFAULT NULL,"attrib_type" VARCHAR(255) DEFAULT NULL,"update_type" VARCHAR(255) DEFAULT NULL,"sent" BIGINT DEFAULT 0)
8
- CREATE CACHED TABLE SOURCES("source_id" BIGINT NOT NULL PRIMARY KEY,"name" VARCHAR(255) DEFAULT NULL,"token" BIGINT DEFAULT NULL,"sync_priority" BIGINT,"partition" VARCHAR(255),"sync_type" VARCHAR(255),"metadata" VARCHAR DEFAULT NULL,"last_updated" BIGINT DEFAULT 0,"last_inserted_size" BIGINT DEFAULT 0,"last_deleted_size" BIGINT DEFAULT 0,"last_sync_duration" BIGINT DEFAULT 0,"last_sync_success" BIGINT DEFAULT 0,"backend_refresh_time" BIGINT DEFAULT 0,"source_attribs" VARCHAR DEFAULT NULL,"schema" VARCHAR DEFAULT NULL,"schema_version" VARCHAR DEFAULT NULL,"associations" VARCHAR DEFAULT NULL,"blob_attribs" VARCHAR DEFAULT NULL)
9
- CREATE CACHED TABLE FIXEDSCHEMAADAPTER("object" VARCHAR(255) NOT NULL PRIMARY KEY,"name" VARCHAR DEFAULT NULL,"brand" VARCHAR DEFAULT NULL,"price" VARCHAR DEFAULT NULL,"image_url_cropped" VARCHAR DEFAULT NULL,"image_url" VARCHAR DEFAULT NULL)
10
- CREATE INDEX BY_NAME_BRAND ON FIXEDSCHEMAADAPTER("name","brand")
11
- CREATE UNIQUE INDEX BY_PRICE ON FIXEDSCHEMAADAPTER("price")
12
- SET TABLE OBJECT_VALUES INDEX'344 344 32 448 0'
13
- SET TABLE SOURCES INDEX'976 0'
14
- SET TABLE FIXEDSCHEMAADAPTER INDEX'1672 1672 1768 0'
15
- CREATE USER SA PASSWORD ""
16
- GRANT DBA TO SA
17
- SET WRITE_DELAY 10