Skip to content

Commit 2208e95

Browse files
committed
first commit
0 parents  commit 2208e95

File tree

184 files changed

+22012
-0
lines changed

Some content is hidden

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

184 files changed

+22012
-0
lines changed

.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Generated by: https://openapi-generator.tech
2+
#
3+
4+
*.gem
5+
*.rbc
6+
/.config
7+
/coverage/
8+
/InstalledFiles
9+
/pkg/
10+
/spec/reports/
11+
/spec/examples.txt
12+
/test/tmp/
13+
/test/version_tmp/
14+
/tmp/
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

.gitlab-ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.ruby: &ruby
2+
variables:
3+
LANG: "C.UTF-8"
4+
before_script:
5+
- ruby -v
6+
- bundle config set --local deployment true
7+
- bundle install -j $(nproc)
8+
parallel:
9+
matrix:
10+
- RUBY_VERSION: ['2.7', '3.0', '3.1']
11+
image: "ruby:$RUBY_VERSION"
12+
cache:
13+
paths:
14+
- vendor/ruby
15+
key: 'ruby-$RUBY_VERSION'
16+
17+
gem:
18+
extends: .ruby
19+
script:
20+
- bundle exec rspec
21+
- bundle exec rake build
22+
- bundle exec rake install
23+
artifacts:
24+
paths:
25+
- pkg/*.gem
26+

.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+
.gitlab-ci.yml
3+
.rspec
4+
.rubocop.yml
5+
.travis.yml
6+
Gemfile
7+
README.md
8+
Rakefile
9+
docs/ClientProfileResource.md
10+
docs/ClientProfileResourceComputer.md
11+
docs/ComputerResource.md
12+
docs/ComputerResourceTotals.md
13+
docs/ComputersApi.md
14+
docs/DetailedSubteamResource.md
15+
docs/DetailedSubteamResourceLinks.md
16+
docs/DetailedSubteamResourceTotals.md
17+
docs/ErrorResource.md
18+
docs/InlineObject.md
19+
docs/InlineObject1.md
20+
docs/LinksResource.md
21+
docs/MembersApi.md
22+
docs/PaginationResource.md
23+
docs/ProfilesApi.md
24+
docs/PulseResource.md
25+
docs/PulsesApi.md
26+
docs/SubteamMembersApi.md
27+
docs/SubteamResource.md
28+
docs/SubteamsApi.md
29+
docs/TeamListResource.md
30+
docs/TeamResource.md
31+
docs/TeamResourceLinks.md
32+
docs/TeamResourceRanks.md
33+
docs/TeamResourceTotals.md
34+
docs/TeamsApi.md
35+
docs/TimeSeriesApi.md
36+
docs/TimeSeriesResource.md
37+
docs/TimeSeriesResourceDistanceMiles.md
38+
docs/UserListResource.md
39+
docs/UserResource.md
40+
docs/UserResourceLastPulse.md
41+
docs/UserResourceRanks.md
42+
docs/UserResourceTotals.md
43+
docs/UsersApi.md
44+
docs/V1TeamsIndex200Response.md
45+
docs/V1TeamsIndex200ResponseFilters.md
46+
docs/V1TeamsMembers200Response.md
47+
docs/V1TeamsShow200Response.md
48+
docs/V1TeamsShow200ResponseAnyOf.md
49+
docs/V1TeamsSubteams200Response.md
50+
docs/V1TeamsSubteamsMembers200Response.md
51+
docs/V1TeamsSubteamsShow200Response.md
52+
docs/V1TeamsSubteamsShow200ResponseAnyOf.md
53+
docs/V1UsersComputers200Response.md
54+
docs/V1UsersComputers200ResponseFilters.md
55+
docs/V1UsersIndex200Response.md
56+
docs/V1UsersProfiles200Response.md
57+
docs/V1UsersProfiles200ResponseFilters.md
58+
docs/V1UsersPulses200Response.md
59+
docs/V1UsersPulses200ResponseFilters.md
60+
docs/V1UsersShow200Response.md
61+
docs/V1UsersShow200ResponseAnyOf.md
62+
docs/V1UsersTimeSeries200Response.md
63+
docs/V1UsersTimeSeries200ResponseFilters.md
64+
git_push.sh
65+
lib/whatpulse-sdk.rb
66+
lib/whatpulse-sdk/api/computers_api.rb
67+
lib/whatpulse-sdk/api/members_api.rb
68+
lib/whatpulse-sdk/api/profiles_api.rb
69+
lib/whatpulse-sdk/api/pulses_api.rb
70+
lib/whatpulse-sdk/api/subteam_members_api.rb
71+
lib/whatpulse-sdk/api/subteams_api.rb
72+
lib/whatpulse-sdk/api/teams_api.rb
73+
lib/whatpulse-sdk/api/time_series_api.rb
74+
lib/whatpulse-sdk/api/users_api.rb
75+
lib/whatpulse-sdk/api_client.rb
76+
lib/whatpulse-sdk/api_error.rb
77+
lib/whatpulse-sdk/configuration.rb
78+
lib/whatpulse-sdk/models/client_profile_resource.rb
79+
lib/whatpulse-sdk/models/client_profile_resource_computer.rb
80+
lib/whatpulse-sdk/models/computer_resource.rb
81+
lib/whatpulse-sdk/models/computer_resource_totals.rb
82+
lib/whatpulse-sdk/models/detailed_subteam_resource.rb
83+
lib/whatpulse-sdk/models/detailed_subteam_resource_links.rb
84+
lib/whatpulse-sdk/models/detailed_subteam_resource_totals.rb
85+
lib/whatpulse-sdk/models/error_resource.rb
86+
lib/whatpulse-sdk/models/inline_object.rb
87+
lib/whatpulse-sdk/models/inline_object1.rb
88+
lib/whatpulse-sdk/models/links_resource.rb
89+
lib/whatpulse-sdk/models/pagination_resource.rb
90+
lib/whatpulse-sdk/models/pulse_resource.rb
91+
lib/whatpulse-sdk/models/subteam_resource.rb
92+
lib/whatpulse-sdk/models/team_list_resource.rb
93+
lib/whatpulse-sdk/models/team_resource.rb
94+
lib/whatpulse-sdk/models/team_resource_links.rb
95+
lib/whatpulse-sdk/models/team_resource_ranks.rb
96+
lib/whatpulse-sdk/models/team_resource_totals.rb
97+
lib/whatpulse-sdk/models/time_series_resource.rb
98+
lib/whatpulse-sdk/models/time_series_resource_distance_miles.rb
99+
lib/whatpulse-sdk/models/user_list_resource.rb
100+
lib/whatpulse-sdk/models/user_resource.rb
101+
lib/whatpulse-sdk/models/user_resource_last_pulse.rb
102+
lib/whatpulse-sdk/models/user_resource_ranks.rb
103+
lib/whatpulse-sdk/models/user_resource_totals.rb
104+
lib/whatpulse-sdk/models/v1_teams_index200_response.rb
105+
lib/whatpulse-sdk/models/v1_teams_index200_response_filters.rb
106+
lib/whatpulse-sdk/models/v1_teams_members200_response.rb
107+
lib/whatpulse-sdk/models/v1_teams_show200_response.rb
108+
lib/whatpulse-sdk/models/v1_teams_show200_response_any_of.rb
109+
lib/whatpulse-sdk/models/v1_teams_subteams200_response.rb
110+
lib/whatpulse-sdk/models/v1_teams_subteams_members200_response.rb
111+
lib/whatpulse-sdk/models/v1_teams_subteams_show200_response.rb
112+
lib/whatpulse-sdk/models/v1_teams_subteams_show200_response_any_of.rb
113+
lib/whatpulse-sdk/models/v1_users_computers200_response.rb
114+
lib/whatpulse-sdk/models/v1_users_computers200_response_filters.rb
115+
lib/whatpulse-sdk/models/v1_users_index200_response.rb
116+
lib/whatpulse-sdk/models/v1_users_profiles200_response.rb
117+
lib/whatpulse-sdk/models/v1_users_profiles200_response_filters.rb
118+
lib/whatpulse-sdk/models/v1_users_pulses200_response.rb
119+
lib/whatpulse-sdk/models/v1_users_pulses200_response_filters.rb
120+
lib/whatpulse-sdk/models/v1_users_show200_response.rb
121+
lib/whatpulse-sdk/models/v1_users_show200_response_any_of.rb
122+
lib/whatpulse-sdk/models/v1_users_time_series200_response.rb
123+
lib/whatpulse-sdk/models/v1_users_time_series200_response_filters.rb
124+
lib/whatpulse-sdk/version.rb
125+
spec/spec_helper.rb
126+
whatpulse-sdk.gemspec

.openapi-generator/VERSION

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

.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: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +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)
3+
AllCops:
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'
12+
13+
# Prefer &&/|| over and/or.
14+
Style/AndOr:
15+
Enabled: true
16+
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
45+
46+
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
47+
Style/HashSyntax:
48+
Enabled: false
49+
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:
92+
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
109+
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:
125+
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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: ruby
2+
cache: bundler
3+
rvm:
4+
- 2.7
5+
- 3.0
6+
- 3.1
7+
script:
8+
- bundle install --path vendor/bundle
9+
- bundle exec rspec
10+
- gem build whatpulse-sdk.gemspec
11+
- gem install ./whatpulse-sdk-1.0.0.gem

Gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source 'https://rubygems.org'
2+
3+
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)