live_paper 0.0.27 → 0.0.28

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8e506ee521e614012d2e33d930f8d399623cdb7
4
- data.tar.gz: 81a129d47d16a138d10542fe04c7f6ce78773b2a
3
+ metadata.gz: 9d8e85b4d1411632bd21583973f51f85b3cf51bd
4
+ data.tar.gz: 1745011dfe2dd65fe657dcb8d68148181c754d52
5
5
  SHA512:
6
- metadata.gz: edffcf5ba57cd5430bab1bb5c9e1283b9cde187e1f2f2807a0f47526bb4cee99284917a006f819d7763957eac0f4b2fb7b1d3625833d28744f726d88ef175458
7
- data.tar.gz: bf363c81984efdc320c8c63633ec660b24fefdfc8aa2dd592da6302c86fe9803cd5c05d2b01a46d9625e66515d7533614ad7ae6d2f5ac7d60c2c73635db85783
6
+ metadata.gz: 289a6bb4a5f101a53dd76a1720e3bb29ed99559cc99d0f5240d2ca8e7b95b82038690076a828774556a444aed86022312ca3f9a04b7fde671b9a899e4029dde3
7
+ data.tar.gz: f26ad8dcdb9c3ed95e97addb6b002e11c837b37bffe5689393cffdbf5dd70cf2dc922f8910ca1b5f58df925872fc831563069513976665d4832b000394faafd1
data/lib/live_paper.rb CHANGED
@@ -7,6 +7,7 @@ require "live_paper/wm_trigger"
7
7
  require "live_paper/qr_trigger"
8
8
  require "live_paper/short_trigger"
9
9
  require "live_paper/version"
10
+ require "live_paper/time_formats"
10
11
  require 'base64'
11
12
  require 'rest-client'
12
13
  require 'json'
@@ -0,0 +1,3 @@
1
+ Time::DATE_FORMATS[:live_paper_date_format] = lambda { |time|
2
+ time.strftime("%Y-%m-%dT%H:%M:%S.%3N#{time.formatted_offset(false)}")
3
+ }
@@ -33,18 +33,18 @@ module LivePaper
33
33
  end
34
34
 
35
35
  def default_start_date
36
- Time.now.iso8601
36
+ Time.now.to_s(:live_paper_date_format)
37
37
  end
38
38
 
39
39
  def default_end_date
40
- Time.now.advance(years: 1).iso8601
40
+ Time.now.advance(years: 1).to_s(:live_paper_date_format)
41
41
  end
42
42
 
43
43
  private
44
44
  def validate_attributes!
45
45
  raise ArgumentError, 'Required Attributes needed: name' unless all_present? [@name]
46
46
  end
47
-
47
+
48
48
  def update_body
49
49
  {
50
50
  trigger: {
@@ -1,3 +1,3 @@
1
1
  module LivePaper
2
- VERSION = "0.0.27"
2
+ VERSION = "0.0.28"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: live_paper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Whitmarsh
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-23 00:00:00.000000000 Z
12
+ date: 2015-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -143,6 +143,7 @@ files:
143
143
  - lib/live_paper/payoff.rb
144
144
  - lib/live_paper/qr_trigger.rb
145
145
  - lib/live_paper/short_trigger.rb
146
+ - lib/live_paper/time_formats.rb
146
147
  - lib/live_paper/trigger.rb
147
148
  - lib/live_paper/version.rb
148
149
  - lib/live_paper/wm_trigger.rb