Skip to content

Commit aa5a0be

Browse files
committed
1.0.0 Beta 1 Release Commit
1 parent d5dbb9e commit aa5a0be

File tree

128 files changed

+21573
-216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+21573
-216
lines changed

.gitignore

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,39 @@
1-
/.bundle/
2-
/.yardoc
3-
/Gemfile.lock
4-
/_yardoc/
1+
# Generated by: https://openapi-generator.tech
2+
#
3+
4+
*.gem
5+
*.rbc
6+
/.config
57
/coverage/
6-
/doc/
8+
/InstalledFiles
79
/pkg/
810
/spec/reports/
11+
/spec/examples.txt
12+
/test/tmp/
13+
/test/version_tmp/
914
/tmp/
10-
test.rb
15+
16+
## Specific to RubyMotion:
17+
.dat*
18+
.repl_history
19+
build/
20+
21+
## Documentation cache and generated files:
22+
/.yardoc/
23+
/_yardoc/
24+
/doc/
25+
/rdoc/
26+
27+
## Environment normalization:
28+
/.bundle/
29+
/vendor/bundle
30+
/lib/bundler/man/
31+
32+
# for a library or gem, you might want to ignore these files since the code is
33+
# intended to run in multiple environments; otherwise, check them in:
34+
# Gemfile.lock
35+
# .ruby-version
36+
# .ruby-gemset
37+
38+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
39+
.rvmrc

.openapi-generator-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

.openapi-generator/FILES

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
.gitignore
2+
.openapi-generator-ignore
3+
.rspec
4+
.rubocop.yml
5+
.travis.yml
6+
Gemfile
7+
README.md
8+
Rakefile
9+
docs/App.md
10+
docs/Button.md
11+
docs/DefaultApi.md
12+
docs/DeliveryData.md
13+
docs/ExportPlayersRequestBody.md
14+
docs/Filter.md
15+
docs/FilterExpressions.md
16+
docs/FilterNotificationTarget.md
17+
docs/GetNotificationRequestBody.md
18+
docs/InlineResponse200.md
19+
docs/InlineResponse2001.md
20+
docs/InlineResponse2002.md
21+
docs/InlineResponse2003.md
22+
docs/InlineResponse2004.md
23+
docs/InlineResponse2005.md
24+
docs/InlineResponse201.md
25+
docs/InlineResponse400.md
26+
docs/InlineResponse4001.md
27+
docs/InlineResponse4002.md
28+
docs/InlineResponse409.md
29+
docs/Notification.md
30+
docs/NotificationAllOf.md
31+
docs/NotificationAllOfAndroidBackgroundLayout.md
32+
docs/NotificationSlice.md
33+
docs/NotificationTarget.md
34+
docs/Operator.md
35+
docs/OutcomeData.md
36+
docs/PlatformDeliveryData.md
37+
docs/Player.md
38+
docs/PlayerNotificationTarget.md
39+
docs/PlayerSlice.md
40+
docs/Purchase.md
41+
docs/Segment.md
42+
docs/SegmentNotificationTarget.md
43+
docs/StringMap.md
44+
docs/UpdatePlayerTagsRequestBody.md
45+
git_push.sh
46+
lib/onesignal.rb
47+
lib/onesignal/api/default_api.rb
48+
lib/onesignal/api_client.rb
49+
lib/onesignal/api_error.rb
50+
lib/onesignal/configuration.rb
51+
lib/onesignal/models/app.rb
52+
lib/onesignal/models/button.rb
53+
lib/onesignal/models/delivery_data.rb
54+
lib/onesignal/models/export_players_request_body.rb
55+
lib/onesignal/models/filter.rb
56+
lib/onesignal/models/filter_expressions.rb
57+
lib/onesignal/models/filter_notification_target.rb
58+
lib/onesignal/models/get_notification_request_body.rb
59+
lib/onesignal/models/inline_response200.rb
60+
lib/onesignal/models/inline_response2001.rb
61+
lib/onesignal/models/inline_response2002.rb
62+
lib/onesignal/models/inline_response2003.rb
63+
lib/onesignal/models/inline_response2004.rb
64+
lib/onesignal/models/inline_response2005.rb
65+
lib/onesignal/models/inline_response201.rb
66+
lib/onesignal/models/inline_response400.rb
67+
lib/onesignal/models/inline_response4001.rb
68+
lib/onesignal/models/inline_response4002.rb
69+
lib/onesignal/models/inline_response409.rb
70+
lib/onesignal/models/notification.rb
71+
lib/onesignal/models/notification_all_of.rb
72+
lib/onesignal/models/notification_all_of_android_background_layout.rb
73+
lib/onesignal/models/notification_slice.rb
74+
lib/onesignal/models/notification_target.rb
75+
lib/onesignal/models/operator.rb
76+
lib/onesignal/models/outcome_data.rb
77+
lib/onesignal/models/platform_delivery_data.rb
78+
lib/onesignal/models/player.rb
79+
lib/onesignal/models/player_notification_target.rb
80+
lib/onesignal/models/player_slice.rb
81+
lib/onesignal/models/purchase.rb
82+
lib/onesignal/models/segment.rb
83+
lib/onesignal/models/segment_notification_target.rb
84+
lib/onesignal/models/string_map.rb
85+
lib/onesignal/models/update_player_tags_request_body.rb
86+
lib/onesignal/version.rb
87+
onesignal.gemspec
88+
spec/api/default_api_spec.rb
89+
spec/api_client_spec.rb
90+
spec/configuration_spec.rb
91+
spec/models/app_spec.rb
92+
spec/models/button_spec.rb
93+
spec/models/delivery_data_spec.rb
94+
spec/models/export_players_request_body_spec.rb
95+
spec/models/filter_expressions_spec.rb
96+
spec/models/filter_notification_target_spec.rb
97+
spec/models/filter_spec.rb
98+
spec/models/get_notification_request_body_spec.rb
99+
spec/models/inline_response2001_spec.rb
100+
spec/models/inline_response2002_spec.rb
101+
spec/models/inline_response2003_spec.rb
102+
spec/models/inline_response2004_spec.rb
103+
spec/models/inline_response2005_spec.rb
104+
spec/models/inline_response200_spec.rb
105+
spec/models/inline_response201_spec.rb
106+
spec/models/inline_response4001_spec.rb
107+
spec/models/inline_response4002_spec.rb
108+
spec/models/inline_response400_spec.rb
109+
spec/models/inline_response409_spec.rb
110+
spec/models/notification_all_of_android_background_layout_spec.rb
111+
spec/models/notification_all_of_spec.rb
112+
spec/models/notification_slice_spec.rb
113+
spec/models/notification_spec.rb
114+
spec/models/notification_target_spec.rb
115+
spec/models/operator_spec.rb
116+
spec/models/outcome_data_spec.rb
117+
spec/models/platform_delivery_data_spec.rb
118+
spec/models/player_notification_target_spec.rb
119+
spec/models/player_slice_spec.rb
120+
spec/models/player_spec.rb
121+
spec/models/purchase_spec.rb
122+
spec/models/segment_notification_target_spec.rb
123+
spec/models/segment_spec.rb
124+
spec/models/string_map_spec.rb
125+
spec/models/update_player_tags_request_body_spec.rb
126+
spec/spec_helper.rb

