yabbie 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.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/README.md +2 -1
- data/docs/docs.css +102 -0
- data/docs/images/lightpaperfibers.png +0 -0
- data/docs/images/yabbie.png +0 -0
- data/docs/index.html +125 -0
- data/lib/yabbie/configuration.rb +1 -1
- data/lib/yabbie/slimer.rb +1 -0
- data/lib/yabbie/version.rb +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 15735fb1accbb4317333e83ac608d2bfad56f66d
|
|
4
|
+
data.tar.gz: 3a8fdbb5cf598ed40777044cb9534cd2a090c412
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c922f8aee875aea5c36ea64d608c6c8ed7bee3ca03f734fda18f87384dbc32f32437a57bcdf5592ea8b4384b8967b5eba7cbf898a5fb493a5ca7c83f0999a70f
|
|
7
|
+
data.tar.gz: 1fd75a0fd4951b8a5bf42f4854c6bb35761117ec3fab2d0132624fd6e7b99c1b59c68ae8625cb2cdaf8d443422864994d3dfe156f811162d0d129097d5d97e08
|
data/.travis.yml
ADDED
data/README.md
CHANGED
|
@@ -29,7 +29,7 @@ For more usage, please investigate in the code while we don't build a nice READM
|
|
|
29
29
|
|
|
30
30
|
## Roadmap
|
|
31
31
|
|
|
32
|
-
1. Add tests
|
|
32
|
+
1. Add more tests! :)
|
|
33
33
|
|
|
34
34
|
## And the oscar goes to...
|
|
35
35
|
|
|
@@ -48,3 +48,4 @@ A huge thanks to all Shrimp contributors.
|
|
|
48
48
|
## License
|
|
49
49
|
|
|
50
50
|
MIT
|
|
51
|
+
|
data/docs/docs.css
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
|
|
2
|
+
html {
|
|
3
|
+
font: 400 18px/1.5em Alegreya, Georgia, serif;
|
|
4
|
+
text-rendering: optimizeLegibility;
|
|
5
|
+
-webkit-font-smoothing: antialiased;
|
|
6
|
+
-moz-osx-font-smoothing: grayscale;
|
|
7
|
+
background: url(images/lightpaperfibers.png);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.container {
|
|
11
|
+
padding: 1.5em;
|
|
12
|
+
width: auto;
|
|
13
|
+
max-width: 60em;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
img {
|
|
17
|
+
display: block;
|
|
18
|
+
max-width: 100%;
|
|
19
|
+
margin: auto;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
a {
|
|
23
|
+
color: tomato;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
a:hover {
|
|
27
|
+
color: dimgray;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.logo {
|
|
32
|
+
width: 25em;
|
|
33
|
+
margin-bottom: 1.5em;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
header {
|
|
37
|
+
text-align: center;
|
|
38
|
+
font-size: 1.25em;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
header .button {
|
|
42
|
+
margin: 0 .25em;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.share-links {
|
|
46
|
+
margin: 2em 0 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
section {
|
|
50
|
+
padding: 1em 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
section h2 {
|
|
54
|
+
margin-bottom: 1.25em
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
section h2:before {
|
|
58
|
+
content: '\261E';
|
|
59
|
+
margin-right: .5em;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
section h2:after {
|
|
63
|
+
content: '\261C';
|
|
64
|
+
margin-left: .5em;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
pre {
|
|
68
|
+
background: oldlace;
|
|
69
|
+
border: thin solid wheat;
|
|
70
|
+
border-radius: .15em;
|
|
71
|
+
padding: .5em .75em;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.button {
|
|
75
|
+
display: inline-block;
|
|
76
|
+
padding: .25em .75em;
|
|
77
|
+
background: tomato;
|
|
78
|
+
color: white;
|
|
79
|
+
text-decoration: none;
|
|
80
|
+
border-radius: .125em;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.button:hover {
|
|
84
|
+
background: dimgray;
|
|
85
|
+
color: white
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.outline-button {
|
|
89
|
+
background: transparent;
|
|
90
|
+
border: .125em solid tomato;
|
|
91
|
+
color: tomato;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.outline-button:hover {
|
|
95
|
+
background: transparent;
|
|
96
|
+
color: tomato;
|
|
97
|
+
border-color: dimgrey;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
footer {
|
|
101
|
+
text-align: center;
|
|
102
|
+
}
|
|
Binary file
|
|
Binary file
|
data/docs/index.html
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>Yabbie</title>
|
|
5
|
+
|
|
6
|
+
<!-- Twitter -->
|
|
7
|
+
<meta content="@useoutfit" name="twitter:site">
|
|
8
|
+
<meta content="summary" name="twitter:card">
|
|
9
|
+
<meta content="Yabbie" name="Yabbie">
|
|
10
|
+
<meta content="Yabbie, like Shrimp for PhantomJS, but for SlimerJS" name="twitter:description">
|
|
11
|
+
|
|
12
|
+
<meta name="description" content="Yabbie, like Shrimp for PhantomJS, but for SlimerJS.">
|
|
13
|
+
<meta name="keywords" content="Yabbie, SlimerJS, Shrimp, PhantomJS, Firefox">
|
|
14
|
+
|
|
15
|
+
<meta name="viewport" content="width = device-width, initial-scale = 1">
|
|
16
|
+
|
|
17
|
+
<!-- <link rel="icon" href="favicon.ico"> -->
|
|
18
|
+
<link href='http://fonts.googleapis.com/css?family=Alegreya:400italic,700italic,400,700' rel='stylesheet' type='text/css'>
|
|
19
|
+
|
|
20
|
+
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/skeleton/1.2/skeleton.min.css">
|
|
21
|
+
<link rel="stylesheet" type="text/css" href="docs.css">
|
|
22
|
+
</head>
|
|
23
|
+
<body>
|
|
24
|
+
|
|
25
|
+
<header>
|
|
26
|
+
<div class="container">
|
|
27
|
+
<img class='logo' src="images/yabbie.png">
|
|
28
|
+
|
|
29
|
+
<h1>Yabbie</h1>
|
|
30
|
+
|
|
31
|
+
<p>Yabbie is a gem to wrap SlimerJS.</p>
|
|
32
|
+
|
|
33
|
+
<div>
|
|
34
|
+
<a target="_blank" href="https://github.com/net-engine/yabbie" class="button">Source</a>
|
|
35
|
+
<a rel="external" href="https://github.com/net-engine/yabbie/archive/master.zip" class="button">Download</a>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<div class="share-links">
|
|
39
|
+
<a href="http://twitter.com/share" class="twitter-share-button" data-text="Yabbie, like Shrimp for PhantomJS, but for SlimerJS">Tweet</a>
|
|
40
|
+
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
|
|
41
|
+
<iframe src="http://ghbtns.com/github-btn.html?user=net-engine&repo=yabbie&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
|
|
42
|
+
</script>
|
|
43
|
+
</div>
|
|
44
|
+
</header>
|
|
45
|
+
|
|
46
|
+
<main>
|
|
47
|
+
<div class="container">
|
|
48
|
+
|
|
49
|
+
<section id="installation" class="section">
|
|
50
|
+
<h2><a href="#installation">Installation</a></h2>
|
|
51
|
+
|
|
52
|
+
<p>Add this line to your application's Gemfile:</p>
|
|
53
|
+
|
|
54
|
+
<pre><code>gem 'yabbie', github: 'net-engine/yabbie'</code></pre>
|
|
55
|
+
|
|
56
|
+
<p>And then execute:</p>
|
|
57
|
+
|
|
58
|
+
<pre><code>$ bundle</code></pre>
|
|
59
|
+
|
|
60
|
+
<p>Or install it yourself as:</p>
|
|
61
|
+
|
|
62
|
+
<pre><code>$ gem install yabbie</code></pre>
|
|
63
|
+
</section>
|
|
64
|
+
|
|
65
|
+
<section id="dependency" class="section">
|
|
66
|
+
<h2><a href="#dependency">Dependency</a></h2>
|
|
67
|
+
|
|
68
|
+
<p>It relies on <a href="http://slimerjs.org">SlimerJS</a>, and a script that contains what you want to achieve.
|
|
69
|
+
For the script, you can check our <a href="https://github.com/net-engine/yabbie/blob/master/lib/yabbie/default.js">default.js</a>. It does nothing but takes a png snapshot. It is just so that Yabbie does not fail if you don't provide one. Please don't rely on it.</p>
|
|
70
|
+
|
|
71
|
+
</section>
|
|
72
|
+
|
|
73
|
+
<section id="usage" class="section">
|
|
74
|
+
<h2><a href="#usage">Usage</a></h2>
|
|
75
|
+
|
|
76
|
+
<pre><code>Yabbie::Slimer.new(html_file, options).to_file(file)</code></pre>
|
|
77
|
+
|
|
78
|
+
<p>For more usage, please investigate in the code while we don't build a nice README</p>
|
|
79
|
+
|
|
80
|
+
</section>
|
|
81
|
+
|
|
82
|
+
<section id="roadmap" class="section">
|
|
83
|
+
<h2><a href="#roadmap">Roadmap</a></h2>
|
|
84
|
+
|
|
85
|
+
<ol>
|
|
86
|
+
<li>Add more tests! :)</li>
|
|
87
|
+
</ol>
|
|
88
|
+
|
|
89
|
+
</section>
|
|
90
|
+
|
|
91
|
+
<section id="inspiration" class="section">
|
|
92
|
+
<h2><a href="#inspiration">And the oscar goes to...</a></h2>
|
|
93
|
+
|
|
94
|
+
<p>This gem is inspired on <a href="https://github.com/adjust/shrimp">Shrimp</a> gem.</p>
|
|
95
|
+
|
|
96
|
+
<p>A huge thanks to all Shrimp contributors.</p>
|
|
97
|
+
|
|
98
|
+
</section>
|
|
99
|
+
|
|
100
|
+
<section id="contributing" class="section">
|
|
101
|
+
<h2><a href="#contributing">Contributing</a></h2>
|
|
102
|
+
|
|
103
|
+
<ol>
|
|
104
|
+
<li><a href="https://github.com/net-engine/yabbie/fork">Fork it</a></li>
|
|
105
|
+
<li>Create your feature branch (<code>git checkout -b my-new-feature</code>)</li>
|
|
106
|
+
<li>Commit your changes (<code>git commit -am 'Add some feature'</code>)</li>
|
|
107
|
+
<li>Push to the branch (<code>git push origin my-new-feature</code>)</li>
|
|
108
|
+
<li>Create a new Pull Request</li>
|
|
109
|
+
</ol>
|
|
110
|
+
</section>
|
|
111
|
+
|
|
112
|
+
</div>
|
|
113
|
+
</main>
|
|
114
|
+
|
|
115
|
+
<footer>
|
|
116
|
+
<div class="container">
|
|
117
|
+
<p>
|
|
118
|
+
Built by <a href="http://netengine.com.au">NetEngine</a> for <a href="http://useoutfit.com/">Outfit</a>.
|
|
119
|
+
|
|
120
|
+
Licence: <a href="https://github.com/net-engine/yabbie/blob/master/LICENSE.txt">MIT</a>
|
|
121
|
+
</p>
|
|
122
|
+
</div>
|
|
123
|
+
</footer>
|
|
124
|
+
</body>
|
|
125
|
+
</html>
|
data/lib/yabbie/configuration.rb
CHANGED
data/lib/yabbie/slimer.rb
CHANGED
data/lib/yabbie/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yabbie
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ricardo Bernardeli
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-10-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -74,10 +74,15 @@ extensions: []
|
|
|
74
74
|
extra_rdoc_files: []
|
|
75
75
|
files:
|
|
76
76
|
- ".gitignore"
|
|
77
|
+
- ".travis.yml"
|
|
77
78
|
- Gemfile
|
|
78
79
|
- LICENSE.txt
|
|
79
80
|
- README.md
|
|
80
81
|
- Rakefile
|
|
82
|
+
- docs/docs.css
|
|
83
|
+
- docs/images/lightpaperfibers.png
|
|
84
|
+
- docs/images/yabbie.png
|
|
85
|
+
- docs/index.html
|
|
81
86
|
- lib/yabbie.rb
|
|
82
87
|
- lib/yabbie/config.json
|
|
83
88
|
- lib/yabbie/configuration.rb
|