pipely 0.4.1 → 0.4.2

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: 75e016f5669df8829da06dc708ada8736c04c395
4
- data.tar.gz: d6fd727143baff289e2f2a0b90ee872d3ad538c8
3
+ metadata.gz: 9e839815ff52e5865f3e6cf0e49fe61798c5847a
4
+ data.tar.gz: cd869828456674c544d4395796d116c8eda5c2e4
5
5
  SHA512:
6
- metadata.gz: 8cc24e0b697252d8f1be5c6e8e52016050807c15e0420b9210f124b5525d2c747e49d5421bd110482115d8844bde32125877f3c58ab3f885a83d0a1447932f3d
7
- data.tar.gz: b01b4816f6630041a8246218741d28d08e53da886c692695ba84c8be07937ea3889c6869eee313049ee92c01a9185123019df9952393dc5571ce86d2f4d3f1f8
6
+ metadata.gz: ba13a75d7f3b2229a6df2eba6ce59917e935278871d56c3fab3f583b935f6d4d571652d04e1a0fddff330c4c4eceb2084931b7a2247af90c2c62b36d032efdcf
7
+ data.tar.gz: 696bd1202d627933f77be23cff2121283a159dfbe83968b6c5f69afa9b0849e509aa0badf32510595f2c8baa5fa55f5082249a9e5531353b8b3ce082117a82a8
@@ -24,4 +24,20 @@ shared_examples "a renderable template" do |environment, config|
24
24
 
25
25
  expect(objects.count).to eq(distinct_ids.count)
26
26
  end
27
+
28
+ it "does not generate SnsAlert subjects that are over 100 characters" do
29
+ objects = JSON.parse(rendered_json)['objects']
30
+ sns_alarms = objects.select{|h| h['type'] == 'SnsAlarm'}
31
+
32
+ max_object_id = objects.map{|h| h['id']}.max_by(&:length)
33
+ max_attempt_id = max_object_id + "_2014-01-01T00:00:00_Attempt=1"
34
+
35
+ sns_alarms.each do |h|
36
+ # NOTE: This currently only handles the interpolation we use at Swipely.
37
+ # TODO: Support local evaluation of any valid expression.
38
+ interpolated_subject = h['subject'].sub('#{node.name}', max_attempt_id)
39
+ expect( interpolated_subject ).to have_at_most(100).chars
40
+ end
41
+ end
42
+
27
43
  end
@@ -1,3 +1,3 @@
1
1
  module Pipely
2
- VERSION = "0.4.1" unless defined?(::DataPipelineGraphviz::VERSION)
2
+ VERSION = "0.4.2" unless defined?(::Pipely::VERSION)
3
3
  end
metadata CHANGED
@@ -1,153 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipely
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
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-03-21 00:00:00.000000000 Z
11
+ date: 2014-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-graphviz
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: virtus
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.0.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: fog
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 1.21.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.21.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: unf
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: uuidtools
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: activesupport
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: cane
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: timecop
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  description:
@@ -158,10 +158,15 @@ executables:
158
158
  extensions: []
159
159
  extra_rdoc_files: []
160
160
  files:
161
+ - README.md
162
+ - Rakefile
163
+ - bin/pipely
164
+ - lib/pipely.rb
165
+ - lib/pipely/actions.rb
161
166
  - lib/pipely/actions/graph_file_pipeline.rb
162
167
  - lib/pipely/actions/graph_live_pipeline.rb
163
168
  - lib/pipely/actions/list_live_pipelines.rb
164
- - lib/pipely/actions.rb
169
+ - lib/pipely/build.rb
165
170
  - lib/pipely/build/daily_scheduler.rb
166
171
  - lib/pipely/build/definition.rb
167
172
  - lib/pipely/build/environment_config.rb
@@ -169,12 +174,11 @@ files:
169
174
  - lib/pipely/build/s3_path_builder.rb
170
175
  - lib/pipely/build/template.rb
171
176
  - lib/pipely/build/template_helpers.rb
172
- - lib/pipely/build.rb
173
177
  - lib/pipely/component.rb
174
178
  - lib/pipely/definition.rb
175
179
  - lib/pipely/dependency.rb
176
- - lib/pipely/deploy/client.rb
177
180
  - lib/pipely/deploy.rb
181
+ - lib/pipely/deploy/client.rb
178
182
  - lib/pipely/fog_client.rb
179
183
  - lib/pipely/graph_builder.rb
180
184
  - lib/pipely/live_pipeline.rb
@@ -183,15 +187,12 @@ files:
183
187
  - lib/pipely/runs_report.rb
184
188
  - lib/pipely/s3_writer.rb
185
189
  - lib/pipely/shared_examples.rb
190
+ - lib/pipely/tasks.rb
186
191
  - lib/pipely/tasks/definition.rb
187
192
  - lib/pipely/tasks/deploy.rb
188
193
  - lib/pipely/tasks/graph.rb
189
194
  - lib/pipely/tasks/upload_steps.rb
190
- - lib/pipely/tasks.rb
191
195
  - lib/pipely/version.rb
192
- - lib/pipely.rb
193
- - Rakefile
194
- - README.md
195
196
  - spec/lib/pipely/build/daily_scheduler_spec.rb
196
197
  - spec/lib/pipely/build/right_now_scheduler_spec.rb
197
198
  - spec/lib/pipely/build/s3_path_builder_spec.rb
@@ -205,7 +206,6 @@ files:
205
206
  - spec/lib/pipely/reference_list_spec.rb
206
207
  - spec/lib/pipely_spec.rb
207
208
  - spec/spec_helper.rb
208
- - bin/pipely
209
209
  homepage: http://github.com/swipely/pipely
210
210
  licenses:
211
211
  - MIT
@@ -216,17 +216,17 @@ require_paths:
216
216
  - lib
217
217
  required_ruby_version: !ruby/object:Gem::Requirement
218
218
  requirements:
219
- - - '>='
219
+ - - ">="
220
220
  - !ruby/object:Gem::Version
221
221
  version: '0'
222
222
  required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  requirements:
224
- - - '>='
224
+ - - ">="
225
225
  - !ruby/object:Gem::Version
226
226
  version: '0'
227
227
  requirements: []
228
228
  rubyforge_project:
229
- rubygems_version: 2.0.14
229
+ rubygems_version: 2.2.0
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Generate dependency graphs from pipeline definitions.