watts 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +3 -2
  3. data/lib/watts.rb +2 -2
  4. metadata +20 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1090395dfbb1d65792a782eed0d9dbc90f3fed7
4
- data.tar.gz: 23150b42d9ace03b338056648de0d67ee8d4174b
3
+ metadata.gz: 964af4bbc23f33ef0d94137e83316f34af056276
4
+ data.tar.gz: 4e8f54ee253a2d550d14ec01ef512647b398139b
5
5
  SHA512:
6
- metadata.gz: 97165d036da3a810ddf8bcea7296d0c426adbe5b0cc968bd3d000e9ef07338c6d7b255e30a26ea89521d9ba1a6505fb8c2a598d550a1a09c21e382d923886cf4
7
- data.tar.gz: 0f7325024edf7b709b16071fe385a6be7cc0be9c09aa428154020fd265c059eb65a5f3a862b278bab816ebbd4d829917d718d6a93a1db187d933707cdba19bab
6
+ metadata.gz: 96301c864e38ff40e342d7845e4de7281146a7456b8950ec3f6da0f7399c1e3cf54008895ae921bc79ac36699f211c562e102315bf11831cc7f052f03f6f283f
7
+ data.tar.gz: 9b7003f829ad0af0f04979e0a69b213b2ba4c498c390e8a44e8166ba63c59328d03e73f2999ab739e10595bc64b05e2d9ae08a83401f261db35e4ca7d46c46a1
data/Rakefile CHANGED
@@ -18,11 +18,12 @@ spec = Gem::Specification.new { |s|
18
18
  Dir['bin/*'].map(&File.method(:basename)).map(&s.executables.method(:<<))
19
19
 
20
20
  s.name = 'watts'
21
+ s.license = 'MIT'
21
22
  s.summary =
22
23
  "Resource-oriented, Rack-based, minimalist web framework."
23
24
  s.homepage = "http://github.com/pete/watts"
24
- %w().each &s.method(:add_dependency)
25
- s.version = '1.0.4'
25
+ %w(rack).each &s.method(:add_dependency)
26
+ s.version = '1.0.5'
26
27
  }
27
28
 
28
29
  Rake::RDocTask.new(:doc) { |t|
@@ -97,7 +97,7 @@ module Watts
97
97
  def self.decypher_path p
98
98
  return p if p.kind_of?(Array)
99
99
  return [] if ESet.include?(p)
100
- return [p] if p.kind_of?(Regexp)
100
+ return [p] if p.kind_of?(Regexp) || p.kind_of?(Symbol)
101
101
  p.split('/').tap { |a| a.reject!(&''.method(:'==')) }
102
102
  end
103
103
 
@@ -213,7 +213,7 @@ module Watts
213
213
  # (for OPTIONS) manually. Have a look at the README and doc/examples.
214
214
  class Resource
215
215
  HTTPMethods =
216
- Set.new([:get, :post, :put, :delete, :head, :options, :trace, :connect])
216
+ Set.new(%i(get post put delete head options trace connect))
217
217
 
218
218
  class << self
219
219
  attr_new Array, :http_methods
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Elmore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-01 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2017-07-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rack
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description:
14
28
  email: pete@debu.gs
15
29
  executables: []
@@ -29,7 +43,8 @@ files:
29
43
  - lib/watts.rb
30
44
  - lib/watts/monkey_patching.rb
31
45
  homepage: http://github.com/pete/watts
32
- licenses: []
46
+ licenses:
47
+ - MIT
33
48
  metadata: {}
34
49
  post_install_message:
35
50
  rdoc_options: []
@@ -47,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
62
  version: '0'
48
63
  requirements: []
49
64
  rubyforge_project:
50
- rubygems_version: 2.5.1
65
+ rubygems_version: 2.6.11
51
66
  signing_key:
52
67
  specification_version: 4
53
68
  summary: Resource-oriented, Rack-based, minimalist web framework.