weight-recorder 0.1.0 → 0.1.1

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: f2f31def9f7bf46c1c20bc80bec7b0fca4691e02
4
- data.tar.gz: 6bc2ec1be02e852a8d3efb1bb68f9328ff7ab792
3
+ metadata.gz: b88733b5ee4f822be87993fd7407a25f3fc87449
4
+ data.tar.gz: d7ff5f9977aa765b9f93c295feb353a3ce4c8c36
5
5
  SHA512:
6
- metadata.gz: 307041f4f5d69f89a3ac42c9f70938777e4e0289afa05fed6a93f76de8d26e66e84df496c0ff3b68c5bab1dda97d032d824e2aabd85a8daed7a0046a54ceca6f
7
- data.tar.gz: 1c52a6bcb57d3712e302e58f3482a0afcfa69c62d9463163513140e34c72105dca06bd7a7d832713ba439177f9f08b04459f4a6b4b03785899d037ec1d8da99c
6
+ metadata.gz: 800d031ec59ff2c1c76a484d230d6673e2a6bab65f4a2c06afd036eda1e9ddcc412901220d7e1b77a4a6cad4ec5343d03a33bea6a15de7a15e1c9b8d6375ef34
7
+ data.tar.gz: fc47d8adc8935ca199cfc0e9edd000a628780875a735ba64dfef8c11d654df36af6ee72877343ee02c4f3b5737b435f76d5fa23440c3bc0dda949930028f79e5
data/config.ru CHANGED
@@ -1,3 +1,6 @@
1
- require 'application'
1
+ #require "rubygems"
2
+ require "recorder"
3
+ require "application"
2
4
 
3
5
  run Recorder::Application
6
+
@@ -1,3 +1,3 @@
1
1
  module Recorder
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/views/chart.haml CHANGED
@@ -1,7 +1,7 @@
1
1
  %h1 Weight[kg] and BodyFat[%] chart
2
2
 
3
3
  %div
4
- %a(href='/') List
4
+ %a{href: uri('/')} List
5
5
 
6
6
  %p
7
7
  != line_chart @weight_data, @weight_options
data/lib/views/index.haml CHANGED
@@ -1,9 +1,9 @@
1
1
  %h1 Listing Data
2
2
 
3
3
  %div
4
- %a(href='/data/new') New
4
+ %a{href: uri('/data/new')} New
5
5
  %div
6
- %a(href='/chart') Chart
6
+ %a{href: uri('/chart')} Chart
7
7
 
8
8
  %table.table
9
9
  %thead
@@ -23,7 +23,7 @@
23
23
  %td= d.date
24
24
  %td= d.created_at.strftime('%Y/%m/%d %H:%M')
25
25
  %td
26
- %a{href: "/data/#{d.id}/edit"} Edit
26
+ %a{href: uri("/data/#{d.id}/edit")} Edit
27
27
  %td
28
28
  %form.form-inline(method='post'){action: uri("/data/#{d.id}")}
29
29
  %input(name='_method' type='hidden' value='delete')
@@ -3,14 +3,16 @@
3
3
  %head
4
4
  %meta(charset='utf-8')
5
5
  %title Recorder Application
6
- %link(href='/css/bootstrap.min.css' rel='stylesheet' type='text/css')
6
+ /%link(href='/css/bootstrap.min.css' rel='stylesheet' type='text/css')
7
+ %link(rel='stylesheet' type='text/css'){href: uri('css/bootstrap.min.css')}
8
+
7
9
  %script(src='http://www.google.com/jsapi')
8
- %script(src='chartkick.js')
10
+ %script{src: uri('chartkick.js')}
9
11
  %body
10
12
  %nav.navbar.navbar-default
11
13
  .container-fluid
12
14
  .navbar-header
13
- %a.brand(href='/data') Recorder Application
15
+ %a.brand{href: uri('/data')} Recorder Application
14
16
 
15
17
  .container
16
18
  !=yield
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weight-recorder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shigeto R. Nishitani