wd_sinatra 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Weasel Diesel Sinatra Changelog
2
2
 
3
+ ## 0.2.1
4
+
5
+ * fixed the content type on the param verification error message
6
+
3
7
  ## 0.2.0
4
8
 
5
9
  * moved `hooks.rb` and `app.rb` to `/lib`
@@ -71,7 +71,7 @@ class WeaselDiesel
71
71
  rescue Exception => e
72
72
  LOGGER.error e.message
73
73
  LOGGER.error "passed params: #{app.params.inspect}"
74
- halt 400, {:error => e.message}.to_json
74
+ halt 400, {'Content-Type' => 'application/json'}, {:error => e.message}.to_json
75
75
  end
76
76
 
77
77
  # Define WeaselDiesel::RequestHandler#authorization_check in your app if
@@ -1,5 +1,5 @@
1
1
  module WD
2
2
  module Sinatra
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -17,6 +17,10 @@
17
17
  body {
18
18
  padding-top: 60px;
19
19
  }
20
+ div.api {
21
+ padding-top: 60px;
22
+ margin-top: -60px;
23
+ }
20
24
  </style>
21
25
 
22
26
  <!-- Le fav and touch icons -->
@@ -57,7 +61,7 @@
57
61
  </div>
58
62
 
59
63
  <% WSList.all.each do |api| %>
60
- <div class="" id="<%= "raw-#{api.verb}-#{api.url}" %>">
64
+ <div class="api" id="<%= "raw-#{api.verb}-#{api.url}" %>">
61
65
  <div>
62
66
  <h2><%= api.verb.upcase %> <%= '[SSL]' if api.ssl %> /<%= api.url %></h2>
63
67
  <% if api.auth_required %>
metadata CHANGED
@@ -1,61 +1,47 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: wd_sinatra
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 0
10
- version: 0.2.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Matt Aimonetti
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-05-09 00:00:00 +02:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-05-11 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: weasel_diesel
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70278796206600 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: thor
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70278796206600
25
+ - !ruby/object:Gem::Dependency
26
+ name: thor
27
+ requirement: &70278796222300 !ruby/object:Gem::Requirement
39
28
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
47
33
  type: :runtime
48
- version_requirements: *id002
49
- description: Weasel-Diesel Sinatra app gem, allowing you to generate/update sinatra apps using the Weasel Diesel DSL
50
- email:
34
+ prerelease: false
35
+ version_requirements: *70278796222300
36
+ description: Weasel-Diesel Sinatra app gem, allowing you to generate/update sinatra
37
+ apps using the Weasel Diesel DSL
38
+ email:
51
39
  - mattaimonetti@gmail.com
52
- executables:
40
+ executables:
53
41
  - wd_sinatra
54
42
  extensions: []
55
-
56
43
  extra_rdoc_files: []
57
-
58
- files:
44
+ files:
59
45
  - .gitignore
60
46
  - CHANGELOG.md
61
47
  - Gemfile
@@ -141,39 +127,30 @@ files:
141
127
  - templates/lib/tasks/doc_generator/template.erb
142
128
  - templates/public/favicon.ico
143
129
  - wd-sinatra.gemspec
144
- has_rdoc: true
145
130
  homepage: https://github.com/mattetti/wd_sinatra
146
131
  licenses: []
147
-
148
132
  post_install_message:
149
133
  rdoc_options: []
150
-
151
- require_paths:
134
+ require_paths:
152
135
  - lib
153
- required_ruby_version: !ruby/object:Gem::Requirement
136
+ required_ruby_version: !ruby/object:Gem::Requirement
154
137
  none: false
155
- requirements:
156
- - - ">="
157
- - !ruby/object:Gem::Version
158
- hash: 3
159
- segments:
160
- - 0
161
- version: "0"
162
- required_rubygems_version: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
143
  none: false
164
- requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
167
- hash: 3
168
- segments:
169
- - 0
170
- version: "0"
144
+ requirements:
145
+ - - ! '>='
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
171
148
  requirements: []
172
-
173
149
  rubyforge_project:
174
- rubygems_version: 1.5.3
150
+ rubygems_version: 1.8.16
175
151
  signing_key:
176
152
  specification_version: 3
177
- summary: Weasel-Diesel Sinatra app gem, allowing you to generate/update sinatra apps using the Weasel Diesel DSL
153
+ summary: Weasel-Diesel Sinatra app gem, allowing you to generate/update sinatra apps
154
+ using the Weasel Diesel DSL
178
155
  test_files: []
179
-
156
+ has_rdoc: