card 1.93.10 → 1.93.11

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: 43bd41e752cf0643c750a9a20d097d074a770a94
4
- data.tar.gz: 627c47e59e6b3f14bb99ca7f4a018d20e7d95aee
3
+ metadata.gz: 24da04d2280fb8e76a07ae6be4cab46f37507f48
4
+ data.tar.gz: 338e675444a36b74741beaf87fa704b2c60dad61
5
5
  SHA512:
6
- metadata.gz: 9764725368834acc3ab2704d6cd8325de299c47583381815ce07ca6c464900aaf1b0ec562109f6940b73f4bb945c70d63ac4b1d17a395239b545153d24b46429
7
- data.tar.gz: 6397847006fcad2d800e5a1ffdd829ce4b2e86ab317abe145f91a91f0c9698fdeecf9d7295d35110d3b0f14b9e1e8bb0a06027160726e4d306c14ab59880d187
6
+ metadata.gz: 057db396bec5424de6ad49ee8c99ada4d0d1132c7b9fc618009f43287dc3ca4550aa87e6d8e22fc20fbd7105a67d2c79c3af964f02125915e149d42bdbd1216d
7
+ data.tar.gz: abc51603e41b426f0e504ef0338e223b4d35be495a0ff0d97b01785d9d49068547c639b29ffc3f88e983996b5d7ff3747426734f1951001e789dfa75609640e3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.10
1
+ 0.3.11
@@ -1,9 +1,11 @@
1
1
  $.extend decko,
2
- # returns full path, including relative root
3
- # leading slash on relative path is optional
4
- path: (relative_path) ->
5
- slash = (if relative_path.match /^\// then '' else '/')
6
- decko.rootPath + slash + relative_path
2
+ # returns absolute path (starting with a slash)
3
+ # if rawPath is relative (no slash), this adds relative root
4
+ path: (rawPath) ->
5
+ if rawPath.match /^\//
6
+ rawPath
7
+ else
8
+ decko.rootPath + '/' + rawPath
7
9
 
8
10
  initializeEditors: (range, map) ->
9
11
  map = decko.editorInitFunctionMap unless map?
@@ -42,17 +42,17 @@ navboxize = (term, results) ->
42
42
  i.icon = key
43
43
  i.term = term
44
44
  else if key == 'add'
45
- i.href = '/card/new?card[name]=' + encodeURIComponent(val)
45
+ i.href = 'card/new?card[name]=' + encodeURIComponent(val)
46
46
  else if key == 'new'
47
47
  i.type = 'add' # for icon
48
- i.href = '/new/' + val[1]
48
+ i.href = 'new/' + val[1]
49
49
 
50
50
  items.push i
51
51
 
52
52
  $.each results['goto'], (index, val) ->
53
53
  items.push {
54
54
  icon: 'arrow_forward', prefix: 'go to', value: val[0], label: val[1],
55
- href: '/' + val[2]
55
+ href: val[2]
56
56
  }
57
57
 
58
58
  $.each items, (index, i) ->
@@ -15,11 +15,11 @@ $.extend decko,
15
15
  }
16
16
  $_fileupload = $(fileupload)
17
17
  if $_fileupload.closest("form").attr("action").indexOf("update") > -1
18
- url = "/card/update/"+$(fileupload).siblings("#file_card_name").val()
18
+ url = "card/update/"+$(fileupload).siblings("#file_card_name").val()
19
19
  else
20
- url = "/card/create"
20
+ url = "card/create"
21
21
  $(fileupload).fileupload(
22
- url: url,
22
+ url: decko.path(url),
23
23
  dataType: 'html',
24
24
  done: decko.doneFile,
25
25
  add: decko.chooseFile,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.93.10
4
+ version: 1.93.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-02-19 00:00:00.000000000 Z
14
+ date: 2018-02-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: cardname
@@ -19,14 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.3.10
22
+ version: 0.3.11
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.3.10
29
+ version: 0.3.11
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: haml
32
32
  requirement: !ruby/object:Gem::Requirement