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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d79188e4c82a0e063f4d4d322b9c9f6ede2abac6
4
- data.tar.gz: 066c1fd1bece542a5a6e310bfdcff65670a0e91e
3
+ metadata.gz: bc0cdddd0a9513c09562e8f322f2df416c2d944e
4
+ data.tar.gz: ce654419967719ed7227300c481fedb0cf2c3abd
5
5
  SHA512:
6
- metadata.gz: 39c11885cf3802fd246bcc6b551afc9164d4d9e3f13f27823be4a59f9a1a8212517f81c9b630f8706ef565adfead313209f28e37a81180b086f8081aeec9e1c3
7
- data.tar.gz: abb2c8242bcfd5d9a4213de4458756b78d4dbc1be049800100e888c0487e367112a277a40a5c19e74c374a2000fada23b3dde9b89a2176df75c2b71d1877587b
6
+ metadata.gz: c794bd4f0971c0c2a5d954d6036c57fc3afa7bc684e00e19e1ae7626cd80e8d6e418902a01a52f24a4b2ad4b65425130719ac70363eb0a4d77bfadf7e608c754
7
+ data.tar.gz: 87314110a5f7d7bc96662d97776bc6544036bfbbb90922d4f18f2d60222e472646f3bd359e3c5a6b3af689c67437d421150ecc610f2702390019dc839fedae91
@@ -0,0 +1,9 @@
1
+
2
+ SimpleCov.start do
3
+ add_filter "/spec/"
4
+ end
5
+
6
+ if ENV['TRAVIS']
7
+ require 'coveralls'
8
+ Coveralls.wear!
9
+ end
@@ -6,4 +6,5 @@ rvm:
6
6
  - "rbx-2"
7
7
  matrix:
8
8
  allow_failures:
9
- - rvm: "rbx-2"
9
+ - rvm: "rbx-2"
10
+ env: COVERAGE=true
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
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Utopia
22
- VERSION = "1.0.1"
22
+ VERSION = "1.0.2"
23
23
  end
@@ -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
@@ -16,7 +16,7 @@ require 'rack/cache'
16
16
  if RACK_ENV == :production
17
17
  use Utopia::ExceptionHandler, "/errors/exception"
18
18
  use Utopia::MailExceptions
19
- else
19
+ elsif RACK_ENV == :development
20
20
  use Rack::ShowExceptions
21
21
  end
22
22
 
@@ -20,8 +20,6 @@
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 'utopia/content/link'
26
24
 
27
25
  module Utopia::Content::LinkSpec
@@ -18,8 +18,6 @@
18
18
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
19
  # THE SOFTWARE.
20
20
 
21
- require_relative '../spec_helper'
22
-
23
21
  require 'utopia/content'
24
22
 
25
23
  module Utopia::ContentSpec
@@ -20,8 +20,6 @@
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 'utopia/content/link'
26
24
 
27
25
  module Utopia::Content::ProcessorSpec
@@ -18,8 +18,7 @@
18
18
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
19
  # THE SOFTWARE.
20
20
 
21
- require_relative 'spec_helper'
22
-
21
+ require 'rack/test'
23
22
  require 'utopia/content'
24
23
 
25
24
  module Utopia::ContentSpec
@@ -20,8 +20,6 @@
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
  require 'utopia/controller'
@@ -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
@@ -18,8 +18,6 @@
18
18
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
19
  # THE SOFTWARE.
20
20
 
21
- require_relative 'spec_helper'
22
-
23
21
  require 'utopia/extensions/array'
24
22
  require 'utopia/extensions/date'
25
23
 
@@ -19,8 +19,6 @@
19
19
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
20
  # THE SOFTWARE.
21
21
 
22
- require_relative 'spec_helper'
23
-
24
22
  require 'rack'
25
23
  require 'rack/test'
26
24
 
@@ -18,8 +18,6 @@
18
18
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
19
  # THE SOFTWARE.
20
20
 
21
- require_relative 'spec_helper'
22
-
23
21
  require 'utopia/middleware'
24
22
 
25
23
  module Utopia::MiddlewareSpec
@@ -20,8 +20,6 @@
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 'utopia/path'
26
24
 
27
25
  module Utopia::PathSpec
@@ -18,8 +18,6 @@
18
18
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
19
  # THE SOFTWARE.
20
20
 
21
- require_relative 'spec_helper'
22
-
23
21
  require 'utopia/extensions/date'
24
22
  require 'utopia/extensions/rack'
25
23
 
@@ -19,8 +19,6 @@
19
19
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
20
  # THE SOFTWARE.
21
21
 
22
- require_relative 'spec_helper'
23
-
24
22
  require 'rack'
25
23
  require 'rack/test'
26
24
 
@@ -19,8 +19,6 @@
19
19
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
20
  # THE SOFTWARE.
21
21
 
22
- require_relative 'spec_helper'
23
-
24
22
  require 'rack'
25
23
  require 'rack/test'
26
24
 
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.1
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-01 00:00:00.000000000 Z
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
@@ -1,16 +0,0 @@
1
-
2
- if ENV['TRAVIS']
3
- require 'coveralls'
4
- Coveralls.wear!
5
- end
6
-
7
- if ENV['COVERAGE']
8
- require 'simplecov'
9
-
10
- SimpleCov.start do
11
- add_filter "/spec/"
12
- end if ENV["COVERAGE"]
13
- end
14
-
15
- require 'rack/mock'
16
- require 'rack/test'