vero 0.5.11 → 0.5.12
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/README.markdown +4 -1
- data/lib/vero/api.rb +4 -0
- data/lib/vero/version.rb +1 -1
- data/spec/lib/dsl_spec.rb +4 -0
- metadata +1 -1
data/README.markdown
CHANGED
@@ -178,6 +178,9 @@ First, ensure you've correctly configured the gem following the instructions as
|
|
178
178
|
|
179
179
|
# Editing a user's tags
|
180
180
|
vero.users.edit_user_tags!({:email => "james@getvero.com", :add => [], :remove => ["awesome"]})
|
181
|
+
|
182
|
+
# Changing a user's id
|
183
|
+
vero.users.reidentify!({:id => "james@getvero.com", :new_id => "honeybadger@getvero.com"})
|
181
184
|
end
|
182
185
|
|
183
186
|
def destroy
|
@@ -195,4 +198,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
195
198
|
|
196
199
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
197
200
|
|
198
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
201
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/lib/vero/api.rb
CHANGED
@@ -51,6 +51,10 @@ module Vero
|
|
51
51
|
new(context).edit_user_tags!(options)
|
52
52
|
end
|
53
53
|
|
54
|
+
def self.reidentify!(options, context = Vero::App.default_context)
|
55
|
+
new(context).reidentify!(options)
|
56
|
+
end
|
57
|
+
|
54
58
|
def self.unsubscribe!(options, context = Vero::App.default_context)
|
55
59
|
new(context).unsubscribe!(options)
|
56
60
|
end
|
data/lib/vero/version.rb
CHANGED
data/spec/lib/dsl_spec.rb
CHANGED
@@ -17,6 +17,10 @@ describe Vero::DSL::Proxy do
|
|
17
17
|
it 'is a pointer to Vero::Api::Users' do
|
18
18
|
expect(proxy.users).to eql(Vero::Api::Users)
|
19
19
|
end
|
20
|
+
|
21
|
+
it "should respond to reidentify!" do
|
22
|
+
expect(proxy.users.respond_to?(:reidentify!)).to be_true
|
23
|
+
end
|
20
24
|
end
|
21
25
|
|
22
26
|
describe '#events' do
|