locomotivecms_wagon 2.3.0 → 2.4.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ require 'thor'
6
6
 
7
7
  describe Locomotive::Wagon::PushCommand do
8
8
 
9
- before { VCR.insert_cassette 'push', record: :new_episodes, match_requests_on: [:method, :query, :body] }
9
+ before { VCR.insert_cassette 'push', match_requests_on: [:uri, :method, :query, :body] }
10
10
  after { VCR.eject_cassette }
11
11
 
12
12
  let(:env) { 'production' }
@@ -26,7 +26,8 @@ describe Locomotive::Wagon::PushCommand do
26
26
 
27
27
  before do
28
28
  allow(Netrc).to receive(:read).and_return(TEST_PLATFORM_ALT_URL => credentials)
29
- allow(Thor::LineEditor).to receive(:readline).and_return(TEST_PLATFORM_URL.dup, '')
29
+ allow(shell).to receive(:ask).with("What is the URL of your platform? (default: http://locomotive.works)").and_return(TEST_PLATFORM_URL)
30
+ allow(shell).to receive(:ask).with('What is the handle of your site? (default: a random one)').and_return('wagon-test')
30
31
  end
31
32
 
32
33
  after { restore_deploy_file(default_site_path) }
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'locomotive/wagon'
2
2
  require 'rspec'
3
3
  require 'simplecov'
4
+ require 'coveralls'
4
5
 
5
6
  SimpleCov.start do
6
7
  add_filter 'spec/'
data/spec/support/vcr.rb CHANGED
@@ -1,10 +1,14 @@
1
- require 'webmock/rspec'
2
1
  require 'vcr'
2
+ require 'faraday'
3
3
 
4
4
  # VCR config
5
5
  VCR.configure do |c|
6
6
  c.cassette_library_dir = 'spec/fixtures/cassettes'
7
- c.hook_into :webmock
7
+ c.hook_into :faraday
8
8
  c.ignore_hosts 'codeclimate.com'
9
9
  c.configure_rspec_metadata!
10
10
  end
11
+
12
+ # Without this, VCR is unable to match a POST request with uploaded files
13
+ # https://github.com/lostisland/faraday/issues/772
14
+ Faraday.default_connection_options.request.boundary = "------------------RubyMultiPartPost".freeze
@@ -85,7 +85,7 @@ describe Locomotive::Wagon::ContentEntryDecorator do
85
85
 
86
86
  subject { decorator.to_hash }
87
87
 
88
- it { is_expected.to eq({ _slug: 'sample', posted_at: '2015-11-11T17:00:00+00:00' }) }
88
+ it { is_expected.to eq({ _slug: 'sample', posted_at: '2015-11-11T17:00:00Z' }) }
89
89
 
90
90
  context 'nil field' do
91
91
  let(:attributes) { { posted_at: nil } }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotivecms_wagon
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didier Lafforgue
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-01-22 00:00:00.000000000 Z
12
+ date: 2018-03-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -87,42 +87,42 @@ dependencies:
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: 0.2.0
90
+ version: 0.3.0
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: 0.2.0
97
+ version: 0.3.0
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: locomotivecms_coal
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - "~>"
103
103
  - !ruby/object:Gem::Version
104
- version: 1.4.0
104
+ version: 1.5.0
105
105
  type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: 1.4.0
111
+ version: 1.5.0
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: locomotivecms_steam
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: 1.3.0
118
+ version: 1.4.0.rc1
119
119
  type: :runtime
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - "~>"
124
124
  - !ruby/object:Gem::Version
125
- version: 1.3.0
125
+ version: 1.4.0.rc1
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: haml
128
128
  requirement: !ruby/object:Gem::Requirement
@@ -192,7 +192,7 @@ files:
192
192
  - ".rspec"
193
193
  - ".travis.yml"
194
194
  - Gemfile
195
- - LICENSE.txt
195
+ - MIT-LICENSE
196
196
  - README.md
197
197
  - Rakefile
198
198
  - TODO
@@ -665,12 +665,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
665
665
  version: '0'
666
666
  required_rubygems_version: !ruby/object:Gem::Requirement
667
667
  requirements:
668
- - - ">="
668
+ - - ">"
669
669
  - !ruby/object:Gem::Version
670
- version: '0'
670
+ version: 1.3.1
671
671
  requirements: []
672
672
  rubyforge_project:
673
- rubygems_version: 2.5.2
673
+ rubygems_version: 2.7.3
674
674
  signing_key:
675
675
  specification_version: 4
676
676
  summary: The LocomotiveCMS wagon is a site generator for the LocomotiveCMS engine
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2017 NoCoffee
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.