locomotivecms_wagon 2.0.0.pre.alpha.2 → 2.0.0.pre.alpha.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 899fd4c2ed0a4643d64986400f4364f9122a095b
4
- data.tar.gz: e32bb56243302ce2cec3a665515f44f35a2ba377
3
+ metadata.gz: a50873f213bdcfed4f2805e3234779843063a592
4
+ data.tar.gz: 858be1870e92f8babccc46f1d1e0c9ec45f6cf7f
5
5
  SHA512:
6
- metadata.gz: e7e5423622eadcdf38ff4a033470ce27cba8c8827c0728f66a53440549c18e9be6a95616dbbd5cb6fc6c69746b0d7f7a99eb1f4fb49d2be45a2e228c45c12dda
7
- data.tar.gz: 11befc5b800ab97d419da76d0010170cc81cc632d373fb3614ee4de20c4791da23093cdf4109e85f278406ea692d1448cc7661d0d24ce7320960084a8e6fc59f
6
+ metadata.gz: ccf20a282732acfb247467c130fe9001b065ef06e60f7d2507f44e3f13a506b8b476d29861167ffc7618fc567f1a04d247a92a828870ca4df14f36ff789e8878
7
+ data.tar.gz: c7264b43a72794eb57de873f4eb52e62235dd03a83b65a522f774b893105232d5174c7b5be95a2f66cadc33483bcd94f89f51e5804228dacce7d578119b280fe
@@ -4,18 +4,18 @@ gem 'locomotivecms_wagon', '<%= config[:version] -%>'
4
4
 
5
5
  group :development do
6
6
  # Mac OS X
7
- gem 'rb-fsevent', '~> 0.9.1', require: RUBY_PLATFORM.include?('darwin') && 'rb-fsevent'
7
+ # gem 'rb-fsevent', '~> 0.9.1', require: RUBY_PLATFORM.include?('darwin') && 'rb-fsevent'
8
8
 
9
9
  # Unix
10
- gem 'therubyracer', require: 'v8', platforms: :ruby unless RUBY_PLATFORM.include?('darwin')
11
- gem 'rb-inotify', '~> 0.9', require: RUBY_PLATFORM.include?('linux') && 'rb-inotify'
10
+ # gem 'therubyracer', require: 'v8', platforms: :ruby unless RUBY_PLATFORM.include?('darwin')
11
+ # gem 'rb-inotify', '~> 0.9', require: RUBY_PLATFORM.include?('linux') && 'rb-inotify'
12
12
 
13
13
  # Windows
14
- gem 'wdm', '>= 0.1.0', require: RUBY_PLATFORM =~ /mswin|mingw/i && 'wdm'
14
+ # gem 'wdm', '>= 0.1.0', require: RUBY_PLATFORM =~ /mswin|mingw/i && 'wdm'
15
15
  end
16
16
 
17
17
  group :misc do
18
18
  # Add your extra gems here
19
19
  # gem 'susy', require: 'susy'
20
20
  # gem 'redcarpet', require: 'redcarpet'
21
- end
21
+ end
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Page not found
3
- published: false
3
+ published: true
4
4
  ---
5
5
  {% extends index %}
6
6
 
@@ -8,4 +8,4 @@ published: false
8
8
 
9
9
  <p>Page not found</p>
10
10
 
11
- {% endblock %}
11
+ {% endblock %}
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: Page not found
3
- published: false
3
+ published: true
4
4
  ---
5
5
  {% extends index %}
6
6
 
@@ -8,4 +8,4 @@ published: false
8
8
 
9
9
  %p Page not found
10
10
 
11
- {% endblock %}
11
+ {% endblock %}
@@ -3,11 +3,6 @@
3
3
  # can be used in templates through the site.name global variable
4
4
  name: "<%= config[:name] %>"
5
5
 
6
- # The site's subdomain
7
- # This option is for sites on multi-site engines
8
- # The value determines where the site can be accessed under the engine's primary domain
9
- subdomain: <%= config[:name].parameterize %>
10
-
11
6
  # An array of domain aliases for the site
12
7
  # This option is for sites on multi-site engines
13
8
  # domains: [www.example.com, example.com]
@@ -30,4 +25,4 @@ locales: [en]
30
25
  # They can be accessed in templates through the site.seo_title, site.meta_keywords, and site.meta_description variables
31
26
  seo_title: <%= @name %>
32
27
  meta_keywords: "some meta keywords"
33
- meta_description: "some meta description"
28
+ meta_description: "some meta description"
@@ -3,11 +3,6 @@
3
3
  # can be used in templates through the site.name global variable
4
4
  name: "<%= config[:name] %>"
5
5
 
6
- # The site's subdomain
7
- # This option is for sites on multi-site engines
8
- # The value determines where the site can be accessed under the engine's primary domain
9
- subdomain: <%= config[:name].parameterize %>
10
-
11
6
  # An array of domain aliases for the site
12
7
  # This option is for sites on multi-site engines
13
8
  # domains: [www.example.com, example.com]
@@ -3,11 +3,6 @@
3
3
  # can be used in templates through the site.name global variable
4
4
  name: "<%= config[:name] %>"
5
5
 
6
- # The site's subdomain
7
- # This option is for sites on multi-site engines
8
- # The value determines where the site can be accessed under the engine's primary domain
9
- subdomain: <%= config[:name].parameterize %>
10
-
11
6
  # An array of domain aliases for the site
12
7
  # This option is for sites on multi-site engines
13
8
  # domains: [www.example.com, example.com]
@@ -30,4 +25,4 @@ locales: [en]
30
25
  # They can be accessed in templates through the site.seo_title, site.meta_keywords, and site.meta_description variables
31
26
  seo_title: <%= @name %>
32
27
  meta_keywords: "some meta keywords"
33
- meta_description: "some meta description"
28
+ meta_description: "some meta description"
@@ -78,8 +78,8 @@ module Locomotive
78
78
 
79
79
  say('The fields are missing', :red) and return false if fields.empty?
80
80
 
81
- if check_path!
82
- Locomotive::Wagon.generate :content_type, [name, fields, self.options.delete('path')], self.options
81
+ if path = check_path!
82
+ Locomotive::Wagon.generate :content_type, [name, fields, path], self.options
83
83
  end
84
84
  end
85
85
 
@@ -101,8 +101,8 @@ module Locomotive
101
101
  def relationship(source, type, target)
102
102
  force_color_if_asked(options)
103
103
 
104
- if check_path!
105
- Locomotive::Wagon.generate :relationship, [source, type, target, self.options.delete('path')], self.options
104
+ if path = check_path!
105
+ Locomotive::Wagon.generate :relationship, [source, type, target, path], self.options
106
106
  end
107
107
  end
108
108
 
@@ -127,7 +127,7 @@ module Locomotive
127
127
 
128
128
  if path = check_path!
129
129
  self.options[:default_locales] = self.site_config(path)['locales']
130
- Locomotive::Wagon.generate :page, [fullpath, self.options.delete('path')], self.options
130
+ Locomotive::Wagon.generate :page, [fullpath, path], self.options
131
131
  end
132
132
  end
133
133
 
@@ -145,7 +145,7 @@ module Locomotive
145
145
 
146
146
  if path = check_path!
147
147
  locales = self.site_config(path)['locales']
148
- Locomotive::Wagon.generate :snippet, [slug, locales, self.options.delete('path')], self.options
148
+ Locomotive::Wagon.generate :snippet, [slug, locales, path], self.options
149
149
  end
150
150
  end
151
151
 
@@ -300,14 +300,14 @@ module Locomotive
300
300
  desc 'push ENV [PATH]', 'Push a site to a remote LocomotiveCMS Engine'
301
301
  method_option :resources, aliases: '-r', type: 'array', default: nil, desc: 'Only push the resource(s) passed in argument'
302
302
  method_option :data, aliases: '-d', type: 'boolean', default: false, desc: 'Push the content entries and the editable elements (by default, they are not)'
