pipely 0.10.1 → 0.11.0

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: 6175cf81031aa2d77c7d6140d92e09ff53dfebec
4
- data.tar.gz: 6a589b5821ccf091696cefa2e04c4ef02b03832f
3
+ metadata.gz: 6f9c4a0bcff7b3feb94912a01d1b05b766719478
4
+ data.tar.gz: 0e425032da77535e9d1a3536f602fa21d6cd7902
5
5
  SHA512:
6
- metadata.gz: d5e93d7a681f2302b9a2f83463a8b401dbbb1b64e417c5f05471113a02b7be4043a99af48774e6f46fd67388039a233f606f94b0cf5be946006bc38057af2b62
7
- data.tar.gz: 4c084b2f9efe1d7c17e173fc1a473cd2832078131cd57b59281a6e13682285c10e6a14f9070205695694f0290e777004e519ad08450c15345e46a9d2afb85335
6
+ metadata.gz: 747f2bb935bb19e48bd750f20e5fbe6947ef933126e103700b2e200db9a45042c1279c6c017ecb74b17d256d63cad35e835c77d13a858d84dcf4a5551e26412a
7
+ data.tar.gz: a2c072193e1ed2e98932f725f0ecf230efd2521f4f37be822964566fc4d8cc87c34e68bee4e4d78865f797ec0e1a5acc8b135dd7200523f39510cf42f917e3ee
@@ -51,11 +51,13 @@ module Pipely
51
51
  end
52
52
 
53
53
  def month
54
- "\#{format(#{@date_expression}, \"#{PipelineDate.month_format}\")}"
54
+ "\#{format(#{@date_expression}, "\
55
+ "\"#{PipelineDate.month_format}\")}/[0-9]+"
55
56
  end
56
57
 
57
58
  def year
58
- "\#{format(#{@date_expression}, \"#{PipelineDate.year_format}\")}"
59
+ "\#{format(#{@date_expression}, "\
60
+ "\"#{PipelineDate.year_format}\")}/[0-9]+/[0-9]+"
59
61
  end
60
62
  end
61
63
  end
@@ -1,3 +1,3 @@
1
1
  module Pipely
2
- VERSION = '0.10.1' unless defined?(::Pipely::VERSION)
2
+ VERSION = '0.11.0' unless defined?(::Pipely::VERSION)
3
3
  end
@@ -23,7 +23,7 @@ class TestDatePatternMatcher
23
23
  private
24
24
 
25
25
  def days_and_format(part, target_date)
