pliny 0.6.1 → 0.6.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: b0eb078d251065a0b95f665d3705e547320bfeb5
4
- data.tar.gz: 8cae291c9ce3fbebc024c5d4c4b33bfac61f07e7
3
+ metadata.gz: 80f7798798dae08063fe4342597451263c19d327
4
+ data.tar.gz: 311315ca6d6dc5490edbdb0db1be00e2b871f76f
5
5
  SHA512:
6
- metadata.gz: de16fb85e9bac53b1bfba256eb841afa3503a23fd6f053f27973d1d549b305784b197b0904c62054d5dc3930afc7fad5ee7b1f4c9b963c1c7b76eaa4bff0eb54
7
- data.tar.gz: 714b5fd2821fa7a1ce64a66b5fe8d26aa0f4ff487b9302e99fde22a4bac021584e7d356ca894e345c544cec099ac6d03e979b4a5afaefe4a2ae2eb3e446ff9de
6
+ metadata.gz: e191efaa8f571017d1be9a75ce8204264cedf3222e7ecb48ccb41f436aad6c8f61830e50d6c06853de35c37a25b6bb6844ce149921cc813cfbc5f72aabb1562e
7
+ data.tar.gz: 9e893cca95172aabfdfa2860873c529685c896bc9a0bad477ac08928c2bd009b7ba9b16e10e7a181351187c59ae20f944a71f0c2544bb97fc9d1e791408e220a
data/README.md CHANGED
@@ -89,7 +89,7 @@ $ bundle exec rspec spec/acceptance/artists_spec.rb
89
89
  ### Generators
90
90
 
91
91
  ```bash
92
- $ bin/pliny-generate
92
+ $ bundle exec pliny-generate
93
93
  ```
94
94
 
95
95
  ```
@@ -8,6 +8,9 @@ module Pliny::Middleware
8
8
  def call(env)
9
9
  @app.call(env)
10
10
  rescue Pliny::Errors::Error => e
11
+ # blank out this field so that the error is not picked up by Rollbar
12
+ env["sinatra.error"] = nil
13
+
11
14
  Pliny::Errors::Error.render(e)
12
15
  rescue Exception => e
13
16
  if @raise
@@ -130,7 +130,7 @@ namespace :db do
130
130
  end
131
131
 
132
132
  desc "Setup the database"
133
- task :setup => [:drop, :create, "schema:load", :migrate]
133
+ task :setup => [:drop, :create, "schema:load", :migrate, :seed]
134
134
 
135
135
  private
136
136
 
data/lib/pliny/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pliny
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -16,10 +16,6 @@ module Endpoints
16
16
  also_reload '../**/*.rb'
17
17
  end
18
18
 
19
- error Pliny::Errors::Error do
20
- Pliny::Errors::Error.render(env["sinatra.error"])
21
- end
22
-
23
19
  not_found do
24
20
  content_type :json
25
21
  status 404
@@ -1,4 +1,5 @@
1
1
  Routes = Rack::Builder.new do
2
+ use Rollbar::Middleware::Sinatra
2
3
  use Pliny::Middleware::RescueErrors, raise: Config.raise_errors?
3
4
  use Pliny::Middleware::CORS
4
5
  use Pliny::Middleware::RequestID
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pliny
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandur Leach
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-06 00:00:00.000000000 Z
12
+ date: 2015-01-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport