kalindar 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 +8 -8
- data/lib/kalindar/app.rb +3 -0
- data/lib/kalindar/public/kalindar.js +1 -2
- data/lib/kalindar/version.rb +1 -1
- data/lib/kalindar/views/edit_event.slim +2 -2
- data/lib/kalindar/views/new_event.slim +1 -1
- metadata +2 -3
- data/Gemfile.lock +0 -49
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWYxYTRjNjhkOWMzMTEyMzUxMDQyMzc3ZjEyN2MyNGQ1ZjI2Nzg5Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTUyYTVhMTU2ZWU5MjkwMTYxMzk2YzA4YWQxZjFjNzVlYmVmYTkzNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWVmOTY4ODFiNWE5Njc5YzVlYjhhZWFlMTc2MTk5OGJhMDVlOGY3NDBkNjc0
|
10
|
+
NTlmOGVmMGY0MjZjNzlkYmE0YjgxZjhlMjE4NTIzNWYyYWRiZGY5ZjE3NDRk
|
11
|
+
MWYwMTQ4YWU5YTJjNjBjNzU3OGFjZDhiMmY1Y2E5ODYwMzI3OTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODA5YzI2MmM2ODEzZDcxODg2OThmY2UzNWU0ZjA1MTQyMTU2YzJjZjM4YWY0
|
14
|
+
ZWEyM2IyNzU1NGQ1YWM2OTk5YjM1OTVlNmE5Yzk1YTQxMjUzMzZjN2Q3OWNm
|
15
|
+
NjU0YTc3OTlmZmIwOTQ2ZmNjZmM3ZDc2YjA1YTZjYTBmOGIzMTM=
|
data/lib/kalindar/app.rb
CHANGED
@@ -131,6 +131,9 @@ class KalindarApp < Sinatra::Base
|
|
131
131
|
# Edit/save an event.
|
132
132
|
put '/event/edit/:uuid' do
|
133
133
|
# validate_params
|
134
|
+
if params[:submitbutton] == 'cancel'
|
135
|
+
redirect '/'
|
136
|
+
end
|
134
137
|
puts params
|
135
138
|
event = $cal.find_by_uid(params[:uuid])
|
136
139
|
event.update params
|
@@ -18,8 +18,7 @@
|
|
18
18
|
"#show_new_event_link".onClick(function() {
|
19
19
|
console.log(this.parent().first('#day_hidden_input').value());
|
20
20
|
day = this.parent().first('#day_hidden_input').value();
|
21
|
-
this.parent().first('.
|
22
|
-
this.parent().first('.new_event_mask').fade();
|
21
|
+
this.parent().first('.hidden_new_event_mask').fade();
|
23
22
|
return false;
|
24
23
|
});
|
25
24
|
|
data/lib/kalindar/version.rb
CHANGED
@@ -33,5 +33,5 @@ form.pure-form.pure-form-stacked action="/event/edit/#{event.uid}" method="post"
|
|
33
33
|
option value="2d" = t '2d'
|
34
34
|
option value="5d" = t '5d'
|
35
35
|
option value="1w" = t '1w'
|
36
|
-
button.pure-button type="submit" value="save" = t 'save'
|
37
|
-
button.pure-button type="submit" value="cancel" = t 'cancel'
|
36
|
+
button.pure-button name="submitbutton" type="submit" value="save" text= t 'save'
|
37
|
+
button.pure-button name="submitbutton" type="submit" value="cancel" text= t 'cancel'
|
@@ -29,7 +29,7 @@ form.pure-form.pure-form-stacked#new_event_form action="/event" method="post"
|
|
29
29
|
option value="60m" = t '60m'
|
30
30
|
option value="90m" = t '90m'
|
31
31
|
option value="120m" = t '120m'
|
32
|
-
option value="whole" = t 'whole_day'
|
32
|
+
/option value="whole" = t 'whole_day'
|
33
33
|
option value="1d" = t '1d'
|
34
34
|
option value="2d" = t '2d'
|
35
35
|
option value="5d" = t '5d'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kalindar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Wolfsteller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ri_cal
|
@@ -119,7 +119,6 @@ files:
|
|
119
119
|
- .rspec
|
120
120
|
- .travis.yml
|
121
121
|
- Gemfile
|
122
|
-
- Gemfile.lock
|
123
122
|
- LICENSE.txt
|
124
123
|
- Procfile
|
125
124
|
- README.md
|
data/Gemfile.lock
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
kalindar (0.1.0)
|
5
|
-
i18n (~> 0.6)
|
6
|
-
ri_cal (~> 0.8)
|
7
|
-
sinatra (~> 1.4)
|
8
|
-
slim (~> 2.0)
|
9
|
-
|
10
|
-
GEM
|
11
|
-
remote: https://rubygems.org/
|
12
|
-
specs:
|
13
|
-
diff-lcs (1.2.5)
|
14
|
-
i18n (0.6.9)
|
15
|
-
rack (1.5.2)
|
16
|
-
rack-protection (1.5.3)
|
17
|
-
rack
|
18
|
-
rake (10.3.2)
|
19
|
-
ri_cal (0.8.8)
|
20
|
-
rspec (3.0.0)
|
21
|
-
rspec-core (~> 3.0.0)
|
22
|
-
rspec-expectations (~> 3.0.0)
|
23
|
-
rspec-mocks (~> 3.0.0)
|
24
|
-
rspec-core (3.0.3)
|
25
|
-
rspec-support (~> 3.0.0)
|
26
|
-
rspec-expectations (3.0.3)
|
27
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
28
|
-
rspec-support (~> 3.0.0)
|
29
|
-
rspec-mocks (3.0.3)
|
30
|
-
rspec-support (~> 3.0.0)
|
31
|
-
rspec-support (3.0.3)
|
32
|
-
sinatra (1.4.5)
|
33
|
-
rack (~> 1.4)
|
34
|
-
rack-protection (~> 1.4)
|
35
|
-
tilt (~> 1.3, >= 1.3.4)
|
36
|
-
slim (2.0.3)
|
37
|
-
temple (~> 0.6.6)
|
38
|
-
tilt (>= 1.3.3, < 2.1)
|
39
|
-
temple (0.6.8)
|
40
|
-
tilt (1.4.1)
|
41
|
-
|
42
|
-
PLATFORMS
|
43
|
-
ruby
|
44
|
-
|
45
|
-
DEPENDENCIES
|
46
|
-
bundler (~> 1.6)
|
47
|
-
kalindar!
|
48
|
-
rake
|
49
|
-
rspec
|