303
- method_option :shell, type: 'boolean', default: true, desc: 'Use shell to ask for missing connection information like the subdomain (in this case, take a random one)'
303
+ method_option :shell, type: 'boolean', default: true, desc: 'Use shell to ask for missing connection information like the site handle (in this case, take a random one)'
304
304
  method_option :verbose, aliases: '-v', type: 'boolean', default: false, desc: 'display the full error stack trace if an error occurs'
305
305
  def push(env, path = '.')
306
306
  force_color_if_asked(options)
307
307
 
308
308
  if check_path!(path)
309
309
  begin
310
- Locomotive::Wagon.push(env, path, options)
310
+ Locomotive::Wagon.push(env, path, options, options[:shell] ? shell : nil)
311
311
  rescue Exception => e
312
312
  self.print_exception(e, options[:verbose])
313
313
  exit(1)
@@ -11,7 +11,7 @@ require_relative_all 'push_sub_commands'
11
11
 
12
12
  module Locomotive::Wagon
13
13
 
14
- class PushCommand < Struct.new(:env, :path, :options)
14
+ class PushCommand < Struct.new(:env, :path, :options, :shell)
15
15
 
16
16
  RESOURCES = %w(content_types content_entries pages snippets theme_assets translations).freeze
17
17
 
@@ -25,8 +25,8 @@ module Locomotive::Wagon
25
25
 
26
26
  attr_accessor :platform_url, :credentials
27
27
 
28
- def self.push(env, path, options)
29
- self.new(env, path, options).push
28
+ def self.push(env, path, options, shell)
29
+ self.new(env, path, options, shell).push
30
30
  end
31
31
 
32
32
  def push
@@ -80,7 +80,7 @@ module Locomotive::Wagon
80
80
  # get an instance of the Steam services in order to load the information about the site (SiteRepository)
81
81
  steam_services.current_site.tap do |site|
82
82
  # ask for a handle if not found (blank: random one)
83
- site[:handle] ||= shell.ask "What is the handle of your site?"
83
+ site[:handle] ||= shell.try(:ask, "What is the handle of your site?")
84
84
 
85
85
  # create the site
86
86
  attributes = SiteDecorator.new(site).to_hash
@@ -104,15 +104,11 @@ module Locomotive::Wagon
104
104
  def ask_for_platform_url
105
105
  default = ENV['LOCOMOTIVE_PLATFORM_URL'] || DEFAULT_PLATFORM_URL
106
106
 
107
- url = shell.ask "What is the URL of your platform? (default: #{default})"
107
+ url = shell.try(:ask, "What is the URL of your platform? (default: #{default})")
108
108
 
109
109
  self.platform_url = url.blank? ? default : url
110
110
  end
111
111
 
112
- def shell
113
- options[:shell]
114
- end
115
-
116
112
  end
117
113
 
118
114
  end
@@ -47,6 +47,8 @@ module Locomotive::Wagon
47
47
 
48
48
  def require_steam
49
49
  require 'locomotive/steam'
50
+ require 'locomotive/steam/server'
51
+ require 'locomotive/wagon/middlewares/error_page'
50
52
  require 'bundler'
51
53
  Bundler.require 'misc'
52
54
 
@@ -61,6 +63,8 @@ module Locomotive::Wagon
61
63
  require_relative '../tools/livereload'
62
64
  config.middleware.insert_before Rack::Lint, Rack::LiveReload, live_reload_port: port
63
65
  end
66
+
67
+ config.middleware.insert_before Rack::Lint, Locomotive::Wagon::Middlewares::ErrorPage
64
68
  end
65
69
  end
66
70
 
@@ -97,7 +101,6 @@ module Locomotive::Wagon
97
101
 
98
102
  def build_server
99
103
  # TODO: new feature -> pick the right Rack handler (Thin, Puma, ...etc)
100
- require 'locomotive/steam/server'
101
104
  require 'thin'
102
105
 
