s3_log 0.0.3 → 0.0.4
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 +8 -8
- data/HISTORY.md +1 -0
- data/README.md +6 -6
- data/lib/s3_log/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWM3NzM1NmY4YzRiMTFmZGU5MDYyMGM1MGU1M2VmNWU1MWIxNjc4Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWYzOTZkM2ZiMWE2MTljODU0MDczYzJkNjMwNzg1NzhmNDczMWU3ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZGM1OGY5M2RmM2UxMmI4YTAxZjg1MzFjOWVkNjJiN2UyZWY1MjJjZmY1NzU3
|
10
|
+
ZGNmOTE4OGFmYTgzNGM4NjI3MjI1OTI0MmI3MDUyZjVhYWU4MTU1N2NkMmI3
|
11
|
+
MTU2MjU5MjAxYjk2MDk3YTVhMTc5ZGRiZGI4ZTE1YjhkMDYzOTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjcyZjc3NzYxOTNlOWFmMDQyYjE2M2FiNmEwYzdhNjFkZTc5MmViNzgzOTU4
|
14
|
+
MmYyN2Q5NjhiNTdkNmJmN2FjODYyY2FjYTQxMThkZTRjMjY2NGUwZDU5MDY2
|
15
|
+
ZjUzZmE4YzJhNjllYWNmMzA4MzAwMWFlNTNmZDJiZTlhZjM3ZTg=
|
data/HISTORY.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##
|
1
|
+
## S3Log ##
|
2
2
|
|
3
3
|
Naively log events to a file on S3
|
4
4
|
|
@@ -13,10 +13,10 @@ gem 's3_log'
|
|
13
13
|
|
14
14
|
## Configuration ##
|
15
15
|
|
16
|
-
|
16
|
+
S3Log requires an AWS access key id, AWS secret access key, and a S3 bucket (preferably created in advance) name to function. It can be configured (in a Rails initializer or what have you) like so:
|
17
17
|
|
18
18
|
```ruby
|
19
|
-
|
19
|
+
S3Log.configure(
|
20
20
|
access_key_id: 'YOUR AWS ACCESS KEY ID',
|
21
21
|
secret_access_key: 'YOUR AWS SECRET ACCESS KEY',
|
22
22
|
bucket: 'YOUR S3 BUCKET'
|
@@ -25,10 +25,10 @@ S3Logger.configure(
|
|
25
25
|
|
26
26
|
## Usage ##
|
27
27
|
|
28
|
-
Basically, logging an event is a matter of using
|
28
|
+
Basically, logging an event is a matter of using S3Log.write to write content to a given file location on S3. The file does not have to exist prior to writing, and a write always appends to an existing file.
|
29
29
|
|
30
30
|
```ruby
|
31
|
-
|
31
|
+
S3Log.write('path/to/file', 'Some content')
|
32
32
|
```
|
33
33
|
|
34
34
|
## Caveats ##
|
@@ -46,7 +46,7 @@ The actual library docs can be read
|
|
46
46
|
## Contributing ##
|
47
47
|
|
48
48
|
Do you use git-flow? I sure do. Please base anything you do off of
|
49
|
-
[the develop branch](https://github.com/ess/
|
49
|
+
[the develop branch](https://github.com/ess/s3_log/tree/develop).
|
50
50
|
|
51
51
|
1. Fork it.
|
52
52
|
2. Perform some BDD magic. Seriously. Be testing.
|
data/lib/s3_log/version.rb
CHANGED