rails-static 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/LICENSE.txt +19 -0
- data/README.md +5 -0
- data/lib/tasks/static.rake +9 -10
- data/rails-static.gemspec +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
YzNjOGMyOTQyY2UxMGY5MTM0YTNlNDE0MmI4YjQ4MzZlMmQ3ZjAxMDEyZTc5
|
10
|
-
ZGQ2NWU0NDQ0ZTExNDE3MzhlNGZjNTYxMjMyZDhlYTBhNzQyZjEwNWYyNDAx
|
11
|
-
M2VlMGFkYWY5YmRlMDIwMTk0MGRiNDViOGY4YTNkMGZjN2Q3YzI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NGZiOWY3ZGQ1ZDk5YTYzZWFmODkzNTA3NzJkY2VlNGZhNjBlNjZjZDJhMmVj
|
14
|
-
ZTc4ZjI1NDdkODU0ZGQ5MjZiMDVmZTE0MjI1MDA4YTJlZTk1ZDU2N2Q0MTBj
|
15
|
-
ZWVlOTFjZTllY2ZmODdiOTdhYWUzYzViYjg2OWU5NGE3NzUxMzQ=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 874baed57ec25bdca7c934d805e7394586fd9736
|
4
|
+
data.tar.gz: 458628d2a4014570f3f321b4caf4ed2c39a6df42
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e714989e28b1e2223c4a0381d5ac0a90e9dc0de7e1e9565bd445a8bfba51bd4611301fcfce828f5adefa4c5c04d2dddae569dd1f4a5fcc791f0f13d3ed27233b
|
7
|
+
data.tar.gz: 9936b41c13510313f02ae6a8eeafab781949d444179fc9a21868aee0082a57b03c5b12319641c55a3e16b9dfe6919d86bf7d40ce04caf2cbb65e623022249b7c
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2013 danxexe
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
data/lib/tasks/static.rake
CHANGED
@@ -18,19 +18,18 @@ namespace :static do
|
|
18
18
|
|
19
19
|
path = path_from_route route
|
20
20
|
|
21
|
-
|
21
|
+
print "Generating #{path} "
|
22
22
|
|
23
23
|
r = app.get(route)
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
end
|
31
|
-
else
|
32
|
-
$stderr.puts "Error generating static file #{path} #{r.inspect}"
|
24
|
+
|
25
|
+
fullpath = full_path path
|
26
|
+
dir = File.dirname(fullpath)
|
27
|
+
FileUtils.mkdir_p dir
|
28
|
+
File.open(fullpath, "w") do |f|
|
29
|
+
f.write(app.response.body)
|
33
30
|
end
|
31
|
+
|
32
|
+
puts r.to_s
|
34
33
|
end
|
35
34
|
end
|
36
35
|
|
data/rails-static.gemspec
CHANGED
@@ -3,10 +3,10 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "rails-static"
|
6
|
-
s.version = '1.
|
6
|
+
s.version = '1.1.0'
|
7
7
|
s.authors = ["DanX"]
|
8
8
|
s.email = ["danx.exe@gmail.com"]
|
9
|
-
s.homepage = "http://
|
9
|
+
s.homepage = "http://danx.in"
|
10
10
|
s.summary = "Generate a static site with Rails."
|
11
11
|
s.description = "A rake task for generating static websites using Rails."
|
12
12
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-static
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DanX
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A rake task for generating static websites using Rails.
|
14
14
|
email:
|
@@ -17,13 +17,14 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
+
- LICENSE.txt
|
20
21
|
- README.md
|
21
22
|
- lib/rails-static.rb
|
22
23
|
- lib/rails-static/config.rb
|
23
24
|
- lib/rails-static/railtie.rb
|
24
25
|
- lib/tasks/static.rake
|
25
26
|
- rails-static.gemspec
|
26
|
-
homepage: http://
|
27
|
+
homepage: http://danx.in
|
27
28
|
licenses: []
|
28
29
|
metadata: {}
|
29
30
|
post_install_message:
|
@@ -32,19 +33,18 @@ require_paths:
|
|
32
33
|
- lib
|
33
34
|
required_ruby_version: !ruby/object:Gem::Requirement
|
34
35
|
requirements:
|
35
|
-
- -
|
36
|
+
- - '>='
|
36
37
|
- !ruby/object:Gem::Version
|
37
38
|
version: '0'
|
38
39
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
39
40
|
requirements:
|
40
|
-
- -
|
41
|
+
- - '>='
|
41
42
|
- !ruby/object:Gem::Version
|
42
43
|
version: '0'
|
43
44
|
requirements: []
|
44
45
|
rubyforge_project:
|
45
|
-
rubygems_version: 2.0.
|
46
|
+
rubygems_version: 2.0.3
|
46
47
|
signing_key:
|
47
48
|
specification_version: 4
|
48
49
|
summary: Generate a static site with Rails.
|
49
50
|
test_files: []
|
50
|
-
has_rdoc:
|