utopia 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.simplecov +9 -0
- data/.travis.yml +2 -1
- data/README.md +1 -0
- data/Rakefile +3 -6
- data/lib/utopia/version.rb +1 -1
- data/setup/Rakefile +14 -0
- data/setup/config.ru +1 -1
- data/spec/utopia/content/link_spec.rb +0 -2
- data/spec/utopia/content/node_spec.rb +0 -2
- data/spec/utopia/content/processor_spec.rb +0 -2
- data/spec/utopia/content_spec.rb +1 -2
- data/spec/utopia/controller_spec.rb +0 -2
- data/spec/utopia/exception_handler_spec.rb +1 -2
- data/spec/utopia/extensions_spec.rb +0 -2
- data/spec/utopia/localization_spec.rb +0 -2
- data/spec/utopia/middleware_spec.rb +0 -2
- data/spec/utopia/path_spec.rb +0 -2
- data/spec/utopia/rack_spec.rb +0 -2
- data/spec/utopia/session_spec.rb +0 -2
- data/spec/utopia/static_spec.rb +0 -2
- metadata +4 -4
- data/spec/utopia/spec_helper.rb +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc0cdddd0a9513c09562e8f322f2df416c2d944e
|
4
|
+
data.tar.gz: ce654419967719ed7227300c481fedb0cf2c3abd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c794bd4f0971c0c2a5d954d6036c57fc3afa7bc684e00e19e1ae7626cd80e8d6e418902a01a52f24a4b2ad4b65425130719ac70363eb0a4d77bfadf7e608c754
|
7
|
+
data.tar.gz: 87314110a5f7d7bc96662d97776bc6544036bfbbb90922d4f18f2d60222e472646f3bd359e3c5a6b3af689c67437d421150ecc610f2702390019dc839fedae91
|
data/.simplecov
ADDED
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -19,6 +19,7 @@ For more details please see the main [project page][1].
|
|
19
19
|
[1]: http://www.oriontransfer.co.nz/gems/utopia
|
20
20
|
|
21
21
|
[![Build Status](https://secure.travis-ci.org/ioquatix/utopia.png)](http://travis-ci.org/ioquatix/utopia)
|
22
|
+
[![Code Climate](https://codeclimate.com/github/ioquatix/utopia.png)](https://codeclimate.com/github/ioquatix/utopia)
|
22
23
|
[![Coverage Status](https://coveralls.io/repos/ioquatix/utopia/badge.svg)](https://coveralls.io/r/ioquatix/utopia)
|
23
24
|
|
24
25
|
## Middleware
|
data/Rakefile
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
2
|
require "rspec/core/rake_task"
|
3
3
|
|
4
|
-
RSpec::Core::RakeTask.new(:spec)
|
4
|
+
RSpec::Core::RakeTask.new(:spec) do |task|
|
5
|
+
task.rspec_opts = ["--require", "simplecov"] if ENV['COVERAGE']
|
6
|
+
end
|
5
7
|
|
6
8
|
task :default => :spec
|
7
|
-
|
8
|
-
task :coverage do
|
9
|
-
ENV['COVERAGE'] = 'true'
|
10
|
-
Rake::Task['spec'].execute
|
11
|
-
end
|
data/lib/utopia/version.rb
CHANGED
data/setup/Rakefile
CHANGED
@@ -2,3 +2,17 @@
|
|
2
2
|
task :server do
|
3
3
|
system('puma')
|
4
4
|
end
|
5
|
+
|
6
|
+
task :deploy do
|
7
|
+
$stderr.puts "Updating permissions..."
|
8
|
+
sh("chmod -Rf ug+rwX .")
|
9
|
+
sh("chown -Rf http:http .")
|
10
|
+
|
11
|
+
$stderr.puts "Updating site #{Dir.pwd} as #{`whoami`.chomp}..."
|
12
|
+
sh("sudo -u http git checkout -f")
|
13
|
+
sh("sudo -u http git submodule update -i")
|
14
|
+
sh("sudo -u http bundle install")
|
15
|
+
|
16
|
+
$stderr.puts "Restarting server..."
|
17
|
+
sh("sudo -u http touch tmp/restart.txt")
|
18
|
+
end
|
data/setup/config.ru
CHANGED
data/spec/utopia/content_spec.rb
CHANGED
@@ -20,11 +20,10 @@
|
|
20
20
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
21
|
# THE SOFTWARE.
|
22
22
|
|
23
|
-
require_relative 'spec_helper'
|
24
|
-
|
25
23
|
require 'rack/mock'
|
26
24
|
require 'rack/test'
|
27
25
|
|
26
|
+
require 'utopia/controller'
|
28
27
|
require 'utopia/exception_handler'
|
29
28
|
|
30
29
|
module Utopia::ExceptionHandlerSpec
|
data/spec/utopia/path_spec.rb
CHANGED
data/spec/utopia/rack_spec.rb
CHANGED
data/spec/utopia/session_spec.rb
CHANGED
data/spec/utopia/static_spec.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: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trenni
|
@@ -148,6 +148,7 @@ extensions: []
|
|
148
148
|
extra_rdoc_files: []
|
149
149
|
files:
|
150
150
|
- ".gitignore"
|
151
|
+
- ".simplecov"
|
151
152
|
- ".travis.yml"
|
152
153
|
- Gemfile
|
153
154
|
- README.md
|
@@ -199,6 +200,7 @@ files:
|
|
199
200
|
- setup/pages/links.yaml
|
200
201
|
- setup/pages/welcome/index.xnode
|
201
202
|
- setup/public/readme.txt
|
203
|
+
- setup/tmp/readme.txt
|
202
204
|
- spec/utopia/content/link_spec.rb
|
203
205
|
- spec/utopia/content/links/foo/index.xnode
|
204
206
|
- spec/utopia/content/links/foo/links.yaml
|
@@ -250,7 +252,6 @@ files:
|
|
250
252
|
- spec/utopia/rack_spec.rb
|
251
253
|
- spec/utopia/session_spec.rb
|
252
254
|
- spec/utopia/session_spec.ru
|
253
|
-
- spec/utopia/spec_helper.rb
|
254
255
|
- spec/utopia/static_spec.rb
|
255
256
|
- spec/utopia/static_spec.ru
|
256
257
|
- utopia.gemspec
|
@@ -329,6 +330,5 @@ test_files:
|
|
329
330
|
- spec/utopia/rack_spec.rb
|
330
331
|
- spec/utopia/session_spec.rb
|
331
332
|
- spec/utopia/session_spec.ru
|
332
|
-
- spec/utopia/spec_helper.rb
|
333
333
|
- spec/utopia/static_spec.rb
|
334
334
|
- spec/utopia/static_spec.ru
|
data/spec/utopia/spec_helper.rb
DELETED