dshelf 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/dshelf/dfile.rb +1 -2
  2. data/lib/dshelf.rb +1 -1
  3. metadata +9 -23
data/lib/dshelf/dfile.rb CHANGED
@@ -86,8 +86,7 @@ class DistributedFile
86
86
  end
87
87
 
88
88
  def write string
89
- resource = RestClient::Resource.new "#{server_url}/storage#{absolutepath}"
90
- resource.put string, :content_type => mimetype
89
+ RestClient.put "#{server_url}/storage#{absolutepath}", string, :content_type => mimetype
91
90
  end
92
91
 
93
92
  # File.open(filename, mode="r" [, opt]) => file
data/lib/dshelf.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module DistributedShelf
2
- VERSION = '0.1'
2
+ VERSION = '0.2'
3
3
 
4
4
  @@config = {}
5
5
 
metadata CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
8
- version: "0.1"
7
+ - 2
8
+ version: "0.2"
9
9
  platform: ruby
10
10
  authors:
11
11
  - Phil Pirozhkov
@@ -25,9 +25,9 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  segments:
27
27
  - 1
28
- - 4
29
- - 0
30
- version: 1.4.0
28
+ - 6
29
+ - 1
30
+ version: 1.6.1
31
31
  type: :runtime
32
32
  version_requirements: *id001
33
33
  - !ruby/object:Gem::Dependency
@@ -44,24 +44,10 @@ dependencies:
44
44
  version: 1.2.0
45
45
  type: :runtime
46
46
  version_requirements: *id002
47
- - !ruby/object:Gem::Dependency
48
- name: multipart-post
49
- prerelease: false
50
- requirement: &id003 !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- segments:
55
- - 1
56
- - 0
57
- - 0
58
- version: 1.0.0
59
- type: :runtime
60
- version_requirements: *id003
61
47
  - !ruby/object:Gem::Dependency
62
48
  name: mime-types
63
49
  prerelease: false
64
- requirement: &id004 !ruby/object:Gem::Requirement
50
+ requirement: &id003 !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - ~>
67
53
  - !ruby/object:Gem::Version
@@ -70,8 +56,8 @@ dependencies:
70
56
  - 0
71
57
  version: "1.0"
72
58
  type: :runtime
73
- version_requirements: *id004
74
- description: ""
59
+ version_requirements: *id003
60
+ description: Transparent remote storage for File API
75
61
  email: pirj@mail.ru
76
62
  executables: []
77
63
 
@@ -86,7 +72,7 @@ files:
86
72
  - lib/dshelf/file.rb
87
73
  - lib/dshelf/stat.rb
88
74
  has_rdoc: true
89
- homepage: http://distributedshelf.com
75
+ homepage: https://distributedshelf.com
90
76
  licenses: []
91
77
 
92
78
  post_install_message: