cliskip2 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.
@@ -145,15 +145,15 @@ module Cliskip2
145
145
 
146
146
  # Join the community by the target-community and params
147
147
  # @return [Cliskip2::CommunityParticipation]
148
- def join_community community, user
149
- community_participation_attr = post("/tenants/#{current_user.tenant_id}/communities/#{community.id}/community_participations.json", {:community_participation => {:user_id => user.id}})
148
+ def join_community community, user, params
149
+ community_participation_attr = post("/tenants/#{current_user.tenant_id}/communities/#{community.id}/community_participations.json", {:community_participation => {:user_id => user.id}}.merge(params))
150
150
  Cliskip2::CommunityParticipation.new(community_participation_attr['community_participation'])
151
151
  end
152
152
 
153
153
  # Leave from the community by the target-community and params
154
154
  # @return [Cliskip2::CommunityParticipation]
155
- def leave_community community_participation
156
- community_participation_attr = delete("/tenants/#{current_user.tenant_id}/communities/#{community_participation.community_id}/community_participations/#{community_participation.id}.json")
155
+ def leave_community community_participation, params
156
+ community_participation_attr = delete("/tenants/#{current_user.tenant_id}/communities/#{community_participation.community_id}/community_participations/#{community_participation.id}.json", params)
157
157
  Cliskip2::CommunityParticipation.new(community_participation_attr['community_participation'])
158
158
  end
159
159
 
@@ -1,3 +1,3 @@
1
1
  module Cliskip2
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cliskip2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
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: 2012-07-02 00:00:00.000000000 Z
12
+ date: 2012-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday_middleware