s3_website 2.1.2 → 2.1.3

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: fa302f564f10bd6a80e4546d57391ca24b6fd62c
4
- data.tar.gz: 5d635271f8d56b12bc0deeadb851630e2d59ba68
3
+ metadata.gz: 4acd7c3971ddeb0a2a7f45fd36d95b4e3a5dc975
4
+ data.tar.gz: 3f99adc5acc4969a62757e8625f1eadae54a7943
5
5
  SHA512:
6
- metadata.gz: dc4b64789f6cc979a590a691be7db4bacad61b63b81fd2cc0a94898c19f560c33ed46179ca560bbf2b0b14f1352eb45e8e834792c238f6dd183cde3221eaa200
7
- data.tar.gz: 39354284635e44a32fb0b42146c89a6f11d0fa8b85697331c6b677fbd6de94389ebede9cb4191fbf5447c2e538d8cecef136f04e41a08275b3488b4a6b2c2eb2
6
+ metadata.gz: 5bcacaea0b63ba38e67152798e80be5f3c9330f618dcd805067b4540110a308e7e844037b79d5a4266d24adb305cac4e2b071931bb288f171491489e4ff00ab5
7
+ data.tar.gz: 463d4bf65e459674878a7de91a04e8e3f4b092add4c725d1901caadeaa1ae278ed18a7cad4bcb5ccbc1a78501c0eb5b0a6b0a9edaf7115cf1f19ad9ee95c82f0
data/bin/s3_website CHANGED
@@ -164,7 +164,7 @@ def resolve_jar(project_root, logger)
164
164
  if expected_checksum == found_checksum
165
165
  true
166
166
  else
167
- logger.info_msg "The jar is corrupted. (Expected checksum #{expected_checksum} but got #{found_checksum}.)"
167
+ logger.info_msg "The jar file is corrupted. (Expected checksum #{expected_checksum} but got #{found_checksum}.)"
168
168
  false
169
169
  end
170
170
  end
data/changelog.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This project uses [Semantic Versioning](http://semver.org).
4
4
 
5
+ ## 2.1.3
6
+
7
+ * Fix boolean logic in reason-for-upload
8
+
5
9
  ## 2.1.2
6
10
 
7
11
  * Show a more informative message if the jar file is corrupted.
@@ -1,3 +1,3 @@
1
1
  module S3Website
2
- VERSION = '2.1.2'
2
+ VERSION = '2.1.3'
3
3
  end
@@ -213,16 +213,16 @@ object Diff {
213
213
  if (isUpdate) {
214
214
  val lengthChanged = !(databaseIndices.fileLenghtIndex contains truncatedKey.fileLength)
215
215
  val mtimeChanged = !(databaseIndices.lastModifiedIndex contains truncatedKey.fileModified)
216
- if (lengthChanged)
217
- "file length has changed according to the local database"
216
+ if (mtimeChanged && lengthChanged)
217
+ "file mtime and length have changed"
218
+ else if (lengthChanged)
219
+ "file length has changed"
218
220
  else if (mtimeChanged)
219
- "file mtime has changed according to the local database"
220
- else if (mtimeChanged && lengthChanged)
221
- "file mtime and length have changed according to the local database"
221
+ "file mtime has changed"
222
222
  else
223
223
  "programmer error: faulty logic in inferring the reason for upload"
224
224
  }
225
- else "file is new according to the local database"
225
+ else "file is new according"
226
226
  }
227
227
 
228
228
  private def getOrCreateDbFile(implicit site: Site, logger: Logger) =
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_website
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lauri Lehmijoki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-06 00:00:00.000000000 Z
11
+ date: 2014-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor