utopia 2.12.3 → 2.12.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/utopia/version.rb +1 -1
- data/setup/site/Gemfile +5 -4
- data/setup/site/tasks/development.rake +2 -2
- data/setup/site/tasks/log.rake +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9337b078fadd4ee1864f180fcf809aa1d0474dccf787d58bde6d1456250c53ea
|
4
|
+
data.tar.gz: 8235f4bb0c2a7c80888a2db6aec97e9c4975037f8e2ef375884dd6ca790d3944
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d54248e9cbaf387b609f076f7c1bdb4b2b4dee6a9759a64d6d519d31c53b034cc01349e3990e7cbe199aad47198bbca6d0e2a7ac8c381b56eca24dee71a63b9d
|
7
|
+
data.tar.gz: e148586d9ac9ead60a77c0a539bef13ffa4ace1e5027311a82b9f4333b343e4ab7ee39db90313500133f76c3689227c37005507b68334ee7da3183017bcd244d
|
data/lib/utopia/version.rb
CHANGED
data/setup/site/Gemfile
CHANGED
@@ -10,16 +10,13 @@ gem 'rake'
|
|
10
10
|
gem 'bundler'
|
11
11
|
|
12
12
|
gem 'rack-freeze', '~> 1.2'
|
13
|
+
gem 'rack-test'
|
13
14
|
|
14
15
|
group :development do
|
15
16
|
# For `rake server`:
|
16
17
|
gem 'guard-falcon', require: false
|
17
18
|
gem 'guard-rspec', require: false
|
18
19
|
|
19
|
-
# For `rake console`:
|
20
|
-
gem 'pry'
|
21
|
-
gem 'rack-test'
|
22
|
-
|
23
20
|
# For `rspec` testing:
|
24
21
|
gem 'rspec'
|
25
22
|
gem 'covered'
|
@@ -27,3 +24,7 @@ group :development do
|
|
27
24
|
gem 'async-rspec'
|
28
25
|
gem 'benchmark-http'
|
29
26
|
end
|
27
|
+
|
28
|
+
group :production do
|
29
|
+
gem 'falcon'
|
30
|
+
end
|
@@ -20,7 +20,7 @@ end
|
|
20
20
|
|
21
21
|
desc 'Start an interactive console for your web application'
|
22
22
|
task :console => :environment do
|
23
|
-
require '
|
23
|
+
require 'irb'
|
24
24
|
require 'rack/test'
|
25
25
|
|
26
26
|
include Rack::Test::Methods
|
@@ -29,5 +29,5 @@ task :console => :environment do
|
|
29
29
|
@app ||= Rack::Builder.parse_file(SITE_ROOT + 'config.ru').first
|
30
30
|
end
|
31
31
|
|
32
|
-
|
32
|
+
IRB.start
|
33
33
|
end
|
data/setup/site/tasks/log.rake
CHANGED
@@ -2,17 +2,19 @@
|
|
2
2
|
|
3
3
|
task :log do
|
4
4
|
require 'utopia/logger'
|
5
|
+
|
6
|
+
# This is deprecated, prefer to use `Utopia.logger` or `Async.logger`:
|
5
7
|
LOGGER = Utopia.logger
|
6
8
|
end
|
7
9
|
|
8
10
|
namespace :log do
|
9
11
|
desc "Increase verbosity of logger to info."
|
10
12
|
task :info => :log do
|
11
|
-
|
13
|
+
Utopia.logger.info!
|
12
14
|
end
|
13
15
|
|
14
16
|
desc "Increase verbosity of global debug."
|
15
17
|
task :debug => :log do
|
16
|
-
|
18
|
+
Utopia.logger.debug!
|
17
19
|
end
|
18
20
|
end
|