filezor 1.3.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data/Gemfile +10 -0
  2. data/Gemfile.lock +38 -0
  3. data/VERSION +1 -1
  4. data/filezor.gemspec +57 -33
  5. data/lib/filezor/file.rb +8 -0
  6. metadata +139 -15
  7. data/.gitignore +0 -22
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source :rubygems
2
+
3
+ gem "trollop"
4
+ gem "rake"
5
+ gem "gemcutter"
6
+ gem "jeweler"
7
+ gem "rack-test"
8
+ gem "rest-client"
9
+ gem "rspec", "<2"
10
+ gem "sinatra"
data/Gemfile.lock ADDED
@@ -0,0 +1,38 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ gemcutter (0.6.1)
5
+ git (1.2.5)
6
+ jeweler (1.4.0)
7
+ gemcutter (>= 0.1.0)
8
+ git (>= 1.2.5)
9
+ rubyforge (>= 2.0.0)
10
+ json_pure (1.4.6)
11
+ mime-types (1.16)
12
+ rack (1.2.1)
13
+ rack-test (0.5.6)
14
+ rack (>= 1.0)
15
+ rake (0.8.7)
16
+ rest-client (1.6.1)
17
+ mime-types (>= 1.16)
18
+ rspec (1.3.1)
19
+ rubyforge (2.0.4)
20
+ json_pure (>= 1.1.7)
21
+ sinatra (1.1.0)
22
+ rack (~> 1.1)
23
+ tilt (~> 1.1)
24
+ tilt (1.1)
25
+ trollop (1.16.2)
26
+
27
+ PLATFORMS
28
+ ruby
29
+
30
+ DEPENDENCIES
31
+ gemcutter
32
+ jeweler
33
+ rack-test
34
+ rake
35
+ rest-client
36
+ rspec (< 2)
37
+ sinatra
38
+ trollop
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.4
1
+ 1.3.5
data/filezor.gemspec CHANGED
@@ -1,75 +1,99 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{filezor}
8
- s.version = "1.3.4"
8
+ s.version = "1.3.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kyle Maxwell"]
12
- s.date = %q{2010-09-27}
12
+ s.date = %q{2010-12-05}
13
13
  s.default_executable = %q{filezor}
14
14
  s.description = %q{pure ruby file sync}
15
15
  s.email = %q{kyle@kylemaxwell.com}
16
16
  s.executables = ["filezor"]
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE",
19
- "README.rdoc"
19
+ "README.rdoc"
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
23
- ".gitignore",
24
- "LICENSE",
25
- "README.rdoc",
26
- "Rakefile",
27
- "VERSION",
28
- "bin/filezor",
29
- "config/filezor.ru",
30
- "config/filezor.yml",
31
- "filezor.gemspec",
32
- "lib/filezor.rb",
33
- "lib/filezor/client.rb",
34
- "lib/filezor/file.rb",
35
- "lib/filezor/server.rb",
36
- "lib/filezor/util.rb",
37
- "spec/filezor/client_spec.rb",
38
- "spec/filezor/server_spec.rb",
39
- "spec/filezor/util_spec.rb",
40
- "spec/fixtures/.password",
41
- "spec/fixtures/a.txt",
42
- "spec/fixtures/b.txt",
43
- "spec/fixtures/z/f.txt",
44
- "spec/spec.opts",
45
- "spec/spec_helper.rb"
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "LICENSE",
26
+ "README.rdoc",
27
+ "Rakefile",
28
+ "VERSION",
29
+ "bin/filezor",
30
+ "config/filezor.ru",
31
+ "config/filezor.yml",
32
+ "filezor.gemspec",
33
+ "lib/filezor.rb",
34
+ "lib/filezor/client.rb",
35
+ "lib/filezor/file.rb",
36
+ "lib/filezor/server.rb",
37
+ "lib/filezor/util.rb",
38
+ "spec/filezor/client_spec.rb",
39
+ "spec/filezor/server_spec.rb",
40
+ "spec/filezor/util_spec.rb",
41
+ "spec/fixtures/.password",
42
+ "spec/fixtures/a.txt",
43
+ "spec/fixtures/b.txt",
44
+ "spec/fixtures/z/f.txt",
45
+ "spec/spec.opts",
46
+ "spec/spec_helper.rb"
46
47
  ]
