strawberry_api 0.1.0 → 0.2.0
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.
- checksums.yaml +4 -4
- data/doc/HTTParty/Response.html +1 -1
- data/doc/StrawberryAPI.html +2 -2
- data/doc/StrawberryAPI/AccessRight.html +1 -1
- data/doc/StrawberryAPI/ApiKey.html +1 -1
- data/doc/StrawberryAPI/ArchiveStrategy.html +1 -1
- data/doc/StrawberryAPI/ArchiveStrategyState.html +1 -1
- data/doc/StrawberryAPI/Asset.html +1 -1
- data/doc/StrawberryAPI/AssetCopyToStrategy.html +1 -1
- data/doc/StrawberryAPI/AssetFeedback.html +1 -1
- data/doc/StrawberryAPI/Client.html +2 -2
- data/doc/StrawberryAPI/Client/ApiKeys.html +1 -1
- data/doc/StrawberryAPI/Client/ArchiveStrategies.html +1 -1
- data/doc/StrawberryAPI/Client/AssetCopyToStrategies.html +1 -1
- data/doc/StrawberryAPI/Client/AssetFeedbacks.html +1 -1
- data/doc/StrawberryAPI/Client/Assets.html +1 -1
- data/doc/StrawberryAPI/Client/Collections.html +1 -1
- data/doc/StrawberryAPI/Client/CopyToFeedbacks.html +1 -1
- data/doc/StrawberryAPI/Client/CustomMetadata.html +1 -1
- data/doc/StrawberryAPI/Client/CustomMetadataFields.html +1 -1
- data/doc/StrawberryAPI/Client/CustomMetadataOptions.html +1 -1
- data/doc/StrawberryAPI/Client/CustomMetadataSets.html +1 -1
- data/doc/StrawberryAPI/Client/Edits.html +1 -1
- data/doc/StrawberryAPI/Client/Features.html +1 -1
- data/doc/StrawberryAPI/Client/Libraries.html +1 -1
- data/doc/StrawberryAPI/Client/Markers.html +1 -1
- data/doc/StrawberryAPI/Client/ProjectCopyToStrategies.html +1 -1
- data/doc/StrawberryAPI/Client/ProjectFeedbacks.html +1 -1
- data/doc/StrawberryAPI/Client/Projects.html +304 -98
- data/doc/StrawberryAPI/Client/Roles.html +1 -1
- data/doc/StrawberryAPI/Client/Schedules.html +1 -1
- data/doc/StrawberryAPI/Client/Searches.html +1 -1
- data/doc/StrawberryAPI/Client/Sessions.html +1 -1
- data/doc/StrawberryAPI/Client/Settings.html +1 -1
- data/doc/StrawberryAPI/Client/StatusFlags.html +1 -1
- data/doc/StrawberryAPI/Client/Teams.html +1 -1
- data/doc/StrawberryAPI/Client/Templates.html +1 -1
- data/doc/StrawberryAPI/Client/Users.html +1 -1
- data/doc/StrawberryAPI/Collection.html +1 -1
- data/doc/StrawberryAPI/Configuration.html +1 -1
- data/doc/StrawberryAPI/CopyToFeedback.html +1 -1
- data/doc/StrawberryAPI/CustomMetadataField.html +1 -1
- data/doc/StrawberryAPI/CustomMetadataOption.html +1 -1
- data/doc/StrawberryAPI/CustomMetadataSet.html +1 -1
- data/doc/StrawberryAPI/CustomMetadatum.html +1 -1
- data/doc/StrawberryAPI/Edit.html +1 -1
- data/doc/StrawberryAPI/Feature.html +1 -1
- data/doc/StrawberryAPI/Feedback.html +1 -1
- data/doc/StrawberryAPI/HttpClient.html +1 -1
- data/doc/StrawberryAPI/Library.html +1 -1
- data/doc/StrawberryAPI/Marker.html +1 -1
- data/doc/StrawberryAPI/Project.html +1 -1
- data/doc/StrawberryAPI/ProjectCopyToStrategy.html +1 -1
- data/doc/StrawberryAPI/ProjectFeedback.html +1 -1
- data/doc/StrawberryAPI/Proxy.html +1 -1
- data/doc/StrawberryAPI/Role.html +1 -1
- data/doc/StrawberryAPI/Schedule.html +1 -1
- data/doc/StrawberryAPI/Session.html +1 -1
- data/doc/StrawberryAPI/Setting.html +1 -1
- data/doc/StrawberryAPI/StatusFlag.html +1 -1
- data/doc/StrawberryAPI/Strategy.html +1 -1
- data/doc/StrawberryAPI/Team.html +1 -1
- data/doc/StrawberryAPI/Template.html +1 -1
- data/doc/StrawberryAPI/User.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +443 -427
- data/doc/top-level-namespace.html +1 -1
- data/lib/strawberry_api/client/projects.rb +20 -0
- data/lib/strawberry_api/version.rb +1 -1
- data/samples/test.rb +2 -2
- metadata +3 -3
@@ -100,7 +100,7 @@
|
|
100
100
|
</div>
|
101
101
|
|
102
102
|
<div id="footer">
|
103
|
-
Generated on
|
103
|
+
Generated on Sun Sep 9 18:07:25 2018 by
|
104
104
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
105
105
|
0.9.16 (ruby-2.5.0).
|
106
106
|
</div>
|
@@ -104,6 +104,26 @@ module StrawberryAPI
|
|
104
104
|
data = put("/projects/#{id}/sync").parse['job']
|
105
105
|
data.nil? ? nil : ProjectFeedback.new(data)
|
106
106
|
end
|
107
|
+
|
108
|
+
# Freezes a project
|
109
|
+
#
|
110
|
+
# @param [Integer] id Id of the project to freeze
|
111
|
+
#
|
112
|
+
# @return [Boolean] Success
|
113
|
+
#
|
114
|
+
def freeze_project(id:)
|
115
|
+
put("/projects/#{id}/freeze").success?
|
116
|
+
end
|
117
|
+
|
118
|
+
# Unfreezes a project
|
119
|
+
#
|
120
|
+
# @param [Integer] id Id of the project to unfreeze
|
121
|
+
#
|
122
|
+
# @return [Boolean] Success
|
123
|
+
#
|
124
|
+
def unfreeze_project(id:)
|
125
|
+
delete("/projects/#{id}/unfreeze").success?
|
126
|
+
end
|
107
127
|
|
108
128
|
# Closes a project
|
109
129
|
#
|
data/samples/test.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strawberry_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pierre Lebrun
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
235
235
|
version: '0'
|
236
236
|
requirements: []
|
237
237
|
rubyforge_project:
|
238
|
-
rubygems_version: 2.7.
|
238
|
+
rubygems_version: 2.7.7
|
239
239
|
signing_key:
|
240
240
|
specification_version: 4
|
241
241
|
summary: Strawberry API client
|