Skip to content

Commit

Permalink
1.0.0 Beta 1 Release Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomezp committed Oct 13, 2021
1 parent d5dbb9e commit aa5a0be
Show file tree
Hide file tree
Showing 128 changed files with 21,573 additions and 216 deletions.
41 changes: 35 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,39 @@
/.bundle/
/.yardoc
/Gemfile.lock
/_yardoc/
# Generated by: https://openapi-generator.tech
#

*.gem
*.rbc
/.config
/coverage/
/doc/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
/tmp/
test.rb

## Specific to RubyMotion:
.dat*
.repl_history
build/

## Documentation cache and generated files:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Environment normalization:
/.bundle/
/vendor/bundle
/lib/bundler/man/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# Gemfile.lock
# .ruby-version
# .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
23 changes: 23 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
126 changes: 126 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
.gitignore
.openapi-generator-ignore
.rspec
.rubocop.yml
.travis.yml
Gemfile
README.md
Rakefile
docs/App.md
docs/Button.md
docs/DefaultApi.md
docs/DeliveryData.md
docs/ExportPlayersRequestBody.md
docs/Filter.md
docs/FilterExpressions.md
docs/FilterNotificationTarget.md
docs/GetNotificationRequestBody.md
docs/InlineResponse200.md
docs/InlineResponse2001.md
docs/InlineResponse2002.md
docs/InlineResponse2003.md
docs/InlineResponse2004.md
docs/InlineResponse2005.md
docs/InlineResponse201.md
docs/InlineResponse400.md
docs/InlineResponse4001.md
docs/InlineResponse4002.md
docs/InlineResponse409.md
docs/Notification.md
docs/NotificationAllOf.md
docs/NotificationAllOfAndroidBackgroundLayout.md
docs/NotificationSlice.md
docs/NotificationTarget.md
docs/Operator.md
docs/OutcomeData.md
docs/PlatformDeliveryData.md
docs/Player.md
docs/PlayerNotificationTarget.md
docs/PlayerSlice.md
docs/Purchase.md
docs/Segment.md
docs/SegmentNotificationTarget.md
docs/StringMap.md
docs/UpdatePlayerTagsRequestBody.md
git_push.sh
lib/onesignal.rb
lib/onesignal/api/default_api.rb
lib/onesignal/api_client.rb
lib/onesignal/api_error.rb
lib/onesignal/configuration.rb
lib/onesignal/models/app.rb
lib/onesignal/models/button.rb
lib/onesignal/models/delivery_data.rb
lib/onesignal/models/export_players_request_body.rb
lib/onesignal/models/filter.rb
lib/onesignal/models/filter_expressions.rb
lib/onesignal/models/filter_notification_target.rb
lib/onesignal/models/get_notification_request_body.rb
lib/onesignal/models/inline_response200.rb
lib/onesignal/models/inline_response2001.rb
lib/onesignal/models/inline_response2002.rb
lib/onesignal/models/inline_response2003.rb
lib/onesignal/models/inline_response2004.rb
lib/onesignal/models/inline_response2005.rb
lib/onesignal/models/inline_response201.rb
lib/onesignal/models/inline_response400.rb
lib/onesignal/models/inline_response4001.rb
lib/onesignal/models/inline_response4002.rb
lib/onesignal/models/inline_response409.rb
lib/onesignal/models/notification.rb
lib/onesignal/models/notification_all_of.rb
lib/onesignal/models/notification_all_of_android_background_layout.rb
lib/onesignal/models/notification_slice.rb
lib/onesignal/models/notification_target.rb
lib/onesignal/models/operator.rb
lib/onesignal/models/outcome_data.rb
lib/onesignal/models/platform_delivery_data.rb
lib/onesignal/models/player.rb
lib/onesignal/models/player_notification_target.rb
lib/onesignal/models/player_slice.rb
lib/onesignal/models/purchase.rb
lib/onesignal/models/segment.rb
lib/onesignal/models/segment_notification_target.rb
lib/onesignal/models/string_map.rb
lib/onesignal/models/update_player_tags_request_body.rb
lib/onesignal/version.rb
onesignal.gemspec
spec/api/default_api_spec.rb
spec/api_client_spec.rb
spec/configuration_spec.rb
spec/models/app_spec.rb
spec/models/button_spec.rb
spec/models/delivery_data_spec.rb
spec/models/export_players_request_body_spec.rb
spec/models/filter_expressions_spec.rb
spec/models/filter_notification_target_spec.rb
spec/models/filter_spec.rb
spec/models/get_notification_request_body_spec.rb
spec/models/inline_response2001_spec.rb
spec/models/inline_response2002_spec.rb
spec/models/inline_response2003_spec.rb
spec/models/inline_response2004_spec.rb
spec/models/inline_response2005_spec.rb
spec/models/inline_response200_spec.rb
spec/models/inline_response201_spec.rb
spec/models/inline_response4001_spec.rb
spec/models/inline_response4002_spec.rb
spec/models/inline_response400_spec.rb
spec/models/inline_response409_spec.rb
spec/models/notification_all_of_android_background_layout_spec.rb
spec/models/notification_all_of_spec.rb
spec/models/notification_slice_spec.rb
spec/models/notification_spec.rb
spec/models/notification_target_spec.rb
spec/models/operator_spec.rb
spec/models/outcome_data_spec.rb
spec/models/platform_delivery_data_spec.rb
spec/models/player_notification_target_spec.rb
spec/models/player_slice_spec.rb
spec/models/player_spec.rb
spec/models/purchase_spec.rb
spec/models/segment_notification_target_spec.rb
spec/models/segment_spec.rb
spec/models/string_map_spec.rb
spec/models/update_player_tags_request_body_spec.rb
spec/spec_helper.rb
1 change: 1 addition & 0 deletions .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5.2.0-SNAPSHOT
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--require spec_helper
147 changes: 139 additions & 8 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,148 @@
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
# Automatically generated by OpenAPI Generator (https://openapi-generator.tech)
AllCops:
TargetRubyVersion: 2.1
TargetRubyVersion: 2.4
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
# to ignore them, so only the ones explicitly set in this file are enabled.
DisabledByDefault: true
Exclude:
- '**/templates/**/*'
- '**/vendor/**/*'
- 'actionpack/lib/action_dispatch/journey/parser.rb'

ClassLength:
Enabled: false
# Prefer &&/|| over and/or.
Style/AndOr:
Enabled: true

Documentation:
Enabled: false
# Align `when` with `case`.
Layout/CaseIndentation:
Enabled: true

# Align comments with method definitions.
Layout/CommentIndentation:
Enabled: true

Layout/ElseAlignment:
Enabled: true

Layout/EmptyLineAfterMagicComment:
Enabled: true

# In a regular class definition, no empty lines around the body.
Layout/EmptyLinesAroundClassBody:
Enabled: true

# In a regular method definition, no empty lines around the body.
Layout/EmptyLinesAroundMethodBody:
Enabled: true

# In a regular module definition, no empty lines around the body.
Layout/EmptyLinesAroundModuleBody:
Enabled: true

Layout/FirstArgumentIndentation:
Enabled: true

IfUnlessModifier:
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
Style/HashSyntax:
Enabled: false

MethodLength:
# Method definitions after `private` or `protected` isolated calls need one
# extra level of indentation.
Layout/IndentationConsistency:
Enabled: true
EnforcedStyle: indented_internal_methods

# Two spaces, no tabs (for indentation).
Layout/IndentationWidth:
Enabled: true

Layout/LeadingCommentSpace:
Enabled: true

Layout/SpaceAfterColon:
Enabled: true

Layout/SpaceAfterComma:
Enabled: true

Layout/SpaceAroundEqualsInParameterDefault:
Enabled: true

Layout/SpaceAroundKeyword:
Enabled: true

Layout/SpaceAroundOperators:
Enabled: true

Layout/SpaceBeforeComma:
Enabled: true

Layout/SpaceBeforeFirstArg:
Enabled: true

Style/DefWithParentheses:
Enabled: true

# Defining a method with parameters needs parentheses.
Style/MethodDefParentheses:
Enabled: true

Style/FrozenStringLiteralComment:
Enabled: false
EnforcedStyle: always

# Use `foo {}` not `foo{}`.
Layout/SpaceBeforeBlockBraces:
Enabled: true

# Use `foo { bar }` not `foo {bar}`.
Layout/SpaceInsideBlockBraces:
Enabled: true

# Use `{ a: 1 }` not `{a:1}`.
Layout/SpaceInsideHashLiteralBraces:
Enabled: true

Layout/SpaceInsideParens:
Enabled: true

NumericLiterals:
# Check quotes usage according to lint rule below.
#Style/StringLiterals:
# Enabled: true
# EnforcedStyle: single_quotes

# Detect hard tabs, no hard tabs.
Layout/IndentationStyle:
Enabled: true

# Blank lines should not have any spaces.
Layout/TrailingEmptyLines:
Enabled: true

# No trailing whitespace.
Layout/TrailingWhitespace:
Enabled: false

# Use quotes for string literals when they are enough.
Style/RedundantPercentQ:
Enabled: true

# Align `end` with the matching keyword or starting expression except for
# assignments, where it should be aligned with the LHS.
Layout/EndAlignment:
Enabled: true
EnforcedStyleAlignWith: variable
AutoCorrect: true

# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
Lint/RequireParentheses:
Enabled: true

Style/RedundantReturn:
Enabled: true
AllowMultipleReturnValues: true

Style/Semicolon:
Enabled: true
AllowAsExpressionSeparator: true
19 changes: 6 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
language: ruby
cache: bundler

rvm:
- 2.0.0
- 2.1.0
- 2.2.0
- 2.3.0

before_install:
- gem install bundler -v 1.11.2

notifications:
slack:
rooms:
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=
- 2.7.4
script:
- bundle install --path vendor/bundle
- bundle exec rspec
- gem build onesignal.gemspec
- gem install ./onesignal-1.0.0.gem
7 changes: 6 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in onesignal.gemspec
gemspec

group :development, :test do
gem 'rake', '~> 13.0.1'
gem 'pry-byebug'
gem 'rubocop', '~> 0.66.0'
end
Loading

0 comments on commit aa5a0be

Please sign in to comment.