easylittleprinter 0.2.1 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/easylittleprinter.gemspec +1 -1
- data/lib/easylittleprinter.rb +10 -10
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
data/easylittleprinter.gemspec
CHANGED
data/lib/easylittleprinter.rb
CHANGED
@@ -10,7 +10,7 @@ $imgHostURL = ENV['HOSTURL']
|
|
10
10
|
$title = ENV['TITLE']
|
11
11
|
$sampleImg = ENV['SAMPLE']
|
12
12
|
$iconImg = ENV['ICON']
|
13
|
-
$publishes =
|
13
|
+
$publishes = ENV['FREQUENCY']
|
14
14
|
|
15
15
|
module LPImgApp::Controllers
|
16
16
|
|
@@ -37,51 +37,51 @@ module LPImgApp::Controllers
|
|
37
37
|
else
|
38
38
|
userDate = Date.new
|
39
39
|
userDate = Time.parse(@passedLDT)
|
40
|
-
if $publishes
|
40
|
+
if $publishes == "every_monday"
|
41
41
|
if userDate.monday? == true
|
42
42
|
render :currentEdition
|
43
43
|
else
|
44
44
|
r(200, "Error 200. Nothing to report, boss")
|
45
45
|
end
|
46
|
-
|
46
|
+
elsif $publishes == "every_tuesday"
|
47
47
|
if userDate.tuesday? == true
|
48
48
|
render :currentEdition
|
49
49
|
else
|
50
50
|
r(200, "Error 200. Nothing to report, boss")
|
51
51
|
end
|
52
|
-
|
52
|
+
elsif $publishes == "every_wednesday"
|
53
53
|
if userDate.wednesday? == true
|
54
54
|
render :currentEdition
|
55
55
|
else
|
56
56
|
r(200, "Error 200. Nothing to report, boss")
|
57
57
|
end
|
58
|
-
|
58
|
+
elsif $publishes == "every_thursday"
|
59
59
|
if userDate.thursday? == true
|
60
60
|
render :currentEdition
|
61
61
|
else
|
62
62
|
r(200, "Error 200. Nothing to report, boss")
|
63
63
|
end
|
64
|
-
|
64
|
+
elsif $publishes == "every_friday"
|
65
65
|
if userDate.friday? == true
|
66
66
|
render :currentEdition
|
67
67
|
else
|
68
68
|
r(200, "Error 200. Nothing to report, boss")
|
69
69
|
end
|
70
|
-
|
70
|
+
elsif $publishes == "every_saturday"
|
71
71
|
if userDate.saturday? == true
|
72
72
|
render :currentEdition
|
73
73
|
else
|
74
74
|
r(200, "Error 200. Nothing to report, boss")
|
75
75
|
end
|
76
|
-
|
76
|
+
elsif $publishes == "every_sunday"
|
77
77
|
if userDate.sunday? == true
|
78
78
|
render :currentEdition
|
79
79
|
else
|
80
80
|
r(200, "Error 200. Nothing to report, boss")
|
81
81
|
end
|
82
|
-
|
82
|
+
elsif $publishes == "everyday"
|
83
83
|
render :currentEdition
|
84
|
-
|
84
|
+
elsif $publishes == "every_mwf"
|
85
85
|
if userDate.monday? == true or userDate.wednesday? == true or userDate.friday? == true
|
86
86
|
render :currentEdition
|
87
87
|
else
|
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.2.
|
4
|
+
version: 0.2.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -256,7 +256,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
256
256
|
version: '0'
|
257
257
|
segments:
|
258
258
|
- 0
|
259
|
-
hash: -
|
259
|
+
hash: -1976647262727418328
|
260
260
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
261
261
|
none: false
|
262
262
|
requirements:
|