easymarklet 0.0.3 → 0.0.4

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.
@@ -48,7 +48,7 @@
48
48
  container: easymarkletDiv,
49
49
  onReady: function(){
50
50
  if(bookmarklet.consumer.init){
51
- bookmarklet.consumer.init();
51
+ bookmarklet.consumer.init(full_host,_this.producer);
52
52
  }
53
53
  //xhr.post("example/glossary.php", {
54
54
  // param1: "a",
@@ -36,7 +36,7 @@
36
36
  this.init = function(){
37
37
  this.loadCss();
38
38
  if(bookmarklet.init){
39
- bookmarklet.init();
39
+ bookmarklet.init(full_host);
40
40
  }
41
41
  }
42
42
 
@@ -1,3 +1,3 @@
1
1
  module Easymarklet
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  #<%= name %>_insert{
2
- position:absolute;
2
+ position:fixed;
3
3
  top:10px;
4
4
  left:10px;
5
5
  background:black;
@@ -4,7 +4,7 @@
4
4
 
5
5
  var <%= name.camelize %>Bookmarklet = {
6
6
  css : ['/assets/<%= name %>_bookmarklet.css'], // could be an array or a single string
7
- init : function(){
7
+ init : function(full_host){
8
8
  var div = document.createElement('div')
9
9
  div.id = '<%= name %>_insert'
10
10
  div.appendChild(document.createTextNode('<%= name.camelize %> Insert'))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easymarklet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-15 00:00:00.000000000 Z
12
+ date: 2012-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -212,7 +212,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
212
212
  version: '0'
213
213
  segments:
214
214
  - 0
215
- hash: -4191531238921313582
215
+ hash: -2646022179707906065
216
216
  required_rubygems_version: !ruby/object:Gem::Requirement
217
217
  none: false
218
218
  requirements:
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
221
  version: '0'
222
222
  segments:
223
223
  - 0
224
- hash: -4191531238921313582
224
+ hash: -2646022179707906065
225
225
  requirements: []
226
226
  rubyforge_project:
227
227
  rubygems_version: 1.8.24