webpacker_uploader 0.2.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +197 -10
- data/.yardopts +8 -0
- data/CHANGELOG.md +34 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +55 -41
- data/README.md +56 -15
- data/Rakefile +13 -0
- data/lib/webpacker_uploader.rb +15 -3
- data/lib/webpacker_uploader/configuration.rb +43 -0
- data/lib/webpacker_uploader/instance.rb +44 -10
- data/lib/webpacker_uploader/manifest.rb +3 -3
- data/lib/webpacker_uploader/mime.rb +6 -0
- data/lib/webpacker_uploader/providers/aws.rb +82 -11
- data/lib/webpacker_uploader/version.rb +3 -1
- data/test/configuration_test.rb +87 -0
- data/test/manifest_test.rb +27 -0
- data/test/mime_test.rb +14 -0
- data/test/providers/aws_test.rb +16 -0
- data/test/test_app/config/webpacker.yml +103 -0
- data/test/test_app/public/packs/manifest.json +33 -0
- data/test/test_helper.rb +35 -0
- data/test/webpacker_uploader_test.rb +32 -0
- data/webpacker_uploader.gemspec +7 -9
- metadata +57 -13
- data/.github/workflows/rubocop.yml +0 -35
- data/.github/workflows/ruby.yml +0 -39
- data/bin/console +0 -14
- data/bin/setup +0 -8
@@ -1,35 +0,0 @@
|
|
1
|
-
name: RuboCop
|
2
|
-
|
3
|
-
on: [push, pull_request]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
build:
|
7
|
-
name: RuboCop
|
8
|
-
runs-on: ${{ matrix.os }}
|
9
|
-
env:
|
10
|
-
BUNDLE_JOBS: 4
|
11
|
-
BUNDLE_RETRY: 3
|
12
|
-
strategy:
|
13
|
-
matrix:
|
14
|
-
os: [ ubuntu-latest ]
|
15
|
-
ruby: [
|
16
|
-
2.7
|
17
|
-
]
|
18
|
-
steps:
|
19
|
-
- uses: actions/checkout@v2
|
20
|
-
- uses: actions/cache@v2
|
21
|
-
with:
|
22
|
-
path: vendor/bundle
|
23
|
-
key: ${{ runner.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }}
|
24
|
-
restore-keys: |
|
25
|
-
${{ runner.os }}-rubocop-
|
26
|
-
- uses: ruby/setup-ruby@v1
|
27
|
-
with:
|
28
|
-
ruby-version: ${{ matrix.ruby }}
|
29
|
-
- name: Bundle install
|
30
|
-
run: |
|
31
|
-
gem install bundler -v 2.1.4
|
32
|
-
bundle config path vendor/bundle
|
33
|
-
bundle install
|
34
|
-
- name: Run RuboCop
|
35
|
-
run: bundle exec rubocop
|
data/.github/workflows/ruby.yml
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
name: Ruby tests
|
2
|
-
|
3
|
-
on: [push, pull_request]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
build:
|
7
|
-
name: Ruby tests
|
8
|
-
runs-on: ${{ matrix.os }}
|
9
|
-
env:
|
10
|
-
BUNDLE_JOBS: 4
|
11
|
-
BUNDLE_RETRY: 3
|
12
|
-
strategy:
|
13
|
-
fail-fast: false
|
14
|
-
matrix:
|
15
|
-
os: [ubuntu-latest]
|
16
|
-
ruby: [
|
17
|
-
2.5,
|
18
|
-
2.6,
|
19
|
-
2.7,
|
20
|
-
3.0
|
21
|
-
]
|
22
|
-
steps:
|
23
|
-
- uses: actions/checkout@v2
|
24
|
-
- uses: actions/cache@v2
|
25
|
-
with:
|
26
|
-
path: vendor/bundle
|
27
|
-
key: ${{ runner.os }}-ruby-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}-${{ hashFiles('**/*.gemspec') }}
|
28
|
-
restore-keys: |
|
29
|
-
${{ runner.os }}-ruby-${{ matrix.ruby }}-gems-
|
30
|
-
- uses: ruby/setup-ruby@v1
|
31
|
-
with:
|
32
|
-
ruby-version: ${{ matrix.ruby }}
|
33
|
-
- name: Bundle install
|
34
|
-
run: |
|
35
|
-
gem install bundler -v 2.1.4
|
36
|
-
bundle config path vendor/bundle
|
37
|
-
bundle install
|
38
|
-
- name: Run tests
|
39
|
-
run: bundle exec rake test
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "webpacker_uploader"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|