26
- trimmed = part.gsub("\#{format(", '').gsub("\")}", '')
26
+ trimmed = part.gsub("\#{format(", '').gsub(/\"\)}.*/, '')
27
27
  days_expr, format = trimmed.split(", \"")
28
28
  if days_expr == target_date
29
29
  days = 0
@@ -19,7 +19,7 @@ describe Pipely::PipelineDateTime::PipelineDate do
19
19
 
20
20
  describe '#month' do
21
21
  let(:result) do
22
- "\#{format(minusDays(@scheduledStartTime, 5), \"YYYY/MM\")}"
22
+ "\#{format(minusDays(@scheduledStartTime, 5), \"YYYY/MM\")}/[0-9]+"
23
23
  end
24
24
 
25
25
  it { expect(subject.month).to eq(result) }
@@ -27,7 +27,8 @@ describe Pipely::PipelineDateTime::PipelineDate do
27
27
 
28
28
  describe '#year' do
29
29
  let(:result) do
30
- "\#{format(minusDays(@scheduledStartTime, 5), \"YYYY\")}"
30
+ "\#{format(minusDays(@scheduledStartTime, 5), "\
31
+ "\"YYYY\")}/[0-9]+/[0-9]+"
31
32
  end
32
33
 
33
34
  it { expect(subject.year).to eq(result) }
@@ -92,7 +93,8 @@ describe Pipely::PipelineDateTime::PipelineDate do
92
93
 
93
94
  describe '#month' do
94
95
  let(:result) do
95
- "\#{format(plusDays(@scheduledStartTime, 3), \"#{month_format}\")}"
96
+ "\#{format(plusDays(@scheduledStartTime, 3), "\
97
+ "\"#{month_format}\")}/[0-9]+"
96
98
  end
97
99
 
98
100
  it { expect(subject.month).to eq(result) }
@@ -100,7 +102,8 @@ describe Pipely::PipelineDateTime::PipelineDate do
100
102
 
101
103
  describe '#year' do
102
104
  let(:result) do
103
- "\#{format(plusDays(@scheduledStartTime, 3), \"#{year_format}\")}"
105
+ "\#{format(plusDays(@scheduledStartTime, 3), "\
106
+ "\"#{year_format}\")}/[0-9]+/[0-9]+"
104
107
  end
105
108
 
106
109
  it { expect(subject.year).to eq(result) }
@@ -37,7 +37,7 @@ describe Pipely::PipelineDateTime::PipelineMonthRange do
37
37
 
38
38
  describe '#months' do
39
39
  let(:expected_months) do
40
- ["\#{format(minusDays(@scheduledStartTime, 32), \"YYYY/MM\")}"]
40
+ ["\#{format(minusDays(@scheduledStartTime, 32), \"YYYY/MM\")}/[0-9]+"]
41
41
  end
42
42
 
43
43
  it { expect(subject.months).to eq expected_months }
@@ -59,7 +59,7 @@ describe Pipely::PipelineDateTime::PipelineMonthRange do
59
59
 
60
60
  describe '#months' do
61
61
  let(:expected_months) do
62
- ["\#{format(minusDays(@scheduledStartTime, 33), \"YYYY/MM\")}"]
62
+ ["\#{format(minusDays(@scheduledStartTime, 33), \"YYYY/MM\")}/[0-9]+"]
63
63
  end
64
64
 
65
65
  it { expect(subject.months).to eq expected_months }
@@ -82,8 +82,8 @@ describe Pipely::PipelineDateTime::PipelineMonthRange do
82
82
  describe '#months' do
83
83
  let(:expected_months) do
84
84
  [
85
- "\#{format(minusDays(@scheduledStartTime, 34), \"YYYY/MM\")}",
86
- "\#{format(minusDays(@scheduledStartTime, 62), \"YYYY/MM\")}"
85
+ "\#{format(minusDays(@scheduledStartTime, 34), \"YYYY/MM\")}/[0-9]+",
86
+ "\#{format(minusDays(@scheduledStartTime, 62), \"YYYY/MM\")}/[0-9]+"
87
87
  ]
88
88
  end
89
89
 
@@ -37,7 +37,8 @@ describe Pipely::PipelineDateTime::PipelineYearRange do
37
37
 
38
38
  describe '#years' do
39
39
  let(:expected_years) do
40
- ["\#{format(minusDays(@scheduledStartTime, 366), \"YYYY\")}"]
40
+ ["\#{format(minusDays(@scheduledStartTime, 366), "\
41
+ "\"YYYY\")}/[0-9]+/[0-9]+"]
41
42
  end
42
43
 
43
44
  it { expect(subject.years).to eq expected_years }
@@ -59,7 +60,8 @@ describe Pipely::PipelineDateTime::PipelineYearRange do
59
60
 
60
61
  describe '#years' do
61
62
  let(:expected_years) do
62
- ["\#{format(minusDays(@scheduledStartTime, 367), \"YYYY\")}"]
63
+ ["\#{format(minusDays(@scheduledStartTime, 367), "\
64
+ "\"YYYY\")}/[0-9]+/[0-9]+"]
63
65
  end
64
66
 
65
67
  it { expect(subject.years).to eq expected_years }
@@ -82,8 +84,10 @@ describe Pipely::PipelineDateTime::PipelineYearRange do
82
84
  describe '#years' do
83
85
  let(:expected_years) do
84
86
  [
85
- "\#{format(minusDays(@scheduledStartTime, 368), \"YYYY\")}",
86
- "\#{format(minusDays(@scheduledStartTime, 733), \"YYYY\")}"
87
+ "\#{format(minusDays(@scheduledStartTime, 368), "\
88
+ "\"YYYY\")}/[0-9]+/[0-9]+",
89
+ "\#{format(minusDays(@scheduledStartTime, 733), "\
90
+ "\"YYYY\")}/[0-9]+/[0-9]+"
87
91
  ]
88
92
  end
89
93
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipely
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Gillooly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-15 00:00:00.000000000 Z
11
+ date: 2014-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-graphviz