magic_lamp 1.8.0 → 1.8.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: 1957d591851320510b8daeb8bef2a3278aef0deb
4
- data.tar.gz: 9bee7c895782c080098b23698e7f662843a77661
3
+ metadata.gz: f8dc581900d4c26990bd0fef41baac2233c957d6
4
+ data.tar.gz: e8e3c4e8118c825a209975f30a77b556da21238a
5
5
  SHA512:
6
- metadata.gz: d8592fc96c3eba5598b0b27cfc9f2ee5035aca267a2f689ea2e81955df8e5fb4cc1082a1106ec845a545c17ffdaa5355b73b6f826585a15aa5b205197a694020
7
- data.tar.gz: 0be0404f6eb9ee5e2e657e5daeea5cf9db4a0240be215c992cbc4c3409a01a2d6644184459c5662100df851037c218fe6ac7cca2cc89d08317697f28a8180d26
6
+ metadata.gz: 9a5f1989c92842bf26a32c5f8de0c743bb6b250f51e0e4dd2ee14fe002776b0b734a9730660609476560f61c98df8bf5a49ef320cdafceb77f2b52fe13037ef8
7
+ data.tar.gz: d31dc1da5f1fcbeb6f976d91489e02d9116d91c9b4c7205fe0ffb8dc20a79f495bd5a765871a9ea2cf3a27866688d7bdbd9bb02e881ed2ab0db00f52d23df392
@@ -1,9 +1,9 @@
1
- <% begin %>
2
-
1
+ <% json = MagicLamp.generate_all_fixtures.to_json rescue nil %>
2
+ <% if json %>
3
3
  MagicLamp.genie.cacheOnly = true;
4
- MagicLamp.genie.cache = <%= MagicLamp.generate_all_fixtures.to_json %>
4
+ MagicLamp.genie.cache = <%= json %>;
5
5
 
6
- <% rescue %>
6
+ <% else %>
7
7
 
8
8
  throw new Error(MagicLamp.genericError);
9
9
 
@@ -1,3 +1,3 @@
1
1
  module MagicLamp
2
- VERSION = "1.8.0"
2
+ VERSION = "1.8.1"
3
3
  end
@@ -27,6 +27,7 @@ describe "All fixtures js erb" do
27
27
 
28
28
  it "throws an error" do
29
29
  expect(subject).to match(/throw new Error\(MagicLamp.genericError\)/)
30
+ expect(subject).to_not match(/MagicLamp.genie/)
30
31
  end
31
32
  end
32
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_lamp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Crismali
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-05 00:00:00.000000000 Z
11
+ date: 2016-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails