second_curtain 0.3.0 → 0.4.0

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: 32b94742622fa6359cecb53ab8924befbee09d9a
4
- data.tar.gz: 3b9509da54c641e9fda7fe845748f4aa71f1601d
3
+ metadata.gz: a1e2066a9dad8dda48764cf5bee0de7ee62e0408
4
+ data.tar.gz: fad0bf7d3d8f19ff61166ac621fa40f6d62e9dfc
5
5
  SHA512:
6
- metadata.gz: 3a270f46f87ba9d8d9879bc2f205cae7af6af645b29aa2d153ea783c966a1b1086c22004ccaed6638b11d570453317e0b466b93bc7f8dc3a7e6873332a73b199
7
- data.tar.gz: 05ea36707ade28da1140161124632222c6e6fd16c956b8f801cc5b7b2510dca1dc9dc2b907785083e032b901c0a57f6e0b0d79e97898e1c23f30b4464f411276
6
+ metadata.gz: 8329e623dc74f5e87dd5de8db078d452ab399095e527614a58dd09911e56a143a0afd5f8eeb7411fb37cbf90b9f935a5864016551977b5ba8b67a80ce3f59f76
7
+ data.tar.gz: 9f896d1b366727fd488c329b4e4509a91e33b514dadec3c05201f13e81607ea8cd602ff57070a3b2773d5f788bf4e2dd1f6f78308ccc106b0950249b0d77dbe1
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.0
2
+
3
+ - Uses CircleCI build number as prefix. [@alloy](https://github.com/alloy)
4
+
1
5
  ## 0.3.0
2
6
 
3
7
  - Allows specification of AWS S3 bucket region. [@tiii](http://github.com/tiii)
data/README.md CHANGED
@@ -144,4 +144,4 @@ And when any snapshot tests fail, they'll be uploaded to S3 and an [HTML page](h
144
144
 
145
145
  ![Sample diff](http://static.ashfurrow.com/github/second_curtain.png)
146
146
 
147
- Note that when the S3 directory is created, it needs to be *unique*. You can provide a custom folder name with the `UPLOAD_IOS_SNAPSHOT_FOLDER_NAME` environment variable. If one is not provided, Second Curtain will fall back to `TRAVIS_JOB_ID`, and then onto one generated by the current date and time.
147
+ Note that when the S3 directory is created, it needs to be *unique*. You can provide a custom folder name with the `UPLOAD_IOS_SNAPSHOT_FOLDER_NAME` environment variable. If one is not provided, Second Curtain will fall back to `TRAVIS_JOB_ID` or `CIRCLE_BUILD_NUM`, and then onto one generated by the current date and time.
@@ -27,10 +27,7 @@ if parser.has_failing_commands
27
27
  path_prefix += '/'
28
28
  end
29
29
 
30
- folder_name = ENV['UPLOAD_IOS_SNAPSHOT_FOLDER_NAME']
31
- if !folder_name
32
- folder_name = ENV['TRAVIS_JOB_ID']
33
- end
30
+ folder_name = ENV['UPLOAD_IOS_SNAPSHOT_FOLDER_NAME'] || ENV['TRAVIS_JOB_ID'] || ENV['CIRCLE_BUILD_NUM']
34
31
 
35
32
  if !folder_name
36
33
  now = DateTime.now()
@@ -11,6 +11,6 @@ class WebPreview
11
11
  lib_path = File.expand_path(File.dirname(__FILE__))
12
12
  template = File.read(lib_path + "/template.mustache.html")
13
13
 
14
- Mustache.render(template, :uploads => @uploads, :travis_id => ENV['TRAVIS_JOB_ID'])
14
+ Mustache.render(template, :uploads => @uploads, :travis_id => ENV['TRAVIS_JOB_ID'], :circle_ci_id => ENV['CIRCLE_BUILD_NUM'])
15
15
  end
16
16
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'second_curtain'
3
- s.version = '0.3.0'
3
+ s.version = '0.4.0'
4
4
  s.licenses = ['MIT']
5
5
  s.summary = "Upload failing iOS snapshot tests cases to S3."
6
6
  s.description =
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: second_curtain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ash Furrow
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-05 00:00:00.000000000 Z
12
+ date: 2015-05-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-v1