urbanairship 3.0.2 → 3.1.0

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.md DELETED
@@ -1,96 +0,0 @@
1
- [![Build Status](https://travis-ci.org/urbanairship/ruby-library.svg?branch=master)](https://travis-ci.org/urbanairship/ruby-library)
2
-
3
- # Urbanairship
4
-
5
- `urbanairship` is a Ruby library for using the [Urban Airship](www.urbanairship.com) web service API for push notifications and rich app pages.
6
-
7
- ## Requirements
8
- As of Version 3.0, a Ruby version >= 2.0 must be used.
9
-
10
- ## Functionality
11
-
12
- ####BETA Release
13
- Version 3.0 is a major upgrade and backwards incompatible with earlier versions. This BETA release focuses on support for the new version 3 push API. There is also a major reorganization of the codebase.
14
-
15
- Note: the BETA release only supports UA's ```/push/``` and ```/schedules/``` endpoints. Expanded support for UA's other endpoints will be in the forthcoming release.
16
-
17
- ####Forthcoming Release
18
- To encourage the use of our SDK, which takes care of proper channel registration, support for device token registration will be removed. Support for v1 endpoints will also be removed and transitioned to their v3 equivalents where possible.
19
-
20
- ## Installation
21
-
22
- If you have the ```bundler``` gem (if not you can get it with ```$ gem install bundler```) add this line to your application's Gemfile:
23
-
24
- ```ruby
25
- gem 'urbanairship'
26
- ```
27
-
28
- And then execute:
29
-
30
- $ bundle
31
-
32
- OR install it yourself as:
33
-
34
- $ gem install urbanairship
35
-
36
- ## Usage
37
-
38
- Once the gem has been installed you can start sending pushes! See http://docs.urbanairship.com/topic-guides/api-examples.html for more examples.
39
-
40
- ####Broadcast to All Devices
41
- ```ruby
42
- require 'urbanairship'
43
- UA = Urbanairship
44
- airship = UA::Client.new(key:'application_key', secret:'master_secret')
45
- p = airship.create_push
46
- p.audience = UA.all
47
- p.notification = UA.notification(alert: 'Hello')
48
- p.device_types = UA.all
49
- p.send_push
50
- ```
51
-
52
- ####Simple Tag Push
53
- ```ruby
54
- require 'urbanairship'
55
- UA = Urbanairship
56
- airship = UA::Client.new(key:'application_key', secret:'master_secret')
57
- p = airship.create_push
58
- p.audience = UA.tag('some_tag')
59
- p.notification = UA.notification(alert: 'Hello')
60
- p.device_types = UA.all
61
- p.send_push
62
- ```
63
-
64
- ## Questions
65
- The best place to ask questions is our support site: http://support.urbanairship.com/
66
-
67
- ## Contributing
68
-
69
- 1. Fork it ( https://github.com/urbanairship/ruby-library )
70
- 2. Create your feature branch (`git checkout -b my-new-feature`)
71
- 3. Commit your changes (`git commit -am 'Add some feature'`)
72
- 4. Push to the branch (`git push origin my-new-feature`)
73
- 5. Create a new Pull Request
74
- 6. Sign Urban Airship's [contribution agreement](http://urbanairship.com/legal/contribution-agreement)
75
- Note: Changes will not be approved and merged without a signed contribution agreement
76
-
77
- ## Development
78
-
79
- After checking out the repo, ensure you have ```bundler``` installed (```$ gem install bundler```) run
80
-
81
- $ bin/setup
82
-
83
- to install dependencies.
84
- Then, run
85
-
86
- $ bin/console
87
-
88
- for an interactive prompt that will allow you to experiment.
89
-
90
- OR you can build a local gem to play with:
91
-
92
- $ gem build urbanairship.gemspec
93
- $ gem install ./urbanairship-<VERSION>.gem
94
-
95
- Having a local build will give you better logging if you are running into issues, but be careful to make sure to use our released
96
- public gem in Production.