better_s3 1.0.1 → 2.0.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: d1fbbca81aab7d46452b5c8f48ccaf413d738989
4
- data.tar.gz: 90a6d46e188610a5e8413c10a42986a9c223257e
3
+ metadata.gz: 90c265f7461a3456abb3452ae25c8a237ea582e9
4
+ data.tar.gz: 81424c340047b990764b5bcefff0a7d05d9f8537
5
5
  SHA512:
6
- metadata.gz: 8d63f344a04af667de6a393ff4496ad11deb01cd810f2007124c69b3d0b3ed08aed85bcf82b3e8b438750d34744c1ec99662f212b933222b1304c04695f259b2
7
- data.tar.gz: 2e2a6209d835347b4bd6099813df821c765c01d12f58f9ff1ca0904ad2b8c03f28338d1db6ea0f8f470e2564f3eb145673ba3b205a8df20e465e55a336ff4367
6
+ metadata.gz: 549e46fa176f00a8d8cbd58300595c8ff4f8d713c04b693e6c7c561abee2b23fbf28e083499fb7acde0ff6b3cf7bd42fd89e5e0a08bf67fc12b88c2609e3e412
7
+ data.tar.gz: 38baae59baa7990d489cfbe746863fa40e5b2518d78292473186b3213048b1d936c1df0059b5b838d039bb493ceccdf4991e92e90338414444ea9026d4c80dd1
data/README.md CHANGED
@@ -29,7 +29,7 @@ s3.delete_local_file_copy "some-filename.txt"
29
29
  require "better_s3"
30
30
  s3 = BetterS3.new
31
31
  content = { foo: "bar" }.to_json
32
- s3.put content, "filename.ext"
32
+ s3.put "filename.ext", content
33
33
  ```
34
34
 
35
35
  ## Configuration
@@ -1,4 +1,4 @@
1
1
  class BetterS3
2
- VERSION = "1.0.1"
2
+ VERSION = "2.0.0"
3
3
  VERSION_DATE = "2016-10-11"
4
4
  end
data/lib/better_s3.rb CHANGED
@@ -49,9 +49,9 @@ class BetterS3
49
49
 
50
50
  # Puts a Ruby hash to s3 as a file
51
51
  #
52
- # @param str [String] the string to be pushed to s3
53
52
  # @param remote_file_name [String] the s3 bucket object key where the file should be put
54
- def put(str, remote_file_name)
53
+ # @param str [String] the string to be pushed to s3
54
+ def put(remote_file_name, str)
55
55
  push_object_to_s3 str, remote_file_name
56
56
  end
57
57
 
@@ -43,7 +43,7 @@ describe BetterS3 do
43
43
  key: remote_file_name,
44
44
  body: obj.to_json)
45
45
 
46
- subject.put obj.to_json, remote_file_name
46
+ subject.put remote_file_name, obj.to_json
47
47
  end
48
48
  end
49
49
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Courtland Caldwell