streaker 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7276c7003786e24b217d4fbdadaf9c9b5057ef57
4
- data.tar.gz: 963fe822f4284dc259a9bc40a15685479511ecf4
3
+ metadata.gz: 962ba0a9f8072633a775ee97fca8df9a69e82965
4
+ data.tar.gz: 6c7f232c1a72bcc1900e25d7cd61da2aa5b3bd31
5
5
  SHA512:
6
- metadata.gz: 54aedc882160a540fda3b982bfa5a03b6b81153b95b335d9fb31e3d57bff98cd1b803862c460fcd2b3f9d6f27169980768449a190f3579093d5a0e51f269f2f5
7
- data.tar.gz: 802f8fd519518a1b1940a5f587dfc5d6ef60fc8de69ac7e61f2ca25121fdd0aa686eb41aabf1784a25db4524a32faad6042c63523d9473cc1e58a96facf23e3c
6
+ metadata.gz: 1a7bcb8cfd4fefd4b0b4ac990c16a7c274fc3326db83e00d58971560e33155d88b74e8b6421733c7a6963552dbf22dfd05644d65cc81f591fc8fea4f2f1af04b
7
+ data.tar.gz: 4d0101c57d775b91cacaea2ed6b2235ae7433b444379306b78c7dc033b5b28c271cb09ff1e9d6d9ff0516ae64372f5ec2842dccd587e7917b910c93d92f07157
@@ -2,6 +2,11 @@
2
2
 
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [1.2.0] - 2018-09-25
6
+
7
+ Feature:
8
+ - Update the owner of a box with box.update
9
+
5
10
  ## [1.1.1] - 2018-08-22
6
11
 
7
12
  Bugfix:
data/README.md CHANGED
@@ -46,6 +46,7 @@ box = Streaker::Box.new('a_box_key')
46
46
  box.update(
47
47
  name: 'my box name',
48
48
  stage: :some_other_stage,
49
+ assigned_to: ['streak-owner@email.com', 'streak-contributor@email.com', …]
49
50
  my_field: 'A new field value',
50
51
  )
51
52
  ```
@@ -43,6 +43,9 @@ module Streaker
43
43
  {
44
44
  name: attributes.delete(:name),
45
45
  stageKey: find_streak_stage_key_key(attributes.delete(:stage)),
46
+ assignedToSharingEntries: format_emails(
47
+ attributes.delete(:assigned_to),
48
+ ),
46
49
  fields: format_fields_for_streak(attributes)
47
50
  }.delete_if { |_k, v| v.nil? }
48
51
  end
@@ -57,6 +60,8 @@ module Streaker
57
60
  end
58
61
 
59
62
  def format_emails(array)
63
+ return unless array
64
+
60
65
  array.map do |email|
61
66
  {
62
67
  email: email
@@ -1,3 +1,3 @@
1
1
  module Streaker
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: streaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunny Ripert
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-08-22 00:00:00.000000000 Z
12
+ date: 2018-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: http