trailer_vote-fixtures 1.11.0 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +24 -24
- data/.gitignore +16 -16
- data/.npmignore +25 -25
- data/.travis.yml +58 -58
- data/Gemfile +6 -6
- data/Gemfile.lock +5 -5
- data/README.md +9 -9
- data/Rakefile +10 -10
- data/bin/console +14 -14
- data/bin/setup +8 -8
- data/lib/trailer_vote/fixtures.rb +15 -15
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.audio_fragment.v1+json +23 -23
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.audio_fragment.v1.collection+json +23 -23
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.audio_fragment.v1.index+json +25 -25
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.carousel.v1+json +9223 -9223
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.client_configuration.v1+json +6 -6
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.configuration.v1+json +23 -23
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.configuration.v2+json +31 -31
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.configuration.v3+json +33 -33
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.configuration.v4+json +42 -42
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.configuration.v5+json +46 -46
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.errors.v1+json +8 -8
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.feedback.v1+json +17 -17
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.feedback.v1.collection+json +22 -22
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.feedback.v1.create+json +6 -6
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.feedback_listing.v1+json +63 -63
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.interactive_player.v1+json +19 -19
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.issue.v1+json +21 -21
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.issue.v1.create+json +15 -15
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.issue.v1.index+json +1162 -1162
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.manifest_update.v1+json +3 -0
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.ordered_fragment.v1.index+json +31 -31
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.persona.v1+json +13 -13
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.persona.v1.create+json +1 -1
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.persona.v2+json +16 -16
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v1+json +19 -19
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v1.collection+json +23 -23
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v1.create+json +1 -1
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v1.index+json +9 -9
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v2+json +19 -19
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v2.collection+json +23 -23
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v2.create+json +7 -7
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v2.index+json +9 -9
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v3+json +22 -22
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v3.collection+json +1 -1
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v3.create+json +1 -1
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v3.index+json +9 -9
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v4+json +25 -25
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v4.collection+json +29 -29
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v4.create+json +24 -24
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v4.index+json +9 -9
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.image.v1+json +68 -68
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.image.v1.collection+json +72 -72
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.image.v1.create+json +9 -9
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.image.v1.index+json +19 -19
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.lookup.v1+json +6 -6
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.v1+json +89 -89
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.v1.collection+json +93 -93
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.v1.create+json +58 -58
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.v1.index+json +2821 -2821
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.v2+json +97 -97
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.v2.collection+json +94 -94
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.v2.create+json +67 -67
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.v2.index+json +2821 -2821
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.video.v1+json +36 -36
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.video.v1.collection+json +40 -40
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.video.v1.create+json +7 -7
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.video.v1.index+json +39 -39
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product_place_link.v1+json +12 -12
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product_place_link.v1.collection+json +1 -1
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product_place_link.v1.create+json +3 -3
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.product_place_link.v1.index+json +1 -1
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.products_listing.v1+json +14318 -14318
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v1+json +11 -11
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v1.create+json +4 -2
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v1.raw+json +21 -0
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v2+json +22 -22
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v2.create+json +4 -2
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v2.raw+json +32 -0
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v3+json +1 -1
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v3.create+json +4 -2
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v3.raw+json +35 -0
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v4+json +1 -1
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v4.create+json +3 -1
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v4.raw+json +38 -0
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v5+json +30 -0
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v5.create+json +30 -0
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v5.raw+json +40 -0
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_consent.v1+json +11 -11
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_consent.v1.create+json +10 -10
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_manifest.v1+json +26 -26
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_manifest.v2+json +25 -25
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_recipe_android.v1+json +10 -0
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_recipe_ios.v1+json +13 -0
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_token_android.v1+json +10 -7
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_token_android.v1.create+json +7 -7
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_token_index.v1+json +14 -14
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_token_index.v1.index+json +14 -14
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_token_ios.v1+json +10 -7
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_token_ios.v1.create+json +7 -7
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.release_push_campaign.v1+json +15 -0
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.release_push_campaign.v1.create+json +19 -0
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.release_push_campaign.v2+json +17 -0
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.release_push_campaign.v2.create+json +19 -0
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.sentiment_feedback.v1+json +538 -538
- data/lib/trailer_vote/fixtures/application/vnd.trailervote.sentiment_feedback.v2+json +13 -13
- data/lib/trailer_vote/fixtures/index.js +3 -3
- data/lib/trailer_vote/fixtures/main.mjs +9 -9
- data/lib/trailer_vote/fixtures/version.rb +1 -1
- data/package.json +1 -1
- data/ruby/README.md +37 -37
- data/trailer_vote-fixtures.gemspec +1 -1
- data/yarn.lock +33 -33
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84b35d5cf1d1c5d20c7e8e116bfbf8d3251662ab22cdb3a4842f12e7cbdc673f
|
4
|
+
data.tar.gz: 13c1826492e925cdbc46142096472f7ba136ee2b950a1011eff42813a557906c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2f57a412c49f1924a83d3953a620a7885f8967b7a35c521fe49ffd8a17aa933558ca44853c834149f3db5642a6c6efc67ae464bdb06072d3cb0b20286fe29de
|
7
|
+
data.tar.gz: 912de37b636be355066209f81a08fce465f4d4fc1136f39c217f421f72424802cdbafbc1c98203da20b7b000f4ab6c53d9ef010586d5c4fbc27ae9b901a9684b
|
data/.editorconfig
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
# EditorConfig helps developers define and maintain consistent
|
2
|
-
# coding styles between different editors and IDEs
|
3
|
-
# editorconfig.org
|
4
|
-
|
5
|
-
root = true
|
6
|
-
|
7
|
-
|
8
|
-
[*]
|
9
|
-
|
10
|
-
# Change these settings to your own preference
|
11
|
-
indent_style = space
|
12
|
-
indent_size = 2
|
13
|
-
|
14
|
-
# We recommend you to keep these unchanged
|
15
|
-
end_of_line = lf
|
16
|
-
charset = utf-8
|
17
|
-
trim_trailing_whitespace = true
|
18
|
-
insert_final_newline = true
|
19
|
-
|
20
|
-
[*.md]
|
21
|
-
trim_trailing_whitespace = false
|
22
|
-
|
23
|
-
[Makefile]
|
24
|
-
indent_style = tab
|
1
|
+
# EditorConfig helps developers define and maintain consistent
|
2
|
+
# coding styles between different editors and IDEs
|
3
|
+
# editorconfig.org
|
4
|
+
|
5
|
+
root = true
|
6
|
+
|
7
|
+
|
8
|
+
[*]
|
9
|
+
|
10
|
+
# Change these settings to your own preference
|
11
|
+
indent_style = space
|
12
|
+
indent_size = 2
|
13
|
+
|
14
|
+
# We recommend you to keep these unchanged
|
15
|
+
end_of_line = lf
|
16
|
+
charset = utf-8
|
17
|
+
trim_trailing_whitespace = true
|
18
|
+
insert_final_newline = true
|
19
|
+
|
20
|
+
[*.md]
|
21
|
+
trim_trailing_whitespace = false
|
22
|
+
|
23
|
+
[Makefile]
|
24
|
+
indent_style = tab
|
data/.gitignore
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
# Ruby
|
2
|
-
/.bundle/
|
3
|
-
/.yardoc
|
4
|
-
/_yardoc/
|
5
|
-
/coverage/
|
6
|
-
/doc/
|
7
|
-
/pkg/
|
8
|
-
/spec/reports/
|
9
|
-
/tmp/
|
10
|
-
|
11
|
-
# JavaScript
|
12
|
-
/node_modules/
|
13
|
-
|
14
|
-
# IDEs
|
15
|
-
.idea
|
16
|
-
/vendor
|
1
|
+
# Ruby
|
2
|
+
/.bundle/
|
3
|
+
/.yardoc
|
4
|
+
/_yardoc/
|
5
|
+
/coverage/
|
6
|
+
/doc/
|
7
|
+
/pkg/
|
8
|
+
/spec/reports/
|
9
|
+
/tmp/
|
10
|
+
|
11
|
+
# JavaScript
|
12
|
+
/node_modules/
|
13
|
+
|
14
|
+
# IDEs
|
15
|
+
.idea
|
16
|
+
/vendor
|
data/.npmignore
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
# Ruby
|
2
|
-
/.bundle/
|
3
|
-
/.yardoc
|
4
|
-
/_yardoc/
|
5
|
-
/coverage/
|
6
|
-
/doc/
|
7
|
-
/pkg/
|
8
|
-
/spec/reports/
|
9
|
-
/tmp/
|
10
|
-
/bin/
|
11
|
-
/test/
|
12
|
-
/lib/trailer_vote/fixtures.rb
|
13
|
-
/lib/trailer_vote/fixtures/version.rb
|
14
|
-
**/*.rb
|
15
|
-
/ruby/
|
16
|
-
.travis.yml
|
17
|
-
Gemfile
|
18
|
-
Gemfile.lock
|
19
|
-
Rakefile
|
20
|
-
trailer_vote-fixtures.gemspec
|
21
|
-
|
22
|
-
# JavaScript
|
23
|
-
/node_modules/
|
24
|
-
|
25
|
-
|
1
|
+
# Ruby
|
2
|
+
/.bundle/
|
3
|
+
/.yardoc
|
4
|
+
/_yardoc/
|
5
|
+
/coverage/
|
6
|
+
/doc/
|
7
|
+
/pkg/
|
8
|
+
/spec/reports/
|
9
|
+
/tmp/
|
10
|
+
/bin/
|
11
|
+
/test/
|
12
|
+
/lib/trailer_vote/fixtures.rb
|
13
|
+
/lib/trailer_vote/fixtures/version.rb
|
14
|
+
**/*.rb
|
15
|
+
/ruby/
|
16
|
+
.travis.yml
|
17
|
+
Gemfile
|
18
|
+
Gemfile.lock
|
19
|
+
Rakefile
|
20
|
+
trailer_vote-fixtures.gemspec
|
21
|
+
|
22
|
+
# JavaScript
|
23
|
+
/node_modules/
|
24
|
+
|
25
|
+
|
data/.travis.yml
CHANGED
@@ -1,58 +1,58 @@
|
|
1
|
-
sudo: false
|
2
|
-
matrix:
|
3
|
-
include:
|
4
|
-
- language: ruby
|
5
|
-
cache: bundler
|
6
|
-
rvm: 2.5
|
7
|
-
before_install:
|
8
|
-
- gem update --system
|
9
|
-
- gem install bundler -v 2.0.1
|
10
|
-
- gem --version
|
11
|
-
install:
|
12
|
-
- bundle install --with development --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
13
|
-
|
14
|
-
- language: ruby
|
15
|
-
cache: bundler
|
16
|
-
rvm: 2.6
|
17
|
-
before_install:
|
18
|
-
- gem update --system
|
19
|
-
- gem install bundler -v 2.0.1
|
20
|
-
- gem --version
|
21
|
-
install:
|
22
|
-
- bundle install --with development --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
23
|
-
|
24
|
-
- language: ruby
|
25
|
-
cache: bundler
|
26
|
-
rvm: rbx-3
|
27
|
-
before_install:
|
28
|
-
- gem update --system
|
29
|
-
- gem install bundler -v 2.0.1
|
30
|
-
- gem --version
|
31
|
-
install:
|
32
|
-
- bundle install --with development --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
33
|
-
|
34
|
-
- language: ruby
|
35
|
-
cache: bundler
|
36
|
-
rvm: ruby-head
|
37
|
-
before_install:
|
38
|
-
- gem update --system
|
39
|
-
- gem install bundler -v 2.0.1
|
40
|
-
- gem --version
|
41
|
-
install:
|
42
|
-
- bundle install --with development --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
43
|
-
|
44
|
-
- language: node_js
|
45
|
-
cache: yarn
|
46
|
-
node_js: node
|
47
|
-
|
48
|
-
- language: node_js
|
49
|
-
cache: yarn
|
50
|
-
node_js: lts/*
|
51
|
-
|
52
|
-
allow_failures:
|
53
|
-
- language: ruby
|
54
|
-
rvm: ruby-head
|
55
|
-
- language: ruby
|
56
|
-
rvm: rbx-3
|
57
|
-
- language: ruby
|
58
|
-
rvm: 2.6
|
1
|
+
sudo: false
|
2
|
+
matrix:
|
3
|
+
include:
|
4
|
+
- language: ruby
|
5
|
+
cache: bundler
|
6
|
+
rvm: 2.5
|
7
|
+
before_install:
|
8
|
+
- gem update --system
|
9
|
+
- gem install bundler -v 2.0.1
|
10
|
+
- gem --version
|
11
|
+
install:
|
12
|
+
- bundle install --with development --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
13
|
+
|
14
|
+
- language: ruby
|
15
|
+
cache: bundler
|
16
|
+
rvm: 2.6
|
17
|
+
before_install:
|
18
|
+
- gem update --system
|
19
|
+
- gem install bundler -v 2.0.1
|
20
|
+
- gem --version
|
21
|
+
install:
|
22
|
+
- bundle install --with development --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
23
|
+
|
24
|
+
- language: ruby
|
25
|
+
cache: bundler
|
26
|
+
rvm: rbx-3
|
27
|
+
before_install:
|
28
|
+
- gem update --system
|
29
|
+
- gem install bundler -v 2.0.1
|
30
|
+
- gem --version
|
31
|
+
install:
|
32
|
+
- bundle install --with development --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
33
|
+
|
34
|
+
- language: ruby
|
35
|
+
cache: bundler
|
36
|
+
rvm: ruby-head
|
37
|
+
before_install:
|
38
|
+
- gem update --system
|
39
|
+
- gem install bundler -v 2.0.1
|
40
|
+
- gem --version
|
41
|
+
install:
|
42
|
+
- bundle install --with development --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
43
|
+
|
44
|
+
- language: node_js
|
45
|
+
cache: yarn
|
46
|
+
node_js: node
|
47
|
+
|
48
|
+
- language: node_js
|
49
|
+
cache: yarn
|
50
|
+
node_js: lts/*
|
51
|
+
|
52
|
+
allow_failures:
|
53
|
+
- language: ruby
|
54
|
+
rvm: ruby-head
|
55
|
+
- language: ruby
|
56
|
+
rvm: rbx-3
|
57
|
+
- language: ruby
|
58
|
+
rvm: 2.6
|
data/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
4
|
-
|
5
|
-
# Specify your gem's dependencies in trailer_vote-fixtures.gemspec
|
6
|
-
gemspec
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
4
|
+
|
5
|
+
# Specify your gem's dependencies in trailer_vote-fixtures.gemspec
|
6
|
+
gemspec
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
trailer_vote-fixtures (1.
|
4
|
+
trailer_vote-fixtures (1.16.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
ansi (1.5.0)
|
10
|
-
builder (3.2.
|
10
|
+
builder (3.2.4)
|
11
11
|
minitest (5.13.0)
|
12
12
|
minitest-ci (3.4.0)
|
13
13
|
minitest (>= 5.0.6)
|
@@ -16,7 +16,7 @@ GEM
|
|
16
16
|
builder
|
17
17
|
minitest (>= 5.0)
|
18
18
|
ruby-progressbar
|
19
|
-
oj (3.
|
19
|
+
oj (3.10.0)
|
20
20
|
rake (13.0.1)
|
21
21
|
ruby-progressbar (1.10.1)
|
22
22
|
|
@@ -25,7 +25,7 @@ PLATFORMS
|
|
25
25
|
x64-mingw32
|
26
26
|
|
27
27
|
DEPENDENCIES
|
28
|
-
bundler (~>
|
28
|
+
bundler (~> 2.0)
|
29
29
|
minitest (~> 5.11)
|
30
30
|
minitest-ci (~> 3.4)
|
31
31
|
minitest-reporters (~> 1.3)
|
@@ -34,4 +34,4 @@ DEPENDENCIES
|
|
34
34
|
trailer_vote-fixtures!
|
35
35
|
|
36
36
|
BUNDLED WITH
|
37
|
-
1.
|
37
|
+
2.1.0
|
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
# TrailerVote Fixtures
|
2
|
-
[![Build Status](https://travis-ci.com/TrailerVote/trailervote-fixtures.svg?branch=master)](https://travis-ci.com/TrailerVote/trailervote-fixtures)
|
3
|
-
|
4
|
-
Packages that provide fixtures for defined mediatypes. This is a monorepo holding packages for several ecosystems and languages.
|
5
|
-
|
6
|
-
| language | package | latest | install |
|
7
|
-
|----------|---------|--------|---------|
|
8
|
-
| ruby | [trailer_vote-fixtures](./ruby) | [![Gem Version](https://badge.fury.io/rb/trailer_vote-fixtures.svg)](https://badge.fury.io/rb/trailer_vote-fixtures) | `gem install trailer_vote-fixtures` |
|
9
|
-
| javascript | [@trailervote/fixtures](./javascript) | [![NPM Package Version](https://badge.fury.io/js/@trailervote%2Ffixtures.svg)](https://npmjs.org/package/@trailervote/fixtures) | `yarn add @trailervote/fixtures` |
|
1
|
+
# TrailerVote Fixtures
|
2
|
+
[![Build Status](https://travis-ci.com/TrailerVote/trailervote-fixtures.svg?branch=master)](https://travis-ci.com/TrailerVote/trailervote-fixtures)
|
3
|
+
|
4
|
+
Packages that provide fixtures for defined mediatypes. This is a monorepo holding packages for several ecosystems and languages.
|
5
|
+
|
6
|
+
| language | package | latest | install |
|
7
|
+
|----------|---------|--------|---------|
|
8
|
+
| ruby | [trailer_vote-fixtures](./ruby) | [![Gem Version](https://badge.fury.io/rb/trailer_vote-fixtures.svg)](https://badge.fury.io/rb/trailer_vote-fixtures) | `gem install trailer_vote-fixtures` |
|
9
|
+
| javascript | [@trailervote/fixtures](./javascript) | [![NPM Package Version](https://badge.fury.io/js/@trailervote%2Ffixtures.svg)](https://npmjs.org/package/@trailervote/fixtures) | `yarn add @trailervote/fixtures` |
|
data/Rakefile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
require 'bundler/gem_tasks'
|
2
|
-
require 'rake/testtask'
|
3
|
-
|
4
|
-
Rake::TestTask.new(:test) do |t|
|
5
|
-
t.libs << 'test'
|
6
|
-
t.libs << 'lib'
|
7
|
-
t.test_files = FileList['test/**/*_test.rb']
|
8
|
-
end
|
9
|
-
|
10
|
-
task :default => :test
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rake/testtask'
|
3
|
+
|
4
|
+
Rake::TestTask.new(:test) do |t|
|
5
|
+
t.libs << 'test'
|
6
|
+
t.libs << 'lib'
|
7
|
+
t.test_files = FileList['test/**/*_test.rb']
|
8
|
+
end
|
9
|
+
|
10
|
+
task :default => :test
|
data/bin/console
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "trailer_vote/fixtures"
|
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__)
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "trailer_vote/fixtures"
|
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__)
|
data/bin/setup
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
set -euo pipefail
|
3
|
-
IFS=$'\n\t'
|
4
|
-
set -vx
|
5
|
-
|
6
|
-
bundle install
|
7
|
-
|
8
|
-
# Do any other automated setup that you need to do here
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
set -euo pipefail
|
3
|
+
IFS=$'\n\t'
|
4
|
+
set -vx
|
5
|
+
|
6
|
+
bundle install
|
7
|
+
|
8
|
+
# Do any other automated setup that you need to do here
|
@@ -1,15 +1,15 @@
|
|
1
|
-
require 'trailer_vote/fixtures/version'
|
2
|
-
require 'oj'
|
3
|
-
|
4
|
-
module TrailerVote
|
5
|
-
module Fixtures
|
6
|
-
FIXTURE_DIRECTORY = File.expand_path(File.join(__dir__, 'fixtures')).freeze
|
7
|
-
|
8
|
-
module_function
|
9
|
-
|
10
|
-
def load(media_type, options = Oj.default_options)
|
11
|
-
path = File.join(FIXTURE_DIRECTORY, *media_type.split('/'))
|
12
|
-
Oj.load_file(path, options)
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
1
|
+
require 'trailer_vote/fixtures/version'
|
2
|
+
require 'oj'
|
3
|
+
|
4
|
+
module TrailerVote
|
5
|
+
module Fixtures
|
6
|
+
FIXTURE_DIRECTORY = File.expand_path(File.join(__dir__, 'fixtures')).freeze
|
7
|
+
|
8
|
+
module_function
|
9
|
+
|
10
|
+
def load(media_type, options = Oj.default_options)
|
11
|
+
path = File.join(FIXTURE_DIRECTORY, *media_type.split('/'))
|
12
|
+
Oj.load_file(path, options)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -1,23 +1,23 @@
|
|
1
|
-
{
|
2
|
-
"audio_fragment": {
|
3
|
-
"content_addressable": "12207087101629f7058caf83da9008147de89d1cc82df9d8d8512c34726c1c32528b",
|
4
|
-
"expires_at": null,
|
5
|
-
"_links": {
|
6
|
-
"self": {
|
7
|
-
"href": "https://fake.trailervote.com/api/audio-fragments/12207087101629f7058caf83da9008147de89d1cc82df9d8d8512c34726c1c32528b"
|
8
|
-
},
|
9
|
-
"product": {
|
10
|
-
"href": "https://fake.trailervote.com/api/products/848d8673-27c6-4d94-ba6f-f3495dfbdf21"
|
11
|
-
},
|
12
|
-
"feedback": {
|
13
|
-
"href": "https://fake.trailervote.com/api/audio-fragments/12207087101629f7058caf83da9008147de89d1cc82df9d8d8512c34726c1c32528b/feedback"
|
14
|
-
},
|
15
|
-
"advert": {
|
16
|
-
"href": "https://fake.trailervote.com/api/audio-fragments/12207087101629f7058caf83da9008147de89d1cc82df9d8d8512c34726c1c32528b/advert"
|
17
|
-
},
|
18
|
-
"direct": {
|
19
|
-
"href": "https://fake.trailervote.com/uploads/12207087101629f7058caf83da9008147de89d1cc82df9d8d8512c34726c1c32528b"
|
20
|
-
}
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
1
|
+
{
|
2
|
+
"audio_fragment": {
|
3
|
+
"content_addressable": "12207087101629f7058caf83da9008147de89d1cc82df9d8d8512c34726c1c32528b",
|
4
|
+
"expires_at": null,
|
5
|
+
"_links": {
|
6
|
+
"self": {
|
7
|
+
"href": "https://fake.trailervote.com/api/audio-fragments/12207087101629f7058caf83da9008147de89d1cc82df9d8d8512c34726c1c32528b"
|
8
|
+
},
|
9
|
+
"product": {
|
10
|
+
"href": "https://fake.trailervote.com/api/products/848d8673-27c6-4d94-ba6f-f3495dfbdf21"
|
11
|
+
},
|
12
|
+
"feedback": {
|
13
|
+
"href": "https://fake.trailervote.com/api/audio-fragments/12207087101629f7058caf83da9008147de89d1cc82df9d8d8512c34726c1c32528b/feedback"
|
14
|
+
},
|
15
|
+
"advert": {
|
16
|
+
"href": "https://fake.trailervote.com/api/audio-fragments/12207087101629f7058caf83da9008147de89d1cc82df9d8d8512c34726c1c32528b/advert"
|
17
|
+
},
|
18
|
+
"direct": {
|
19
|
+
"href": "https://fake.trailervote.com/uploads/12207087101629f7058caf83da9008147de89d1cc82df9d8d8512c34726c1c32528b"
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|