strawberry_api 0.4.0 → 0.4.1

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.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/doc/HTTParty/Response.html +1 -1
  3. data/doc/StrawberryAPI.html +2 -2
  4. data/doc/StrawberryAPI/AccessRight.html +1 -1
  5. data/doc/StrawberryAPI/ApiKey.html +1 -1
  6. data/doc/StrawberryAPI/ArchiveStrategy.html +1 -1
  7. data/doc/StrawberryAPI/ArchiveStrategyState.html +1 -1
  8. data/doc/StrawberryAPI/Asset.html +1 -1
  9. data/doc/StrawberryAPI/AssetCopyToStrategy.html +1 -1
  10. data/doc/StrawberryAPI/AssetFeedback.html +1 -1
  11. data/doc/StrawberryAPI/Client.html +1 -1
  12. data/doc/StrawberryAPI/Client/ApiKeys.html +1 -1
  13. data/doc/StrawberryAPI/Client/ArchiveStrategies.html +1 -1
  14. data/doc/StrawberryAPI/Client/AssetCopyToStrategies.html +1 -1
  15. data/doc/StrawberryAPI/Client/AssetFeedbacks.html +1 -1
  16. data/doc/StrawberryAPI/Client/Assets.html +1 -1
  17. data/doc/StrawberryAPI/Client/Collections.html +1 -1
  18. data/doc/StrawberryAPI/Client/CopyToFeedbacks.html +1 -1
  19. data/doc/StrawberryAPI/Client/CustomMetadata.html +1 -1
  20. data/doc/StrawberryAPI/Client/CustomMetadataFields.html +1 -1
  21. data/doc/StrawberryAPI/Client/CustomMetadataOptions.html +1 -1
  22. data/doc/StrawberryAPI/Client/CustomMetadataSets.html +1 -1
  23. data/doc/StrawberryAPI/Client/Edits.html +1 -1
  24. data/doc/StrawberryAPI/Client/Features.html +1 -1
  25. data/doc/StrawberryAPI/Client/Libraries.html +1 -1
  26. data/doc/StrawberryAPI/Client/Markers.html +1 -1
  27. data/doc/StrawberryAPI/Client/ProjectCopyToStrategies.html +1 -1
  28. data/doc/StrawberryAPI/Client/ProjectFeedbacks.html +1 -1
  29. data/doc/StrawberryAPI/Client/Projects.html +1 -1
  30. data/doc/StrawberryAPI/Client/Roles.html +1 -1
  31. data/doc/StrawberryAPI/Client/Schedules.html +1 -1
  32. data/doc/StrawberryAPI/Client/Searches.html +1 -1
  33. data/doc/StrawberryAPI/Client/Sessions.html +1 -1
  34. data/doc/StrawberryAPI/Client/Settings.html +1 -1
  35. data/doc/StrawberryAPI/Client/StatusFlags.html +1 -1
  36. data/doc/StrawberryAPI/Client/Teams.html +1 -1
  37. data/doc/StrawberryAPI/Client/Templates.html +1 -1
  38. data/doc/StrawberryAPI/Client/Users.html +1 -1
  39. data/doc/StrawberryAPI/Collection.html +1 -1
  40. data/doc/StrawberryAPI/Configuration.html +1 -1
  41. data/doc/StrawberryAPI/CopyToFeedback.html +1 -1
  42. data/doc/StrawberryAPI/CustomMetadataField.html +1 -1
  43. data/doc/StrawberryAPI/CustomMetadataOption.html +1 -1
  44. data/doc/StrawberryAPI/CustomMetadataSet.html +1 -1
  45. data/doc/StrawberryAPI/CustomMetadatum.html +1 -1
  46. data/doc/StrawberryAPI/Edit.html +1 -1
  47. data/doc/StrawberryAPI/Feature.html +1 -1
  48. data/doc/StrawberryAPI/Feedback.html +1 -1
  49. data/doc/StrawberryAPI/HttpClient.html +1 -1
  50. data/doc/StrawberryAPI/Library.html +1 -1
  51. data/doc/StrawberryAPI/Marker.html +1 -1
  52. data/doc/StrawberryAPI/Project.html +196 -12
  53. data/doc/StrawberryAPI/ProjectCopyToStrategy.html +1 -1
  54. data/doc/StrawberryAPI/ProjectFeedback.html +1 -1
  55. data/doc/StrawberryAPI/Proxy.html +1 -1
  56. data/doc/StrawberryAPI/Role.html +1 -1
  57. data/doc/StrawberryAPI/Schedule.html +1 -1
  58. data/doc/StrawberryAPI/Session.html +1 -1
  59. data/doc/StrawberryAPI/Setting.html +1 -1
  60. data/doc/StrawberryAPI/StatusFlag.html +1 -1
  61. data/doc/StrawberryAPI/Strategy.html +1 -1
  62. data/doc/StrawberryAPI/Team.html +1 -1
  63. data/doc/StrawberryAPI/Template.html +1 -1
  64. data/doc/StrawberryAPI/User.html +1 -1
  65. data/doc/_index.html +1 -1
  66. data/doc/file.README.html +1 -1
  67. data/doc/index.html +1 -1
  68. data/doc/method_list.html +358 -342
  69. data/doc/top-level-namespace.html +1 -1
  70. data/lib/strawberry_api/client/projects.rb +5 -7
  71. data/lib/strawberry_api/version.rb +1 -1
  72. data/samples/test.rb +2 -2
  73. metadata +1 -1
