cloudstrg 0.0.9 → 0.0.10

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.
@@ -118,6 +118,20 @@ module CloudStrg
118
118
  def list_files
119
119
  raise NotImplementedError
120
120
  end
121
+
122
+ ###
123
+ # This method allows a user to share a file with other users.
124
+ #
125
+ # Params: the "params" variable must contain the following fields
126
+ # share_user: the username which we want the file shared with,
127
+ # file_id: the id of the file.
128
+ #
129
+ # Returns:
130
+ # This method returns non-nil data if success.
131
+ #
132
+ def share_file params
133
+ raise NotImplementedError
134
+ end
121
135
 
122
136
  ###
123
137
  # This method check if a referer is valid
@@ -118,6 +118,30 @@ module CloudStrg
118
118
  def list_files
119
119
  raise NotImplementedError
120
120
  end
121
+
122
+ ###
123
+ # This method allows a user to share a file with other users.
124
+ #
125
+ # Params: the "params" variable must contain the following fields
126
+ # share_user: the username which we want the file shared with,
127
+ # file_id: the id of the file.
128
+ #
129
+ # Returns:
130
+ # This method returns the local id of the remote object if the operation success, otherwise it returns false.
131
+ #
132
+ def share_file params
133
+ raise NotImplementedError
134
+ end
135
+
136
+ ###
137
+ # This method check if a referer is valid
138
+ #
139
+ # Params:
140
+ # referer: a string containing the request referer
141
+ #
142
+ def check_referer referer
143
+ raise NotImplementedError
144
+ end
121
145
 
122
146
  def save_remoteobject(user, filename, filecontent, file_remote_id)
123
147
  plugin_name = self.class.to_s.split('Strg')[0].downcase
@@ -1,3 +1,3 @@
1
1
  module Cloudstrg
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Cloudstrg
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstrg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-17 00:00:00.000000000 Z
12
+ date: 2013-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails