stackbuilders-campfire_export 0.4.0 → 0.4.1

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: 189d237398fa8a8627af4aa60e4b904175053125
4
- data.tar.gz: 015646fd1de14d6bb230143653347da65b564ae0
3
+ metadata.gz: 96826b6614180002c20ca4eac6c14ab1901fc713
4
+ data.tar.gz: 4266d75b156395fa14d055d1173b8295fcceed69
5
5
  SHA512:
6
- metadata.gz: f7e312835ff6b746db2cd8a156d9eb229cd1b0476b436fae5f0ddcedddaebd4ae60c124320822a9eee7cf4d76c0f6a09bb27ac6f4a736672a6db7415bdada31a
7
- data.tar.gz: a43541ddc5e78f6daa9485d014eaac8f8f0bd38043902fc60245ea98758178eebe43c9cf16bd9d4b235ddbc49d39c66666167e292a9941a7168897b496c0e25b
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
@@ -1,3 +1,3 @@
1
1
  module CampfireExport
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackbuilders-campfire_export
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Hedlund