@@ -100,7 +100,7 @@
100
100
  </div>
101
101
 
102
102
  <div id="footer">
103
- Generated on Mon Sep 10 17:38:25 2018 by
103
+ Generated on Sat Sep 15 18:32:06 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>
@@ -176,7 +176,7 @@ module StrawberryAPI
176
176
  # @return [StrawberryAPI::ProjectFeedback] The operation status
177
177
  #
178
178
  def refresh_mounted_project(id:)
179
- put("/projects/#{id}/refreshmountedproject", headers: {'X-FLAVOURSYS-EDIT' => edit}).parse['job']
179
+ data = put("/projects/#{id}/refreshmountedproject", headers: {'X-FLAVOURSYS-EDIT' => edit}).parse['job']
180
180
  data.nil? ? nil : ProjectFeedback.new(data)
181
181
  end
182
182
 
@@ -192,9 +192,8 @@ module StrawberryAPI
192
192
  exclude_linked_files: exclude_linked_files
193
193
  }.to_json
194
194
 
195
- put("/projects/#{id}/archive", body: body).parse['archivestrategystate']&.map do |state|
196
- ArchiveStrategyState.new(state)
197
- end
195
+ data = put("/projects/#{id}/archive", body: body).parse['archivestrategystate']
196
+ data.nil? ? nil : ArchiveStrategyState.new(data)
198
197
  end
199
198
 
200
199
  # Unarchives a project
@@ -204,9 +203,8 @@ module StrawberryAPI
204
203
  # @return [StrawberryAPI::ArchiveStrategyState] The operation status
205
204
  #
206
205
  def unarchive_project(id:)
207
- put("/projects/#{id}/unarchive").parse['archivestrategystate']&.map do |state|
208
- ArchiveStrategyState.new(state)
209
- end
206
+ data = put("/projects/#{id}/unarchive").parse['archivestrategystate']
207
+ data.nil? ? nil : ArchiveStrategyState.new(data)
210
208
  end
211
209
 
212
210
  # Searches for a substring in project names
@@ -1,3 +1,3 @@
1
1
  module StrawberryAPI
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/samples/test.rb CHANGED
@@ -8,6 +8,6 @@ StrawberryAPI.configure do |c|
8
8
  end
9
9
 
10
10
  sb = StrawberryAPI::Client.new
11
- #sb.freeze_project(id: 61)
12
- p sb.project(id: 61).archived?
11
+ p sb.unfreeze_project(id: 61)
12
+ p sb.unarchive_project(id: 61)
13
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strawberry_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Lebrun