.openapi-generator/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5.2.0-SNAPSHOT

.rspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--require spec_helper

.rubocop.yml

Lines changed: 139 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,148 @@
1+
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
2+
# Automatically generated by OpenAPI Generator (https://openapi-generator.tech)
13
AllCops:
2-
TargetRubyVersion: 2.1
4+
TargetRubyVersion: 2.4
5+
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
6+
# to ignore them, so only the ones explicitly set in this file are enabled.
7+
DisabledByDefault: true
8+
Exclude:
9+
- '**/templates/**/*'
10+
- '**/vendor/**/*'
11+
- 'actionpack/lib/action_dispatch/journey/parser.rb'
312

4-
ClassLength:
5-
Enabled: false
13+
# Prefer &&/|| over and/or.
14+
Style/AndOr:
15+
Enabled: true
616

7-
Documentation:
8-
Enabled: false
17+
# Align `when` with `case`.
18+
Layout/CaseIndentation:
19+
Enabled: true
20+
21+
# Align comments with method definitions.
22+
Layout/CommentIndentation:
23+
Enabled: true
24+
25+
Layout/ElseAlignment:
26+
Enabled: true
27+
28+
Layout/EmptyLineAfterMagicComment:
29+
Enabled: true
30+
31+
# In a regular class definition, no empty lines around the body.
32+
Layout/EmptyLinesAroundClassBody:
33+
Enabled: true
34+
35+
# In a regular method definition, no empty lines around the body.
36+
Layout/EmptyLinesAroundMethodBody:
37+
Enabled: true
38+
39+
# In a regular module definition, no empty lines around the body.
40+
Layout/EmptyLinesAroundModuleBody:
41+
Enabled: true
42+
43+
Layout/FirstArgumentIndentation:
44+
Enabled: true
945

10-
IfUnlessModifier:
46+
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
47+
Style/HashSyntax:
1148
Enabled: false
1249

13-
MethodLength:
50+
# Method definitions after `private` or `protected` isolated calls need one
51+
# extra level of indentation.
52+
Layout/IndentationConsistency:
53+
Enabled: true
54+
EnforcedStyle: indented_internal_methods
55+
56+
# Two spaces, no tabs (for indentation).
57+
Layout/IndentationWidth:
58+
Enabled: true
59+
60+
Layout/LeadingCommentSpace:
61+
Enabled: true
62+
63+
Layout/SpaceAfterColon:
64+
Enabled: true
65+
66+
Layout/SpaceAfterComma:
67+
Enabled: true
68+
69+
Layout/SpaceAroundEqualsInParameterDefault:
70+
Enabled: true
71+
72+
Layout/SpaceAroundKeyword:
73+
Enabled: true
74+
75+
Layout/SpaceAroundOperators:
76+
Enabled: true
77+
78+
Layout/SpaceBeforeComma:
79+
Enabled: true
80+
81+
Layout/SpaceBeforeFirstArg:
82+
Enabled: true
83+
84+
Style/DefWithParentheses:
85+
Enabled: true
86+
87+
# Defining a method with parameters needs parentheses.
88+
Style/MethodDefParentheses:
89+
Enabled: true
90+
91+
Style/FrozenStringLiteralComment:
1492
Enabled: false
93+
EnforcedStyle: always
94+
95+
# Use `foo {}` not `foo{}`.
96+
Layout/SpaceBeforeBlockBraces:
97+
Enabled: true
98+
99+
# Use `foo { bar }` not `foo {bar}`.
100+
Layout/SpaceInsideBlockBraces:
101+
Enabled: true
102+
103+
# Use `{ a: 1 }` not `{a:1}`.
104+
Layout/SpaceInsideHashLiteralBraces:
105+
Enabled: true
106+
107+
Layout/SpaceInsideParens:
108+
Enabled: true
15109

16-
NumericLiterals:
110+
# Check quotes usage according to lint rule below.
111+
#Style/StringLiterals:
112+
# Enabled: true
113+
# EnforcedStyle: single_quotes
114+
115+
# Detect hard tabs, no hard tabs.
116+
Layout/IndentationStyle:
117+
Enabled: true
118+
119+
# Blank lines should not have any spaces.
120+
Layout/TrailingEmptyLines:
121+
Enabled: true
122+
123+
# No trailing whitespace.
124+
Layout/TrailingWhitespace:
17125
Enabled: false
126+
127+
# Use quotes for string literals when they are enough.
128+
Style/RedundantPercentQ:
129+
Enabled: true
130+
131+
# Align `end` with the matching keyword or starting expression except for
132+
# assignments, where it should be aligned with the LHS.
133+
Layout/EndAlignment:
134+
Enabled: true
135+
EnforcedStyleAlignWith: variable
136+
AutoCorrect: true
137+
138+
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
139+
Lint/RequireParentheses:
140+
Enabled: true
141+
142+
Style/RedundantReturn:
143+
Enabled: true
144+
AllowMultipleReturnValues: true
145+
146+
Style/Semicolon:
147+
Enabled: true
148+
AllowAsExpressionSeparator: true

.travis.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
language: ruby
22
cache: bundler
3-
43
rvm:
5-
- 2.0.0
6-
- 2.1.0
7-
- 2.2.0
8-
- 2.3.0
9-
10-
before_install:
11-
- gem install bundler -v 1.11.2
12-
13-
notifications:
14-
slack:
15-
rooms:
16-
secure: Gr8OCGVXegUFZmA0GYQnvAMs6cei1139C7sce13VvcG1HulIvpidnobJuNghfTx44psQTYDptHpz8AVn+kChbsQ46+0zXdNgCq2t9fJAVzTlTGnsB5O28FjUUEJAppjztUeRPKJX+B284AHJ0ZM/Vw7upoJ9IPbJ9bpcr5Xbms8eF/iYmJcicZ7iZNkHET8PFKqQP4H4/ahBOHfiI150zys1Pjos66wRukss1K52i6cvGmMajx58aVxDdwrw8wksNOHFu7VuoThipNHTIFyzr39EdG+DDrrfDLkLtpcb4+3QFn3/XZO7WHNfubnUY2DQ9xZrn8mUgIBFx6bVbcZ+xt/eh+4h5cDQyeEFY3GI+GiWJBDQa8VS69+CZQqEAvBNzHMPAkp19DZt0KFPEQqNG7KwXwuMx/kVsbnDhSGGN7d1Dc2m1XXVHViOUS6YePPzwjOZ3B7MTtb4FFSnsDeYvFFeBxqkX7a25L4llR9AcBMMxgCHDJi070qr3bOoQv9Qwi/Xw4P92ZLQ+VRoskzPRmbFcdfZxsI6R9orxJ1YgA/FGuQZAbmVQ3gZAWcW4iP1sgYh8EkOUH/c1c5tb03gC4OyU1R44L/FBBQiAXBCAl50PhJgCR13KrR6vxBnV/AIg+Pbk1uQPx4zqda4UbertMc+bB0M6EDV9OUPezb59Pk=
4+
- 2.7.4
5+
script:
6+
- bundle install --path vendor/bundle
7+
- bundle exec rspec
8+
- gem build onesignal.gemspec
9+
- gem install ./onesignal-1.0.0.gem

Gemfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
source 'https://rubygems.org'
22

3-
# Specify your gem's dependencies in onesignal.gemspec
43
gemspec
4+
5+
group :development, :test do
6+
gem 'rake', '~> 13.0.1'
7+
gem 'pry-byebug'
8+
gem 'rubocop', '~> 0.66.0'
9+
end

0 commit comments

Comments
 (0)