alephant-preview 0.5.0 → 0.5.1

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: c87e2e7b9c82a52f83127e9357ef49697ba5ce50
4
- data.tar.gz: 22cb67ba4b3fb81dc64de8bbab95b1cc6c68f424
3
+ metadata.gz: 1285aa73f99b2ecfbdb541e5dcd11807a73a2052
4
+ data.tar.gz: 8a9d99f6dd7357681b43225ef7d68e62836cb100
5
5
  SHA512:
6
- metadata.gz: 2eba39230ac965cc3b43e5c4ecbec36b8f7d1bda50f82ad0d8e1649254e4b8932fe495aff1401bd4dbb929b334c45c0f6fc70cb02fa3ab7eb7c7eb956ebb47d4
7
- data.tar.gz: 74623ea9364a0dcb52534f56b374ae5bfc25e948b964e5cb812317f3a68a32277f6245f2e78cd52e88120e9587ec5cf2ef7df1f9a28706b3455b4371c2ab2853
6
+ metadata.gz: c33b89e90721efe4a2a92de6b75ec6e9813db0179cb04163e7a8255e9d109ca338ce4e1e0c32409992604944e5776aa4f0f2dcab22ea5100652cdfdf8d8d63f0
7
+ data.tar.gz: a3d32f53336f09a17081f223b169f9f9f5e7c2c051f84bb8b4417556d792544fa97de2dbce04e9529442b0182fe81f5dbf689bd09f8ca7a39aa7ff3af42d4277
@@ -128,7 +128,7 @@ module Alephant
128
128
  private
129
129
 
130
130
  def sequence_id
131
- Time.now.to_i
131
+ Time.now.to_s
132
132
  end
133
133
 
134
134
  def get_content_type(content)
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Preview
3
- VERSION = "0.5.0".freeze
3
+ VERSION = "0.5.1".freeze
4
4
  end
5
5
  end
@@ -6,7 +6,7 @@ describe Alephant::Preview::Server do
6
6
 
7
7
  describe "preview endpoint (GET /preview/{id}/{template}/{region}/{fixture})" do
8
8
  describe "content" do
9
- expected_time = 123_456_789
9
+ expected_time = "123456789"
10
10
 
11
11
  context "with valid data" do
12
12
  before(:each) do
@@ -39,7 +39,7 @@ describe Alephant::Preview::Server do
39
39
 
40
40
  describe "component endpoint (GET /component/{id}/{template}/{fixture})" do
41
41
  describe "content" do
42
- expected_time = 123_456_789
42
+ expected_time = "123456789"
43
43
 
44
44
  before(:each) do
45
45
  allow(Time).to receive(:now).and_return(expected_time)
@@ -117,7 +117,7 @@ describe Alephant::Preview::Server do
117
117
 
118
118
  describe 'component batch endpoint (GET /components/batch?components[#{id}]=#{id})' do
119
119
  describe "content" do
120
- expected_time = 123_456_789
120
+ expected_time = "123456789"
121
121
 
122
122
  before(:each) do
123
123
  allow(Time).to receive(:now).and_return(expected_time)
@@ -202,7 +202,7 @@ describe Alephant::Preview::Server do
202
202
 
203
203
  describe "component batch endpoint (POST /components/batch" do
204
204
  describe "content" do
205
- expected_time = 123_456_789
205
+ expected_time = "123456789"
206
206
 
207
207
  before(:each) do
208
208
  allow(Time).to receive(:now).and_return(expected_time)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BBC News