trailer_vote-fixtures 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +12 -12
  3. data/.npmignore +25 -25
  4. data/.travis.yml +69 -69
  5. data/Gemfile +6 -6
  6. data/Gemfile.lock +5 -5
  7. data/README.md +9 -9
  8. data/Rakefile +10 -10
  9. data/bin/console +14 -14
  10. data/bin/setup +8 -8
  11. data/lib/trailer_vote/fixtures/application/vnd.trailervote.audio_fragment.v1+json +23 -23
  12. data/lib/trailer_vote/fixtures/application/vnd.trailervote.audio_fragment.v1.index+json +25 -25
  13. data/lib/trailer_vote/fixtures/application/vnd.trailervote.carousel.v1+json +9223 -9223
  14. data/lib/trailer_vote/fixtures/application/vnd.trailervote.client_configuration.v1+json +6 -6
  15. data/lib/trailer_vote/fixtures/application/vnd.trailervote.configuration.v1+json +23 -23
  16. data/lib/trailer_vote/fixtures/application/vnd.trailervote.configuration.v2+json +31 -31
  17. data/lib/trailer_vote/fixtures/application/vnd.trailervote.errors.v1+json +8 -8
  18. data/lib/trailer_vote/fixtures/application/vnd.trailervote.feedback.v1+json +17 -17
  19. data/lib/trailer_vote/fixtures/application/vnd.trailervote.feedback.v1.collection+json +22 -22
  20. data/lib/trailer_vote/fixtures/application/vnd.trailervote.feedback.v1.create+json +6 -6
  21. data/lib/trailer_vote/fixtures/application/vnd.trailervote.feedback_listing.v1+json +63 -63
  22. data/lib/trailer_vote/fixtures/application/vnd.trailervote.interactive_player.v1+json +19 -19
  23. data/lib/trailer_vote/fixtures/application/vnd.trailervote.issue.v1+json +21 -21
  24. data/lib/trailer_vote/fixtures/application/vnd.trailervote.issue.v1.create+json +15 -15
  25. data/lib/trailer_vote/fixtures/application/vnd.trailervote.issue.v1.index+json +1162 -1162
  26. data/lib/trailer_vote/fixtures/application/vnd.trailervote.persona.v1+json +13 -13
  27. data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v1+json +19 -19
  28. data/lib/trailer_vote/fixtures/application/vnd.trailervote.place.v2+json +19 -19
  29. data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.image.v1+json +68 -68
  30. data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.image.v1.index+json +19 -19
  31. data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.lookup.v1+json +6 -6
  32. data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.v1+json +89 -89
  33. data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.v1.index+json +2821 -2821
  34. data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.v2+json +97 -97
  35. data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.v2.index+json +2821 -2821
  36. data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.video.v1+json +36 -36
  37. data/lib/trailer_vote/fixtures/application/vnd.trailervote.product.video.v1.index+json +39 -39
  38. data/lib/trailer_vote/fixtures/application/vnd.trailervote.products_listing.v1+json +14318 -14318
  39. data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v1+json +9 -0
  40. data/lib/trailer_vote/fixtures/application/vnd.trailervote.push_manifest.v1+json +18 -0
  41. data/lib/trailer_vote/fixtures/application/vnd.trailervote.sentiment_feedback.v1+json +538 -538
  42. data/lib/trailer_vote/fixtures/index.js +3 -3
  43. data/lib/trailer_vote/fixtures/main.mjs +9 -9
  44. data/lib/trailer_vote/fixtures/version.rb +5 -5
  45. data/lib/trailer_vote/fixtures.rb +15 -15
  46. data/package.json +17 -17
  47. data/ruby/README.md +37 -37
  48. data/trailer_vote-fixtures.gemspec +33 -33
  49. data/yarn.lock +33 -33
  50. metadata +5 -4