103
106
  app = Locomotive::Steam::Server.to_app
@@ -38,7 +38,11 @@ module Locomotive
38
38
  end
39
39
 
40
40
  def is_layout
41
- self[:is_layout]
41
+ if self[:is_layout].nil?
42
+ !(__getobj__._fullpath =~ %r(^layouts/)).nil?
43
+ else
44
+ self[:is_layout]
45
+ end
42
46
  end
43
47
 
44
48
  def allow_layout
@@ -9,6 +9,13 @@ module Locomotive
9
9
  (__getobj__.domains || []) - ['localhost']
10
10
  end
11
11
 
12
+ def picture
13
+ picture_path = __getobj__.picture
14
+ if picture_path && File.exists?(picture_path)
15
+ Locomotive::Coal::UploadIO.new(picture_path, nil, 'icon.png')
16
+ end
17
+ end
18
+
12
19
  %i(robots_txt locales timezone seo_title meta_keywords meta_description).each do |name|
13
20
  define_method(name) do
14
21
  self[name]
@@ -16,7 +23,7 @@ module Locomotive
16
23
  end
17
24
 
18
25
  def __attributes__
19
- %i(name handle robots_txt locales timezone seo_title meta_keywords meta_description)
26
+ %i(name handle robots_txt locales timezone seo_title meta_keywords meta_description picture)
20
27
  end
21
28
 
22
29
  end
@@ -0,0 +1,74 @@
1
+ require 'erb'
2
+ require 'locomotive/steam/middlewares/threadsafe'
3
+ require 'locomotive/steam/middlewares/helpers'
4
+
5
+ require 'pry-byebug'
6
+
7
+ module Locomotive::Wagon
8
+ module Middlewares
9
+
10
+ # Display a nice page error
11
+ #
12
+ class ErrorPage < Locomotive::Steam::Middlewares::ThreadSafe
13
+
14
+ include Locomotive::Steam::Middlewares::Helpers
15
+
16
+ def _call
17
+ begin
18
+ self.next
19
+ rescue StandardError => error
20
+ @error = error
21
+ log_error
22
+ render_error_page
23
+ end
24
+ end
25
+
26
+ private
27
+
28
+ def log_error
29
+ log "Error: #{@error.message}".red
30
+ log @error.backtrace.join("\n")
31
+ end
32
+
33
+ def render_error_page
34
+ _template = ERB.new(template, nil, '-')
35
+ render_response(_template.result(binding))
36
+ end
37
+
38
+ def template
39
+ %{
40
+ <DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
41
+
42
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
+ <head>
44
+ <title>Wagon - Rendering error</title>
45
+ </head>
46
+
47
+ <body>
48
+ <h1>Arrrghhhh, we could not render page</h1>
49
+ <h2><%= @error.message %></h2>
50
+
51
+ <h3>File: <%= @error.respond_to?(:file) ? @error.file : '?' %></h3>
52
+
53
+ <h3>Code</h3>
54
+ <% if @error.respond_to?(:code_lines) %>
55
+ <pre>
56
+ <% @error.code_lines.each do |(line, statement)| -%>
57
+ <strong><%= line %></strong> <%= statement %>
58
+ <% end -%>
59
+ </pre>
60
+ <% else %>
61
+ <p><i>No code</i></p>
62
+ <% end %>
63
+
64
+ <h3>Back trace</h3>
65
+ <%= @error.backtrace.join("<br/>") %>
66
+
67
+ </body>
68
+ </html>}
69
+ end
70
+
71
+ end
72
+
73
+ end
74
+ end
@@ -41,11 +41,24 @@ module Locomotive::Wagon
41
41
  Proc.new do |modified, added, removed|
42
42
  resources.each do |resource|
43
43
  Locomotive::Common::Logger.info "service=listen action=reload resource=#{resource} timestamp=#{Time.now}"
44
- cache.delete(resource)
44
+
45
+ clear_cache_for(resource, modified + added + removed)
45
46
  end
46
47
  end
47
48
  end
