rypple 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +6 -2
- data/lib/rypple/base.rb +2 -2
- data/lib/rypple/version.rb +1 -1
- metadata +3 -3
data/README.markdown
CHANGED
@@ -2,17 +2,21 @@
|
|
2
2
|
A tool for integrating some remote file store (e.g. Dropbox) with a static site generator (e.g. jekyll) with some tools to ease remote updating of the site.
|
3
3
|
|
4
4
|
# Installation
|
5
|
-
The easiest method to install Rypple is to use (
|
5
|
+
The easiest method to install Rypple is to use [RubyGems](https://rubygems.org/). To do so, simply install RubyGems, and at the command prompt type:
|
6
|
+
|
6
7
|
gem install rypple
|
7
8
|
|
8
|
-
For some sites, such as (
|
9
|
+
For some sites, such as [NSFN](https://www.nearlyfreespeech.net/), this should be modified to:
|
10
|
+
|
9
11
|
RB_USER_INSTALL=true gem install rypple
|
10
12
|
|
11
13
|
## Configuration
|
12
14
|
Once installed, Rypple needs to be configured for each site being synced by it. This is done through the rypple command, and can be initiated using the command:
|
15
|
+
|
13
16
|
rypple -s
|
14
17
|
|
15
18
|
Which kicks off the configuration process. This process will guide you through several important configuration options.
|
19
|
+
|
16
20
|
1. Rypple site directory. This is the directory to which files will be saved - by default, this is set to $HOME/ryppleSite, but can be changed to any site you wish. This is not the location which will be publicly accessible, so please do not point this at your web server.
|
17
21
|
2. Dropbox API Configuration
|
18
22
|
1. Generate a Dropbox API key/secret pair from their website. IMPORTANT: When creating the key, there is a question about granting the API access to your entire Dropbox folder, or only a sandboxed folder. This option, as far as I can tell, is immutable - Rypple supports either, but be aware of the choice being made.
|
data/lib/rypple/base.rb
CHANGED
@@ -16,7 +16,7 @@ module Rypple
|
|
16
16
|
}
|
17
17
|
|
18
18
|
DropboxKeyFile = ".dropbox_session.yml"
|
19
|
-
RyppleConfigFile = "
|
19
|
+
RyppleConfigFile = "_rypple.yml"
|
20
20
|
|
21
21
|
def Rypple.connectToDropbox(path)
|
22
22
|
session = nil
|
@@ -30,7 +30,7 @@ module Rypple
|
|
30
30
|
if dropboxKeys.has_key?(:session)
|
31
31
|
session = DropboxSession.deserialize(dropboxKeys[:session])
|
32
32
|
else
|
33
|
-
dropboxKeys[:
|
33
|
+
dropboxKeys[:access_type], session = Rypple.buildLoginSession()
|
34
34
|
end
|
35
35
|
|
36
36
|
if session.nil?
|
data/lib/rypple/version.rb
CHANGED
metadata
CHANGED