shutterbug 0.0.9 → 0.0.10
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.
- data/README.md +2 -2
- data/lib/shutterbug.rb +1 -1
- data/lib/shutterbug/shutterbug.js +5 -2
- metadata +4 -4
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://travis-ci.org/concord-consortium/shutterbug)
|
|
4
4
|
[](https://codeclimate.com/github/concord-consortium/shutterbug)
|
|
5
5
|
|
|
6
|
-
A rack utility that will create and save images (pngs) from parts of your html's documents current dom. These images become available as public png resources in the rack application. Currently shutterbug supports HTML, SVG and Canvas elements. Here is a sampel config.ru file:
|
|
6
|
+
A rack utility using phantomjs that will create and save images (pngs) from parts of your html's documents current dom. These images become available as public png resources in the rack application. Currently shutterbug supports HTML, SVG and Canvas elements. Here is a sampel config.ru file:
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
use Shutterbug::Rackapp do |config|
|
|
@@ -107,4 +107,4 @@ And a Procfile which looks like this:
|
|
|
107
107
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
108
108
|
5. Create new Pull Request
|
|
109
109
|
|
|
110
|
-
© 2013 The concord Consortium.
|
|
110
|
+
© 2013 The concord Consortium.
|
data/lib/shutterbug.rb
CHANGED
|
@@ -138,8 +138,11 @@
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
|
|
142
|
+
$(document).ready(function () {
|
|
143
|
+
window.addEventListener('message', htmlFragRequestListen, false);
|
|
144
|
+
window.addEventListener('message', htmlFragResponseListen, false);
|
|
145
|
+
});
|
|
143
146
|
return shutterbugInstance;
|
|
144
147
|
};
|
|
145
148
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shutterbug
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.10
|
|
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: 2013-07-
|
|
12
|
+
date: 2013-07-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -162,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
162
162
|
version: '0'
|
|
163
163
|
segments:
|
|
164
164
|
- 0
|
|
165
|
-
hash:
|
|
165
|
+
hash: 2070433213852297661
|
|
166
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
none: false
|
|
168
168
|
requirements:
|
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
171
171
|
version: '0'
|
|
172
172
|
segments:
|
|
173
173
|
- 0
|
|
174
|
-
hash:
|
|
174
|
+
hash: 2070433213852297661
|
|
175
175
|
requirements: []
|
|
176
176
|
rubyforge_project:
|
|
177
177
|
rubygems_version: 1.8.23
|