48
49
 
50
+ def clear_cache_for(resource, files)
51
+ keys = case resource
52
+ when :sites then '_sites'
53
+ when :content_entries
54
+ files.map { |f| "site_1_content_type_#{File.basename(f, '.yml')}_content_entries" }
55
+ else
56
+ "site_1_#{resource}"
57
+ end
58
+
59
+ [*keys].each { |key| cache.delete(key) }
60
+ end
61
+
49
62
  end
50
63
 
51
64
  end
@@ -1,5 +1,5 @@
1
1
  module Locomotive
2
2
  module Wagon
3
- VERSION = '2.0.0-alpha.2'
3
+ VERSION = '2.0.0-alpha.3'
4
4
  end
5
5
  end
@@ -65,12 +65,12 @@ module Locomotive
65
65
  #
66
66
  # @param [ String ] env The environment we deploy the site to
67
67
  # @param [ String ] path The path of the site
68
- # @param [ Hash ] connection_info The information to get connected to the remote site
68
+ # @param [ Object ] shell The Thor shell used to ask for information if needed
69
69
  # @param [ Hash ] options The options passed to the push process
70
70
  #
71
- def self.push(env, path, options = {})
71
+ def self.push(env, path, options = {}, shell)
72
72
  require_relative 'wagon/commands/push_command'
73
- Locomotive::Wagon::PushCommand.push(env, path, options)
73
+ Locomotive::Wagon::PushCommand.push(env, path, options, shell)
74
74
  end
75
75
 
76
76
  # Pull a site from a remote LocomotiveCMS engine described
@@ -26,7 +26,7 @@ Gem::Specification.new do |gem|
26
26
  gem.add_dependency 'netrc', '~> 0.10.3'
27
27
 
28
28
  gem.add_dependency 'locomotivecms_coal', '~> 1.0.0-alpha.3'
29
- gem.add_dependency 'locomotivecms_steam', '~> 1.0.0-alpha.1'
29
+ gem.add_dependency 'locomotivecms_steam', '~> 1.0.0-alpha.2'
30
30
 
31
31
  gem.add_dependency 'listen', '~> 2.10.0'
32
32
  gem.add_dependency 'rack-livereload', '~> 0.3.15'
@@ -8,4 +8,4 @@ published: false
8
8
 
9
9
  <p>Page not found</p>
10
10
 
11
- {% endblock %}
11
+ {% endblock %}
@@ -17,39 +17,43 @@ http_interactions:
17
17
  - Ruby
18
18
  response:
19
19
  status:
20
- code: 401
21
- message: Unauthorized
20
+ code: 201
21
+ message: Created
22
22
  headers:
23
23
  Content-Type:
24
24
  - application/json
25
- X-Error-Detail:
26
- - Invalid email or password.
27
25
  Content-Length:
28
- - '40'
26
+ - '32'
27
+ Etag:
28
+ - W/"2245a1c3eefc06a0a39cca5e28eb4822"
29
29
  Cache-Control:
30
- - no-cache
30
+ - max-age=0, private, must-revalidate
31
31
  X-Request-Id:
32
- - 7fb8047a-d658-4749-a06f-6d8ffdb31979
32
+ - c7ddea05-6b69-4454-8f5a-b667a8628ef9
33
33
  X-Runtime:
34
- - '0.020220'
34
+ - '0.590206'
35
35
  Connection:
36
36
  - keep-alive
37
37
  Server:
38
38
  - thin
39
39
  body:
40
40
  encoding: UTF-8
41
- string: '{"message":"Invalid email or password."}'
41
+ string: '{"token":"ib6bXanDDnsFjyujf9Gt"}'
42
42
  http_version:
43
- recorded_at: Tue, 19 May 2015 14:11:30 GMT
43
+ recorded_at: Mon, 25 May 2015 23:06:12 GMT
44
44
  - request:
45
- method: post
45
+ method: get
46
46
  uri: http://localhost:3000/locomotive/api/v3/my_account.json
47
47
  body:
