locomotivecms_wagon 2.0.0.rc6 → 2.0.0.rc7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ browsers:
2
+ - "last 1 version"
@@ -73,10 +73,5 @@ p {
73
73
  .mr10 { margin-right: 10px !important; }
74
74
  .mb10 { margin-bottom: 10px !important; }
75
75
  .mb20 { margin-bottom: 20px !important; }
76
+ .m10 { margin: 10px !important; }​
76
77
  .mb30 { margin-bottom: 30px !important; }
77
- .m10 { margin: 10px !important; }
78
-
79
-
80
-
81
-
82
-
@@ -0,0 +1,6 @@
1
+ require 'active_support'
2
+ require 'active_support/core_ext'
3
+ require 'chronic'
4
+
5
+ Time.zone = 'Europe/Paris'
6
+ Chronic.time_class = Time.zone
@@ -2,7 +2,6 @@
2
2
 
3
3
  require 'spec_helper'
4
4
 
5
- require 'chronic'
6
5
  require 'locomotive/steam'
7
6
  require 'locomotive/wagon/decorators/concerns/to_hash_concern'
8
7
  require 'locomotive/wagon/decorators/concerns/persist_assets_concern'
@@ -14,6 +13,8 @@ describe Locomotive::Wagon::ContentEntryDecorator do
14
13
  let(:entry) { instance_double('ContentEntry', attributes.merge(content_type: content_type, localized_attributes: [])) }
15
14
  let(:decorator) { described_class.new(entry, 'en', '.') }
16
15
 
16
+ before { Chronic.time_class = Time.zone }
17
+
17
18
  before { allow(decorator).to receive(:_slug).and_return('sample') }
18
19
 
19
20
  describe '#to_hash' do
@@ -57,11 +58,11 @@ describe Locomotive::Wagon::ContentEntryDecorator do
57
58
 
58
59
  let(:field) { instance_double('Field', name: 'posted_at', type: 'date_time') }
59
60
  let(:fields) { instance_double('Fields', by_name: field, no_associations: [field]) }
60
- let(:attributes) { { posted_at: Chronic.parse('2015-11-11 18:00:00 +0100').to_datetime } }
61
+ let(:attributes) { { posted_at: Chronic.parse('2015-11-11 18:00:00').to_datetime } }
61
62
 
62
63
  subject { decorator.to_hash }
63
64
 
64
- it { is_expected.to eq({ _slug: 'sample', posted_at: '2015-11-11T18:00:00+01:00' }) }
65
+ it { is_expected.to eq({ _slug: 'sample', posted_at: '2015-11-11T17:00:00+00:00' }) }
65
66
 
66
67
  end
67
68
 
@@ -0,0 +1,26 @@
1
+ # encoding: utf-8
2
+
3
+ require 'spec_helper'
4
+
5
+ require_relative '../../../lib/locomotive/wagon/tools/glob.rb'
6
+
7
+ describe Locomotive::Wagon::Glob do
8
+
9
+ let(:string) { '' }
10
+ let(:instance) { described_class.new(string) }
11
+
12
+ describe "#to_regexp" do
13
+
14
+ subject { instance.to_regexp }
15
+
16
+ describe '**/*.css' do
17
+
18
+ let(:string) { '**/*.css' }
19
+
20
+ it { expect(subject.match('foo/bar/test.css')).not_to eq nil }
21
+
22
+ end
23
+
24
+ end
25
+
26
+ end
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.0.0.rc6
4
+ version: 2.0.0.rc7
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: 2015-12-16 00:00:00.000000000 Z
12
+ date: 2016-01-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -115,14 +115,14 @@ dependencies:
115
115
  requirements:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: 1.0.0.rc9
118
+ version: 1.0.0.rc10
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.0.0.rc9
125
+ version: 1.0.0.rc10
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: listen
128
128
  requirement: !ruby/object:Gem::Requirement
@@ -513,6 +513,7 @@ files:
513
513
  - lib/locomotive/wagon/generators/site/unzip.rb
514
514
  - lib/locomotive/wagon/generators/snippet.rb
515
515
  - lib/locomotive/wagon/middlewares/error_page.rb
516
+ - lib/locomotive/wagon/tools/glob.rb
516
517
  - lib/locomotive/wagon/tools/listen.rb
517
518
  - lib/locomotive/wagon/tools/styled_yaml.rb
518
519
  - lib/locomotive/wagon/tools/tcp_port.rb
@@ -573,6 +574,7 @@ files:
573
574
  - spec/fixtures/default/app/views/snippets/header.liquid.haml
574
575
  - spec/fixtures/default/app/views/snippets/song.fr.liquid.haml
575
576
  - spec/fixtures/default/app/views/snippets/song.liquid
577
+ - spec/fixtures/default/config/autoprefixer.yml
576
578
  - spec/fixtures/default/config/deploy.yml
577
579
  - spec/fixtures/default/config/deploy_example.yml
578
580
  - spec/fixtures/default/config/site.yml
@@ -613,6 +615,7 @@ files:
613
615
  - spec/integration/integration_helper.rb
614
616
  - spec/spec_helper.rb
615
617
  - spec/support/api_settings.rb
618
+ - spec/support/chronic.rb
616
619
  - spec/support/helpers.rb
617
620
  - spec/support/matchers.rb
618
621
  - spec/support/pry.rb
@@ -623,6 +626,7 @@ files:
623
626
  - spec/unit/decorators/content_entry_decorator_spec.rb
624
627
  - spec/unit/decorators/site_decorator_spec.rb
625
628
  - spec/unit/decorators/theme_asset_decorator_spec.rb
629
+ - spec/unit/tools/glob_spec.rb
626
630
  homepage: http://www.locomotivecms.com
627
631
  licenses:
628
632
  - MIT
@@ -704,6 +708,7 @@ test_files:
704
708
  - spec/fixtures/default/app/views/snippets/header.liquid.haml
705
709
  - spec/fixtures/default/app/views/snippets/song.fr.liquid.haml
706
710
  - spec/fixtures/default/app/views/snippets/song.liquid
711
+ - spec/fixtures/default/config/autoprefixer.yml
707
712
  - spec/fixtures/default/config/deploy.yml
708
713
  - spec/fixtures/default/config/deploy_example.yml
709
714
  - spec/fixtures/default/config/site.yml
@@ -744,6 +749,7 @@ test_files:
744
749
  - spec/integration/integration_helper.rb
745
750
  - spec/spec_helper.rb
746
751
  - spec/support/api_settings.rb
752
+ - spec/support/chronic.rb
747
753
  - spec/support/helpers.rb
748
754
  - spec/support/matchers.rb
749
755
  - spec/support/pry.rb
@@ -754,3 +760,4 @@ test_files:
754
760
  - spec/unit/decorators/content_entry_decorator_spec.rb
755
761
  - spec/unit/decorators/site_decorator_spec.rb
756
762
  - spec/unit/decorators/theme_asset_decorator_spec.rb
763
+ - spec/unit/tools/glob_spec.rb