dbox 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/dbox.gemspec +8 -10
  3. data/lib/dbox/database.rb +11 -2
  4. metadata +13 -7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
@@ -4,15 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{dbox}
8
- s.version = "0.5.1"
7
+ s.name = "dbox"
8
+ s.version = "0.5.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ken Pratt"]
12
- s.date = %q{2011-10-03}
13
- s.default_executable = %q{dbox}
14
- s.description = %q{An easy-to-use Dropbox client with fine-grained control over syncs.}
15
- s.email = %q{ken@kenpratt.net}
12
+ s.date = "2011-10-03"
13
+ s.description = "An easy-to-use Dropbox client with fine-grained control over syncs."
14
+ s.email = "ken@kenpratt.net"
16
15
  s.executables = ["dbox"]
17
16
  s.extra_rdoc_files = [
18
17
  "LICENSE.txt",
@@ -47,14 +46,13 @@ Gem::Specification.new do |s|
47
46
  "vendor/dropbox-client-ruby/test/client_test.rb",
48
47
  "vendor/dropbox-client-ruby/test/util.rb"
49
48
  ]
50
- s.homepage = %q{http://github.com/kenpratt/dbox}
49
+ s.homepage = "http://github.com/kenpratt/dbox"
51
50
  s.licenses = ["MIT"]
52
51
  s.require_paths = ["lib"]
53
- s.rubygems_version = %q{1.3.7}
54
- s.summary = %q{Dropbox made easy.}
52
+ s.rubygems_version = "1.8.10"
53
+ s.summary = "Dropbox made easy."
55
54
 
56
55
  if s.respond_to? :specification_version then
57
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
58
56
  s.specification_version = 3
59
57
 
60
58
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -72,8 +72,17 @@ module Dbox
72
72
  def migrate
73
73
  if metadata[:version] < 2
74
74
  @db.execute_batch(%{
75
- ALTER TABLE metadata DROP COLUMN local_path;
76
- UPDATE_TABLE metadata SET version = 2;
75
+ BEGIN TRANSACTION;
76
+ ALTER TABLE metadata RENAME TO metadata_old;
77
+ CREATE TABLE metadata (
78
+ id integer PRIMARY KEY AUTOINCREMENT NOT NULL,
79
+ remote_path varchar(255) NOT NULL,
80
+ version integer NOT NULL
81
+ );
82
+ INSERT INTO metadata SELECT id, remote_path, version FROM metadata_old;
83
+ DROP TABLE metadata_old;
84
+ UPDATE metadata SET version = 2;
85
+ COMMIT;
77
86
  })
78
87
  end
79
88
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbox
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 15
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 5
8
- - 1
9
- version: 0.5.1
9
+ - 2
10
+ version: 0.5.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - Ken Pratt
@@ -14,8 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-10-03 00:00:00 -07:00
18
- default_executable: dbox
18
+ date: 2011-10-03 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: multipart-post
@@ -25,6 +25,7 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
+ hash: 23
28
29
  segments:
29
30
  - 1
30
31
  - 1
@@ -40,6 +41,7 @@ dependencies:
40
41
  requirements:
41
42
  - - ">="
42
43
  - !ruby/object:Gem::Version
44
+ hash: 5
43
45
  segments:
44
46
  - 0
45
47
  - 4
@@ -55,6 +57,7 @@ dependencies:
55
57
  requirements:
56
58
  - - ">="
57
59
  - !ruby/object:Gem::Version
60
+ hash: 5
58
61
  segments:
59
62
  - 1
60
63
  - 5
@@ -70,6 +73,7 @@ dependencies:
70
73
  requirements:
71
74
  - - ">="
72
75
  - !ruby/object:Gem::Version
76
+ hash: 29
73
77
  segments:
74
78
  - 1
75
79
  - 3
@@ -85,6 +89,7 @@ dependencies:
85
89
  requirements:
86
90
  - - ">="
87
91
  - !ruby/object:Gem::Version
92
+ hash: 5
88
93
  segments:
89
94
  - 3
90
95
  - 0
@@ -129,7 +134,6 @@ files:
129
134
  - vendor/dropbox-client-ruby/test/authenticator_test.rb
130
135
  - vendor/dropbox-client-ruby/test/client_test.rb
131
136
  - vendor/dropbox-client-ruby/test/util.rb
132
- has_rdoc: true
133
137
  homepage: http://github.com/kenpratt/dbox
134
138
  licenses:
135
139
  - MIT
@@ -143,6 +147,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
147
  requirements:
144
148
  - - ">="
145
149
  - !ruby/object:Gem::Version
150
+ hash: 3
146
151
  segments:
147
152
  - 0
148
153
  version: "0"
@@ -151,13 +156,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
156
  requirements:
152
157
  - - ">="
153
158
  - !ruby/object:Gem::Version
159
+ hash: 3
154
160
  segments:
155
161
  - 0
156
162
  version: "0"
157
163
  requirements: []
158
164
 
159
165
  rubyforge_project:
160
- rubygems_version: 1.3.7
166
+ rubygems_version: 1.8.10
161
167
  signing_key:
162
168
  specification_version: 3
163
169
  summary: Dropbox made easy.