rhosync 2.0.0.beta2 → 2.0.0.beta3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +11 -1
- data/Rakefile +2 -2
- data/doc/protocol.html +83 -83
- data/generators/rhosync.rb +11 -1
- data/generators/templates/application/spec/spec_helper.rb +27 -0
- data/generators/templates/source/source_adapter.rb +1 -1
- data/generators/templates/source/source_spec.rb +25 -0
- data/lib/rhosync/app.rb +1 -3
- data/lib/rhosync/bulk_data/bulk_data.rb +1 -1
- data/lib/rhosync/bulk_data/syncdb.schema +8 -5
- data/lib/rhosync/client_sync.rb +5 -4
- data/lib/rhosync/jobs/bulk_data_job.rb +18 -4
- data/lib/rhosync/server.rb +10 -4
- data/lib/rhosync/source_adapter.rb +23 -19
- data/lib/rhosync/source_sync.rb +1 -2
- data/lib/rhosync/store.rb +5 -2
- data/lib/rhosync/tasks.rb +45 -18
- data/lib/rhosync/test_methods.rb +72 -0
- data/lib/rhosync/version.rb +1 -1
- data/lib/rhosync.rb +15 -6
- data/spec/apps/rhotestapp/application.rb +3 -1
- data/spec/apps/rhotestapp/settings/settings.yml +3 -0
- data/spec/apps/rhotestapp/sources/sample_adapter.rb +8 -3
- data/spec/client_sync_spec.rb +16 -4
- data/spec/generator/generator_spec.rb +11 -7
- data/spec/jobs/bulk_data_job_spec.rb +24 -0
- data/spec/rhosync_spec.rb +1 -0
- data/spec/server/server_spec.rb +23 -4
- data/spec/source_adapter_spec.rb +14 -14
- data/spec/source_sync_spec.rb +9 -0
- data/spec/spec_helper.rb +107 -86
- data/spec/store_spec.rb +11 -0
- data/spec/test_methods_spec.rb +89 -0
- metadata +13 -8
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 2
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.0.
|
9
|
+
- beta3
|
10
|
+
version: 2.0.0.beta3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Rhomobile
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-05-
|
18
|
+
date: 2010-05-18 00:00:00 -07:00
|
19
19
|
default_executable: rhosync
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -93,13 +93,13 @@ dependencies:
|
|
93
93
|
prerelease: false
|
94
94
|
requirement: &id006 !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
|
-
- -
|
96
|
+
- - ~>
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
segments:
|
99
99
|
- 1
|
100
100
|
- 0
|
101
|
-
-
|
102
|
-
version: 1.0.
|
101
|
+
- 0
|
102
|
+
version: 1.0.0
|
103
103
|
type: :runtime
|
104
104
|
version_requirements: *id006
|
105
105
|
- !ruby/object:Gem::Dependency
|
@@ -112,8 +112,8 @@ dependencies:
|
|
112
112
|
segments:
|
113
113
|
- 1
|
114
114
|
- 8
|
115
|
-
-
|
116
|
-
version: 1.8.
|
115
|
+
- 3
|
116
|
+
version: 1.8.3
|
117
117
|
type: :runtime
|
118
118
|
version_requirements: *id007
|
119
119
|
- !ruby/object:Gem::Dependency
|
@@ -298,7 +298,9 @@ files:
|
|
298
298
|
- generators/templates/application/config.ru
|
299
299
|
- generators/templates/application/settings/license.key
|
300
300
|
- generators/templates/application/settings/settings.yml
|
301
|
+
- generators/templates/application/spec/spec_helper.rb
|
301
302
|
- generators/templates/source/source_adapter.rb
|
303
|
+
- generators/templates/source/source_spec.rb
|
302
304
|
- lib/rhosync.rb
|
303
305
|
- lib/rhosync/api/create_client.rb
|
304
306
|
- lib/rhosync/api/create_user.rb
|
@@ -375,6 +377,7 @@ files:
|
|
375
377
|
- lib/rhosync/source_sync.rb
|
376
378
|
- lib/rhosync/store.rb
|
377
379
|
- lib/rhosync/tasks.rb
|
380
|
+
- lib/rhosync/test_methods.rb
|
378
381
|
- lib/rhosync/user.rb
|
379
382
|
- lib/rhosync/version.rb
|
380
383
|
- spec/api/api_helper.rb
|
@@ -443,6 +446,7 @@ files:
|
|
443
446
|
- spec/spec_helper.rb
|
444
447
|
- spec/store_spec.rb
|
445
448
|
- spec/sync_states_spec.rb
|
449
|
+
- spec/test_methods_spec.rb
|
446
450
|
- spec/testdata/1000-data.txt
|
447
451
|
- spec/testdata/compressed/compress-data.txt
|
448
452
|
- spec/testdata/upload1.txt
|
@@ -540,6 +544,7 @@ test_files:
|
|
540
544
|
- spec/spec_helper.rb
|
541
545
|
- spec/store_spec.rb
|
542
546
|
- spec/sync_states_spec.rb
|
547
|
+
- spec/test_methods_spec.rb
|
543
548
|
- spec/user_spec.rb
|
544
549
|
- examples/simple/application.rb
|
545
550
|
- examples/simple/sources/sample_adapter.rb
|