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.
- data/lib/cloudstrg/cloudstrg.rb +14 -0
- data/lib/cloudstrg/cloudstrg.rb~ +24 -0
- data/lib/cloudstrg/version.rb +1 -1
- data/lib/cloudstrg/version.rb~ +1 -1
- metadata +2 -2
data/lib/cloudstrg/cloudstrg.rb
CHANGED
@@ -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
|
data/lib/cloudstrg/cloudstrg.rb~
CHANGED
@@ -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
|
data/lib/cloudstrg/version.rb
CHANGED
data/lib/cloudstrg/version.rb~
CHANGED
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.
|
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:
|
12
|
+
date: 2013-03-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|