second_curtain 0.2.4 → 0.3.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: 48a1957b68a022234c2ab0848298f999ac720993
4
- data.tar.gz: 6a169fbb1aaed392b8fe5049b2e71dd9698157d2
3
+ metadata.gz: 32b94742622fa6359cecb53ab8924befbee09d9a
4
+ data.tar.gz: 3b9509da54c641e9fda7fe845748f4aa71f1601d
5
5
  SHA512:
6
- metadata.gz: ea38a0d0c42093cc9f8adcd459c210d3ab7f91b708cac7071617b04ffa1ecac8abb23eb3c3aecca0b616aca3d99eb58dd5cfd13ce1a53729c31821f171fc5717
7
- data.tar.gz: a453eeadc5dc7d77a78f74959304a4bc7212b0da29c7a81ce6f56407f140f5940d5f68a7742a8c947740b53db5a28635fe1b806c41c42a664268f0d4bc5b2b69
6
+ metadata.gz: 3a270f46f87ba9d8d9879bc2f205cae7af6af645b29aa2d153ea783c966a1b1086c22004ccaed6638b11d570453317e0b466b93bc7f8dc3a7e6873332a73b199
7
+ data.tar.gz: 05ea36707ade28da1140161124632222c6e6fd16c956b8f801cc5b7b2510dca1dc9dc2b907785083e032b901c0a57f6e0b0d79e97898e1c23f30b4464f411276
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.3.0
2
+
3
+ - Allows specification of AWS S3 bucket region. [@tiii](http://github.com/tiii)
4
+ - Allows use of https buckets with protocol-independent jQuery URLs. [@tiii](http://github.com/tiii)
5
+
1
6
  ## 0.2.4
2
7
 
3
8
  - Fixes problem with missing `aws-sdk` gem. [@ashfurrow](http://github.com/AshFurrow)
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2014 Ash Furrow
3
+ Copyright (c) 2014 Artsy, Ash Furrow
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Second Curtain
2
2
  =============================
3
3
 
4
- [![Build Status](https://travis-ci.org/AshFurrow/second_curtain.svg?branch=master)](https://travis-ci.org/AshFurrow/second_curtain)
4
+ [![Build Status](https://travis-ci.org/ashfurrow/second_curtain.svg?branch=master)](https://travis-ci.org/ashfurrow/second_curtain)
5
5
 
6
6
  If you're using the cool [FBSnapshotTestCase](https://github.com/facebook/ios-snapshot-test-case) to test your iOS view logic, awesome! Even better if you have continuous integration, like on [Travis](https://travis-ci.org), to automate running those tests!
7
7
 
@@ -91,6 +91,7 @@ env:
91
91
  - UPLOAD_IOS_SNAPSHOT_BUCKET_PREFIX=an/optional/prefix
92
92
  - AWS_ACCESS_KEY_ID=ACCESS_KEY
93
93
  - AWS_SECRET_ACCESS_KEY=SECRET_KEY
94
+ - AWS_REGION=OPTIONAL_REGION_DEFINITION
94
95
 
95
96
  before_install:
96
97
  - bundle install
data/bin/second_curtain CHANGED
@@ -37,14 +37,17 @@ if parser.has_failing_commands
37
37
  folder_name = now.strftime('%Y-%m-%d--%H-%M')
38
38
  end
39
39
 
40
- s3 = AWS::S3.new
40
+ client_settings = {}
41
+ client_settings[:region] = ENV['AWS_REGION'] if ENV['AWS_REGION']
42
+
43
+ s3 = AWS::S3.new client_settings
41
44
  bucket = s3.buckets[bucket_name]
42
45
  manager = UploadManager.new(bucket, path_prefix)
43
46
 
44
47
  parser.failing_commands.each do |command|
45
48
  manager.enqueue_upload(command.before_path, command.after_path)
46
49
  end
47
-
50
+
48
51
  failures_address = manager.upload(folder_name)
49
52
  if failures_address
50
53
  $stderr.puts ("Failures: " + failures_address)
@@ -56,11 +56,11 @@
56
56
  background-color:green;
57
57
  pointer-events:none;
58
58
  }
59
-
59
+
60
60
  article.content {
61
61
  margin:36px auto;
62
62
  }
63
-
63
+
64
64
  section img {
65
65
  background-repeat: repeat-x repeat-y;
66
66
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAeUlEQVRYCe3TIQ7AIBBE0QXRut7/mlSVGorE/22C+KtAzIa8DKW3Z0TiHNeZuC2ipm77YZkPpKgKKkgFaN4OKkgFaN4OKkgFaN4OKkgFaL6MOXTJmn/vvl7x2U9CCRVUkArQvB1UkArQvB1UkArQvB1UkArQ/PYd/AC9pgss8BZEQAAAAABJRU5ErkJggg==);
@@ -91,8 +91,8 @@
91
91
  }
92
92
 
93
93
  </style>
94
- <link href='http://fonts.googleapis.com/css?family=Josefin+Sans:300,400' rel='stylesheet' type='text/css'>
95
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
94
+ <link href='//fonts.googleapis.com/css?family=Josefin+Sans:300,400' rel='stylesheet' type='text/css'>
95
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
96
96
  </head>
97
97
 
98
98
  <body>
@@ -128,8 +128,8 @@
128
128
  </section>
129
129
  </article>
130
130
  {{/uploads}}
131
-
132
-
131
+
132
+
133
133
  <script>
134
134
 
135
135
  /*!
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'second_curtain'
3
- s.version = '0.2.4'
3
+ s.version = '0.3.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.2.4
4
+ version: 0.3.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: 2014-09-29 00:00:00.000000000 Z
12
+ date: 2015-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-v1