urbanairship 3.2.2 → 3.2.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 495a9078fc185bcc74643fcbcf9cd1cf9c10a786
4
- data.tar.gz: 290c83fc6e6f4462e9741222c9f695c44d212d53
3
+ metadata.gz: 90725801ea0a0dcd8d3d9dee004e27490f1702af
4
+ data.tar.gz: aa29329c6d1e0f8d842470eeae4841a9f5784879
5
5
  SHA512:
6
- metadata.gz: e8d395c135cd54f532a987c228f7a9c3baf630f1f258b4a32ecaff3faa86cca1451b1145f4fa5d17264d576880b05963d2e2a15441def7b941a154649354b941
7
- data.tar.gz: a40b51fd71f5fbdd23732ab20586b84fc1b6d95cfacafb002d00f57691c0379ebb0376a71daa1182037efc808075ea4ec1aa077e2281162aa39092940a0526cd
6
+ metadata.gz: 45a73240b851d941b6cec9632d3bd3161e1c2c850241c583d0eff2f0b3371fb512c58d795a30c309870ff4cd8c5039e0cafd90651d3f518f5be648ccbcbb972e
7
+ data.tar.gz: 73a0470ec770e2d1b96f6d60b0b88c8c1520d7af3c102f206550c66dfd7c08cd378f291afdcfa9181d2696df0f8d50a85a50b499ace632112e23a9ccf3885f52
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ --------------------
2
+ 3.2.3
3
+ --------------------
4
+ - Added support for named user audience selector
5
+
6
+
1
7
  --------------------
2
8
  3.2.2
3
9
  --------------------
data/README.rst CHANGED
@@ -86,13 +86,13 @@ Contributing
86
86
  ============
87
87
 
88
88
  1. Fork it ( https://github.com/urbanairship/ruby-library )
89
- 2. Create your feature branch (`git checkout -b my-new-feature`)
90
- 3. Commit your changes (`git commit -am 'Add some feature'`)
91
- 4. Push to the branch (`git push origin my-new-feature`)
89
+ 2. Create your feature branch: ``git checkout -b my-new-feature``
90
+ 3. Commit your changes ``git commit -am 'Add some feature'``
91
+ 4. Push to the branch ``git push origin my-new-feature``
92
92
  5. Create a new Pull Request
93
- 6. Sign Urban Airship's `contribution agreement
94
- <http://docs.urbanairship.com/contribution-agreement.html>`_.
95
- Note: Changes will not be approved and merged without a signed contribution agreement
93
+ 6. Sign Urban Airship's `contribution agreement <http://docs.urbanairship.com/contribution-agreement.html>`_.
94
+
95
+ **Note**: Changes will not be approved and merged without a signed contribution agreement
96
96
 
97
97
  Development
98
98
  ===========
@@ -113,6 +113,12 @@ Select a single segment:
113
113
 
114
114
  push.audience = UA.segment(segment)
115
115
 
116
+ Select a single named user:
117
+
118
+ .. code-block:: ruby
119
+
120
+ push.audience = UA.named_user(named_user)
121
+
116
122
  Select devices that match at least one of the given selectors:
117
123
 
118
124
  .. code-block:: ruby
@@ -53,6 +53,11 @@ module Urbanairship
53
53
  { segment: segment }
54
54
  end
55
55
 
56
+ # Select a single named user
57
+ def named_user(named_user)
58
+ { named_user: named_user }
59
+ end
60
+
56
61
  # Select devices that match at least one of the given selectors.
57
62
  #
58
63
  # @example
@@ -1,3 +1,3 @@
1
1
  module Urbanairship
2
- VERSION = '3.2.2'
2
+ VERSION = '3.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: urbanairship
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Urban Airship
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-26 00:00:00.000000000 Z
11
+ date: 2016-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unirest