utopia 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -0
- data/lib/utopia/command/site.rb +12 -3
- data/lib/utopia/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8a91aed5e157e184b1b589dfc8889ac51f2e3c1
|
4
|
+
data.tar.gz: d0f25b2d877416986be490f54d18d342b559f217
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbfb18198ef48f6b26823fc756792db596a1e46baa57e596ab563f22346c6e38a1eb8f39b68f8d3c73cb1a1c2aced1f11f31796f648f32a8d97e1cce3d92defe
|
7
|
+
data.tar.gz: 259cab3cc8b147a0729e63ea154ef04d220673ef3394271dbe4f1949ece0534560ee54c53c736b120a02e9a61bbb976bb0fcc1fb265944bdb57e6d5c0956c4fe
|
data/README.md
CHANGED
@@ -16,6 +16,14 @@ Eventually one day I started using Ruby on Rails. There are aspects of the Rails
|
|
16
16
|
|
17
17
|
So, Utopia exists because it suits my way of thinking about web applications, and it's conceptual core has been refined for over a decade. It provides a considered amount of both flexibility, and opinionated behavior.
|
18
18
|
|
19
|
+
### Is it production ready?
|
20
|
+
|
21
|
+
Yes. We've used Utopia since about 2010 in production.
|
22
|
+
|
23
|
+
### Is it fast?
|
24
|
+
|
25
|
+
Yes. [Trenni](https://github.com/ioquatix/trenni) includes native [Ragel](http://www.colm.net/open-source/ragel/) parsers, and Utopia uses [Concurrent::Map](https://github.com/ruby-concurrency/concurrent-ruby) for multi-thread safe caches. On my laptop, Utopia can process 3000 requests/s rendering content on a single thread.
|
26
|
+
|
19
27
|
## Installation
|
20
28
|
|
21
29
|
Install utopia:
|
@@ -41,6 +49,17 @@ There is an excellent documentation wiki included with the source code. Simply c
|
|
41
49
|
4. Push to the branch (`git push origin my-new-feature`)
|
42
50
|
5. Create new Pull Request
|
43
51
|
|
52
|
+
## See Also
|
53
|
+
|
54
|
+
- [Trenni](https://github.com/ioquatix/trenni) — Template and markup parsers, markup generation.
|
55
|
+
- [Trenni::Formatters](https://github.com/ioquatix/trenni-formatters) — Helpers for HTML generation including views and forms.
|
56
|
+
- [Utopia::Gallery](https://github.com/ioquatix/utopia-gallery) — A fast photo gallery based on [libvips](https://github.com/jcupitt/libvips).
|
57
|
+
- [Rack::Freeze](https://github.com/ioquatix/rack-freeze) — Multi-thread safety in Rack.
|
58
|
+
- [HTTP::Accept](https://github.com/ioquatix/http-accept) — RFC compliant header parser.
|
59
|
+
- [Samovar](https://github.com/ioquatix/samovar) — Command line parser used by Utopia.
|
60
|
+
- [Mapping](https://github.com/ioquatix/mapping) — Provide structured conversions for web interfaces.
|
61
|
+
- [Rack::Test::Body](https://github.com/ioquatix/rack-test-body) — Provide convenient helpers for testing web interfaces.
|
62
|
+
|
44
63
|
## License
|
45
64
|
|
46
65
|
Released under the MIT license.
|
data/lib/utopia/command/site.rb
CHANGED
@@ -100,11 +100,20 @@ module Utopia
|
|
100
100
|
|
101
101
|
# Move legacy `pages/_static` to `public/_static`.
|
102
102
|
def move_static!
|
103
|
-
|
104
|
-
|
103
|
+
# If public/_static doens't exist, we are done.
|
104
|
+
return unless File.exist? 'pages/_static'
|
105
|
+
|
106
|
+
if File.exist? 'public/_static'
|
107
|
+
if File.lstat("public/_static").symlink?
|
108
|
+
FileUtils.rm_f "public/_static"
|
109
|
+
else
|
110
|
+
warn "Can't move pages/_static to public/_static, destination already exists."
|
111
|
+
return
|
112
|
+
end
|
105
113
|
end
|
106
114
|
|
107
|
-
|
115
|
+
# One more sanity check:
|
116
|
+
if File.directory? 'pages/_static'
|
108
117
|
system("git", "mv", "pages/_static", "public/")
|
109
118
|
end
|
110
119
|
end
|
data/lib/utopia/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: utopia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trenni
|