scorched 0.22 → 0.23

Sign up to get free protection for your applications and to get access to all the features.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,99 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scorched
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.22'
4
+ version: '0.23'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Wardrop
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-03 00:00:00.000000000 Z
11
+ date: 2015-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack-accept
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: scorched-accept
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.1'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: tilt
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - ~>
59
+ - - "~>"
46
60
  - !ruby/object:Gem::Version
47
61
  version: '1.4'
48
62
  type: :runtime
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ~>
66
+ - - "~>"
53
67
  - !ruby/object:Gem::Version
54
68
  version: '1.4'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rack-test
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - ~>
73
+ - - "~>"
60
74
  - !ruby/object:Gem::Version
61
75
  version: '0.6'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - ~>
80
+ - - "~>"
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0.6'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rspec
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - ~>
87
+ - - "~>"
74
88
  - !ruby/object:Gem::Version
75
89
  version: '2.9'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - ~>
94
+ - - "~>"
81
95
  - !ruby/object:Gem::Version
82
96
  version: '2.9'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rake
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - '>='
101
+ - - "~>"
88
102
  - !ruby/object:Gem::Version
89
- version: '10'
103
+ version: '10.4'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - '>='
108
+ - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: '10'
110
+ version: '10.4'
97
111
  description: A light-weight Sinatra-inspired web framework for web sites and applications
98
112
  of any size.
99
113
  email: tom@tomwardrop.com
@@ -101,7 +115,7 @@ executables: []
101
115
  extensions: []
102
116
  extra_rdoc_files: []
103
117
  files:
104
- - .yardopts
118
+ - ".yardopts"
105
119
  - CHANGES.md
106
120
  - Gemfile
107
121
  - LICENSE
@@ -125,7 +139,7 @@ files:
125
139
  - examples/file_upload.ru
126
140
  - examples/less_simple.ru
127
141
  - examples/media_types.ru
128
- - examples/rails_style_routing.ru
142
+ - examples/restful_controller.ru
129
143
  - examples/simple.ru
130
144
  - lib/scorched.rb
131
145
  - lib/scorched/collection.rb
@@ -160,17 +174,17 @@ require_paths:
160
174
  - lib
161
175
  required_ruby_version: !ruby/object:Gem::Requirement
162
176
  requirements:
163
- - - '>='
177
+ - - ">="
164
178
  - !ruby/object:Gem::Version
165
179
  version: 2.0.0
166
180
  required_rubygems_version: !ruby/object:Gem::Requirement
167
181
  requirements:
168
- - - '>='
182
+ - - ">="
169
183
  - !ruby/object:Gem::Version
170
184
  version: '0'
171
185
  requirements: []
172
186
  rubyforge_project:
173
- rubygems_version: 2.1.11
187
+ rubygems_version: 2.4.5
174
188
  signing_key:
175
189
  specification_version: 4
176
190
  summary: Light-weight, DRY as a desert, web framework for Ruby
@@ -1,48 +0,0 @@
1
- require File.expand_path('../../lib/scorched.rb', __FILE__)
2
-
3
- class App < Scorched::Controller
4
- end
5
-
6
- class Base < App
7
- def self.inherited(klass)
8
- klass.get('/') { invoke_action :index }
9
- klass.get('/new') { invoke_action :new }
10
- klass.post('/') { invoke_action :create }
11
- klass.get('/:id') { invoke_action :show }
12
- klass.get('/:id/edit') { invoke_action :edit }
13
- klass.route('/:id', method: ['PATCH', 'PUT']) { invoke_action :update }
14
- klass.delete('/:id') { invoke_action :delete }
15
- end
16
-
17
- def invoke_action(action)
18
- respond_to?(action) ? send(action) : pass
19
- end
20
- end
21
-
22
- class Root < Base
23
- def index
24
- 'Hello'
25
- end
26
-
27
- def create
28
- 'Creating it now'
29
- end
30
- end
31
-
32
- class Customer < Base
33
- def index
34
- 'Hello customer'
35
- end
36
- end
37
-
38
- class Order < Base
39
- def index
40
- 'Me order'
41
- end
42
- end
43
-
44
- App.controller '/customer', Customer
45
- App.controller '/order', Order
46
- App.controller '/', Root
47
-
48
- run App