nanoc-bibtex 0.1.0 → 1.0.0

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: acde29f2f7793c1d99c26f544d6b3bcd614c773d
4
- data.tar.gz: ca204dc9ad0ce0f9d74fc61a8fdc65799139b5ce
3
+ metadata.gz: d28deb93980527badd37717b6f603e46d76e045e
4
+ data.tar.gz: 0c8f896e2638bbb0630183cad5071ebcb4256edf
5
5
  SHA512:
6
- metadata.gz: 0f943035bf64f32d484ff448c0f803cf50c2285e64878b90b5767f5be08b01d9581f49604c4a773250f1bf47e81c6a5ec59c6270d8f6143a4669ed2c249fdab0
7
- data.tar.gz: d2cdbdbd726dbeacec1ddb17de309e3a1daff1f9613b2dd7861a237ea4d831fe8eb5e95b3985ca3f5672ae730a25d46554c8fc5ed03e6afa6e843fa275328a7c
6
+ metadata.gz: 508b9d363f4e6b6cf3d44bf3096173fd009884771e794eae5afd6df6f5f3532f6125522aeaef15c1936e59495171589b1b2225e02414354e92e067bae3e078b0
7
+ data.tar.gz: 7db1834fa17f0566bf0907972a8d1e901cf1122efe599bd93bb4cfe6691eba2ed4c0c293f8be4d0db2a0584f50970086c5ffee7a2b896d396ed64dcea94978f9
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'nanoc', '~> 4.0'
4
- gem 'bibtex-ruby', '~> 4.1'
3
+ gem 'nanoc', '~> 4.2'
4
+ gem 'bibtex-ruby', '~> 4.4.1'
5
5
  gem 'latex-decode', '~> 0.2'
6
6
 
7
7
  group :development do
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 1.0.0
@@ -11,9 +11,12 @@ class BibtexDataSource < Nanoc::DataSource
11
11
 
12
12
  def items
13
13
  @files.map do |file|
14
+ stat = File.stat file
15
+ file_checksum = stat.size.to_s + '-' + stat.mtime.to_i.to_s
14
16
  entries = BibTeX.open(file)
15
17
  entries.map do |entry|
16
- new_item to_bibtex(entry), extract_attributes(entry), "/#{entry.key}"
18
+ new_item lambda { to_bibtex entry }, lambda { extract_attributes entry },
19
+ '/' + entry.key, checksum_data: file_checksum
17
20
  end
18
21
  end.flatten!
19
22
  end
@@ -34,7 +37,7 @@ class BibtexDataSource < Nanoc::DataSource
34
37
  end
35
38
 
36
39
  def extract_attributes entry
37
- entry = entry.convert :latex
40
+ entry = entry.convert(:latex) { |key| key != :url }
38
41
  attributes = {
39
42
  :bibtex => entry,
40
43
  :key => entry.key,
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: nanoc-bibtex 0.1.0 ruby lib
5
+ # stub: nanoc-bibtex 1.0.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "nanoc-bibtex"
9
- s.version = "0.1.0"
9
+ s.version = "1.0.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Ruben Verborgh"]
14
- s.date = "2015-12-29"
14
+ s.date = "2016-07-13"
15
15
  s.description = "BibTeX data source for nanoc."
16
16
  s.email = "ruben@verborgh.org"
17
17
  s.extra_rdoc_files = [
@@ -19,7 +19,6 @@ Gem::Specification.new do |s|
19
19
  ]