48
48
  encoding: UTF-8
49
- string: account%5Bemail%5D=john%40doe.net&account%5Bname%5D=John&account%5Bpassword%5D=asimplepassword
49
+ string: auth_token=ib6bXanDDnsFjyujf9Gt
50
50
  headers:
51
51
  Accept:
52
52
  - application/json
53
+ X-Locomotive-Account-Email:
54
+ - john@doe.net
55
+ X-Locomotive-Account-Token:
56
+ - ib6bXanDDnsFjyujf9Gt
53
57
  Content-Type:
54
58
  - application/x-www-form-urlencoded
55
59
  Accept-Encoding:
@@ -58,8 +62,53 @@ http_interactions:
58
62
  - Ruby
59
63
  response:
60
64
  status:
61
- code: 201
62
- message: Created
65
+ code: 200
66
+ message: OK
67
+ headers:
68
+ Content-Type:
69
+ - application/json
70
+ Content-Length:
71
+ - '250'
72
+ Etag:
73
+ - W/"77a6faa0568f7ba809893a63188e0841"
74
+ Cache-Control:
75
+ - max-age=0, private, must-revalidate
76
+ X-Request-Id:
77
+ - ea9681b4-a8ed-4c0e-86e7-da1824762b79
78
+ X-Runtime:
79
+ - '0.087301'
80
+ Connection:
81
+ - keep-alive
82
+ Server:
83
+ - thin
84
+ body:
85
+ encoding: UTF-8
86
+ string: '{"_id":"555b4492646964986c220000","created_at":"2015-05-19T14:11:30Z","updated_at":"2015-05-19T14:11:30Z","name":"John","email":"john@doe.net","locale":"en","api_key":"c17eb23cfde7a2f7f3d08689dd20470cf9bd95a8","super_admin":false,"local_admin":false}'
87
+ http_version:
88
+ recorded_at: Mon, 25 May 2015 23:06:12 GMT
89
+ - request:
90
+ method: get
91
+ uri: http://localhost:3000/locomotive/api/v3/my_account.json
92
+ body:
93
+ encoding: UTF-8
94
+ string: auth_token=ib6bXanDDnsFjyujf9Gt
95
+ headers:
96
+ Accept:
97
+ - application/json
98
+ X-Locomotive-Account-Email:
99
+ - john@doe.net
100
+ X-Locomotive-Account-Token:
101
+ - ib6bXanDDnsFjyujf9Gt
102
+ Content-Type:
103
+ - application/x-www-form-urlencoded
104
+ Accept-Encoding:
105
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
106
+ User-Agent:
107
+ - Ruby
108
+ response:
109
+ status:
110
+ code: 200
111
+ message: OK
63
112
  headers:
64
113
  Content-Type:
65
114
  - application/json
@@ -70,9 +119,9 @@ http_interactions:
70
119
  Cache-Control:
71
120
  - max-age=0, private, must-revalidate
72
121
  X-Request-Id:
73
- - 9db2c62e-ad67-441a-873e-7f89212ce6bb
122
+ - 736fdff0-e01e-424f-9071-619960ad972f
74
123
  X-Runtime:
75
- - '0.022082'
124
+ - '0.013798'
76
125
  Connection:
77
126
  - keep-alive
78
127
  Server:
@@ -81,7 +130,7 @@ http_interactions:
81
130
  encoding: UTF-8
82
131
  string: '{"_id":"555b4492646964986c220000","created_at":"2015-05-19T14:11:30Z","updated_at":"2015-05-19T14:11:30Z","name":"John","email":"john@doe.net","locale":"en","api_key":"c17eb23cfde7a2f7f3d08689dd20470cf9bd95a8","super_admin":false,"local_admin":false}'
83
132
  http_version:
84
- recorded_at: Tue, 19 May 2015 14:11:30 GMT
133
+ recorded_at: Mon, 25 May 2015 23:06:12 GMT
85
134
  - request:
86
135
  method: post
87
136
  uri: http://localhost:3000/locomotive/api/v3/tokens.json