@@ -1,3 +1,3 @@
1
- // Set options as a parameter, environment variable, or rc file.
2
- require = require("esm")(module/*, options*/)
3
- module.exports = require("./main.mjs")
1
+ // Set options as a parameter, environment variable, or rc file.
2
+ require = require("esm")(module/*, options*/)
3
+ module.exports = require("./main.mjs")
@@ -1,9 +1,9 @@
1
- import path from 'path'
2
- import url from 'url'
3
-
4
- const pathname = decodeURI(new url.URL(import.meta.url).pathname)
5
- const normalized_path = path.normalize(pathname).replace(/^\\([A-Z]):\\/, '$1:\\')
6
- const dirname = path.dirname(normalized_path)
7
- export default function(mediaType) {
8
- return path.join(dirname, ...mediaType.split('/'))
9
- }
1
+ import path from 'path'
2
+ import url from 'url'
3
+
4
+ const pathname = decodeURI(new url.URL(import.meta.url).pathname)
5
+ const normalized_path = path.normalize(pathname).replace(/^\\([A-Z]):\\/, '$1:\\')
6
+ const dirname = path.dirname(normalized_path)
7
+ export default function(mediaType) {
8
+ return path.join(dirname, ...mediaType.split('/'))
9
+ }
@@ -1,5 +1,5 @@
1
- module TrailerVote
2
- module Fixtures
3
- VERSION = '1.2.0'
4
- end
5
- end
1
+ module TrailerVote
2
+ module Fixtures
3
+ VERSION = '1.3.0'
4
+ end
5
+ end
@@ -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
data/package.json CHANGED
@@ -1,17 +1,17 @@
1
- {
2
- "name": "@trailervote/fixtures",
3
- "version": "1.2.0",
4
- "main": "lib/trailer_vote/fixtures/index.js",
5
- "module": "lib/trailer_vote/fixtures/main.mjs",
6
- "repository": "https://github.com/TrailerVote/trailervote-fixtures.git",
7
- "author": "Derk-Jan Karrenbeld <dj@trailervote.com>",
8
- "license": "MIT",
9
- "scripts": {
10
- "test": "node test/test.js"
11
- },
12
- "dependencies": {
13
- "esm": "^3.0.84",
14
- "path": "^0.12.7"
15
- },
16
- "devDependencies": {}
17
- }
1
+ {
2
+ "name": "@trailervote/fixtures",
3
+ "version": "1.3.0",
4
+ "main": "lib/trailer_vote/fixtures/index.js",
5
+ "module": "lib/trailer_vote/fixtures/main.mjs",
6
+ "repository": "https://github.com/TrailerVote/trailervote-fixtures.git",
7
+ "author": "Derk-Jan Karrenbeld <dj@trailervote.com>",
8
+ "license": "MIT",
9
+ "scripts": {
10
+ "test": "node test/test.js"
11
+ },
12
+ "dependencies": {
13
+ "esm": "^3.0.84",
14
+ "path": "^0.12.7"
15
+ },
16
+ "devDependencies": {}
17
+ }
data/ruby/README.md CHANGED
@@ -1,37 +1,37 @@
1
- # TrailerVote::Fixtures
2
- [![Build Status](https://travis-ci.com/TrailerVote/trailervote-fixtures.svg?branch=master)](https://travis-ci.com/TrailerVote/trailervote-fixtures)
3
- [![Gem Version](https://badge.fury.io/rb/trailer_vote-fixtures.svg)](https://badge.fury.io/rb/trailer_vote-fixtures)
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- ```ruby
10
- gem 'trailer_vote-fixtures'
11
- ```
12
-
13
- And then execute:
14
-
15
- $ bundle
16
-
17
- Or install it yourself as:
18
-
19
- $ gem install trailer_vote-fixtures
20
-
21
- ## Usage
22
-
23
- ```ruby
24
- require 'trailer_vote/fixtures'
25
- TrailerVote::Fixtures.load('application/vnd.trailervote.errors.v1+json')
26
- # => { "errors" => [...] }
27
- ```
28
-
29
- ## Development
30
-
31
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
32
-
33
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
34
-
35
- ## Contributing
36
-
37
- Bug reports and pull requests are welcome on GitHub at [TrailerVote/trailervote-fixtures](https://github.com/TrailerVote/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
+ [![Gem Version](https://badge.fury.io/rb/trailer_vote-fixtures.svg)](https://badge.fury.io/rb/trailer_vote-fixtures)
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'trailer_vote-fixtures'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install trailer_vote-fixtures
20
+
21
+ ## Usage
22
+
23
+ ```ruby
24
+ require 'trailer_vote/fixtures'
25
+ TrailerVote::Fixtures.load('application/vnd.trailervote.errors.v1+json')
26
+ # => { "errors" => [...] }
27
+ ```
28
+
29
+ ## Development
30
+
31
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
32
+
33
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
34
+
35
+ ## Contributing
36
+
37
+ Bug reports and pull requests are welcome on GitHub at [TrailerVote/trailervote-fixtures](https://github.com/TrailerVote/trailervote-fixtures).
@@ -1,33 +1,33 @@
1
-
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'trailer_vote/fixtures/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = 'trailer_vote-fixtures'
8
- spec.version = TrailerVote::Fixtures::VERSION
9
- spec.authors = ['Derk-Jan Karrenbeld']
10
- spec.email = ['dj@trailervote.com']
11
-
12
- spec.summary = 'Fixtures for TrailerVote media types, api calls, and so forth'
13
- spec.homepage = 'https://github.com/TrailerVote/trailervote-fixtures'
14
-
15
- # Specify which files should be added to the gem when it is released.
16
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
17
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
18
- `git ls-files -z`.split("\x0").reject do |f|
19
- f.match(%r{^(test|spec|features|package\.json|\.npmignore|javascript|node_modules)/})
20
- end
21
- end
22
- spec.bindir = 'exe'
23
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
- spec.require_paths = ['lib']
25
-
26
- spec.add_development_dependency 'oj', '~> 3.6'
27
-
28
- spec.add_development_dependency 'bundler', '~> 1.16'
29
- spec.add_development_dependency 'rake', '~> 12.3'
30
- spec.add_development_dependency 'minitest', '~> 5.11'
31
- spec.add_development_dependency 'minitest-ci', '~> 3.4'
32
- spec.add_development_dependency 'minitest-reporters', '~> 1.3'
33
- end
1
+
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'trailer_vote/fixtures/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'trailer_vote-fixtures'
8
+ spec.version = TrailerVote::Fixtures::VERSION
9
+ spec.authors = ['Derk-Jan Karrenbeld']
10
+ spec.email = ['dj@trailervote.com']
11
+
12
+ spec.summary = 'Fixtures for TrailerVote media types, api calls, and so forth'
13
+ spec.homepage = 'https://github.com/TrailerVote/trailervote-fixtures'
14
+
15
+ # Specify which files should be added to the gem when it is released.
16
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
17
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
18
+ `git ls-files -z`.split("\x0").reject do |f|
19
+ f.match(%r{^(test|spec|features|package\.json|\.npmignore|javascript|node_modules)/})
20
+ end
21
+ end
22
+ spec.bindir = 'exe'
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ['lib']
25
+
26
+ spec.add_development_dependency 'oj', '~> 3.6'
27
+
28
+ spec.add_development_dependency 'bundler', '~> 1.16'
29
+ spec.add_development_dependency 'rake', '~> 12.3'
30
+ spec.add_development_dependency 'minitest', '~> 5.11'
31
+ spec.add_development_dependency 'minitest-ci', '~> 3.4'
32
+ spec.add_development_dependency 'minitest-reporters', '~> 1.3'
33
+ end
data/yarn.lock CHANGED
@@ -1,33 +1,33 @@
1
- # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
- # yarn lockfile v1
3
-
4
-
5
- esm@^3.0.84:
6
- version "3.0.84"
7
- resolved "https://registry.yarnpkg.com/esm/-/esm-3.0.84.tgz#bb108989f4673b32d4f62406869c28eed3815a63"
8
- integrity sha512-SzSGoZc17S7P+12R9cg21Bdb7eybX25RnIeRZ80xZs+VZ3kdQKzqTp2k4hZJjR7p9l0186TTXSgrxzlMDBktlw==
9
-
10
- inherits@2.0.3:
11
- version "2.0.3"
12
- resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
13
- integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=
14
-
15
- path@^0.12.7:
16
- version "0.12.7"
17
- resolved "https://registry.yarnpkg.com/path/-/path-0.12.7.tgz#d4dc2a506c4ce2197eb481ebfcd5b36c0140b10f"
18
- integrity sha1-1NwqUGxM4hl+tIHr/NWzbAFAsQ8=
19
- dependencies:
20
- process "^0.11.1"
21
- util "^0.10.3"
22
-
23
- process@^0.11.1:
24
- version "0.11.10"
25
- resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"
26
- integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI=
27
-
28
- util@^0.10.3:
29
- version "0.10.4"
30
- resolved "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901"
31
- integrity sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==
32
- dependencies:
33
- inherits "2.0.3"
1
+ # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
+ # yarn lockfile v1
3
+
4
+
5
+ esm@^3.0.84:
6
+ version "3.0.84"
7
+ resolved "https://registry.yarnpkg.com/esm/-/esm-3.0.84.tgz#bb108989f4673b32d4f62406869c28eed3815a63"
8
+ integrity sha512-SzSGoZc17S7P+12R9cg21Bdb7eybX25RnIeRZ80xZs+VZ3kdQKzqTp2k4hZJjR7p9l0186TTXSgrxzlMDBktlw==
9
+
10
+ inherits@2.0.3:
11
+ version "2.0.3"
12
+ resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
13
+ integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=
14
+
15
+ path@^0.12.7:
16
+ version "0.12.7"
17
+ resolved "https://registry.yarnpkg.com/path/-/path-0.12.7.tgz#d4dc2a506c4ce2197eb481ebfcd5b36c0140b10f"
18
+ integrity sha1-1NwqUGxM4hl+tIHr/NWzbAFAsQ8=
19
+ dependencies:
20
+ process "^0.11.1"
21
+ util "^0.10.3"
22
+
23
+ process@^0.11.1:
24
+ version "0.11.10"
25
+ resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"
26
+ integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI=
27
+
28
+ util@^0.10.3:
29
+ version "0.10.4"
30
+ resolved "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901"
31
+ integrity sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==
32
+ dependencies:
33
+ inherits "2.0.3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailer_vote-fixtures
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derk-Jan Karrenbeld
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-04 00:00:00.000000000 Z
11
+ date: 2019-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj
@@ -139,6 +139,8 @@ files:
139
139
  - lib/trailer_vote/fixtures/application/vnd.trailervote.product.video.v1+json
140
140
  - lib/trailer_vote/fixtures/application/vnd.trailervote.product.video.v1.index+json
141
141
  - lib/trailer_vote/fixtures/application/vnd.trailervote.products_listing.v1+json
142
+ - lib/trailer_vote/fixtures/application/vnd.trailervote.push_campaign_trivial.v1+json
143
+ - lib/trailer_vote/fixtures/application/vnd.trailervote.push_manifest.v1+json
142
144
  - lib/trailer_vote/fixtures/application/vnd.trailervote.sentiment_feedback.v1+json
143
145
  - lib/trailer_vote/fixtures/index.js
144
146
  - lib/trailer_vote/fixtures/main.mjs
@@ -165,8 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
167
  - !ruby/object:Gem::Version
166
168
  version: '0'
167
169
  requirements: []
168
- rubyforge_project:
169
- rubygems_version: 2.7.8
170
+ rubygems_version: 3.0.1
170
171
  signing_key:
171
172
  specification_version: 4
172
173
  summary: Fixtures for TrailerVote media types, api calls, and so forth