freelancer4r 1.0.7 → 1.0.8
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/CHANGELOG +3 -0
- data/lib/freelancer.rb +1 -1
- data/lib/freelancer/employer.rb +55 -55
- metadata +3 -3
data/CHANGELOG
CHANGED
data/lib/freelancer.rb
CHANGED
data/lib/freelancer/employer.rb
CHANGED
|
@@ -115,65 +115,65 @@ module Freelancer
|
|
|
115
115
|
end
|
|
116
116
|
request "/Employer/inviteUserForProject.json", options
|
|
117
117
|
end
|
|
118
|
-
end
|
|
119
118
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
119
|
+
#Update the details for a posted project.
|
|
120
|
+
#
|
|
121
|
+
#http://developer.freelancer.com/UpdateProjectDetails
|
|
122
|
+
#
|
|
123
|
+
#<b>Required:</b>
|
|
124
|
+
# :projectid
|
|
125
|
+
#
|
|
126
|
+
#<b>Optional:</b>
|
|
127
|
+
# :projectdesc
|
|
128
|
+
# :jobtypecsv
|
|
129
|
+
def updateProjectDetails *args
|
|
130
|
+
options=fill_args [:projectid,:projectdesc,:jobtypecsv],[:projectid],*args
|
|
131
|
+
request "/Employer/updateProjectDetails.json", options
|
|
132
|
+
end
|
|
134
133
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
134
|
+
#Retrieve the eligibility for current user to post a trial project.
|
|
135
|
+
#
|
|
136
|
+
#http://developer.freelancer.com/EligibleForTrialProject
|
|
137
|
+
def eligibleForTrialProject
|
|
138
|
+
request "/Employer/eligibleForTrialProject.json"
|
|
139
|
+
end
|
|
141
140
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
141
|
+
#Publish Draft project to Trial or Normal.
|
|
142
|
+
#
|
|
143
|
+
#http://developer.freelancer.com/PublishDraftProject
|
|
144
|
+
#
|
|
145
|
+
#<b>Required:</b>
|
|
146
|
+
# :projectid => Draft project ID
|
|
147
|
+
#
|
|
148
|
+
#<b>Optional:</b>
|
|
149
|
+
# :publishoption
|
|
150
|
+
# :trial => Publish to Trial Project (if not eligible, saved as Draft project)
|
|
151
|
+
# :normal => Publish to Normal Project (Default)
|
|
152
|
+
def publishDraftProject *args
|
|
153
|
+
options=fill_args [:projectid,:publishoption],[:projectid],*args
|
|
154
|
+
request "/Employer/publishDraftProject.json", options
|
|
155
|
+
end
|
|
157
156
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
157
|
+
#Upgrade Trial project to Normal.
|
|
158
|
+
#
|
|
159
|
+
#http://developer.freelancer.com/UpgradeTrialProject
|
|
160
|
+
#
|
|
161
|
+
#<b>Required:</b>
|
|
162
|
+
# :projectid => Trial project ID
|
|
163
|
+
def upgradeTrialProject *args
|
|
164
|
+
options=fill_args [:projectid],[:projectid],*args
|
|
165
|
+
request "/Employer/upgradeTrialProject.json", options
|
|
166
|
+
end
|
|
168
167
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
168
|
+
#Delete draft project
|
|
169
|
+
#
|
|
170
|
+
#http://developer.freelancer.com/DeleteDraftProject
|
|
171
|
+
#
|
|
172
|
+
#<b>Required:</b>
|
|
173
|
+
# :projectid => Draft project ID
|
|
174
|
+
def deleteDraftProject *args
|
|
175
|
+
options=fill_args [:projectid],[:projectid],*args
|
|
176
|
+
request "/Employer/deleteDraftProject.json", options
|
|
177
|
+
end
|
|
178
178
|
end
|
|
179
179
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: freelancer4r
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 7
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 1.0.
|
|
9
|
+
- 8
|
|
10
|
+
version: 1.0.8
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Janos Haber
|