locomotivecms_wagon 3.0.0 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/bin/wagon +64 -3
- data/bin/wagon_dev +11 -0
- data/generators/.DS_Store +0 -0
- data/generators/blank/Gemfile.tt +6 -2
- data/generators/blank/app/assets/stylesheets/app.scss +2 -0
- data/generators/blank/app/assets/stylesheets/sections/.empty_directory +1 -0
- data/generators/blank/app/views/pages/404.liquid +1 -1
- data/generators/blank/app/views/pages/index.liquid +1 -1
- data/generators/section/%type%.scss.tt +3 -0
- data/generators/section/template.liquid.tt +139 -80
- data/generators/webpack/app/assets/javascripts/.DS_Store +0 -0
- data/lib/locomotive/wagon.rb +15 -1
- data/lib/locomotive/wagon/cli.rb +11 -11
- data/lib/locomotive/wagon/commands/generate_command.rb +2 -7
- data/lib/locomotive/wagon/commands/push_command.rb +4 -8
- data/lib/locomotive/wagon/commands/serve_command.rb +5 -5
- data/lib/locomotive/wagon/generators/section.rb +121 -17
- data/lib/locomotive/wagon/generators/site/base.rb +0 -23
- data/lib/locomotive/wagon/version.rb +1 -1
- data/locomotivecms_wagon.gemspec +7 -4
- metadata +14 -233
- data/.gitignore +0 -36
- data/.rspec +0 -1
- data/.travis.yml +0 -11
- data/Gemfile +0 -30
- data/Rakefile +0 -32
- data/spec/fixtures/blog/app/content_types/comments.yml +0 -20
- data/spec/fixtures/blog/app/content_types/posts.yml +0 -19
- data/spec/fixtures/blog/app/views/pages/404.liquid +0 -11
- data/spec/fixtures/blog/app/views/pages/about-us.liquid.haml +0 -29
- data/spec/fixtures/blog/app/views/pages/index.liquid +0 -25
- data/spec/fixtures/blog/app/views/pages/posts.fr.liquid +0 -13
- data/spec/fixtures/blog/app/views/pages/posts.liquid +0 -13
- data/spec/fixtures/blog/app/views/pages/posts/content_type_template.fr.liquid +0 -14
- data/spec/fixtures/blog/app/views/pages/posts/content_type_template.liquid +0 -15
- data/spec/fixtures/blog/config/deploy.yml +0 -4
- data/spec/fixtures/blog/config/site.yml +0 -16
- data/spec/fixtures/blog/data/comments.yml +0 -16
- data/spec/fixtures/blog/data/posts.yml +0 -7
- data/spec/fixtures/cassettes/authenticate.yml +0 -236
- data/spec/fixtures/cassettes/delete.yml +0 -1255
- data/spec/fixtures/cassettes/push.yml +0 -9946
- data/spec/fixtures/cassettes/sync.yml +0 -11462
- data/spec/fixtures/default/README +0 -0
- data/spec/fixtures/default/app/content_types/bands.yml +0 -21
- data/spec/fixtures/default/app/content_types/events.yml +0 -25
- data/spec/fixtures/default/app/content_types/messages.yml +0 -17
- data/spec/fixtures/default/app/content_types/songs.yml +0 -25
- data/spec/fixtures/default/app/content_types/updates.yml +0 -33
- data/spec/fixtures/default/app/views/pages/404.liquid.haml +0 -10
- data/spec/fixtures/default/app/views/pages/about_us.fr.liquid.haml +0 -7
- data/spec/fixtures/default/app/views/pages/about_us.liquid.haml +0 -21
- data/spec/fixtures/default/app/views/pages/about_us.nb.liquid.haml +0 -4
- data/spec/fixtures/default/app/views/pages/about_us/jane_doe.liquid.haml +0 -4
- data/spec/fixtures/default/app/views/pages/about_us/john_doe.fr.liquid.haml +0 -5
- data/spec/fixtures/default/app/views/pages/about_us/john_doe.liquid.haml +0 -6
- data/spec/fixtures/default/app/views/pages/all.liquid.haml +0 -16
- data/spec/fixtures/default/app/views/pages/archives/news.liquid.haml +0 -10
- data/spec/fixtures/default/app/views/pages/contact.liquid.haml +0 -54
- data/spec/fixtures/default/app/views/pages/contest.liquid.haml +0 -18
- data/spec/fixtures/default/app/views/pages/events.liquid.haml +0 -64
- data/spec/fixtures/default/app/views/pages/filtered.liquid.haml +0 -20
- data/spec/fixtures/default/app/views/pages/grunge_bands.liquid.haml +0 -8
- data/spec/fixtures/default/app/views/pages/index.fr.liquid.haml +0 -3
- data/spec/fixtures/default/app/views/pages/index.liquid.haml +0 -101
- data/spec/fixtures/default/app/views/pages/layouts/simple.liquid.haml +0 -13
- data/spec/fixtures/default/app/views/pages/music.fr.liquid.haml +0 -4
- data/spec/fixtures/default/app/views/pages/music.liquid.haml +0 -42
- data/spec/fixtures/default/app/views/pages/songs/template.fr.liquid.haml +0 -16
- data/spec/fixtures/default/app/views/pages/songs/template.liquid.haml +0 -18
- data/spec/fixtures/default/app/views/pages/songs/template/band.liquid.haml +0 -16
- data/spec/fixtures/default/app/views/pages/store.fr.liquid.haml +0 -5
- data/spec/fixtures/default/app/views/pages/store.liquid +0 -5
- data/spec/fixtures/default/app/views/pages/tags/nav.liquid.haml +0 -6
- data/spec/fixtures/default/app/views/pages/tags/nav_in_deep.liquid.haml +0 -6
- data/spec/fixtures/default/app/views/pages/unlisted_pages.liquid.haml +0 -9
- data/spec/fixtures/default/app/views/snippets/A_Complicated-one.liquid.haml +0 -1
- data/spec/fixtures/default/app/views/snippets/footer.liquid.haml +0 -6
- data/spec/fixtures/default/app/views/snippets/header.liquid.haml +0 -1
- data/spec/fixtures/default/app/views/snippets/song.fr.liquid.haml +0 -8
- data/spec/fixtures/default/app/views/snippets/song.liquid +0 -12
- data/spec/fixtures/default/config/autoprefixer.yml +0 -2
- data/spec/fixtures/default/config/deploy.yml +0 -12
- data/spec/fixtures/default/config/deploy_example.yml +0 -12
- data/spec/fixtures/default/config/site.yml +0 -13
- data/spec/fixtures/default/config/translations.yml +0 -3
- data/spec/fixtures/default/data/bands.yml +0 -13
- data/spec/fixtures/default/data/events.yml +0 -54
- data/spec/fixtures/default/data/songs.yml +0 -46
- data/spec/fixtures/default/data/updates.yml +0 -48
- data/spec/fixtures/default/icon.png +0 -0
- data/spec/fixtures/default/public/fonts/chunkfive-webfont.eot +0 -0
- data/spec/fixtures/default/public/fonts/chunkfive-webfont.svg +0 -213
- data/spec/fixtures/default/public/fonts/chunkfive-webfont.ttf +0 -0
- data/spec/fixtures/default/public/fonts/chunkfive-webfont.woff +0 -0
- data/spec/fixtures/default/public/fonts/chunkfive.css +0 -8
- data/spec/fixtures/default/public/fonts/chunkfive.otf +0 -0
- data/spec/fixtures/default/public/images/nav_on.png +0 -0
- data/spec/fixtures/default/public/images/photo_frame.png +0 -0
- data/spec/fixtures/default/public/images/sep.png +0 -0
- data/spec/fixtures/default/public/images/top.jpg +0 -0
- data/spec/fixtures/default/public/javascripts/application.js.coffee +0 -2
- data/spec/fixtures/default/public/javascripts/common.js +0 -1
- data/spec/fixtures/default/public/samples/asset_collections/cover.jpg +0 -0
- data/spec/fixtures/default/public/samples/photo.jpg +0 -0
- data/spec/fixtures/default/public/samples/photo_2.jpg +0 -0
- data/spec/fixtures/default/public/stylesheets/application.css +0 -64
- data/spec/fixtures/default/public/stylesheets/other/extra.css.less +0 -8
- data/spec/fixtures/default/public/stylesheets/other/style.css.scss +0 -13
- data/spec/fixtures/default/public/stylesheets/reboot.css +0 -77
- data/spec/integration/cli_spec.rb +0 -17
- data/spec/integration/commands/authenticate_command_spec.rb +0 -60
- data/spec/integration/commands/delete_command_spec.rb +0 -147
- data/spec/integration/commands/push_command_spec.rb +0 -86
- data/spec/integration/commands/sync_command_spec.rb +0 -60
- data/spec/integration/generators/page_spec.rb +0 -87
- data/spec/integration/generators/relationship_spec.rb +0 -102
- data/spec/integration/integration_helper.rb +0 -15
- data/spec/spec_helper.rb +0 -19
- data/spec/support/api_settings.rb +0 -5
- data/spec/support/chronic.rb +0 -6
- data/spec/support/helpers.rb +0 -39
- data/spec/support/matchers.rb +0 -5
- data/spec/support/pry.rb +0 -4
- data/spec/support/thor.rb +0 -12
- data/spec/support/vcr.rb +0 -27
- data/spec/unit/commands/pull_sub_commands/concerns/assets_concern_spec.rb +0 -48
- data/spec/unit/commands/pull_sub_commands/pull_content_types_command_spec.rb +0 -41
- data/spec/unit/commands/push_sub_commands/push_pages_command_spec.rb +0 -125
- data/spec/unit/commands/push_sub_commands/push_theme_assets_command_spec.rb +0 -42
- data/spec/unit/decorators/content_entry_decorator_spec.rb +0 -104
- data/spec/unit/decorators/page_decorator_spec.rb +0 -35
- data/spec/unit/decorators/site_decorator_spec.rb +0 -62
- data/spec/unit/decorators/theme_asset_decorator_spec.rb +0 -89
- data/spec/unit/tools/glob_spec.rb +0 -26
- data/spec/unit/tools/yaml_ext_spec.rb +0 -46
data/.gitignore
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
.DS_Store
|
2
|
-
tests
|
3
|
-
.sass-cache
|
4
|
-
.rbenv-gemsets
|
5
|
-
.ruby-version
|
6
|
-
/site
|
7
|
-
*.gem
|
8
|
-
*.rbc
|
9
|
-
.bundle
|
10
|
-
.config
|
11
|
-
.yardoc
|
12
|
-
Gemfile.lock
|
13
|
-
InstalledFiles
|
14
|
-
_yardoc
|
15
|
-
coverage
|
16
|
-
bin/wagon_dev.rb
|
17
|
-
doc/
|
18
|
-
lib/bundler/man
|
19
|
-
pkg
|
20
|
-
rdoc
|
21
|
-
spec/reports
|
22
|
-
test/tmp
|
23
|
-
test/version_tmp
|
24
|
-
tmp
|
25
|
-
spec/fixtures/default/log
|
26
|
-
|
27
|
-
/.rbenv-gemsets
|
28
|
-
/.sass-cache/
|
29
|
-
|
30
|
-
/tests
|
31
|
-
|
32
|
-
/deprecated
|
33
|
-
bin/wagon_dev
|
34
|
-
|
35
|
-
dragonfly.log
|
36
|
-
spec/fixtures/default/.byebug_history
|
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour
|
data/.travis.yml
DELETED
data/Gemfile
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Specify your gem's dependencies in wagon.gemspec
|
4
|
-
gemspec
|
5
|
-
|
6
|
-
gem 'rb-fsevent', '~> 0.9.1'
|
7
|
-
|
8
|
-
# Development
|
9
|
-
# gem 'locomotivecms_common', github: 'locomotivecms/common', ref: '4d1bd56' , require: false
|
10
|
-
# gem 'locomotivecms_coal', github: 'locomotivecms/coal', ref: 'e1719db', require: false
|
11
|
-
# gem 'locomotivecms_steam', github: 'locomotivecms/steam', ref: '8cd7541', require: false
|
12
|
-
# gem 'duktape', github: 'judofyr/duktape.rb', ref: '20ef6a5'
|
13
|
-
|
14
|
-
# Local development
|
15
|
-
# gem 'locomotivecms_coal', path: '../coal', require: false
|
16
|
-
# gem 'locomotivecms_steam', path: '../steam', require: false
|
17
|
-
# gem 'locomotivecms_common', path: '../common', require: false
|
18
|
-
|
19
|
-
group :development, :test do
|
20
|
-
gem 'pry-byebug', '~> 3.6.0'
|
21
|
-
end
|
22
|
-
|
23
|
-
group :test do
|
24
|
-
gem 'rspec', '~> 3.7.0'
|
25
|
-
gem 'json_spec', '~> 1.1.5'
|
26
|
-
gem 'vcr', '~> 4.0.0'
|
27
|
-
|
28
|
-
gem 'codeclimate-test-reporter', '~> 1.0.7', require: false
|
29
|
-
gem 'coveralls', '~> 0.8.19', require: false
|
30
|
-
end
|
data/Rakefile
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
#!/usr/bin/env rake
|
2
|
-
# encoding: utf-8
|
3
|
-
|
4
|
-
require 'rubygems'
|
5
|
-
require 'bundler/setup'
|
6
|
-
|
7
|
-
require 'rake'
|
8
|
-
require 'vcr'
|
9
|
-
require 'rspec'
|
10
|
-
require 'rspec/core/rake_task'
|
11
|
-
|
12
|
-
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
|
13
|
-
|
14
|
-
require 'locomotive/wagon'
|
15
|
-
require 'locomotive/wagon/version'
|
16
|
-
|
17
|
-
# === Gems install tasks ===
|
18
|
-
Bundler::GemHelper.install_tasks
|
19
|
-
|
20
|
-
require 'rspec/core/rake_task'
|
21
|
-
RSpec::Core::RakeTask.new('spec')
|
22
|
-
|
23
|
-
RSpec::Core::RakeTask.new('spec:unit') do |spec|
|
24
|
-
spec.pattern = 'spec/unit/**/*_spec.rb'
|
25
|
-
|
26
|
-
end
|
27
|
-
|
28
|
-
RSpec::Core::RakeTask.new('spec:integration') do |spec|
|
29
|
-
spec.pattern = 'spec/integration/**/*_spec.rb'
|
30
|
-
end
|
31
|
-
|
32
|
-
task default: :spec
|
@@ -1,20 +0,0 @@
|
|
1
|
-
name: Comments
|
2
|
-
slug: comments
|
3
|
-
description: Comments
|
4
|
-
label_field_name: name
|
5
|
-
order_by: created_at
|
6
|
-
order_direction: asc
|
7
|
-
public_submission_enabled: true
|
8
|
-
|
9
|
-
fields:
|
10
|
-
- name:
|
11
|
-
label: Name
|
12
|
-
type: string
|
13
|
-
required: true
|
14
|
-
localized: false
|
15
|
-
|
16
|
-
- description:
|
17
|
-
label: Description
|
18
|
-
type: text
|
19
|
-
required: false
|
20
|
-
localized: false
|
@@ -1,19 +0,0 @@
|
|
1
|
-
name: Posts
|
2
|
-
slug: posts
|
3
|
-
description: A description of the content type for the editors
|
4
|
-
label_field_name: title
|
5
|
-
order_by: manually
|
6
|
-
|
7
|
-
fields:
|
8
|
-
- title:
|
9
|
-
label: Title
|
10
|
-
type: string
|
11
|
-
required: true
|
12
|
-
localized: false
|
13
|
-
|
14
|
-
- description:
|
15
|
-
label: Description
|
16
|
-
type: text
|
17
|
-
required: false
|
18
|
-
localized: false
|
19
|
-
text_formatting: html
|
@@ -1,29 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: About us (test)
|
3
|
-
|
4
|
-
# true if the page is included in the menu
|
5
|
-
listed: true
|
6
|
-
|
7
|
-
# true if the page is published
|
8
|
-
published: true
|
9
|
-
|
10
|
-
# position among sibling pages
|
11
|
-
# position: 1
|
12
|
-
|
13
|
-
# sets a redirection to the given url (301)
|
14
|
-
# redirect_url: "<url to a page or to a remote url>"
|
15
|
-
|
16
|
-
# content type that this page is templatizing
|
17
|
-
# content_type: "<slug of one of the content types>"
|
18
|
-
|
19
|
-
# editable_elements:
|
20
|
-
# 'some_block/some_slug': "<text>"
|
21
|
-
# 'some_block/some_slug': "<relative path to the file under the public/samples folder>"
|
22
|
-
---
|
23
|
-
{% extends parent %}
|
24
|
-
|
25
|
-
{% block main %}
|
26
|
-
|
27
|
-
%p Hello world
|
28
|
-
|
29
|
-
{% endblock %}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Home page
|
3
|
-
published: true
|
4
|
-
---
|
5
|
-
<!DOCTYPE html>
|
6
|
-
<html lang="en">
|
7
|
-
<head>
|
8
|
-
<meta charset="utf-8">
|
9
|
-
<title>{{ site.name }}</title>
|
10
|
-
<meta name="keywords" value="{{ site.meta_keywords }}" />
|
11
|
-
<meta name="description" value="{{ site.meta_description }}" />
|
12
|
-
</head>
|
13
|
-
<body>
|
14
|
-
{% block 'main' %}
|
15
|
-
<h1>{{ page.title }}</h1>
|
16
|
-
<p>keywords = {{ params.q }}</p>
|
17
|
-
<p>post list</p>
|
18
|
-
<ul>
|
19
|
-
{% for post in contents.posts %}
|
20
|
-
<li><a href="/posts/{{ post._permalink }}">{{ post.title }}</a></li>
|
21
|
-
{% endfor %}
|
22
|
-
</ul>
|
23
|
-
{% endblock %}
|
24
|
-
</body>
|
25
|
-
</html>
|
@@ -1,13 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Liste des articles
|
3
|
-
published: true
|
4
|
-
---
|
5
|
-
{% extends 'index' %}
|
6
|
-
{% block main %}
|
7
|
-
<h1>Liste des articles</h1>
|
8
|
-
<ul>
|
9
|
-
{% for post in contents.posts %}
|
10
|
-
<li><strong>{{post.title}}</strong> (<a href="/posts/{{ post._permalink }}">more</a>)</li>
|
11
|
-
{% endfor %}
|
12
|
-
</ul>
|
13
|
-
{% endblock %}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: List of posts
|
3
|
-
published: true
|
4
|
-
---
|
5
|
-
{% extends 'index' %}
|
6
|
-
{% block main %}
|
7
|
-
<h1>List of posts</h1>
|
8
|
-
<ul>
|
9
|
-
{% for post in contents.posts %}
|
10
|
-
<li><strong>{{post.title}}</strong> (<a href="/posts/{{ post._permalink }}">more</a>)</li>
|
11
|
-
{% endfor %}
|
12
|
-
</ul>
|
13
|
-
{% endblock %}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Template d'un post
|
3
|
-
published: false
|
4
|
-
content_type: posts
|
5
|
-
---
|
6
|
-
<h1>{{ post.title }}</h1>
|
7
|
-
{{ post.description }}
|
8
|
-
<hr />
|
9
|
-
<p>commentaires:</p>
|
10
|
-
<ul>
|
11
|
-
{% for comment in post.comments %}
|
12
|
-
<li><strong>{{comment.name}}</strong><br />{{ comment.description }}</li>
|
13
|
-
{% endfor %}
|
14
|
-
</ul>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: Post page
|
3
|
-
published: false
|
4
|
-
content_type: posts
|
5
|
-
---
|
6
|
-
|
7
|
-
<h1>{{ post.title }}</h1>
|
8
|
-
{{ post.description }}
|
9
|
-
<hr />
|
10
|
-
<p>comments:</p>
|
11
|
-
<ul>
|
12
|
-
{% for comment in post.comments %}
|
13
|
-
<li><strong>{{comment.name}}</strong><br />{{ comment.description }}</li>
|
14
|
-
{% endfor %}
|
15
|
-
</ul>
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# TODO: explain it
|
2
|
-
name: Blog
|
3
|
-
|
4
|
-
# TODO: explain it
|
5
|
-
# subdomain: sample
|
6
|
-
|
7
|
-
# TODO: explain it
|
8
|
-
# domains: [www.example.com, example.com]
|
9
|
-
|
10
|
-
# TODO: explain it
|
11
|
-
locales: [en, fr]
|
12
|
-
|
13
|
-
# TODO: explain it
|
14
|
-
seo_title: locoblog
|
15
|
-
meta_keywords: "some meta keywords"
|
16
|
-
meta_description: "some meta description"
|
@@ -1,16 +0,0 @@
|
|
1
|
-
- "Sample 1":
|
2
|
-
description: "Laboriosam dignissimos quo ut possimus voluptatem. Autem iusto itaque molestiae similique cum vel. Sunt quibusdam ea illo ut in ratione tempore."
|
3
|
-
post: post-1
|
4
|
-
|
5
|
-
- "Sample 2":
|
6
|
-
description: "Rem non fugit aperiam et qui animi. Et aut eum possimus nihil ad. Qui eum ut voluptatem et aut magni aspernatur deleniti. Consequatur id aut id. Hic dolores quidem quas."
|
7
|
-
post: post-1
|
8
|
-
|
9
|
-
- "Sample 3":
|
10
|
-
description: "Voluptatum quisquam assumenda dolor nobis exercitationem est iusto expedita. Molestiae nulla quasi et quibusdam. Iste amet sed corrupti minima numquam quia dolorem ab. Hic itaque doloribus iure totam at praesentium. Illum dolorem incidunt quos laborum."
|
11
|
-
post: post-2
|
12
|
-
|
13
|
-
- "Sample 4":
|
14
|
-
description: "Possimus unde et dolor. Molestias est harum laborum. Nisi est sequi animi et. Qui suscipit ut consequatur odio autem quia est quia."
|
15
|
-
post: post-2
|
16
|
-
|
@@ -1,7 +0,0 @@
|
|
1
|
-
- "Post 1":
|
2
|
-
_permalink: post-1
|
3
|
-
description: "Assumenda et quasi illum praesentium facere labore. Dolores quia aliquam vel officiis consequatur repellendus eum et. Repudiandae assumenda ipsa sed. Non perferendis eligendi aut. Magnam aut quos excepturi nihil necessitatibus a et ratione."
|
4
|
-
|
5
|
-
- "Post 2":
|
6
|
-
_permalink: post-2
|
7
|
-
description: "Sit ipsa exercitationem harum ut sint accusantium delectus. Eum reprehenderit minus consequatur sed ad. Nulla ut rem blanditiis tenetur officia reprehenderit assumenda libero. Ut nam sapiente voluptatibus."
|
@@ -1,236 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: email=john%40doe.net&password=asimplepassword
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v0.15.4
|
12
|
-
Accept:
|
13
|
-
- application/json
|
14
|
-
Content-Type:
|
15
|
-
- application/x-www-form-urlencoded
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 401
|
19
|
-
message: Unauthorized
|
20
|
-
headers:
|
21
|
-
Content-Type:
|
22
|
-
- application/json
|
23
|
-
Content-Length:
|
24
|
-
- '40'
|
25
|
-
Connection:
|
26
|
-
- keep-alive
|
27
|
-
Status:
|
28
|
-
- 401 Unauthorized
|
29
|
-
Cache-Control:
|
30
|
-
- no-cache
|
31
|
-
X-Error-Detail:
|
32
|
-
- Invalid email or password.
|
33
|
-
X-Runtime:
|
34
|
-
- '0.230102'
|
35
|
-
X-Request-Id:
|
36
|
-
- e54fdb41-cb5b-4729-8768-6c7c0c08c5f3
|
37
|
-
Date:
|
38
|
-
- Wed, 20 Nov 2019 21:24:12 GMT
|
39
|
-
X-Powered-By:
|
40
|
-
- Phusion Passenger 6.0.4
|
41
|
-
Server:
|
42
|
-
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
43
|
-
body:
|
44
|
-
encoding: UTF-8
|
45
|
-
string: '{"message":"Invalid email or password."}'
|
46
|
-
http_version:
|
47
|
-
recorded_at: Wed, 20 Nov 2019 21:24:12 GMT
|
48
|
-
- request:
|
49
|
-
method: post
|
50
|
-
uri: http://localhost:3000/locomotive/api/v3/my_account.json
|
51
|
-
body:
|
52
|
-
encoding: UTF-8
|
53
|
-
string: account%5Bemail%5D=john%40doe.net&account%5Bname%5D=John&account%5Bpassword%5D=asimplepassword
|
54
|
-
headers:
|
55
|
-
User-Agent:
|
56
|
-
- Faraday v0.15.4
|
57
|
-
Accept:
|
58
|
-
- application/json
|
59
|
-
Content-Type:
|
60
|
-
- application/x-www-form-urlencoded
|
61
|
-
response:
|
62
|
-
status:
|
63
|
-
code: 201
|
64
|
-
message: Created
|
65
|
-
headers:
|
66
|
-
Content-Type:
|
67
|
-
- application/json
|
68
|
-
Content-Length:
|
69
|
-
- '250'
|
70
|
-
Connection:
|
71
|
-
- keep-alive
|
72
|
-
Status:
|
73
|
-
- 201 Created
|
74
|
-
Cache-Control:
|
75
|
-
- max-age=0, private, must-revalidate
|
76
|
-
ETag:
|
77
|
-
- W/"3b14c5a480c64596a4d7ff4989e157a1"
|
78
|
-
X-Runtime:
|
79
|
-
- '0.066559'
|
80
|
-
X-Request-Id:
|
81
|
-
- 73acb90e-137a-4d65-9c42-afc5095708ee
|
82
|
-
Date:
|
83
|
-
- Wed, 20 Nov 2019 21:24:12 GMT
|
84
|
-
X-Powered-By:
|
85
|
-
- Phusion Passenger 6.0.4
|
86
|
-
Server:
|
87
|
-
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
88
|
-
body:
|
89
|
-
encoding: UTF-8
|
90
|
-
string: '{"_id":"5dd5aefca953302a7b0a248f","created_at":"2019-11-20T21:24:12Z","updated_at":"2019-11-20T21:24:12Z","name":"John","email":"john@doe.net","locale":"en","api_key":"1761b6a361fee8989cd485c7045bac5f8b393563","super_admin":false,"local_admin":false}'
|
91
|
-
http_version:
|
92
|
-
recorded_at: Wed, 20 Nov 2019 21:24:12 GMT
|
93
|
-
- request:
|
94
|
-
method: post
|
95
|
-
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
96
|
-
body:
|
97
|
-
encoding: UTF-8
|
98
|
-
string: email=admin%40locomotivecms.com&password=locomotive
|
99
|
-
headers:
|
100
|
-
User-Agent:
|
101
|
-
- Faraday v0.15.4
|
102
|
-
Accept:
|
103
|
-
- application/json
|
104
|
-
Content-Type:
|
105
|
-
- application/x-www-form-urlencoded
|
106
|
-
response:
|
107
|
-
status:
|
108
|
-
code: 201
|
109
|
-
message: Created
|
110
|
-
headers:
|
111
|
-
Content-Type:
|
112
|
-
- application/json
|
113
|
-
Content-Length:
|
114
|
-
- '32'
|
115
|
-
Connection:
|
116
|
-
- keep-alive
|
117
|
-
Status:
|
118
|
-
- 201 Created
|
119
|
-
Cache-Control:
|
120
|
-
- max-age=0, private, must-revalidate
|
121
|
-
ETag:
|
122
|
-
- W/"59339255a6b598004cc42ac5cf26623c"
|
123
|
-
X-Runtime:
|
124
|
-
- '0.005396'
|
125
|
-
X-Request-Id:
|
126
|
-
- bda1c8a4-a27a-4de7-b8b4-ab19834ea3b7
|
127
|
-
Date:
|
128
|
-
- Wed, 20 Nov 2019 21:24:12 GMT
|
129
|
-
X-Powered-By:
|
130
|
-
- Phusion Passenger 6.0.4
|
131
|
-
Server:
|
132
|
-
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
133
|
-
body:
|
134
|
-
encoding: UTF-8
|
135
|
-
string: '{"token":"R_APH3Yr3dd9XJznyWyf"}'
|
136
|
-
http_version:
|
137
|
-
recorded_at: Wed, 20 Nov 2019 21:24:12 GMT
|
138
|
-
- request:
|
139
|
-
method: get
|
140
|
-
uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=R_APH3Yr3dd9XJznyWyf
|
141
|
-
body:
|
142
|
-
encoding: US-ASCII
|
143
|
-
string: ''
|
144
|
-
headers:
|
145
|
-
User-Agent:
|
146
|
-
- Faraday v0.15.4
|
147
|
-
Accept:
|
148
|
-
- application/json
|
149
|
-
X-Locomotive-Account-Email:
|
150
|
-
- admin@locomotivecms.com
|
151
|
-
X-Locomotive-Account-Token:
|
152
|
-
- R_APH3Yr3dd9XJznyWyf
|
153
|
-
response:
|
154
|
-
status:
|
155
|
-
code: 200
|
156
|
-
message: OK
|
157
|
-
headers:
|
158
|
-
Content-Type:
|
159
|
-
- application/json
|
160
|
-
Transfer-Encoding:
|
161
|
-
- chunked
|
162
|
-
Connection:
|
163
|
-
- keep-alive
|
164
|
-
Status:
|
165
|
-
- 200 OK
|
166
|
-
Cache-Control:
|
167
|
-
- max-age=0, private, must-revalidate
|
168
|
-
ETag:
|
169
|
-
- W/"0fb653f991e13c1f1e6f2074eba5eac2"
|
170
|
-
X-Runtime:
|
171
|
-
- '0.013094'
|
172
|
-
X-Request-Id:
|
173
|
-
- 3f938105-d473-4145-95e0-9ca495d7fd1c
|
174
|
-
Date:
|
175
|
-
- Wed, 20 Nov 2019 21:24:12 GMT
|
176
|
-
X-Powered-By:
|
177
|
-
- Phusion Passenger 6.0.4
|
178
|
-
Server:
|
179
|
-
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
180
|
-
Content-Encoding:
|
181
|
-
- gzip
|
182
|
-
body:
|
183
|
-
encoding: UTF-8
|
184
|
-
string: '{"_id":"5dd5aef0a9533026d946a09d","created_at":"2019-11-20T21:24:00Z","updated_at":"2019-11-20T21:24:00Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":true,"local_admin":true}'
|
185
|
-
http_version:
|
186
|
-
recorded_at: Wed, 20 Nov 2019 21:24:12 GMT
|
187
|
-
- request:
|
188
|
-
method: get
|
189
|
-
uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=R_APH3Yr3dd9XJznyWyf
|
190
|
-
body:
|
191
|
-
encoding: US-ASCII
|
192
|
-
string: ''
|
193
|
-
headers:
|
194
|
-
User-Agent:
|
195
|
-
- Faraday v0.15.4
|
196
|
-
Accept:
|
197
|
-
- application/json
|
198
|
-
X-Locomotive-Account-Email:
|
199
|
-
- admin@locomotivecms.com
|
200
|
-
X-Locomotive-Account-Token:
|
201
|
-
- R_APH3Yr3dd9XJznyWyf
|
202
|
-
response:
|
203
|
-
status:
|
204
|
-
code: 200
|
205
|
-
message: OK
|
206
|
-
headers:
|
207
|
-
Content-Type:
|
208
|
-
- application/json
|
209
|
-
Transfer-Encoding:
|
210
|
-
- chunked
|
211
|
-
Connection:
|
212
|
-
- keep-alive
|
213
|
-
Status:
|
214
|
-
- 200 OK
|
215
|
-
Cache-Control:
|
216
|
-
- max-age=0, private, must-revalidate
|
217
|
-
ETag:
|
218
|
-
- W/"0fb653f991e13c1f1e6f2074eba5eac2"
|
219
|
-
X-Runtime:
|
220
|
-
- '0.006616'
|
221
|
-
X-Request-Id:
|
222
|
-
- ca194c52-69f7-48f5-8698-c827340c0ba9
|
223
|
-
Date:
|
224
|
-
- Wed, 20 Nov 2019 21:24:12 GMT
|
225
|
-
X-Powered-By:
|
226
|
-
- Phusion Passenger 6.0.4
|
227
|
-
Server:
|
228
|
-
- nginx/1.17.3 + Phusion Passenger 6.0.4
|
229
|
-
Content-Encoding:
|
230
|
-
- gzip
|
231
|
-
body:
|
232
|
-
encoding: UTF-8
|
233
|
-
string: '{"_id":"5dd5aef0a9533026d946a09d","created_at":"2019-11-20T21:24:00Z","updated_at":"2019-11-20T21:24:00Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":true,"local_admin":true}'
|
234
|
-
http_version:
|
235
|
-
recorded_at: Wed, 20 Nov 2019 21:24:12 GMT
|
236
|
-
recorded_with: VCR 4.0.0
|