makeki 0.1.61 → 0.1.62

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: d07ca49edb4929b6e514a20e34eba5b7e51737a9
4
- data.tar.gz: 251c25658ad43c7720c336ee2723dd62b26d7285
3
+ metadata.gz: bfe77946e497b6e41435efcfb566b0db83bece4d
4
+ data.tar.gz: b449274f4edf5603648b5ff1778a3d33a09975f7
5
5
  SHA512:
6
- metadata.gz: a34e5ab2b2ee554c86382787b3f86b9dbdf47938ce8a436729cf916a96e6ba6dbab8025415902f74bb11a339aa3d4a84bcac0d86bc6ee5d79ae33a9d27a9fd1f
7
- data.tar.gz: 681f3aab2a2a849b60d2c0e771dacaf7611ae8b0b5e866f12fb80c4fa91ab28cc5b7304585a610ef2c4f9cf34615fa33d88e869a8c0b576680e449a044a22294
6
+ metadata.gz: a140f9569fefc294e166d298430d460fdb2fd31bd126ae75cb484eee4687143057e32b591aa17ac05d01c7dc0eb883b618c7b125e1acfdb1af10b0ce6fdaeac6
7
+ data.tar.gz: 6109628566d0876358fd07d8ce67c3f5db95724c96e94dc4dbeb6f1ed16f212582b59493fb88bce5d9a83c920adbb7676da5ea0440fee2f0514be7af4c524a73
@@ -1,11 +1,11 @@
1
1
  module Makeki
2
2
  class Application
3
3
  def get_controller_and_action(env)
4
- _, cont, action, after =
4
+ _, action, cont, after =
5
5
  env["PATH_INFO"].split('/', 4)
6
6
  cont = cont.capitalize
7
7
  cont += "Controller"
8
- [Object.const_get(cont), action]
8
+ [action, Object.const_get(cont)]
9
9
  end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Makeki
2
- VERSION = "0.1.61"
2
+ VERSION = "0.1.62"
3
3
  end
data/lib/makeki.rb CHANGED
@@ -8,6 +8,7 @@ module Makeki
8
8
  if env['PATH_INFO'] == '/favicon.ico'
9
9
  return [404, {'Content-Type' => 'text/html'}, []]
10
10
  end
11
+
11
12
  classic, act = get_controller_and_action(env)
12
13
  controller = classic.new(env)
13
14
  text = controller.send(act)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makeki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.61
4
+ version: 0.1.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cronwel Irias