47
48
  s.homepage = %q{http://github.com/fizx/filezor}
48
- s.rdoc_options = ["--charset=UTF-8"]
49
49
  s.require_paths = ["lib"]
50
- s.rubygems_version = %q{1.3.6}
50
+ s.rubygems_version = %q{1.3.7}
51
51
  s.summary = %q{pure ruby file sync}
52
52
  s.test_files = [
53
53
  "spec/filezor/client_spec.rb",
54
- "spec/filezor/server_spec.rb",
55
- "spec/filezor/util_spec.rb",
56
- "spec/spec_helper.rb"
54
+ "spec/filezor/server_spec.rb",
55
+ "spec/filezor/util_spec.rb",
56
+ "spec/spec_helper.rb"
57
57
  ]
58
58
 
59
59
  if s.respond_to? :specification_version then
60
60
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
61
61
  s.specification_version = 3
62
62
 
63
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
63
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
64
+ s.add_runtime_dependency(%q<trollop>, [">= 0"])
65
+ s.add_runtime_dependency(%q<rake>, [">= 0"])
66
+ s.add_runtime_dependency(%q<gemcutter>, [">= 0"])
67
+ s.add_runtime_dependency(%q<jeweler>, [">= 0"])
68
+ s.add_runtime_dependency(%q<rack-test>, [">= 0"])
69
+ s.add_runtime_dependency(%q<rest-client>, [">= 0"])
70
+ s.add_runtime_dependency(%q<rspec>, ["< 2"])
71
+ s.add_runtime_dependency(%q<sinatra>, [">= 0"])
64
72
  s.add_runtime_dependency(%q<trollop>, [">= 0"])
65
73
  s.add_runtime_dependency(%q<rest-client>, ["~> 1.3"])
66
74
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
67
75
  else
76
+ s.add_dependency(%q<trollop>, [">= 0"])
77
+ s.add_dependency(%q<rake>, [">= 0"])
78
+ s.add_dependency(%q<gemcutter>, [">= 0"])
79
+ s.add_dependency(%q<jeweler>, [">= 0"])
80
+ s.add_dependency(%q<rack-test>, [">= 0"])
81
+ s.add_dependency(%q<rest-client>, [">= 0"])
82
+ s.add_dependency(%q<rspec>, ["< 2"])
83
+ s.add_dependency(%q<sinatra>, [">= 0"])
68
84
  s.add_dependency(%q<trollop>, [">= 0"])
69
85
  s.add_dependency(%q<rest-client>, ["~> 1.3"])
70
86
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
71
87
  end
72
88
  else
89
+ s.add_dependency(%q<trollop>, [">= 0"])
90
+ s.add_dependency(%q<rake>, [">= 0"])
91
+ s.add_dependency(%q<gemcutter>, [">= 0"])
92
+ s.add_dependency(%q<jeweler>, [">= 0"])
93
+ s.add_dependency(%q<rack-test>, [">= 0"])
94
+ s.add_dependency(%q<rest-client>, [">= 0"])
95
+ s.add_dependency(%q<rspec>, ["< 2"])
96
+ s.add_dependency(%q<sinatra>, [">= 0"])
73
97
  s.add_dependency(%q<trollop>, [">= 0"])
74
98
  s.add_dependency(%q<rest-client>, ["~> 1.3"])
75
99
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
data/lib/filezor/file.rb CHANGED
@@ -3,8 +3,16 @@ require "filezor/util"
3
3
  class Filezor::File
4
4
  attr_accessor :tempfile, :md5, :path
5
5
 
6
+ module Pathable
7
+ def path; ""; end
8
+ end
9
+
6
10
  def initialize(tempfile, path, hash = nil)
7
11
  @tempfile = tempfile
12
+
13
+ # for ruby 1.9 compat. Restclient duck-types files on path
14
+ @tempfile.extend(Pathable) unless @tempfile.respond_to?(:path)
15
+
8
16
  @path = path
9
17
  @md5 = hash || Filezor::Util::md5(tempfile)
10
18
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filezor
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 17
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 3
8
- - 4
9
- version: 1.3.4
9
+ - 5
10
+ version: 1.3.5
10
11
  platform: ruby
11
12
  authors:
12
13
  - Kyle Maxwell
@@ -14,48 +15,166 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-09-27 00:00:00 -07:00
18
+ date: 2010-12-05 00:00:00 -08:00
18
19
  default_executable: filezor
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
- name: trollop
22
- prerelease: false
23
22
  requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
+ hash: 3
27
28
  segments:
28
29
  - 0
29
30
  version: "0"
30
31
  type: :runtime
32
+ name: trollop
33
+ prerelease: false
31
34
  version_requirements: *id001
32
35
  - !ruby/object:Gem::Dependency
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ hash: 3
42
+ segments:
43
+ - 0
44
+ version: "0"
45
+ type: :runtime
46
+ name: rake
47
+ prerelease: false
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ requirement: &id003 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ hash: 3
56
+ segments:
57
+ - 0
58
+ version: "0"
59
+ type: :runtime
60
+ name: gemcutter
61
+ prerelease: false
62
+ version_requirements: *id003
63
+ - !ruby/object:Gem::Dependency
64
+ requirement: &id004 !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ hash: 3
70
+ segments:
71
+ - 0
72
+ version: "0"
73
+ type: :runtime
74
+ name: jeweler
75
+ prerelease: false
76
+ version_requirements: *id004
77
+ - !ruby/object:Gem::Dependency
78
+ requirement: &id005 !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ hash: 3
84
+ segments:
85
+ - 0
86
+ version: "0"
87
+ type: :runtime
88
+ name: rack-test
89
+ prerelease: false
90
+ version_requirements: *id005
91
+ - !ruby/object:Gem::Dependency
92
+ requirement: &id006 !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ hash: 3
98
+ segments:
99
+ - 0
100
+ version: "0"
101
+ type: :runtime
33
102
  name: rest-client
34
103
  prerelease: false
35
- requirement: &id002 !ruby/object:Gem::Requirement
104
+ version_requirements: *id006
105
+ - !ruby/object:Gem::Dependency
106
+ requirement: &id007 !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - <
110
+ - !ruby/object:Gem::Version
111
+ hash: 7
112
+ segments:
113
+ - 2
114
+ version: "2"
115
+ type: :runtime
116
+ name: rspec
117
+ prerelease: false
118
+ version_requirements: *id007
119
+ - !ruby/object:Gem::Dependency
120
+ requirement: &id008 !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ hash: 3
126
+ segments:
127
+ - 0
128
+ version: "0"
129
+ type: :runtime
130
+ name: sinatra
131
+ prerelease: false
132
+ version_requirements: *id008
133
+ - !ruby/object:Gem::Dependency
134
+ requirement: &id009 !ruby/object:Gem::Requirement
135
+ none: false
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ hash: 3
140
+ segments:
141
+ - 0
142
+ version: "0"
143
+ type: :runtime
144
+ name: trollop
145
+ prerelease: false
146
+ version_requirements: *id009
147
+ - !ruby/object:Gem::Dependency
148
+ requirement: &id010 !ruby/object:Gem::Requirement
149
+ none: false
36
150
  requirements:
37
151
  - - ~>
38
152
  - !ruby/object:Gem::Version
153
+ hash: 9
39
154
  segments:
40
155
  - 1
41
156
  - 3
42
157
  version: "1.3"
43
158
  type: :runtime
44
- version_requirements: *id002
45
- - !ruby/object:Gem::Dependency
46
- name: rspec
159
+ name: rest-client
47
160
  prerelease: false
48
- requirement: &id003 !ruby/object:Gem::Requirement
161
+ version_requirements: *id010
162
+ - !ruby/object:Gem::Dependency
163
+ requirement: &id011 !ruby/object:Gem::Requirement
164
+ none: false
49
165
  requirements:
50
166
  - - ">="
51
167
  - !ruby/object:Gem::Version
168
+ hash: 13
52
169
  segments:
53
170
  - 1
54
171
  - 2
55
172
  - 9
56
173
  version: 1.2.9
57
174
  type: :development
58
- version_requirements: *id003
175
+ name: rspec
176
+ prerelease: false
177
+ version_requirements: *id011
59
178
  description: pure ruby file sync
60
179
  email: kyle@kylemaxwell.com
61
180
  executables:
@@ -67,7 +186,8 @@ extra_rdoc_files:
67
186
  - README.rdoc
68
187
  files:
69
188
  - .document
70
- - .gitignore
189
+ - Gemfile
190
+ - Gemfile.lock
71
191
  - LICENSE
72
192
  - README.rdoc
73
193
  - Rakefile
@@ -95,28 +215,32 @@ homepage: http://github.com/fizx/filezor
95
215
  licenses: []
96
216
 
97
217
  post_install_message:
98
- rdoc_options:
99
- - --charset=UTF-8
218
+ rdoc_options: []
219
+
100
220
  require_paths:
101
221
  - lib
102
222
  required_ruby_version: !ruby/object:Gem::Requirement
223
+ none: false
103
224
  requirements:
104
225
  - - ">="
105
226
  - !ruby/object:Gem::Version
227
+ hash: 3
106
228
  segments:
107
229
  - 0
108
230
  version: "0"
109
231
  required_rubygems_version: !ruby/object:Gem::Requirement
232
+ none: false
110
233
  requirements:
111
234
  - - ">="
112
235
  - !ruby/object:Gem::Version
236
+ hash: 3
113
237
  segments:
114
238
  - 0
115
239
  version: "0"
116
240
  requirements: []
117
241
 
118
242
  rubyforge_project:
119
- rubygems_version: 1.3.6
243
+ rubygems_version: 1.3.7
120
244
  signing_key:
121
245
  specification_version: 3
122
246
  summary: pure ruby file sync
data/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC
22
- spec/tmp