pushradar 0.9.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/.rakeTasks +7 -0
- data/.idea/PushRadarRuby.iml +0 -1
- data/.idea/workspace.xml +113 -208
- data/CHANGELOG.md +4 -0
- data/README.in_progress.md +51 -8
- data/VERSION +1 -1
- data/lib/PushRadar/Targeting.rb +2 -2
- data/lib/PushRadar/Utils.rb +1 -1
- data/lib/PushRadar/version.rb +1 -1
- data/lib/PushRadar.rb +8 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d827638c2fcde3579c821ab7afcf39f0df850122
|
4
|
+
data.tar.gz: 44054981f59e4f0861eb31ee9319dc1cb2ed1fb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84213de5a8c599921f9bf4db423dc2ecd990d43ba43247f6a20f01ae71ae92766e0ac608a06cb0f828273f691c0ff7cf95bc026bc2a250dcba85eac0b9a45541
|
7
|
+
data.tar.gz: 3e1b982c93ec2376b5576df381ff5adff1bdf7e7a4455a867d35d8aee4b0a0f9d22f92bbcc8db94a0d87758d7bd2ca2087468789fe4027c3583146df8d627665
|
data/.idea/.rakeTasks
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
+
You are allowed to:
|
4
|
+
1. Remove rake task
|
5
|
+
2. Add existing rake tasks
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build pushradar-0.9.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install pushradar-0.9.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install pushradar-0.9.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.9.0 and build and push pushradar-0.9.0.gem to Rubygems" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
|
data/.idea/PushRadarRuby.iml
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
<orderEntry type="inheritedJdk" />
|
9
9
|
<orderEntry type="sourceFolder" forTests="false" />
|
10
10
|
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.15.3, ruby-2.4.1-p111) [gem]" level="application" />
|
11
|
-
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.10.3, ruby-2.4.1-p111) [gem]" level="application" />
|
12
11
|
<orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, ruby-2.4.1-p111) [gem]" level="application" />
|
13
12
|
</component>
|
14
13
|
</module>
|
data/.idea/workspace.xml
CHANGED
@@ -2,28 +2,8 @@
|
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
4
|
<list default="true" id="3aa981a2-6f1a-4c48-b990-e8a3562c6639" name="Default" comment="">
|
5
|
-
<change type="
|
6
|
-
<change type="
|
7
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml" />
|
8
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
|
9
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/modules.xml" />
|
10
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />
|
11
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
12
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/CHANGELOG.md" />
|
13
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Gemfile" />
|
14
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/LICENSE" />
|
15
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/PushRadar.gemspec" />
|
16
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/README.in_progress.md" />
|
17
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/README.md" />
|
18
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Rakefile" />
|
19
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/VERSION" />
|
20
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/console" />
|
21
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/setup" />
|
22
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/PushRadar.rb" />
|
23
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/PushRadar/APIClient.rb" />
|
24
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/PushRadar/Targeting.rb" />
|
25
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/PushRadar/Utils.rb" />
|
26
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/PushRadar/version.rb" />
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.in_progress.md" afterPath="$PROJECT_DIR$/README.in_progress.md" />
|
27
7
|
</list>
|
28
8
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
29
9
|
<option name="TRACKING_ENABLED" value="true" />
|
@@ -40,110 +20,11 @@
|
|
40
20
|
</component>
|
41
21
|
<component name="FileEditorManager">
|
42
22
|
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
43
|
-
<file leaf-file-name="
|
44
|
-
<entry file="file://$PROJECT_DIR$/
|
45
|
-
<provider selected="true" editor-type-id="text-editor">
|
46
|
-
<state relative-caret-position="0">
|
47
|
-
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
48
|
-
<folding />
|
49
|
-
</state>
|
50
|
-
</provider>
|
51
|
-
</entry>
|
52
|
-
</file>
|
53
|
-
<file leaf-file-name="LICENSE" pinned="false" current-in-tab="false">
|
54
|
-
<entry file="file://$PROJECT_DIR$/LICENSE">
|
55
|
-
<provider selected="true" editor-type-id="text-editor">
|
56
|
-
<state relative-caret-position="360">
|
57
|
-
<caret line="20" column="13" lean-forward="false" selection-start-line="20" selection-start-column="13" selection-end-line="20" selection-end-column="13" />
|
58
|
-
<folding />
|
59
|
-
</state>
|
60
|
-
</provider>
|
61
|
-
</entry>
|
62
|
-
</file>
|
63
|
-
<file leaf-file-name="PushRadar.gemspec" pinned="false" current-in-tab="false">
|
64
|
-
<entry file="file://$PROJECT_DIR$/PushRadar.gemspec">
|
65
|
-
<provider selected="true" editor-type-id="text-editor">
|
66
|
-
<state relative-caret-position="450">
|
67
|
-
<caret line="25" column="0" lean-forward="true" selection-start-line="0" selection-start-column="0" selection-end-line="25" selection-end-column="0" />
|
68
|
-
<folding />
|
69
|
-
</state>
|
70
|
-
</provider>
|
71
|
-
</entry>
|
72
|
-
</file>
|
73
|
-
<file leaf-file-name="Rakefile" pinned="false" current-in-tab="false">
|
74
|
-
<entry file="file://$PROJECT_DIR$/Rakefile">
|
75
|
-
<provider selected="true" editor-type-id="text-editor">
|
76
|
-
<state relative-caret-position="0">
|
77
|
-
<caret line="0" column="23" lean-forward="true" selection-start-line="0" selection-start-column="23" selection-end-line="0" selection-end-column="23" />
|
78
|
-
<folding />
|
79
|
-
</state>
|
80
|
-
</provider>
|
81
|
-
</entry>
|
82
|
-
</file>
|
83
|
-
<file leaf-file-name="README.in_progress.md" pinned="false" current-in-tab="false">
|
84
|
-
<entry file="file://$PROJECT_DIR$/README.in_progress.md">
|
85
|
-
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
86
|
-
<state split_layout="SPLIT">
|
87
|
-
<first_editor relative-caret-position="396">
|
88
|
-
<caret line="22" column="30" lean-forward="false" selection-start-line="22" selection-start-column="30" selection-end-line="22" selection-end-column="30" />
|
89
|
-
<folding />
|
90
|
-
</first_editor>
|
91
|
-
<second_editor />
|
92
|
-
</state>
|
93
|
-
</provider>
|
94
|
-
</entry>
|
95
|
-
</file>
|
96
|
-
<file leaf-file-name="README.md" pinned="false" current-in-tab="false">
|
97
|
-
<entry file="file://$PROJECT_DIR$/README.md">
|
98
|
-
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
99
|
-
<state split_layout="SPLIT">
|
100
|
-
<first_editor relative-caret-position="0">
|
101
|
-
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
102
|
-
<folding />
|
103
|
-
</first_editor>
|
104
|
-
<second_editor />
|
105
|
-
</state>
|
106
|
-
</provider>
|
107
|
-
</entry>
|
108
|
-
</file>
|
109
|
-
<file leaf-file-name="VERSION" pinned="false" current-in-tab="false">
|
110
|
-
<entry file="file://$PROJECT_DIR$/VERSION">
|
111
|
-
<provider selected="true" editor-type-id="text-editor">
|
112
|
-
<state relative-caret-position="0">
|
113
|
-
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="5" />
|
114
|
-
<folding />
|
115
|
-
</state>
|
116
|
-
</provider>
|
117
|
-
</entry>
|
118
|
-
</file>
|
119
|
-
<file leaf-file-name="CHANGELOG.md" pinned="false" current-in-tab="false">
|
120
|
-
<entry file="file://$PROJECT_DIR$/CHANGELOG.md">
|
121
|
-
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
122
|
-
<state split_layout="SPLIT">
|
123
|
-
<first_editor relative-caret-position="36">
|
124
|
-
<caret line="2" column="33" lean-forward="false" selection-start-line="2" selection-start-column="33" selection-end-line="2" selection-end-column="33" />
|
125
|
-
<folding />
|
126
|
-
</first_editor>
|
127
|
-
<second_editor />
|
128
|
-
</state>
|
129
|
-
</provider>
|
130
|
-
</entry>
|
131
|
-
</file>
|
132
|
-
<file leaf-file-name="todo" pinned="false" current-in-tab="true">
|
133
|
-
<entry file="file://$PROJECT_DIR$/todo">
|
23
|
+
<file leaf-file-name="console" pinned="false" current-in-tab="true">
|
24
|
+
<entry file="file://$PROJECT_DIR$/bin/console">
|
134
25
|
<provider selected="true" editor-type-id="text-editor">
|
135
26
|
<state relative-caret-position="90">
|
136
|
-
<caret line="5" column="
|
137
|
-
<folding />
|
138
|
-
</state>
|
139
|
-
</provider>
|
140
|
-
</entry>
|
141
|
-
</file>
|
142
|
-
<file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
|
143
|
-
<entry file="file://$PROJECT_DIR$/.gitignore">
|
144
|
-
<provider selected="true" editor-type-id="text-editor">
|
145
|
-
<state relative-caret-position="180">
|
146
|
-
<caret line="10" column="0" lean-forward="true" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
|
27
|
+
<caret line="5" column="19" lean-forward="true" selection-start-line="5" selection-start-column="19" selection-end-line="5" selection-end-column="19" />
|
147
28
|
<folding />
|
148
29
|
</state>
|
149
30
|
</provider>
|
@@ -198,19 +79,21 @@
|
|
198
79
|
<option value="$PROJECT_DIR$/test/PushRadar_test.rb" />
|
199
80
|
<option value="$PROJECT_DIR$/test/test_helper.rb" />
|
200
81
|
<option value="$PROJECT_DIR$/lib/Radar.rb" />
|
201
|
-
<option value="$PROJECT_DIR$/lib/PushRadar/Utils.rb" />
|
202
|
-
<option value="$PROJECT_DIR$/lib/PushRadar/Targeting.rb" />
|
203
82
|
<option value="$PROJECT_DIR$/Rakefile" />
|
204
83
|
<option value="$PROJECT_DIR$/README.md" />
|
205
84
|
<option value="$PROJECT_DIR$/PushRadar.gemspec" />
|
206
85
|
<option value="$PROJECT_DIR$/Gemfile" />
|
207
86
|
<option value="$PROJECT_DIR$/bin/console" />
|
208
|
-
<option value="$PROJECT_DIR$/lib/PushRadar.rb" />
|
209
87
|
<option value="$PROJECT_DIR$/lib/PushRadar/APIClient.rb" />
|
210
|
-
<option value="$PROJECT_DIR$/lib/PushRadar/version.rb" />
|
211
88
|
<option value="$PROJECT_DIR$/.gitignore" />
|
89
|
+
<option value="$PROJECT_DIR$/lib/PushRadar/version.rb" />
|
90
|
+
<option value="$PROJECT_DIR$/lib/PushRadar.rb" />
|
91
|
+
<option value="$PROJECT_DIR$/lib/PushRadar/Targeting.rb" />
|
92
|
+
<option value="$PROJECT_DIR$/lib/PushRadar/Utils.rb" />
|
212
93
|
<option value="$PROJECT_DIR$/CHANGELOG.md" />
|
94
|
+
<option value="$PROJECT_DIR$/VERSION" />
|
213
95
|
<option value="$PROJECT_DIR$/todo" />
|
96
|
+
<option value="$PROJECT_DIR$/README.in_progress.md" />
|
214
97
|
</list>
|
215
98
|
</option>
|
216
99
|
</component>
|
@@ -242,8 +125,6 @@
|
|
242
125
|
<foldersAlwaysOnTop value="true" />
|
243
126
|
</navigator>
|
244
127
|
<panes>
|
245
|
-
<pane id="Scratches" />
|
246
|
-
<pane id="Scope" />
|
247
128
|
<pane id="ProjectPane">
|
248
129
|
<subPane>
|
249
130
|
<expand>
|
@@ -251,26 +132,12 @@
|
|
251
132
|
<item name="PushRadarRuby" type="b2602c69:ProjectViewProjectNode" />
|
252
133
|
<item name="PushRadarRuby" type="462c0819:PsiDirectoryNode" />
|
253
134
|
</path>
|
254
|
-
<path>
|
255
|
-
<item name="PushRadarRuby" type="b2602c69:ProjectViewProjectNode" />
|
256
|
-
<item name="PushRadarRuby" type="462c0819:PsiDirectoryNode" />
|
257
|
-
<item name="bin" type="462c0819:PsiDirectoryNode" />
|
258
|
-
</path>
|
259
|
-
<path>
|
260
|
-
<item name="PushRadarRuby" type="b2602c69:ProjectViewProjectNode" />
|
261
|
-
<item name="PushRadarRuby" type="462c0819:PsiDirectoryNode" />
|
262
|
-
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
263
|
-
</path>
|
264
|
-
<path>
|
265
|
-
<item name="PushRadarRuby" type="b2602c69:ProjectViewProjectNode" />
|
266
|
-
<item name="PushRadarRuby" type="462c0819:PsiDirectoryNode" />
|
267
|
-
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
268
|
-
<item name="PushRadar" type="462c0819:PsiDirectoryNode" />
|
269
|
-
</path>
|
270
135
|
</expand>
|
271
136
|
<select />
|
272
137
|
</subPane>
|
273
138
|
</pane>
|
139
|
+
<pane id="Scope" />
|
140
|
+
<pane id="Scratches" />
|
274
141
|
</panes>
|
275
142
|
</component>
|
276
143
|
<component name="PropertiesComponent">
|
@@ -278,13 +145,13 @@
|
|
278
145
|
<property name="settings.editor.selected.configurable" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
|
279
146
|
</component>
|
280
147
|
<component name="RecentsManager">
|
281
|
-
<key name="MoveFile.RECENT_KEYS">
|
282
|
-
<recent name="C:\Users\Anthony\RubymineProjects\PushRadarRuby\lib\PushRadar" />
|
283
|
-
</key>
|
284
148
|
<key name="CopyFile.RECENT_KEYS">
|
285
149
|
<recent name="C:\Users\Anthony\RubymineProjects\PushRadarRuby" />
|
286
150
|
<recent name="C:\Users\Anthony\RubymineProjects\PushRadarRuby\lib\PushRadar" />
|
287
151
|
</key>
|
152
|
+
<key name="MoveFile.RECENT_KEYS">
|
153
|
+
<recent name="C:\Users\Anthony\RubymineProjects\PushRadarRuby\lib\PushRadar" />
|
154
|
+
</key>
|
288
155
|
</component>
|
289
156
|
<component name="RunDashboard">
|
290
157
|
<option name="ruleStates">
|
@@ -388,34 +255,50 @@
|
|
388
255
|
<workItem from="1502645386852" duration="1584000" />
|
389
256
|
<workItem from="1502647431046" duration="69000" />
|
390
257
|
<workItem from="1502647533502" duration="4000" />
|
391
|
-
<workItem from="1502647626921" duration="
|
258
|
+
<workItem from="1502647626921" duration="2468000" />
|
259
|
+
<workItem from="1502651803286" duration="9000" />
|
260
|
+
<workItem from="1502921500483" duration="1121000" />
|
261
|
+
</task>
|
262
|
+
<task id="LOCAL-00001" summary="Closed beta">
|
263
|
+
<created>1502922296861</created>
|
264
|
+
<option name="number" value="00001" />
|
265
|
+
<option name="presentableId" value="LOCAL-00001" />
|
266
|
+
<option name="project" value="LOCAL" />
|
267
|
+
<updated>1502922296861</updated>
|
268
|
+
</task>
|
269
|
+
<task id="LOCAL-00002" summary="Closed beta">
|
270
|
+
<created>1502922360694</created>
|
271
|
+
<option name="number" value="00002" />
|
272
|
+
<option name="presentableId" value="LOCAL-00002" />
|
273
|
+
<option name="project" value="LOCAL" />
|
274
|
+
<updated>1502922360694</updated>
|
392
275
|
</task>
|
276
|
+
<option name="localTasksCounter" value="3" />
|
393
277
|
<servers />
|
394
278
|
</component>
|
395
279
|
<component name="TimeTrackingManager">
|
396
|
-
<option name="totallyTimeSpent" value="
|
280
|
+
<option name="totallyTimeSpent" value="25366000" />
|
397
281
|
</component>
|
398
282
|
<component name="ToolWindowManager">
|
399
283
|
<frame x="-8" y="-8" width="1382" height="744" extended-state="6" />
|
400
|
-
<editor active="true" />
|
401
284
|
<layout>
|
402
|
-
<window_info id="Project" active="
|
285
|
+
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24304539" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
403
286
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
404
287
|
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
405
288
|
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
406
289
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
|
290
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32980332" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
407
291
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
408
292
|
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
409
293
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
294
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.39939487" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
410
295
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
411
296
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
412
297
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
413
298
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
414
|
-
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32980332" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
415
299
|
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
416
300
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
417
301
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
418
|
-
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.39939487" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
419
302
|
</layout>
|
420
303
|
</component>
|
421
304
|
<component name="TypeScriptGeneratedFilesManager">
|
@@ -424,6 +307,10 @@
|
|
424
307
|
<component name="VcsContentAnnotationSettings">
|
425
308
|
<option name="myLimit" value="2678400000" />
|
426
309
|
</component>
|
310
|
+
<component name="VcsManagerConfiguration">
|
311
|
+
<MESSAGE value="Closed beta" />
|
312
|
+
<option name="LAST_COMMIT_MESSAGE" value="Closed beta" />
|
313
|
+
</component>
|
427
314
|
<component name="XDebuggerManager">
|
428
315
|
<breakpoint-manager>
|
429
316
|
<option name="time" value="14" />
|
@@ -435,6 +322,14 @@
|
|
435
322
|
</watches-manager>
|
436
323
|
</component>
|
437
324
|
<component name="editorHistoryManager">
|
325
|
+
<entry file="file://$PROJECT_DIR$/PushRadar.gemspec">
|
326
|
+
<provider selected="true" editor-type-id="text-editor">
|
327
|
+
<state relative-caret-position="0">
|
328
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
329
|
+
<folding />
|
330
|
+
</state>
|
331
|
+
</provider>
|
332
|
+
</entry>
|
438
333
|
<entry file="file://$PROJECT_DIR$/Gemfile">
|
439
334
|
<provider selected="true" editor-type-id="text-editor">
|
440
335
|
<state relative-caret-position="0">
|
@@ -566,13 +461,6 @@
|
|
566
461
|
</state>
|
567
462
|
</provider>
|
568
463
|
</entry>
|
569
|
-
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs24/string.rb">
|
570
|
-
<provider selected="true" editor-type-id="text-editor">
|
571
|
-
<state relative-caret-position="211">
|
572
|
-
<caret line="1428" column="8" lean-forward="false" selection-start-line="1428" selection-start-column="8" selection-end-line="1428" selection-end-column="8" />
|
573
|
-
</state>
|
574
|
-
</provider>
|
575
|
-
</entry>
|
576
464
|
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs24/kernel.rb">
|
577
465
|
<provider selected="true" editor-type-id="text-editor">
|
578
466
|
<state relative-caret-position="211">
|
@@ -592,7 +480,6 @@
|
|
592
480
|
<provider selected="true" editor-type-id="text-editor">
|
593
481
|
<state relative-caret-position="211">
|
594
482
|
<caret line="51" column="8" lean-forward="false" selection-start-line="51" selection-start-column="8" selection-end-line="51" selection-end-column="8" />
|
595
|
-
<folding />
|
596
483
|
</state>
|
597
484
|
</provider>
|
598
485
|
</entry>
|
@@ -600,38 +487,45 @@
|
|
600
487
|
<provider selected="true" editor-type-id="text-editor">
|
601
488
|
<state relative-caret-position="194">
|
602
489
|
<caret line="20" column="41" lean-forward="false" selection-start-line="20" selection-start-column="38" selection-end-line="20" selection-end-column="49" />
|
490
|
+
</state>
|
491
|
+
</provider>
|
492
|
+
</entry>
|
493
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
494
|
+
<provider selected="true" editor-type-id="text-editor">
|
495
|
+
<state relative-caret-position="180">
|
496
|
+
<caret line="10" column="0" lean-forward="true" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
|
603
497
|
<folding />
|
604
498
|
</state>
|
605
499
|
</provider>
|
606
500
|
</entry>
|
607
|
-
<entry file="file://$
|
501
|
+
<entry file="file://$APPLICATION_HOME_DIR$/rubystubs24/string.rb">
|
608
502
|
<provider selected="true" editor-type-id="text-editor">
|
609
|
-
<state relative-caret-position="
|
610
|
-
<caret line="
|
503
|
+
<state relative-caret-position="211">
|
504
|
+
<caret line="1463" column="8" lean-forward="false" selection-start-line="1463" selection-start-column="8" selection-end-line="1463" selection-end-column="8" />
|
611
505
|
<folding />
|
612
506
|
</state>
|
613
507
|
</provider>
|
614
508
|
</entry>
|
615
|
-
<entry file="file://$PROJECT_DIR$/
|
509
|
+
<entry file="file://$PROJECT_DIR$/lib/PushRadar/Targeting.rb">
|
616
510
|
<provider selected="true" editor-type-id="text-editor">
|
617
|
-
<state relative-caret-position="
|
618
|
-
<caret line="
|
511
|
+
<state relative-caret-position="340">
|
512
|
+
<caret line="191" column="31" lean-forward="false" selection-start-line="191" selection-start-column="31" selection-end-line="191" selection-end-column="31" />
|
619
513
|
<folding />
|
620
514
|
</state>
|
621
515
|
</provider>
|
622
516
|
</entry>
|
623
|
-
<entry file="file://$PROJECT_DIR$/lib/PushRadar/
|
517
|
+
<entry file="file://$PROJECT_DIR$/lib/PushRadar/APIClient.rb">
|
624
518
|
<provider selected="true" editor-type-id="text-editor">
|
625
|
-
<state relative-caret-position="
|
626
|
-
<caret line="
|
519
|
+
<state relative-caret-position="108">
|
520
|
+
<caret line="24" column="8" lean-forward="false" selection-start-line="24" selection-start-column="8" selection-end-line="24" selection-end-column="8" />
|
627
521
|
<folding />
|
628
522
|
</state>
|
629
523
|
</provider>
|
630
524
|
</entry>
|
631
|
-
<entry file="file://$PROJECT_DIR$/lib/PushRadar/
|
525
|
+
<entry file="file://$PROJECT_DIR$/lib/PushRadar/Utils.rb">
|
632
526
|
<provider selected="true" editor-type-id="text-editor">
|
633
|
-
<state relative-caret-position="
|
634
|
-
<caret line="
|
527
|
+
<state relative-caret-position="88">
|
528
|
+
<caret line="546" column="40" lean-forward="false" selection-start-line="546" selection-start-column="40" selection-end-line="546" selection-end-column="40" />
|
635
529
|
<folding />
|
636
530
|
</state>
|
637
531
|
</provider>
|
@@ -644,18 +538,18 @@
|
|
644
538
|
</state>
|
645
539
|
</provider>
|
646
540
|
</entry>
|
647
|
-
<entry file="file://$PROJECT_DIR$/lib/PushRadar
|
541
|
+
<entry file="file://$PROJECT_DIR$/lib/PushRadar.rb">
|
648
542
|
<provider selected="true" editor-type-id="text-editor">
|
649
|
-
<state relative-caret-position="
|
650
|
-
<caret line="
|
543
|
+
<state relative-caret-position="205">
|
544
|
+
<caret line="373" column="20" lean-forward="true" selection-start-line="373" selection-start-column="20" selection-end-line="373" selection-end-column="20" />
|
651
545
|
<folding />
|
652
546
|
</state>
|
653
547
|
</provider>
|
654
548
|
</entry>
|
655
|
-
<entry file="file://$PROJECT_DIR$/
|
549
|
+
<entry file="file://$PROJECT_DIR$/bin/setup">
|
656
550
|
<provider selected="true" editor-type-id="text-editor">
|
657
|
-
<state relative-caret-position="
|
658
|
-
<caret line="
|
551
|
+
<state relative-caret-position="90">
|
552
|
+
<caret line="5" column="14" lean-forward="false" selection-start-line="5" selection-start-column="14" selection-end-line="5" selection-end-column="14" />
|
659
553
|
<folding />
|
660
554
|
</state>
|
661
555
|
</provider>
|
@@ -676,10 +570,10 @@
|
|
676
570
|
</state>
|
677
571
|
</provider>
|
678
572
|
</entry>
|
679
|
-
<entry file="file://$PROJECT_DIR$/
|
573
|
+
<entry file="file://$PROJECT_DIR$/PushRadar.gemspec">
|
680
574
|
<provider selected="true" editor-type-id="text-editor">
|
681
|
-
<state relative-caret-position="
|
682
|
-
<caret line="
|
575
|
+
<state relative-caret-position="126">
|
576
|
+
<caret line="7" column="38" lean-forward="false" selection-start-line="7" selection-start-column="38" selection-end-line="7" selection-end-column="38" />
|
683
577
|
<folding />
|
684
578
|
</state>
|
685
579
|
</provider>
|
@@ -692,17 +586,33 @@
|
|
692
586
|
</state>
|
693
587
|
</provider>
|
694
588
|
</entry>
|
695
|
-
<entry file="file://$PROJECT_DIR$/README.
|
589
|
+
<entry file="file://$PROJECT_DIR$/README.in_progress2.md">
|
696
590
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
697
591
|
<state split_layout="SPLIT">
|
698
|
-
<first_editor relative-caret-position="
|
699
|
-
<caret line="
|
592
|
+
<first_editor relative-caret-position="198">
|
593
|
+
<caret line="11" column="27" lean-forward="true" selection-start-line="0" selection-start-column="0" selection-end-line="81" selection-end-column="136" />
|
700
594
|
<folding />
|
701
595
|
</first_editor>
|
702
596
|
<second_editor />
|
703
597
|
</state>
|
704
598
|
</provider>
|
705
599
|
</entry>
|
600
|
+
<entry file="file://$PROJECT_DIR$/VERSION">
|
601
|
+
<provider selected="true" editor-type-id="text-editor">
|
602
|
+
<state relative-caret-position="0">
|
603
|
+
<caret line="0" column="5" lean-forward="false" selection-start-line="0" selection-start-column="5" selection-end-line="0" selection-end-column="5" />
|
604
|
+
<folding />
|
605
|
+
</state>
|
606
|
+
</provider>
|
607
|
+
</entry>
|
608
|
+
<entry file="file://$PROJECT_DIR$/todo">
|
609
|
+
<provider selected="true" editor-type-id="text-editor">
|
610
|
+
<state relative-caret-position="72">
|
611
|
+
<caret line="4" column="74" lean-forward="false" selection-start-line="4" selection-start-column="74" selection-end-line="4" selection-end-column="74" />
|
612
|
+
<folding />
|
613
|
+
</state>
|
614
|
+
</provider>
|
615
|
+
</entry>
|
706
616
|
<entry file="file://$PROJECT_DIR$/README.md">
|
707
617
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
708
618
|
<state split_layout="SPLIT">
|
@@ -714,45 +624,40 @@
|
|
714
624
|
</state>
|
715
625
|
</provider>
|
716
626
|
</entry>
|
717
|
-
<entry file="file://$PROJECT_DIR
|
718
|
-
<provider selected="true" editor-type-id="text-editor">
|
719
|
-
<state relative-caret-position="180">
|
720
|
-
<caret line="10" column="0" lean-forward="true" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
|
721
|
-
<folding />
|
722
|
-
</state>
|
723
|
-
</provider>
|
724
|
-
</entry>
|
725
|
-
<entry file="file://$PROJECT_DIR$/PushRadar.gemspec">
|
627
|
+
<entry file="file://$PROJECT_DIR$/LICENSE">
|
726
628
|
<provider selected="true" editor-type-id="text-editor">
|
727
|
-
<state relative-caret-position="
|
728
|
-
<caret line="
|
629
|
+
<state relative-caret-position="360">
|
630
|
+
<caret line="20" column="13" lean-forward="false" selection-start-line="20" selection-start-column="13" selection-end-line="20" selection-end-column="13" />
|
729
631
|
<folding />
|
730
632
|
</state>
|
731
633
|
</provider>
|
732
634
|
</entry>
|
733
|
-
<entry file="file://$PROJECT_DIR$/
|
734
|
-
<provider selected="true" editor-type-id="text-editor">
|
735
|
-
<state
|
736
|
-
<
|
737
|
-
|
635
|
+
<entry file="file://$PROJECT_DIR$/CHANGELOG.md">
|
636
|
+
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
637
|
+
<state split_layout="SPLIT">
|
638
|
+
<first_editor relative-caret-position="0">
|
639
|
+
<caret line="0" column="9" lean-forward="false" selection-start-line="0" selection-start-column="9" selection-end-line="0" selection-end-column="9" />
|
640
|
+
<folding />
|
641
|
+
</first_editor>
|
642
|
+
<second_editor />
|
738
643
|
</state>
|
739
644
|
</provider>
|
740
645
|
</entry>
|
741
|
-
<entry file="file://$PROJECT_DIR$/
|
646
|
+
<entry file="file://$PROJECT_DIR$/README.in_progress.md">
|
742
647
|
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
743
648
|
<state split_layout="SPLIT">
|
744
|
-
<first_editor relative-caret-position="
|
745
|
-
<caret line="
|
649
|
+
<first_editor relative-caret-position="362">
|
650
|
+
<caret line="58" column="73" lean-forward="false" selection-start-line="58" selection-start-column="73" selection-end-line="58" selection-end-column="82" />
|
746
651
|
<folding />
|
747
652
|
</first_editor>
|
748
653
|
<second_editor />
|
749
654
|
</state>
|
750
655
|
</provider>
|
751
656
|
</entry>
|
752
|
-
<entry file="file://$PROJECT_DIR$/
|
657
|
+
<entry file="file://$PROJECT_DIR$/bin/console">
|
753
658
|
<provider selected="true" editor-type-id="text-editor">
|
754
659
|
<state relative-caret-position="90">
|
755
|
-
<caret line="5" column="
|
660
|
+
<caret line="5" column="19" lean-forward="true" selection-start-line="5" selection-start-column="19" selection-end-line="5" selection-end-column="19" />
|
756
661
|
<folding />
|
757
662
|
</state>
|
758
663
|
</provider>
|
data/CHANGELOG.md
CHANGED
data/README.in_progress.md
CHANGED
@@ -1,10 +1,22 @@
|
|
1
|
-
|
1
|
+
<p align="center"><img src="https://www.pushradar.com/img/logo/pushradar_github.png"></p>
|
2
2
|
|
3
|
-
|
3
|
+
## Introduction
|
4
|
+
|
5
|
+
[PushRadar](https://www.pushradar.com) is a realtime notifications API service for the web. The service uses a simple publish-subscribe model, allowing you to broadcast "notifications" on "channels" that are subscribed to by one or more clients. Notifications are pushed in realtime to those clients.
|
6
|
+
|
7
|
+
PushRadar features advanced targeting options, including the ability to target clients by actions they have taken on your website or web app, geographical location (countries & continents), IP address, web browser and user ID.
|
8
|
+
|
9
|
+
This is PushRadar's official Ruby library.
|
10
|
+
|
11
|
+
## Prerequisites
|
12
|
+
|
13
|
+
In order to use this library, please ensure that you have the following:
|
14
|
+
|
15
|
+
- A PushRadar account - you can sign up at [www.pushradar.com](https://www.pushradar.com).
|
4
16
|
|
5
17
|
## Installation
|
6
18
|
|
7
|
-
|
19
|
+
To install PushRadar's Ruby gem, add this line to your application's Gemfile:
|
8
20
|
|
9
21
|
```ruby
|
10
22
|
gem 'pushradar'
|
@@ -12,12 +24,43 @@ gem 'pushradar'
|
|
12
24
|
|
13
25
|
And then execute:
|
14
26
|
|
15
|
-
|
27
|
+
```
|
28
|
+
$ bundle
|
29
|
+
```
|
30
|
+
|
31
|
+
Alternatively, you can install it yourself by running the command:
|
32
|
+
|
33
|
+
```
|
34
|
+
$ gem install pushradar
|
35
|
+
```
|
36
|
+
|
37
|
+
## Getting Started
|
16
38
|
|
17
|
-
|
39
|
+
"Hello World!" example:
|
40
|
+
|
41
|
+
```ruby
|
42
|
+
require 'PushRadar'
|
43
|
+
include PushRadar
|
44
|
+
|
45
|
+
radar = Radar.new('your-secret-key')
|
46
|
+
radar.broadcast('test-channel', {message: 'Hello World!'})
|
47
|
+
```
|
48
|
+
|
49
|
+
## Receiving Notifications
|
50
|
+
|
51
|
+
To subscribe to channels and receive notifications broadcast on them, check out the documentation for PushRadar's [JavaScript client library](https://www.pushradar.com/docs/latest/javascript).
|
52
|
+
|
53
|
+
## Fluent Syntax
|
54
|
+
|
55
|
+
The library supports fluent method chaining to structure broadcasts. For example, to target a notification to website visitors in the US who have not used live chat before:
|
56
|
+
|
57
|
+
```ruby
|
58
|
+
radar.target_country('US').target_not_action('live-chat').broadcast('test-channel',
|
59
|
+
{message: 'Would you like to talk to one of our customer support team members on live chat?'})
|
60
|
+
```
|
18
61
|
|
19
|
-
|
62
|
+
Please note that targeting options reset after each call to the `broadcast` method.
|
20
63
|
|
21
|
-
##
|
64
|
+
## Documentation
|
22
65
|
|
23
|
-
|
66
|
+
Full documentation for PushRadar's Ruby library can be found at: [www.pushradar.com/docs/ruby](https://www.pushradar.com/docs/latest/ruby).
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
1.0.0
|
data/lib/PushRadar/Targeting.rb
CHANGED
@@ -34,7 +34,7 @@ module PushRadar
|
|
34
34
|
|
35
35
|
# Trim the browser and convert it to lowercase
|
36
36
|
browser.strip!
|
37
|
-
browser.downcase
|
37
|
+
browser = browser.downcase
|
38
38
|
|
39
39
|
# Validate the browser for being one of the supported types
|
40
40
|
unless %w(chrome ie edge safari opera firefox).include? browser
|
@@ -57,7 +57,7 @@ module PushRadar
|
|
57
57
|
|
58
58
|
# Trim the country code and convert it to uppercase
|
59
59
|
country_code.strip!
|
60
|
-
country_code.upcase
|
60
|
+
country_code = country_code.upcase
|
61
61
|
|
62
62
|
# Ensure that the country code is not empty
|
63
63
|
if country_code == ''
|
data/lib/PushRadar/Utils.rb
CHANGED
@@ -542,7 +542,7 @@ module PushRadar
|
|
542
542
|
|
543
543
|
# Convert the continent code to uppercase
|
544
544
|
continent_code.strip!
|
545
|
-
continent_code.upcase
|
545
|
+
continent_code = continent_code.upcase
|
546
546
|
|
547
547
|
# Get the country codes where the value equals the continent code
|
548
548
|
keys_where_value(get_country_continent_hash, continent_code)
|
data/lib/PushRadar/version.rb
CHANGED
data/lib/PushRadar.rb
CHANGED
@@ -30,7 +30,12 @@ module PushRadar
|
|
30
30
|
api_secret.strip!
|
31
31
|
|
32
32
|
# If we are running unit tests, set the unit test mode flag and skip the PushRadar API client initialisation
|
33
|
-
|
33
|
+
if api_secret == 'test-secret'
|
34
|
+
@is_unit_test_mode = true
|
35
|
+
return
|
36
|
+
else
|
37
|
+
@is_unit_test_mode = false
|
38
|
+
end
|
34
39
|
|
35
40
|
# Check that the API secret starts with sk_
|
36
41
|
unless api_secret.start_with?('sk_')
|
@@ -263,7 +268,7 @@ module PushRadar
|
|
263
268
|
# User targeting
|
264
269
|
# ------------------------------
|
265
270
|
|
266
|
-
# Targets the notification to a specific user (
|
271
|
+
# Targets the notification to a specific user (identified by their user ID)
|
267
272
|
def target_user(user_id)
|
268
273
|
|
269
274
|
# Target the user
|
@@ -274,7 +279,7 @@ module PushRadar
|
|
274
279
|
|
275
280
|
end
|
276
281
|
|
277
|
-
# Targets the notification to specific users (
|
282
|
+
# Targets the notification to specific users (identified by their user IDs)
|
278
283
|
def target_users(user_ids)
|
279
284
|
|
280
285
|
# Target the user IDs
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pushradar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PushRadar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -46,6 +46,7 @@ extensions: []
|
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
48
|
- ".gitignore"
|
49
|
+
- ".idea/.rakeTasks"
|
49
50
|
- ".idea/PushRadarRuby.iml"
|
50
51
|
- ".idea/inspectionProfiles/Project_Default.xml"
|
51
52
|
- ".idea/misc.xml"
|