rack-crud 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff5e7f100b2398071ded2a3cd647a9cdc1ab3933
4
- data.tar.gz: 5e6ca62b71cbd9c1945ff659fee61a64fbf57a04
3
+ metadata.gz: 0d97b67f32a4193027fa25d133fa002f575d42e7
4
+ data.tar.gz: 18fdcecca396b1c9f5c9983c795a21f78696034b
5
5
  SHA512:
6
- metadata.gz: 9867d79671e03f006c49ddd2cfb2f6d103174869dd5be8325d2d15af8e5953a28eb368b4b285d9a82116d4cc802d296f834224d6822ba43de3b9e23b817eb4f2
7
- data.tar.gz: 40a54221d6a53a2837d9c69b014799f60f24d91906b03710bbaa300eaf7744dc2bc7b4ebbb28f0f4a3c79d9a4e5f41f29dc26435dbd4a3a38420ed75b4364026
6
+ metadata.gz: 31cc5152a9b6f21b0435760fd7e40012eac20906ff1c29a8fcbd5531bdde6a8b388285784c08dfc164974df5e9cfe8db837d1d0e9c6297b2b03f9409626ff431
7
+ data.tar.gz: 9c7ca29f26d82a1708943facad5d5c999c1f9721127c982fabef6f40605f32e534ef896b4c96dc08fea1b4b88c607d2d965ae26c72e689d3d70803efd3f5fc85
@@ -8,12 +8,13 @@ class RequestHandler
8
8
  end
9
9
 
10
10
  def not_found
11
- # raise "Not found: #{ @env[ 'REQUEST_PATH' ]}"
11
+ raise "Not found: #{ @env[ 'REQUEST_PATH' ]}"
12
12
 
13
13
  Response.not_found_for '404: There is no route for your request.'
14
14
  end
15
15
 
16
16
  def get_rack_crud_js
17
+ ap Dir.pwd
17
18
  Response.ok_for File.read( "public/js/#{ @url_params[ :file ]}" )
18
19
  end
19
20
 
@@ -22,7 +23,6 @@ class RequestHandler
22
23
  end
23
24
 
24
25
  def render model, page, data
25
- puts Dir.pwd
26
26
  content_template = File.read "templates/#{ model }/#{ page }.mustache"
27
27
  content = Mustache.render( content_template, { data:data })
28
28
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-crud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Ulmer