heroku_feature_deployments 0.6.2 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3fca0abe086a2f389479cdbbfa58b3c882c1ad75
|
|
4
|
+
data.tar.gz: 0924f2b5cb29546ec7b7bea74dc5d1e8f96408c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b040730f743a7939aeb601da04172a6ab8517806c06d7f923bbc8e21a2c78b705e1afaabcb9a16ebe7e18c7b88498f1016dd59b9ce790491ae278e0366eeae94
|
|
7
|
+
data.tar.gz: 29b62d831c6f303f512381c94a91ec08536487294e7dcc5192a7b43f4493c7233a857f1c3777baa1fb001db295e20256fe4eaace3d98b6260ed1340acff2fccf
|
|
@@ -22,6 +22,7 @@ module HerokuFeatureDeployments
|
|
|
22
22
|
add_collaborators
|
|
23
23
|
push_code
|
|
24
24
|
migrate_db
|
|
25
|
+
add_pivotal_new_version_comment if @pivotal_ticket_id
|
|
25
26
|
else
|
|
26
27
|
create_app
|
|
27
28
|
add_features
|
|
@@ -93,13 +94,31 @@ module HerokuFeatureDeployments
|
|
|
93
94
|
end
|
|
94
95
|
|
|
95
96
|
def add_pivotal_comment
|
|
97
|
+
if find_pivotal_story
|
|
98
|
+
find_pivotal_story.notes.create(
|
|
99
|
+
text: "Test at: http://#{@app_name}.#{config.domain}"
|
|
100
|
+
)
|
|
101
|
+
deliver_pivotal_story
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
def add_pivotal_new_version_comment
|
|
106
|
+
if find_pivotal_story
|
|
107
|
+
find_pivotal_story.notes.create(
|
|
108
|
+
text: "A new version has just been deployed"
|
|
109
|
+
)
|
|
110
|
+
deliver_pivotal_story
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
def deliver_pivotal_story
|
|
115
|
+
find_pivotal_story.update current_state: 'delivered'
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
def find_pivotal_story
|
|
96
119
|
PivotalTracker::Project.all
|
|
97
120
|
project = PivotalTracker::Project.find(config.pivotal_tracker_project_id)
|
|
98
|
-
project.stories.find(@pivotal_ticket_id)
|
|
99
|
-
story.notes.create(
|
|
100
|
-
text: "location: http://#{@app_name}.#{config.domain}"
|
|
101
|
-
) if story
|
|
102
|
-
end
|
|
121
|
+
project.stories.find(@pivotal_ticket_id)
|
|
103
122
|
end
|
|
104
123
|
|
|
105
124
|
def get_branch_name
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: heroku_feature_deployments
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Beedle
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-03-
|
|
11
|
+
date: 2014-03-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: heroku-api
|