csl 1.3.1 → 1.3.2

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: cab543528f090e62ec1de8296b73a9bed91f6753
4
- data.tar.gz: fe30a500160c78d30915572e95a95890817b6b5a
3
+ metadata.gz: 0e30d2946a20188221543f891c506525015d014d
4
+ data.tar.gz: 81aef0240b86caa2ad7d0cd18fe0922beb30d50f
5
5
  SHA512:
6
- metadata.gz: 6ed351e95b6bf9fdd3c38199f2197c9c6c3140ce1b5ad78e7da38be7b7f483c517d63b40acae8967dcfee622ed8cca34072628d75de1f1201a71c7106e9265f4
7
- data.tar.gz: e1c5ac96e6826f0178f34dc6dcfeb1b0a112e6b3011dc7925c61ae86954aff362bf924c586e2ea5947722f754aedf3fff3b0ab6b91775a32b00b711613617f85
6
+ metadata.gz: bbbfbb2549ab0f66796897d374d5e7a56541236670537c0cc390fdb11c93f9cb295bdc52e75bb606ffdbe0949c30aa67e50079ef82a4d759e216bce2cecb2a4f
7
+ data.tar.gz: a63a040322afce1fdb1784a8acd22979209416f8e38aa81f07d358c998a0374849de73ef4fde7679161e6a560ab8f54abcf4c342a990e69efa9651b8128bfdaa
data/README.md CHANGED
@@ -139,7 +139,7 @@ this project as part of [Google Summer of Code](https://developers.google.com/op
139
139
 
140
140
  Copyright
141
141
  ---------
142
- Copyright 2009-2014 Sylvester Keil. All rights reserved.
142
+ Copyright 2009-2015 Sylvester Keil. All rights reserved.
143
143
 
144
144
  Copyright 2012 President and Fellows of Harvard College.
145
145
 
@@ -145,7 +145,8 @@ module CSL
145
145
  end
146
146
 
147
147
  def load_related_style_from(uri)
148
- # TODO try local first
148
+ Style.load(File.basename(uri))
149
+ rescue CSL::ParseError
149
150
  Style.load(uri)
150
151
  end
151
152
 
@@ -363,6 +363,5 @@ module CSL
363
363
  class Substitute < Node
364
364
  end
365
365
 
366
-
367
366
  end
368
367
  end
@@ -1,3 +1,3 @@
1
1
  module CSL
2
- VERSION = '1.3.1'.freeze
2
+ VERSION = '1.3.2'.freeze
3
3
  end
@@ -98,6 +98,11 @@ module CSL
98
98
  it 'when setting an independet-parent link a style becomes dependent' do
99
99
  expect { @style.independent_parent_link = 'foo' }.to change { @style.independent? }
100
100
  end
101
+
102
+ it 'looks up independent styles parents locally first' do
103
+ @style.independent_parent_link = 'http://example.com/non-existent/styles/apa'
104
+ expect(@style.independent_parent).to eq Style.load('apa')
105
+ end
101
106
  end
102
107
 
103
108
  describe 'macros' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-27 00:00:00.000000000 Z
11
+ date: 2015-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: namae