urbanairship 2.3.0 → 2.3.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.
data/README.markdown CHANGED
@@ -187,7 +187,7 @@ Urbanairship.segment("abcd-efgh-ijkl") # =>
187
187
  ### Modifying a segment ###
188
188
  Note that you must provide both the display name and criteria when updating a segment, even if you are only changing one or the other.
189
189
  ``` ruby
190
- Urbanairship.update_segment({
190
+ Urbanairship.update_segment('abcd-efgh-ijkl', {
191
191
  :display_name => 'segment1',
192
192
  :criteria => {:and => [{:tag => 'asdf'}]}
193
193
  }) # => {}
data/lib/urbanairship.rb CHANGED
@@ -151,6 +151,7 @@ module Urbanairship
151
151
  end
152
152
 
153
153
  def parse_push_options(hash = {})
154
+ hash[:aliases] = hash[:aliases].map{|a| a.to_s} unless hash[:aliases].nil?
154
155
  hash[:schedule_for] = hash[:schedule_for].map{|elem| process_scheduled_elem(elem)} unless hash[:schedule_for].nil?
155
156
  hash
156
157
  end
@@ -552,6 +552,11 @@ shared_examples_for "an Urbanairship client" do
552
552
  subject.master_secret = "my_master_secret2"
553
553
  subject.push.success?.should == false
554
554
  end
555
+
556
+ it "converts aliases to strints" do
557
+ subject.push(@valid_params.merge(:aliases => [:one, 2]))
558
+ request_json['aliases'].should == ['one', '2']
559
+ end
555
560
  end
556
561
 
557
562
  describe "::push_to_segment" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: urbanairship
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
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: 2013-02-18 00:00:00.000000000 Z
12
+ date: 2013-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json