stackbuilders-campfire_export 0.4.0 → 0.4.1
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 +4 -4
- data/README.md +26 -0
- data/bin/campfire_export +4 -0
- data/lib/campfire_export/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 96826b6614180002c20ca4eac6c14ab1901fc713
|
|
4
|
+
data.tar.gz: 4266d75b156395fa14d055d1173b8295fcceed69
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7e04a5e2691fe92c9cefe3c9d680c8b6f2de14ee027894730012e4885531747ef9901b436ec2d9b0da59c95e38586dddf713c34950c2c242425e81a64fb95bd
|
|
7
|
+
data.tar.gz: 920b6122d9f8b4e4c9cf9c3d19ea2cca5418b7c3776434d9a154af29e3a064ff397cd38acec6cc14d949799e41ebd6719090eaf0b8e3529ff7199510fa15d3db
|
data/README.md
CHANGED
|
@@ -7,6 +7,27 @@
|
|
|
7
7
|
$ sudo gem install stackbuilders-campfire_export
|
|
8
8
|
$ campfire_export
|
|
9
9
|
|
|
10
|
+
## Note ##
|
|
11
|
+
|
|
12
|
+
This gem is a fork from the original version of this project by
|
|
13
|
+
[Marc Hedlund](https://github.com/precipice). While almost all of the work is
|
|
14
|
+
still his, this fork contains fixes and updates for user-facing issues,
|
|
15
|
+
including the following:
|
|
16
|
+
|
|
17
|
+
* Upgrade gem dependencies and add support for Ruby versions >= 1.9.3
|
|
18
|
+
* Retry up to 5 times before giving up on a resource. Makes campfire_export usable for large exports.
|
|
19
|
+
* Fixes file size validation when file contains Unicode.
|
|
20
|
+
* Allow export of a specific room instead of exporting all rooms on a Campfire account.
|
|
21
|
+
|
|
22
|
+
When you install the gem following the instructions above (i.e., with the name
|
|
23
|
+
stackbuilders-campfire-export) you will get these fixes, and the project will run
|
|
24
|
+
on modern Ruby versions.
|
|
25
|
+
|
|
26
|
+
We will try to respond to issues and pull requests on the
|
|
27
|
+
[Stack Builders](http://www.stackbuilders.com) fork of this repository
|
|
28
|
+
(https://github.com/stackbuilders/campfire_export), and to push new releases in
|
|
29
|
+
a timely manner to https://rubygems.org/gems/stackbuilders-campfire_export.
|
|
30
|
+
|
|
10
31
|
## Intro ##
|
|
11
32
|
|
|
12
33
|
I had an old, defunct [Campfire](http://campfirenow.com/) account with five
|
|
@@ -61,6 +82,11 @@ directory using this template:
|
|
|
61
82
|
# Uncomment to set. Defaults to the date of the last comment in each room.
|
|
62
83
|
#end_date: 2010/12/31
|
|
63
84
|
|
|
85
|
+
# OPTIONAL: Campfire room - the room you want exported. All other rooms
|
|
86
|
+
# will be skipped.
|
|
87
|
+
# Uncomment to set. Defaults to all rooms.
|
|
88
|
+
#room_name: Stack Builders Website Dev
|
|
89
|
+
|
|
64
90
|
The `start_date` and `end_date` variables are inclusive (that is, if your
|
|
65
91
|
end date is Dec 31, 2010, a transcript for that date will be downloaded), and
|
|
66
92
|
both are optional. If they are omitted, export will run from the date each
|
data/bin/campfire_export
CHANGED
|
@@ -58,6 +58,10 @@ begin
|
|
|
58
58
|
config['api_token'])
|
|
59
59
|
account.find_timezone
|
|
60
60
|
account.rooms.each do |room|
|
|
61
|
+
if config["room_name"] && room.name != config["room_name"]
|
|
62
|
+
next
|
|
63
|
+
end
|
|
64
|
+
|
|
61
65
|
room.export(config_date(config, 'start_date'),
|
|
62
66
|
config_date(config, 'end_date'))
|
|
63
67
|
end
|