cynic 0.0.3.1 → 0.0.3.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15365e8524c6f43aab561f0a329f29ffe3370e38
4
- data.tar.gz: eeb4ad4c9f8300a277a1950a97a05edfdab42419
3
+ metadata.gz: 823bae839b41c6f0ab62c448400acf0b6e44151d
4
+ data.tar.gz: 7c1d10178f90c1eaf6fc7e45c1a78ade88db87c6
5
5
  SHA512:
6
- metadata.gz: 3cc6e6da0b7c64bfff346a1c97281bcf56cd4908293d1347857bb2ac84ccbaed749d41724647bdb23b3d48e4a7b9f6f79e18e1946e040cbb0a6a751bb0a8b9d9
7
- data.tar.gz: 9d20d82237eff81374e4f4334a72da6476114fb2c537e0849e7d5520555ead7c71a9466bb4c7f998a581598096616c150608ecee3fa4f23765503c1034b4171c
6
+ metadata.gz: 126207698093348a5c0dd342678779e2d20db4dd08341550f95e9e8295736d45d818b83f018a0aac1c1d25c106ef37ec423686dddcc200126c982834f55f6bf9
7
+ data.tar.gz: 62dbe748e92119f985f68dbf7c8fc6dd0f26cd3b1b66d7f0f40b970639e7973326fa77eb65ee96f6fcef49e9cd98bef72aecd35da82c7bdce32a690df7ec1f62
data/lib/cynic/app.rb CHANGED
@@ -18,7 +18,6 @@ module Cynic
18
18
 
19
19
  def call(env)
20
20
  @env = env
21
- puts @env.inspect
22
21
  send_response
23
22
  end
24
23
 
data/lib/cynic/routing.rb CHANGED
@@ -13,14 +13,14 @@ module Cynic
13
13
 
14
14
  def go_to(request_method, request_path)
15
15
  if action(request_method, request_path)
16
- action
16
+ action(request_method, request_path)
17
17
  else
18
18
  raise Error, "undefined routing #{request_method.upcase} '#{request_path}'"
19
19
  end
20
20
  end
21
21
 
22
- def action(request_method=nil, request_path=nil)
23
- @action ||= @routings[request_method.to_sym][request_path]
22
+ def action(request_method, request_path)
23
+ @routings[request_method.to_sym][request_path]
24
24
  end
25
25
 
26
26
  def get(path, options={})
data/lib/cynic/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cynic
2
- VERSION = "0.0.3.1"
2
+ VERSION = "0.0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cynic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.1
4
+ version: 0.0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bookis Smuin