camper 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 984eef67b2149dac0f1735f6dcda5012b140dd4d3404b8523e23b21096d510de
4
+ data.tar.gz: 90b228ed0f5388a6866346c46b98a608d44a8753bec6a7eef844cd85583afd34
5
+ SHA512:
6
+ metadata.gz: 6bac9cf265b6ec6ddcdaa38fb6290e9c35b16c8a4dc1c64446589eea095dd2a4dcda4a491b0e46c20c9aad45e6af4d8168b693dcfc556d125b78fc8de35caf7a
7
+ data.tar.gz: c605925535d3052d2844d2fe7ac0ee2b420f2891c78e1e14422bb3e8cf9464399eb741dbdde2fd7611f49743de2097f8a62f06e98e0419d2dc4298551328b604
@@ -0,0 +1,8 @@
1
+ root = true
2
+
3
+ [*]
4
+ indent_style = space
5
+ charset = utf-8
6
+
7
+ [*.{yaml,yml,json,rb}]
8
+ indent_size = 2
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: "daily"
@@ -0,0 +1,43 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby:
15
+ - 2.5
16
+ - 2.6
17
+ - 2.7
18
+ name: Ruby ${{ matrix.ruby }} test
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+ - name: Set up Ruby ${{ matrix.ruby }}
22
+ uses: actions/setup-ruby@v1
23
+ with:
24
+ ruby-version: ${{ matrix.ruby }}
25
+ - name: Build and test with Rake
26
+ run: |
27
+ gem install bundler --no-document
28
+ bundle install --jobs 4 --retry 3
29
+ bundle exec rake
30
+ lint:
31
+ runs-on: ubuntu-latest
32
+ name: Static analysis
33
+ steps:
34
+ - uses: actions/checkout@v2
35
+ - name: Set up Ruby 2.7
36
+ uses: actions/setup-ruby@v1
37
+ with:
38
+ ruby-version: 2.7.x
39
+ - name: Run lint
40
+ run: |
41
+ gem install bundler --no-document
42
+ bundle install --jobs 4 --retry 3
43
+ bundle exec rubocop
@@ -0,0 +1,29 @@
1
+ name: CI - Changelog
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+
7
+ jobs:
8
+ changelog_prerelease:
9
+ name: Update Changelog For Prerelease
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v2
14
+ with:
15
+ ref: main
16
+ - name: Update Changelog
17
+ uses: heinrichreimer/github-changelog-generator-action@v2.1.1
18
+ with:
19
+ token: ${{ secrets.GITHUB_TOKEN }}
20
+ issues: true
21
+ issuesWoLabels: true
22
+ pullRequests: true
23
+ prWoLabels: true
24
+ unreleased: true
25
+ addSections: '{"documentation":{"prefix":"**Documentation:**","labels":["documentation"]}}'
26
+ - uses: stefanzweifel/git-auto-commit-action@v4
27
+ with:
28
+ commit_message: Update Changelog for PR
29
+ file_pattern: CHANGELOG.md
@@ -0,0 +1,91 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - v*
7
+
8
+ jobs:
9
+ build:
10
+ name: Publish Gem
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - name: Set up Ruby 2.7
15
+ uses: actions/setup-ruby@v1
16
+ with:
17
+ ruby-version: 2.7.x
18
+ - name: Publish to RubyGems
19
+ run: |
20
+ mkdir -p $HOME/.gem
21
+ touch $HOME/.gem/credentials
22
+ chmod 0600 $HOME/.gem/credentials
23
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
24
+ gem build *.gemspec
25
+ gem push *.gem
26
+ env:
27
+ GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
28
+
29
+ changelog:
30
+ name: Update Changelog
31
+ runs-on: ubuntu-latest
32
+ steps:
33
+ - name: Get version from tag
34
+ env:
35
+ GITHUB_REF: ${{ github.ref }}
36
+ run: |
37
+ export CURRENT_VERSION=${GITHUB_TAG/refs\/tags\/v/}
38
+ echo "::set-env name=CURRENT_VERSION::$CURRENT_VERSION"
39
+ - name: Checkout code
40
+ uses: actions/checkout@v2
41
+ with:
42
+ ref: main
43
+ - name: Update Changelog
44
+ uses: heinrichreimer/github-changelog-generator-action@v2.1.1
45
+ with:
46
+ token: ${{ secrets.GITHUB_TOKEN }}
47
+ issues: true
48
+ issuesWoLabels: true
49
+ pullRequests: true
50
+ prWoLabels: true
51
+ addSections: '{"documentation":{"prefix":"**Documentation:**","labels":["documentation"]}}'
52
+ - uses: stefanzweifel/git-auto-commit-action@v4
53
+ with:
54
+ commit_message: Update Changelog for tag ${{ env.CURRENT_VERSION }}
55
+ file_pattern: CHANGELOG.md
56
+
57
+ release_notes:
58
+ name: Create Release Notes
59
+ runs-on: ubuntu-latest
60
+ needs: changelog
61
+ steps:
62
+ - name: Get version from tag
63
+ env:
64
+ GITHUB_REF: ${{ github.ref }}
65
+ run: |
66
+ export CURRENT_VERSION=${GITHUB_TAG/refs\/tags\/v/}
67
+ echo "::set-env name=CURRENT_VERSION::$CURRENT_VERSION"
68
+
69
+ - name: Checkout code
70
+ uses: actions/checkout@v2
71
+ with:
72
+ ref: main
73
+
74
+ - name: Get Changelog Entry
75
+ id: changelog_reader
76
+ uses: mindsers/changelog-reader-action@v1
77
+ with:
78
+ version: ${{ env.CURRENT_VERSION }}
79
+ path: ./CHANGELOG.md
80
+
81
+ - name: Create Release
82
+ id: create_release
83
+ uses: actions/create-release@v1
84
+ env:
85
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
86
+ with:
87
+ tag_name: ${{ github.ref }}
88
+ release_name: Release ${{ github.ref }}
89
+ body: ${{ steps.changelog_reader.outputs.log_entry }}
90
+ draft: false
91
+ prerelease: false
@@ -0,0 +1,60 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ # Ignore Byebug command history file.
17
+ .byebug_history
18
+
19
+ ## Specific to RubyMotion:
20
+ .dat*
21
+ .repl_history
22
+ build/
23
+ *.bridgesupport
24
+ build-iPhoneOS/
25
+ build-iPhoneSimulator/
26
+
27
+ ## Specific to RubyMotion (use of CocoaPods):
28
+ #
29
+ # We recommend against adding the Pods directory to your .gitignore. However
30
+ # you should judge for yourself, the pros and cons are mentioned at:
31
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
32
+ #
33
+ # vendor/Pods/
34
+
35
+ ## Documentation cache and generated files:
36
+ /.yardoc/
37
+ /_yardoc/
38
+ /doc/
39
+ /rdoc/
40
+
41
+ ## Environment normalization:
42
+ /.bundle/
43
+ /vendor/bundle
44
+ /lib/bundler/man/
45
+
46
+ # for a library or gem, you might want to ignore these files since the code is
47
+ # intended to run in multiple environments; otherwise, check them in:
48
+ # Gemfile.lock
49
+ # .ruby-version
50
+ # .ruby-gemset
51
+
52
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
53
+ .rvmrc
54
+
55
+ # Used by RuboCop. Remote config files pulled in from inherit_from directive.
56
+ # .rubocop-https?--*
57
+
58
+ .rspec_status
59
+
60
+ .env
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,47 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ require: rubocop-performance
4
+
5
+ AllCops:
6
+ TargetRubyVersion: 2.5
7
+ NewCops: enable
8
+ Exclude:
9
+ - 'camper.gemspec'
10
+
11
+ Layout/LineLength:
12
+ Max: 123
13
+ Exclude:
14
+ - 'lib/camper/client/*'
15
+ - 'spec/**/*'
16
+
17
+ Metrics/BlockLength:
18
+ Exclude:
19
+ - 'spec/**/*'
20
+
21
+ Style/Documentation:
22
+ Enabled: false
23
+
24
+ Style/ClassAndModuleChildren:
25
+ Exclude:
26
+ - 'lib/camper/*'
27
+ - 'lib/camper/api/*'
28
+ - 'lib/camper/resources/*'
29
+
30
+ Style/RedundantReturn:
31
+ Enabled: true
32
+ AllowMultipleReturnValues: true
33
+
34
+ Lint/NonDeterministicRequireOrder:
35
+ Enabled: false
36
+
37
+ Style/HashEachMethods:
38
+ Enabled: true
39
+
40
+ Style/HashTransformKeys:
41
+ Enabled: true
42
+
43
+ Style/HashTransformValues:
44
+ Enabled: true
45
+
46
+ Style/AccessorGrouping:
47
+ Enabled: false
@@ -0,0 +1,249 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2020-06-29 13:09:29 UTC using RuboCop version 0.86.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Cop supports --auto-correct.
11
+ Layout/EmptyLineAfterMagicComment:
12
+ Exclude:
13
+ - 'lib/camper/request.rb'
14
+
15
+ # Offense count: 1
16
+ # Cop supports --auto-correct.
17
+ Layout/EmptyLines:
18
+ Exclude:
19
+ - 'lib/camper/logging.rb'
20
+
21
+ # Offense count: 1
22
+ # Cop supports --auto-correct.
23
+ # Configuration parameters: EnforcedStyle.
24
+ # SupportedStyles: empty_lines, no_empty_lines
25
+ Layout/EmptyLinesAroundBlockBody:
26
+ Exclude:
27
+ - 'spec/configuration_spec.rb'
28
+
29
+ # Offense count: 2
30
+ # Cop supports --auto-correct.
31
+ # Configuration parameters: EnforcedStyle.
32
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
33
+ Layout/EmptyLinesAroundClassBody:
34
+ Exclude:
35
+ - 'lib/camper/resource.rb'
36
+ - 'lib/camper/resources/project.rb'
37
+
38
+ # Offense count: 6
39
+ # Cop supports --auto-correct.
40
+ # Configuration parameters: EnforcedStyle.
41
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
42
+ Layout/EmptyLinesAroundModuleBody:
43
+ Exclude:
44
+ - 'lib/camper.rb'
45
+ - 'lib/camper/api/project.rb'
46
+ - 'lib/camper/api/resource.rb'
47
+ - 'lib/camper/api/todo.rb'
48
+ - 'lib/camper/authorization.rb'
49
+ - 'lib/camper/logging.rb'
50
+
51
+ # Offense count: 2
52
+ # Cop supports --auto-correct.
53
+ # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
54
+ Layout/ExtraSpacing:
55
+ Exclude:
56
+ - 'camper.gemspec'
57
+
58
+ # Offense count: 1
59
+ # Cop supports --auto-correct.
60
+ # Configuration parameters: Width, IgnoredPatterns.
61
+ Layout/IndentationWidth:
62
+ Exclude:
63
+ - 'examples/oauth.rb'
64
+
65
+ # Offense count: 1
66
+ # Cop supports --auto-correct.
67
+ # Configuration parameters: EnforcedStyle.
68
+ # SupportedStyles: space, no_space
69
+ Layout/SpaceAroundEqualsInParameterDefault:
70
+ Exclude:
71
+ - 'lib/camper/api/todo.rb'
72
+
73
+ # Offense count: 2
74
+ # Cop supports --auto-correct.
75
+ # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
76
+ # SupportedStylesForExponentOperator: space, no_space
77
+ Layout/SpaceAroundOperators:
78
+ Exclude:
79
+ - 'camper.gemspec'
80
+
81
+ # Offense count: 1
82
+ # Cop supports --auto-correct.
83
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
84
+ # SupportedStyles: space, no_space
85
+ # SupportedStylesForEmptyBraces: space, no_space
86
+ Layout/SpaceInsideBlockBraces:
87
+ Exclude:
88
+ - 'Gemfile'
89
+
90
+ # Offense count: 23
91
+ # Cop supports --auto-correct.
92
+ # Configuration parameters: EnforcedStyle.
93
+ # SupportedStyles: final_newline, final_blank_line
94
+ Layout/TrailingEmptyLines:
95
+ Enabled: false
96
+
97
+ # Offense count: 12
98
+ # Cop supports --auto-correct.
99
+ # Configuration parameters: AllowInHeredoc.
100
+ Layout/TrailingWhitespace:
101
+ Exclude:
102
+ - 'lib/camper.rb'
103
+ - 'lib/camper/api/resource.rb'
104
+ - 'lib/camper/authorization.rb'
105
+ - 'lib/camper/client.rb'
106
+ - 'lib/camper/configuration.rb'
107
+ - 'lib/camper/resource.rb'
108
+ - 'spec/configuration_spec.rb'
109
+
110
+ # Offense count: 2
111
+ # Cop supports --auto-correct.
112
+ Lint/NonDeterministicRequireOrder:
113
+ Exclude:
114
+ - 'lib/camper/client.rb'
115
+ - 'lib/camper/resource.rb'
116
+
117
+ # Offense count: 2
118
+ # Configuration parameters: CountComments, ExcludedMethods.
119
+ # ExcludedMethods: refine
120
+ Metrics/BlockLength:
121
+ Max: 43
122
+
123
+ # Offense count: 2
124
+ # Configuration parameters: CountComments, ExcludedMethods.
125
+ Metrics/MethodLength:
126
+ Max: 14
127
+
128
+ # Offense count: 4
129
+ # Cop supports --auto-correct.
130
+ # Configuration parameters: AutoCorrect, EnforcedStyle.
131
+ # SupportedStyles: nested, compact
132
+ Style/ClassAndModuleChildren:
133
+ Exclude:
134
+ - 'lib/camper/api/message.rb'
135
+ - 'lib/camper/api/project.rb'
136
+ - 'lib/camper/api/resource.rb'
137
+ - 'lib/camper/api/todo.rb'
138
+
139
+ # Offense count: 9
140
+ Style/Documentation:
141
+ Exclude:
142
+ - 'spec/**/*'
143
+ - 'test/**/*'
144
+ - 'lib/camper.rb'
145
+ - 'lib/camper/api/message.rb'
146
+ - 'lib/camper/api/project.rb'
147
+ - 'lib/camper/api/resource.rb'
148
+ - 'lib/camper/api/todo.rb'
149
+ - 'lib/camper/authorization.rb'
150
+ - 'lib/camper/logging.rb'
151
+ - 'lib/camper/resource.rb'
152
+ - 'lib/camper/resources/project.rb'
153
+
154
+ # Offense count: 1
155
+ # Cop supports --auto-correct.
156
+ Style/ExpandPathArguments:
157
+ Exclude:
158
+ - 'camper.gemspec'
159
+
160
+ # Offense count: 15
161
+ # Cop supports --auto-correct.
162
+ # Configuration parameters: EnforcedStyle.
163
+ # SupportedStyles: always, always_true, never
164
+ Style/FrozenStringLiteralComment:
165
+ Exclude:
166
+ - 'Gemfile'
167
+ - 'Rakefile'
168
+ - 'bin/console'
169
+ - 'camper.gemspec'
170
+ - 'examples/messages.rb'
171
+ - 'examples/oauth.rb'
172
+ - 'examples/obtain_acces_token.rb'
173
+ - 'examples/todos.rb'
174
+ - 'lib/camper/resource.rb'
175
+ - 'lib/camper/resources/project.rb'
176
+ - 'spec/authorization_spec.rb'
177
+ - 'spec/camper_spec.rb'
178
+ - 'spec/configuration_spec.rb'
179
+ - 'spec/logging_spec.rb'
180
+ - 'spec/spec_helper.rb'
181
+
182
+ # Offense count: 1
183
+ # Cop supports --auto-correct.
184
+ # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
185
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
186
+ Style/HashSyntax:
187
+ Exclude:
188
+ - 'Rakefile'
189
+
190
+ # Offense count: 1
191
+ # Cop supports --auto-correct.
192
+ Style/OrAssignment:
193
+ Exclude:
194
+ - 'lib/camper/authorization.rb'
195
+
196
+ # Offense count: 1
197
+ # Cop supports --auto-correct.
198
+ Style/RedundantParentheses:
199
+ Exclude:
200
+ - 'lib/camper/client.rb'
201
+
202
+ # Offense count: 3
203
+ # Cop supports --auto-correct.
204
+ # Configuration parameters: AllowMultipleReturnValues.
205
+ Style/RedundantReturn:
206
+ Exclude:
207
+ - 'lib/camper/resource.rb'
208
+
209
+ # Offense count: 3
210
+ # Cop supports --auto-correct.
211
+ Style/RedundantSelf:
212
+ Exclude:
213
+ - 'lib/camper/configuration.rb'
214
+
215
+ # Offense count: 1
216
+ # Cop supports --auto-correct.
217
+ # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
218
+ # SupportedStyles: slashes, percent_r, mixed
219
+ Style/RegexpLiteral:
220
+ Exclude:
221
+ - 'lib/camper/resource.rb'
222
+
223
+ # Offense count: 51
224
+ # Cop supports --auto-correct.
225
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
226
+ # SupportedStyles: single_quotes, double_quotes
227
+ Style/StringLiterals:
228
+ Exclude:
229
+ - 'Gemfile'
230
+ - 'Rakefile'
231
+ - 'bin/console'
232
+ - 'camper.gemspec'
233
+ - 'lib/camper.rb'
234
+ - 'lib/camper/api/project.rb'
235
+ - 'lib/camper/authorization.rb'
236
+ - 'lib/camper/configuration.rb'
237
+ - 'lib/camper/resource.rb'
238
+ - 'lib/camper/version.rb'
239
+ - 'spec/camper_spec.rb'
240
+ - 'spec/configuration_spec.rb'
241
+ - 'spec/spec_helper.rb'
242
+
243
+ # Offense count: 1
244
+ # Cop supports --auto-correct.
245
+ # Configuration parameters: EnforcedStyleForMultiline.
246
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
247
+ Style/TrailingCommaInArguments:
248
+ Exclude:
249
+ - 'lib/camper/authorization.rb'