easylittleprinter 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +15 -1
- data/VERSION +1 -1
- data/easylittleprinter.gemspec +1 -1
- data/lib/easylittleprinter.rb +13 -12
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -2,7 +2,19 @@
|
|
2
2
|
|
3
3
|
easylittleprinter is a static image server for the BERG Cloud Little Printer.
|
4
4
|
Image editions, icons, samples, and meta.json should be stored in the root
|
5
|
-
directory of this server.
|
5
|
+
directory of a remote static server. NOT this server.
|
6
|
+
|
7
|
+
Incidentally, Github Pages works fantastically as a remote static server.
|
8
|
+
|
9
|
+
You could probably set it up so that you don't have to use a remote server,
|
10
|
+
but that ain't no fun.
|
11
|
+
|
12
|
+
Presently, this gem works for standalone machines. Heroku support is
|
13
|
+
coming soon.
|
14
|
+
|
15
|
+
== Installation
|
16
|
+
|
17
|
+
"gem install easylittleprinter"
|
6
18
|
|
7
19
|
== Image naming format
|
8
20
|
|
@@ -22,6 +34,8 @@ or, from the command like
|
|
22
34
|
|
23
35
|
"easylittleprinter"
|
24
36
|
|
37
|
+
Both of these start The Camping Server running the site.
|
38
|
+
|
25
39
|
== Configuration
|
26
40
|
|
27
41
|
You'll need to have a config file. The default location for it is
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/easylittleprinter.gemspec
CHANGED
data/lib/easylittleprinter.rb
CHANGED
@@ -1,21 +1,15 @@
|
|
1
1
|
require 'camping'
|
2
2
|
require 'date'
|
3
|
-
require 'camping/server'
|
4
|
-
require '/etc/easylittleprinter/lpconfig.rb'
|
5
3
|
|
6
|
-
module EasyLittlePrinter
|
7
|
-
def self.do
|
8
|
-
exec('camping '+ Dir.getwd)
|
9
|
-
end
|
10
|
-
end
|
11
4
|
|
12
5
|
Camping.goes :LPImgApp
|
13
6
|
|
14
|
-
|
15
|
-
$
|
16
|
-
$
|
17
|
-
$
|
18
|
-
$
|
7
|
+
|
8
|
+
$imgFileExtension = ENV['EXTENSION']
|
9
|
+
$imgHostURL = ENV['HOSTURL']
|
10
|
+
$title = ENV['TITLE']
|
11
|
+
$sampleImg = ENV['SAMPLE']
|
12
|
+
$iconImg = ENV['ICON']
|
19
13
|
|
20
14
|
module LPImgApp::Controllers
|
21
15
|
|
@@ -114,3 +108,10 @@ module LPImgApp::Views
|
|
114
108
|
end
|
115
109
|
|
116
110
|
end
|
111
|
+
|
112
|
+
module EasyLittlePrinter
|
113
|
+
|
114
|
+
def self.do
|
115
|
+
exec('camping ' + Dir.getwd)
|
116
|
+
end
|
117
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easylittleprinter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -258,7 +258,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
258
258
|
version: '0'
|
259
259
|
segments:
|
260
260
|
- 0
|
261
|
-
hash:
|
261
|
+
hash: 2408002248723944556
|
262
262
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
263
|
none: false
|
264
264
|
requirements:
|