@@ -111,9 +160,9 @@ http_interactions:
111
160
  Cache-Control:
112
161
  - max-age=0, private, must-revalidate
113
162
  X-Request-Id:
114
- - 1907747b-b550-4ec4-9da6-9e7f282e435f
163
+ - a19a725f-16bd-4e61-9965-0663181e5262
115
164
  X-Runtime:
116
- - '0.017065'
165
+ - '0.014548'
117
166
  Connection:
118
167
  - keep-alive
119
168
  Server:
@@ -122,7 +171,7 @@ http_interactions:
122
171
  encoding: UTF-8
123
172
  string: '{"token":"6UA3Po7vVz4Ry34swEqa"}'
124
173
  http_version:
125
- recorded_at: Tue, 19 May 2015 14:11:30 GMT
174
+ recorded_at: Mon, 25 May 2015 23:06:12 GMT
126
175
  - request:
127
176
  method: get
128
177
  uri: http://localhost:3000/locomotive/api/v3/my_account.json
@@ -152,23 +201,23 @@ http_interactions:
152
201
  Content-Length:
153
202
  - '264'
154
203
  Etag:
155
- - W/"d661a7257212c7c3bdbddfbef6296311"
204
+ - W/"cd64b967426892bd75445b74968ee0e7"
156
205
  Cache-Control:
157
206
  - max-age=0, private, must-revalidate
158
207
  X-Request-Id:
159
- - 6ec73621-c20a-4248-912a-fdc96683df1d
208
+ - 1637260c-7fdc-47cc-b2cb-4b32a976146a
160
209
  X-Runtime:
161
- - '0.015687'
210
+ - '0.014046'
162
211
  Connection:
163
212
  - keep-alive
164
213
  Server:
165
214
  - thin
166
215
  body:
167
216
  encoding: UTF-8
168
- string: '{"_id":"5555b35a646964e1ca000000","created_at":"2015-05-15T08:50:34Z","updated_at":"2015-05-19T14:03:41Z","name":"John
217
+ string: '{"_id":"5555b35a646964e1ca000000","created_at":"2015-05-15T08:50:34Z","updated_at":"2015-05-21T11:12:17Z","name":"John
169
218
  Doe","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
170
219
  http_version:
171
- recorded_at: Tue, 19 May 2015 14:11:30 GMT
220
+ recorded_at: Mon, 25 May 2015 23:06:12 GMT
172
221
  - request:
173
222
  method: get
174
223
  uri: http://localhost:3000/locomotive/api/v3/my_account.json
@@ -198,21 +247,21 @@ http_interactions:
198
247
  Content-Length:
199
248
  - '264'
200
249
  Etag:
201
- - W/"d661a7257212c7c3bdbddfbef6296311"
250
+ - W/"cd64b967426892bd75445b74968ee0e7"
202
251
  Cache-Control:
203
252
  - max-age=0, private, must-revalidate
204
253
  X-Request-Id:
205
- - 68f440fc-1603-4bd7-a028-7f3741011060
254
+ - 286b83c2-dc57-4ff6-b93e-69d4b083b7ef
206
255
  X-Runtime:
207
- - '0.014680'
256
+ - '0.019133'
208
257
  Connection:
209
258
  - keep-alive
210
259
  Server:
211
260
  - thin
212
261
  body:
213
262
  encoding: UTF-8
214
- string: '{"_id":"5555b35a646964e1ca000000","created_at":"2015-05-15T08:50:34Z","updated_at":"2015-05-19T14:03:41Z","name":"John
263
+ string: '{"_id":"5555b35a646964e1ca000000","created_at":"2015-05-15T08:50:34Z","updated_at":"2015-05-21T11:12:17Z","name":"John
215
264
  Doe","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
216
265
  http_version:
217
- recorded_at: Tue, 19 May 2015 14:11:30 GMT
266
+ recorded_at: Mon, 25 May 2015 23:06:12 GMT
218
267
  recorded_with: VCR 2.9.3