emacs_org_protocol_server 0.3.0 → 0.4.0

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: 9b38fc6e29090f69e76b58a435574ba80b0edd0e
4
- data.tar.gz: de6a33d76f4776d381fd14eb9922add80f3dfc28
3
+ metadata.gz: 407c9f086ba26e83540bbe5572bd2f5aa7698667
4
+ data.tar.gz: 5cff78a8558bd837b750b672ac850d352f898dd1
5
5
  SHA512:
6
- metadata.gz: 47cf879b3c633894d2d6d59d3d892f4c4ddcb00db00bcdda3268de4a776b913c248ad871852f6e6e6a2b8752a33dd10f5baa12d2a10d35d5df3831460640516a
7
- data.tar.gz: 0f81d0e2e8861ce4c63a081a1af15d01522f74c0e6c2550f64617b85128892c329cf9ae6128079ec5a8749e4342a087707dea9b5c24582f6870e6133019de249
6
+ metadata.gz: 7d83e6e4dfa5ff512cb198f656b6e286f1320acc5470fe1f4acee593b1563dc827cb87ce2a07cd7ae871f7d2376832c97eb0e7e4acf42bbcb37bdc04fd18876a
7
+ data.tar.gz: 8a0c201fce47e535c8cbb207c14f93aced6ebbd5346840901d14adaa5bf5ed3281f68cb2480463de2e80aca5c19557c4212b4c44957cdefa94172eeb51398096
data/bookmarklet.js CHANGED
@@ -1 +1 @@
1
- javascript:function fx(str){return encodeURIComponent(str).replace(/[!'()*]/g, function(c){return '%' + c.charCodeAt(0).toString(16);});};var captureLink=function(){var s=fx(window.getSelection().toString()),l=fx(window.location.href),t=fx(document.title),p='capture',uri='http://localhost:4567/?'+'p='+p+'&l='+l+'&t='+t+'&s='+s;window.location=uri;return uri;};captureLink();
1
+ javascript:function fx(str){return encodeURIComponent(str).replace(/[!'()*]/g, function(c){return '%' + c.charCodeAt(0).toString(16);});};var captureLink=function(){var s=window.getSelection().toString(),l=window.location.href,t=document.title, d=document.querySelector('meta[name=description]'), k=document.querySelector('meta[name=keywords]'),p='capture';if(d){d=d.attributes.content.value.toString()};if(k){k.attributes.content.value.toString()};var uri='http://localhost:9998/?'+'p='+p+'&l='+fx(l)+'&t='+fx(t)+'&s='+fx("description: "+d+"\n\n" + "selection: " + s + "\n\n");window.location=uri;return uri;};captureLink();
@@ -1,3 +1,3 @@
1
1
  module EmacsOrgProtocolServer
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emacs_org_protocol_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tamara Temple
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-09 00:00:00.000000000 Z
11
+ date: 2016-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -128,4 +128,3 @@ signing_key:
128
128
  specification_version: 4
129
129
  summary: Simple Sinatra server to call org-protocol with emacsclient
130
130
  test_files: []
131
- has_rdoc: