troy 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/README.md +10 -3
- data/lib/troy/generator.rb +4 -1
- data/lib/troy/helpers.rb +5 -0
- data/lib/troy/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
troy (0.0.
|
4
|
+
troy (0.0.12)
|
5
5
|
builder
|
6
6
|
i18n
|
7
7
|
rack
|
@@ -21,7 +21,7 @@ GEM
|
|
21
21
|
hike (1.2.1)
|
22
22
|
i18n (0.6.1)
|
23
23
|
multi_json (1.5.0)
|
24
|
-
rack (1.5.
|
24
|
+
rack (1.5.1)
|
25
25
|
redcarpet (2.2.2)
|
26
26
|
rspec (2.12.0)
|
27
27
|
rspec-core (~> 2.12.0)
|
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# Troy
|
2
2
|
|
3
|
-
|
3
|
+
A static site generator.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
|
-
gem
|
9
|
+
gem "troy"
|
10
10
|
|
11
11
|
And then execute:
|
12
12
|
|
@@ -18,7 +18,14 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
$ troy
|
22
|
+
Tasks:
|
23
|
+
troy export # Generate static files
|
24
|
+
troy help [TASK] # Describe available tasks or one specific task
|
25
|
+
troy new SITE # Generate a new site structure
|
26
|
+
troy server # Start a server
|
27
|
+
troy version # Display Troy version
|
28
|
+
troy watch # Watch and auto export site
|
22
29
|
|
23
30
|
## Contributing
|
24
31
|
|
data/lib/troy/generator.rb
CHANGED
@@ -22,6 +22,7 @@ module Troy
|
|
22
22
|
empty_directory "source"
|
23
23
|
empty_directory "config"
|
24
24
|
empty_directory "layouts"
|
25
|
+
empty_directory "partials"
|
25
26
|
end
|
26
27
|
|
27
28
|
def copy_files
|
@@ -39,7 +40,9 @@ module Troy
|
|
39
40
|
end
|
40
41
|
|
41
42
|
def bundle_install
|
42
|
-
|
43
|
+
inside destination_root do
|
44
|
+
run "bundle install"
|
45
|
+
end
|
43
46
|
end
|
44
47
|
end
|
45
48
|
end
|
data/lib/troy/helpers.rb
CHANGED
data/lib/troy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: troy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
221
|
rubyforge_project:
|
222
|
-
rubygems_version: 1.8.
|
222
|
+
rubygems_version: 1.8.25
|
223
223
|
signing_key:
|
224
224
|
specification_version: 3
|
225
225
|
summary: A static site generator
|