20
20
  s.files = [
21
21
  "Gemfile",
22
- "Gemfile.lock",
23
22
  "README.md",
24
23
  "Rakefile",
25
24
  "VERSION",
@@ -35,21 +34,21 @@ Gem::Specification.new do |s|
35
34
  s.specification_version = 4
36
35
 
37
36
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
38
- s.add_runtime_dependency(%q<nanoc>, ["~> 4.0"])
39
- s.add_runtime_dependency(%q<bibtex-ruby>, ["~> 4.1"])
37
+ s.add_runtime_dependency(%q<nanoc>, ["~> 4.2"])
38
+ s.add_runtime_dependency(%q<bibtex-ruby>, ["~> 4.4.1"])
40
39
  s.add_runtime_dependency(%q<latex-decode>, ["~> 0.2"])
41
40
  s.add_development_dependency(%q<bundler>, ["~> 1.0"])
42
41
  s.add_development_dependency(%q<jeweler>, ["~> 2.0"])
43
42
  else
44
- s.add_dependency(%q<nanoc>, ["~> 4.0"])
45
- s.add_dependency(%q<bibtex-ruby>, ["~> 4.1"])
43
+ s.add_dependency(%q<nanoc>, ["~> 4.2"])
44
+ s.add_dependency(%q<bibtex-ruby>, ["~> 4.4.1"])
46
45
  s.add_dependency(%q<latex-decode>, ["~> 0.2"])
47
46
  s.add_dependency(%q<bundler>, ["~> 1.0"])
48
47
  s.add_dependency(%q<jeweler>, ["~> 2.0"])
49
48
  end
50
49
  else
51
- s.add_dependency(%q<nanoc>, ["~> 4.0"])
52
- s.add_dependency(%q<bibtex-ruby>, ["~> 4.1"])
50
+ s.add_dependency(%q<nanoc>, ["~> 4.2"])
51
+ s.add_dependency(%q<bibtex-ruby>, ["~> 4.4.1"])
53
52
  s.add_dependency(%q<latex-decode>, ["~> 0.2"])
54
53
  s.add_dependency(%q<bundler>, ["~> 1.0"])
55
54
  s.add_dependency(%q<jeweler>, ["~> 2.0"])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nanoc-bibtex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Verborgh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-29 00:00:00.000000000 Z
11
+ date: 2016-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nanoc
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: '4.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: '4.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bibtex-ruby
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '4.1'
33
+ version: 4.4.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '4.1'
40
+ version: 4.4.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: latex-decode
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -88,7 +88,6 @@ extra_rdoc_files:
88
88
  - README.md
89
89
  files:
90
90
  - Gemfile
91
- - Gemfile.lock
92
91
  - README.md
93
92
  - Rakefile
94
93
  - VERSION
@@ -1,70 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- addressable (2.4.0)
5
- bibtex-ruby (4.1.0)
6
- latex-decode (~> 0.0)
7
- builder (3.2.2)
8
- colored (1.2)
9
- cri (2.7.0)
10
- colored (~> 1.2)
11
- descendants_tracker (0.0.4)
12
- thread_safe (~> 0.3, >= 0.3.1)
13
- faraday (0.9.2)
14
- multipart-post (>= 1.2, < 3)
15
- git (1.2.9.1)
16
- github_api (0.13.1)
17
- addressable (~> 2.4.0)
18
- descendants_tracker (~> 0.0.4)
19
- faraday (~> 0.8, < 0.10)
20
- hashie (>= 3.4)
21
- multi_json (>= 1.7.5, < 2.0)
22
- oauth2
23
- hashie (3.4.3)
24
- highline (1.7.8)
25
- jeweler (2.0.1)
26
- builder
27
- bundler (>= 1.0)
28
- git (>= 1.2.5)
29
- github_api
30
- highline (>= 1.6.15)
31
- nokogiri (>= 1.5.10)
32
- rake
33
- rdoc
34
- json (1.8.3)
35
- jwt (1.5.2)
36
- latex-decode (0.2.2)
37
- unicode (~> 0.4)
38
- mini_portile2 (2.0.0)
39
- multi_json (1.11.2)
40
- multi_xml (0.5.5)
41
- multipart-post (2.0.0)
42
- nanoc (4.1.0)
43
- cri (~> 2.3)
44
- nokogiri (1.6.7.1)
45
- mini_portile2 (~> 2.0.0.rc2)
46
- oauth2 (1.0.0)
47
- faraday (>= 0.8, < 0.10)
48
- jwt (~> 1.0)
49
- multi_json (~> 1.3)
50
- multi_xml (~> 0.5)
51
- rack (~> 1.2)
52
- rack (1.6.4)
53
- rake (10.4.2)
54
- rdoc (4.2.1)
55
- json (~> 1.4)
56
- thread_safe (0.3.5)
57
- unicode (0.4.4.2)
58
-
59
- PLATFORMS
60
- ruby
61
-
62
- DEPENDENCIES
63
- bibtex-ruby (~> 4.1)
64
- bundler (~> 1.0)
65
- jeweler (~> 2.0)
66
- latex-decode (~> 0.2)
67
- nanoc (~> 4.0)
68
-
69
- BUNDLED WITH
70
- 1.11.2