trailer_vote-fixtures 0.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +12 -8
- data/.npmignore +25 -0
- data/.travis.yml +69 -7
- data/Gemfile +6 -6
- data/Gemfile.lock +3 -2
- data/README.md +9 -37
- 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.issue.v1.index+json +1162 -0
- data/lib/trailer_vote/fixtures/index.js +3 -0
- data/lib/trailer_vote/fixtures/main.mjs +9 -0
- data/lib/trailer_vote/fixtures/version.rb +5 -5
- data/package.json +17 -0
- data/ruby/README.md +37 -0
- data/trailer_vote-fixtures.gemspec +33 -31
- data/yarn.lock +33 -0
- metadata +10 -3
@@ -0,0 +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,5 +1,5 @@
|
|
1
|
-
module TrailerVote
|
2
|
-
module Fixtures
|
3
|
-
VERSION =
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module TrailerVote
|
2
|
+
module Fixtures
|
3
|
+
VERSION = '1.2.0'
|
4
|
+
end
|
5
|
+
end
|
data/package.json
ADDED
@@ -0,0 +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
|
+
}
|
data/ruby/README.md
ADDED
@@ -0,0 +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,31 +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
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
spec.
|
23
|
-
|
24
|
-
spec.
|
25
|
-
|
26
|
-
spec.add_development_dependency '
|
27
|
-
|
28
|
-
spec.add_development_dependency '
|
29
|
-
spec.add_development_dependency '
|
30
|
-
spec.add_development_dependency 'minitest
|
31
|
-
|
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
ADDED
@@ -0,0 +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"
|
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:
|
4
|
+
version: 1.2.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:
|
11
|
+
date: 2019-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|
@@ -102,6 +102,7 @@ extensions: []
|
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
104
|
- ".gitignore"
|
105
|
+
- ".npmignore"
|
105
106
|
- ".travis.yml"
|
106
107
|
- Gemfile
|
107
108
|
- Gemfile.lock
|
@@ -124,6 +125,7 @@ files:
|
|
124
125
|
- lib/trailer_vote/fixtures/application/vnd.trailervote.interactive_player.v1+json
|
125
126
|
- lib/trailer_vote/fixtures/application/vnd.trailervote.issue.v1+json
|
126
127
|
- lib/trailer_vote/fixtures/application/vnd.trailervote.issue.v1.create+json
|
128
|
+
- lib/trailer_vote/fixtures/application/vnd.trailervote.issue.v1.index+json
|
127
129
|
- lib/trailer_vote/fixtures/application/vnd.trailervote.persona.v1+json
|
128
130
|
- lib/trailer_vote/fixtures/application/vnd.trailervote.place.v1+json
|
129
131
|
- lib/trailer_vote/fixtures/application/vnd.trailervote.place.v2+json
|
@@ -138,8 +140,13 @@ files:
|
|
138
140
|
- lib/trailer_vote/fixtures/application/vnd.trailervote.product.video.v1.index+json
|
139
141
|
- lib/trailer_vote/fixtures/application/vnd.trailervote.products_listing.v1+json
|
140
142
|
- lib/trailer_vote/fixtures/application/vnd.trailervote.sentiment_feedback.v1+json
|
143
|
+
- lib/trailer_vote/fixtures/index.js
|
144
|
+
- lib/trailer_vote/fixtures/main.mjs
|
141
145
|
- lib/trailer_vote/fixtures/version.rb
|
146
|
+
- package.json
|
147
|
+
- ruby/README.md
|
142
148
|
- trailer_vote-fixtures.gemspec
|
149
|
+
- yarn.lock
|
143
150
|
homepage: https://github.com/TrailerVote/trailervote-fixtures
|
144
151
|
licenses: []
|
145
152
|
metadata: {}
|
@@ -159,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
166
|
version: '0'
|
160
167
|
requirements: []
|
161
168
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.
|
169
|
+
rubygems_version: 2.7.8
|
163
170
|
signing_key:
|
164
171
|
specification_version: 4
|
165
172
|
summary: Fixtures for TrailerVote media types, api calls, and so forth
|