bergamasco 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d0569cf27c3e1b39f7f627e8e444904c4d559ac
4
- data.tar.gz: b35abe4ff49c530007e5b67648d0d5fba612334f
3
+ metadata.gz: bab2a523e6d708cc3f80f2f6a4a81f161d10a2ce
4
+ data.tar.gz: 264b2d00c746d8ab174447639cd0d5c796263305
5
5
  SHA512:
6
- metadata.gz: ca6e9010494aa2cd9a0e1fbf8a0ea371a40fc074ea5ec5616e079211baa171961cc02ee1f52594b6957f18f9a74a3de50dd0ec9035d801a0ed16fb7061eea825
7
- data.tar.gz: 7ac8ff15b82f376686abd7c50a6c604165542a511b3613eb1e2ead5321597f83f92e827ebae5c8d1452c4e7ab492fdc5d73077f5dfbd0a2629dfdff6658acb8d
6
+ metadata.gz: abfa5c244bf6e5c0e5340c9009ad4c09585880227429262c40776fc3c6996f250c34f0a90f8e6c10a11ae66e058b6ca3b31dd9226c9d03187330ae27a8109101
7
+ data.tar.gz: 206e78f00a3039ffdc8179f0d5044ab0a18e3af1ac13cfeb57979d60775031fee558aa854e6b3bd4f433cd3cc87033b47e54f0012b9a3efd7701173f2f7fa937
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bergamasco (0.2.4)
4
+ bergamasco (0.2.5)
5
5
  activesupport (~> 4.2, >= 4.2.5)
6
6
  addressable (~> 2.3.8)
7
7
  builder (~> 3.2, >= 3.2.2)
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_dependency 'nokogiri', '~> 1.6.7'
22
22
  s.add_dependency 'loofah', '~> 2.0', '>= 2.0.3'
23
- s.add_dependency "pandoc-ruby", '~> 2.0', '>= 2.0.0'
23
+ s.add_dependency 'pandoc-ruby', '~> 2.0', '>= 2.0.0'
24
24
  s.add_dependency 'commonmarker', '~> 0.14.0'
25
25
  s.add_dependency 'builder', '~> 3.2', '>= 3.2.2'
26
26
  s.add_dependency 'multi_json', '~> 1.11.2'
@@ -69,6 +69,13 @@ module Bergamasco
69
69
  CommonMarker.render_html(text, :default)
70
70
  end
71
71
 
72
+ def self.write_bibliograpy_to_yaml(bib_path, yaml_path)
73
+ yaml = `pandoc-citeproc --bib2yaml #{bib_path} 2>&1`
74
+ return nil if $?.exitstatus > 0
75
+ IO.write(yaml_path, yaml)
76
+ SafeYAML.load(yaml)
77
+ end
78
+
72
79
  # expects a references list generated by pandoc
73
80
  def self.extract_references(html)
74
81
  doc = Nokogiri::HTML(html)
@@ -1,3 +1,3 @@
1
1
  module Bergamasco
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
File without changes
@@ -0,0 +1,1075 @@
1
+ ---
2
+ references:
3
+ - id: http://doi.org/10.5281/zenodo.32412
4
+ type: article-journal
5
+ author:
6
+ - family: Mayo
7
+ given: Christine
8
+ - family: Hull
9
+ given: Elizabeth A.
10
+ - family: Vision
11
+ given: Todd J.
12
+ issued:
13
+ - year: '2015'
14
+ title: '<span class="nocase">The location of the citation: changing practices
15
+ in how publications cite original data in the Dryad Digital Repository</span>'
16
+ publisher: Zenodo
17
+ URL: http://zenodo.org/record/32412
18
+ DOI: 10.5281/zenodo.32412
19
+
20
+ - id: Kratz:2015cr
21
+ type: article-journal
22
+ author:
23
+ - family: Kratz
24
+ given: John E
25
+ - family: Strasser
26
+ given: Carly
27
+ issued:
28
+ - year: '2015'
29
+ month: '8'
30
+ title: <span class="nocase">Making data count</span>
31
+ container-title: Scientific Data
32
+ page: '150039'
33
+ volume: '2'
34
+ URL: http://www.nature.com/articles/sdata201539
35
+ DOI: 10.1038/sdata.2015.39
36
+
37
+ - id: Eysenbach:2006jo
38
+ type: article-journal
39
+ author:
40
+ - family: Eysenbach
41
+ given: Gunther
42
+ issued:
43
+ - year: '2006'
44
+ month: '5'
45
+ title: <span class="nocase">Citation advantage of open access articles.</span>
46
+ container-title: PLoS biology
47
+ page: 'e157'
48
+ volume: '4'
49
+ issue: '5'
50
+ URL: http://eutils.ncbi.nlm.nih.gov/entrez/eutils/elink.fcgi?dbfrom=pubmed&id=16683865&retmode=ref&cmd=prlinks
51
+ DOI: 10.1371/journal.pbio.0040157
52
+ PMCID: PMC1459247
53
+ PMID: '16683865'
54
+
55
+ - id: Piwowar:2013cc
56
+ type: article-journal
57
+ author:
58
+ - family: Piwowar
59
+ given: Heather A
60
+ - family: Vision
61
+ given: Todd J
62
+ issued:
63
+ - year: '2013'
64
+ title: <span class="nocase">Data reuse and the open data citation advantage</span>
65
+ container-title: PeerJ
66
+ page: 'e175'
67
+ volume: '1'
68
+ DOI: 10.7717/peerj.175
69
+
70
+ - id: Irisarri:2013
71
+ type: dataset
72
+ author:
73
+ - family: Irisarri
74
+ given: Iker
75
+ - family: San Mauro
76
+ given: Diego
77
+ - family: Abascal
78
+ given: Federico
79
+ - family: Ohler
80
+ given: Annemarie
81
+ - family: Vences
82
+ given: Miguel
83
+ - family: Zardoya
84
+ given: Rafael
85
+ issued:
86
+ - year: '2013'
87
+ title: 'Data from: The origin of modern frogs (neobatrachia) was accompanied by
88
+ acceleration in mitochondrial and nuclear substitution rates'
89
+ title-short: Data from
90
+ publisher: Dryad Digital Repository
91
+ URL: http://doi.org/10.5061/DRYAD.3QD54
92
+ DOI: 10.5061/DRYAD.3QD54
93
+
94
+ - id: Irisarri:2012gv
95
+ type: article-journal
96
+ author:
97
+ - family: Irisarri
98
+ given: Iker
99
+ - family: San Mauro
100
+ given: Diego
101
+ - family: Abascal
102
+ given: Federico
103
+ - family: Ohler
104
+ given: Annemarie
105
+ - family: Vences
106
+ given: Miguel
107
+ - family: Zardoya
108
+ given: Rafael
109
+ issued:
110
+ - year: '2012'
111
+ title: <span class="nocase">The origin of modern frogs (Neobatrachia) was accompanied
112
+ by acceleration in mitochondrial and nuclear substitution rates.</span>
113
+ container-title: BMC genomics
114
+ page: '626'
115
+ volume: '13'
116
+ URL: http://www.biomedcentral.com/1471-2164/13/626/
117
+ DOI: 10.1186/1471-2164-13-626
118
+ PMCID: PMC3551647
119
+ PMID: '23153022'
120
+
121
+ - id: https://doi.org/10.5281/ZENODO.20046
122
+ type: dataset
123
+ author:
124
+ - family: Fenner
125
+ given: Martin
126
+ - family: Jen Song
127
+ given: Jen
128
+ - family: Dennis
129
+ given: Zach
130
+ - family: Whitwell
131
+ given: Martyn
132
+ - family: Osowski
133
+ given: Joe
134
+ - family: Ivimey-Cook
135
+ given: Ruth
136
+ - family: Cave
137
+ given: Richard
138
+ - family: Lin
139
+ given: Jennifer
140
+ - family: Chodacki
141
+ given: John
142
+ issued:
143
+ - year: '2015'
144
+ title: Lagotto 4.2.1
145
+ publisher: Zenodo
146
+ URL: https://doi.org/10.5281/ZENODO.20046
147
+
148
+ - id: Barlow:1818
149
+ type: dataset
150
+ author:
151
+ - family: Barlow
152
+ given: Chester
153
+ issued:
154
+ - year: '1818'
155
+ title: Pilot boat \#3, on the bar
156
+ publisher: Museum of Vertebrate Zoology
157
+ URL: http://doi.org/10.7299/X7MK6BM6
158
+ DOI: 10.7299/X7MK6BM6
159
+
160
+ - id: Oshu:1955
161
+ type: dataset
162
+ author:
163
+ - family: Oregon Medical School
164
+ given: University
165
+ dropping-particle: of
166
+ issued:
167
+ - year: '1955'
168
+ title: Unidentified man reading a book in the old library
169
+ publisher: Oregon Health & Science University
170
+ URL: http://doi.org/10.6083/M4MP51XQ
171
+ DOI: 10.6083/M4MP51XQ
172
+
173
+ - id: Unknown:1926
174
+ type: dataset
175
+ author:
176
+ - family: Unknown
177
+ issued:
178
+ - year: '1926'
179
+ title: Workmen digging up the road at the corner of belmont avenue and burhans street
180
+ in paterson, new jersey
181
+ URL: http://doi.org/10.7282/T38C9WT9
182
+ DOI: 10.7282/T38C9WT9
183
+
184
+ - id: https://orcid.org/about/what-is-orcid/principles
185
+ type: no-type
186
+ issued:
187
+ - year: '2011'
188
+ title: Our principles
189
+ publisher: ORCID
190
+ URL: https://orcid.org/about/what-is-orcid/principles
191
+
192
+ - id: https://doi.org/10.3932/ETHZ-A-000159123
193
+ type: no-type
194
+ author:
195
+ - family: Unknown
196
+ issued:
197
+ - year: '1931'
198
+ title: Hannover, blick auf hannover
199
+ publisher: ETH-Bibliothek Zürich, Bildarchiv
200
+ URL: https://doi.org/10.3932/ETHZ-A-000159123
201
+ DOI: 10.3932/ETHZ-A-000159123
202
+
203
+ - id: https://doi.org/10.5281/ZENODO.30799
204
+ type: no-type
205
+ author:
206
+ - family: Fenner
207
+ given: Martin
208
+ - family: Demeranville
209
+ given: Tom
210
+ - family: Kotarski
211
+ given: Rachael
212
+ - family: Vision
213
+ given: Todd
214
+ - family: Rueda
215
+ given: Laura
216
+ - family: Dasler
217
+ given: Robin
218
+ - family: Haak
219
+ given: Laure
220
+ - family: Cruse
221
+ given: Patricia
222
+ - literal: THOR Consortium
223
+ issued:
224
+ - year: '2015'
225
+ title: 'D2.1: Artefact, contributor, and organisation relationship data schema'
226
+ title-short: D2.1
227
+ publisher: Zenodo
228
+ URL: https://doi.org/10.5281/ZENODO.30799
229
+ DOI: 10.5281/ZENODO.30799
230
+
231
+ - id: https://doi.org/10.6084/M9.FIGSHARE.1314859
232
+ type: no-type
233
+ author:
234
+ - family: Bilder
235
+ given: Geoffrey
236
+ - family: Lin
237
+ given: Jennifer
238
+ - family: Neylon
239
+ given: Cameron
240
+ issued:
241
+ - year: '2015'
242
+ title: Principles for open scholarly infrastructures-v1
243
+ publisher: Figshare
244
+ URL: https://doi.org/10.6084/M9.FIGSHARE.1314859
245
+
246
+ - id: https://doi.org/10.5281/zenodo.34671
247
+ type: no-type
248
+ author:
249
+ - family: Rueda
250
+ given: Laura
251
+ issued:
252
+ - year: '2015'
253
+ title: <span class="nocase">DataCite Profiles and ORCID Auto-Update, an Introduction
254
+ to DataCite</span>
255
+ publisher: Zenodo
256
+ URL: https://doi.org/10.5281/zenodo.34671
257
+
258
+ - id: https://doi.org/10.5281/zenodo.34670
259
+ type: no-type
260
+ author:
261
+ - family: Brown
262
+ given: Josh
263
+ issued:
264
+ - year: '2015'
265
+ title: <span class="nocase">DataCite/ORCID auto-update and inbox, all you need to
266
+ know</span>
267
+ publisher: Zenodo
268
+ URL: https://doi.org/10.5281/zenodo.34670
269
+
270
+ - id: https://doi.org/10.5281/zenodo.34673
271
+ type: no-type
272
+ author:
273
+ - family: Fenner
274
+ given: Martin
275
+ issued:
276
+ - year: '2015'
277
+ title: DataCite/ORCID integration
278
+ publisher: Zenodo
279
+ URL: https://doi.org/10.5281/zenodo.34673
280
+
281
+ - id: https://doi.org/10.5334/jors.be
282
+ type: article-journal
283
+ author:
284
+ - family: Katz
285
+ given: Daniel
286
+ issued:
287
+ - year: '2014'
288
+ month: '9'
289
+ title: Transitive credit as a means to address social and technological concerns
290
+ stemming from citation and attribution of digital products
291
+ container-title: Journal of Open Research Software
292
+ publisher: Ubiquity Press, Ltd.
293
+ page: 'e20'
294
+ volume: '2'
295
+ issue: '1'
296
+ URL: https://doi.org/10.5334/jors.be
297
+
298
+ - id: https://doi.org/10.5281/zenodo.31780
299
+ type: no-type
300
+ author:
301
+ - family: Bilder
302
+ given: Geoffrey
303
+ - family: Fenner
304
+ given: Martin
305
+ issued:
306
+ - year: '2015'
307
+ title: DOI myths... busted
308
+ publisher: Zenodo
309
+ URL: https://doi.org/10.5281/zenodo.31780
310
+
311
+ - id: https://doi.org/10.5281/zenodo.31782
312
+ type: no-type
313
+ author:
314
+ - family: Angjeli
315
+ given: Anila
316
+ issued:
317
+ - year: '2015'
318
+ title: 'Managing identities: Interconnecting research and other domains'
319
+ title-short: Managing identities
320
+ publisher: Zenodo
321
+ URL: https://doi.org/10.5281/zenodo.31782
322
+
323
+ - id: https://doi.org/10.5281/zenodo.31783
324
+ type: no-type
325
+ author:
326
+ - family: Kunze
327
+ given: John
328
+ issued:
329
+ - year: '2015'
330
+ title: 'Names, things, and open identifier infrastructure: N2T and aRKs'
331
+ title-short: Names, things, and open identifier infrastructure
332
+ publisher: Zenodo
333
+ URL: https://doi.org/10.5281/zenodo.31783
334
+
335
+ - id: https://doi.org/10.5281/zenodo.31784
336
+ type: no-type
337
+ author:
338
+ - family: Lannom
339
+ given: Larry
340
+ issued:
341
+ - year: '2015'
342
+ title: DONA foundation, administering the global handle registry (gHR)
343
+ publisher: Zenodo
344
+ URL: https://doi.org/10.5281/zenodo.31784
345
+
346
+ - id: https://doi.org/10.5281/zenodo.31785
347
+ type: no-type
348
+ author:
349
+ - family: Schwardmann
350
+ given: Ulrich
351
+ issued:
352
+ - year: '2015'
353
+ title: EPIC - persistent identifiers for eResearch
354
+ publisher: Zenodo
355
+ URL: https://doi.org/10.5281/zenodo.31785
356
+
357
+ - id: https://doi.org/10.5281/zenodo.31786
358
+ type: no-type
359
+ author:
360
+ - family: Cambon-Thomsen
361
+ given: Anne
362
+ issued:
363
+ - year: '2015'
364
+ title: 'BRIF: Bioresource research impact factor (framework)'
365
+ title-short: BRIF
366
+ publisher: Zenodo
367
+ URL: https://doi.org/10.5281/zenodo.31786
368
+
369
+ - id: https://doi.org/10.5281/zenodo.31787
370
+ type: no-type
371
+ author:
372
+ - family: Dallmeier-Thiessen
373
+ given: Sünje
374
+ issued:
375
+ - year: '2015'
376
+ title: Enabling services for data intensive research with tHOR
377
+ publisher: Zenodo
378
+ URL: https://doi.org/10.5281/zenodo.31787
379
+
380
+ - id: https://doi.org/10.5281/zenodo.31788
381
+ type: no-type
382
+ author:
383
+ - family: Lehnert
384
+ given: Kerstin
385
+ issued:
386
+ - year: '2015'
387
+ title: 'IGSN: International geo sample number. unambiguous citation of physical
388
+ samples'
389
+ title-short: IGSN
390
+ publisher: Zenodo
391
+ URL: https://doi.org/10.5281/zenodo.31788
392
+
393
+ - id: https://doi.org/10.5281/zenodo.31789
394
+ type: no-type
395
+ author:
396
+ - family: Lin
397
+ given: Jennifer
398
+ issued:
399
+ - year: '2015'
400
+ title: Making data count
401
+ publisher: Zenodo
402
+ URL: https://doi.org/10.5281/zenodo.31789
403
+
404
+ - id: https://doi.org/10.5281/zenodo.31790
405
+ type: no-type
406
+ author:
407
+ - family: Weigel
408
+ given: Tobias
409
+ issued:
410
+ - year: '2015'
411
+ title: PID usage at dKRZ, the role of rDA and ePIC policies
412
+ publisher: Zenodo
413
+ URL: https://doi.org/10.5281/zenodo.31790
414
+
415
+ - id: https://doi.org/10.5281/zenodo.31792
416
+ type: no-type
417
+ author:
418
+ - family: Paglione
419
+ given: Laura
420
+ issued:
421
+ - year: '2015'
422
+ title: Connecting people to their scholarly activity and outputs
423
+ publisher: Zenodo
424
+ URL: https://doi.org/10.5281/zenodo.31792
425
+
426
+ - id: https://vimeo.com/147743305
427
+ type: no-type
428
+ author:
429
+ - family: Rueda
430
+ given: Laura
431
+ - family: Brown
432
+ given: Josh
433
+ - family: Fenner
434
+ given: Martin
435
+ issued:
436
+ - year: '2015'
437
+ title: DataCite profiles and oRCID auto-update
438
+ publisher: DataCite
439
+ URL: https://vimeo.com/147743305
440
+
441
+ - id: https://blog.datacite.org/data-driven-development
442
+ type: no-type
443
+ author:
444
+ - family: Fenner
445
+ given: Martin
446
+ issued:
447
+ - year: '2015'
448
+ title: Data-driven development
449
+ publisher: DataCite Blog
450
+ URL: https://blog.datacite.org/data-driven-development
451
+
452
+ - id: https://blog.datacite.org/explaining-the-datacite-orcid-auto-update
453
+ type: no-type
454
+ author:
455
+ - family: Fenner
456
+ given: Martin
457
+ issued:
458
+ - year: '2015'
459
+ title: Explaining the dataCite/ORCID auto-update
460
+ publisher: DataCite Blog
461
+ URL: https://blog.datacite.org/explaining-the-datacite-orcid-auto-update
462
+
463
+ - id: https://blog.datacite.org/adding-references-to-the-datacite-blog
464
+ type: no-type
465
+ author:
466
+ - family: Fenner
467
+ given: Martin
468
+ issued:
469
+ - year: '2015'
470
+ title: Adding references to the DataCite blog
471
+ publisher: DataCite Blog
472
+ URL: https://blog.datacite.org/adding-references-to-the-datacite-blog
473
+
474
+ - id: https://blog.datacite.org/recap
475
+ type: no-type
476
+ author:
477
+ - family: Cruse
478
+ given: Trisha
479
+ issued:
480
+ - year: '2015'
481
+ title: 'Recap: Persistent identifiers in Paris'
482
+ title-short: Recap
483
+ publisher: DataCite Blog
484
+ URL: https://blog.datacite.org/recap
485
+
486
+ - id: http://doi.org/10.2312/RE3.008
487
+ type: article-journal
488
+ author:
489
+ - family: Rücknagel
490
+ given: Jessika
491
+ - family: Vierkant
492
+ given: Paul
493
+ - family: Ulrich
494
+ given: Robert
495
+ - family: Kloska
496
+ given: Gabriele
497
+ - family: Schnepf
498
+ given: Edeltraud
499
+ - family: Fichtmüller
500
+ given: David
501
+ - family: Reuter
502
+ given: Evelyn
503
+ - family: Semrau
504
+ given: Angelika
505
+ - family: Kindling
506
+ given: Maxi
507
+ - family: Pampel
508
+ given: H.
509
+ - family: Witt
510
+ given: Michael
511
+ - family: Fritze
512
+ given: Florian
513
+ - family: Sandt
514
+ given: Stephanie
515
+ dropping-particle: van de
516
+ - family: Klump
517
+ given: Jens
518
+ - family: Goebelbecker
519
+ given: Hans-Jürgen
520
+ - family: Skarupianski
521
+ given: Michael
522
+ - family: Bertelmann
523
+ given: Roland
524
+ - family: Schirmbacher
525
+ given: Peter
526
+ - family: Scholze
527
+ given: Frank
528
+ - family: Kramer
529
+ given: Claudia
530
+ - family: Fuchs
531
+ given: Claudio
532
+ - family: Spier
533
+ given: Shaked
534
+ - family: Kirchhoff
535
+ given: Agnes
536
+ issued:
537
+ - year: '2015'
538
+ title: Metadata schema for the description of research data repositories
539
+ publisher: GFZ Germans Research Center for Geosciences
540
+ URL: http://doi.org/10.2312/RE3.008
541
+
542
+ - id: http://doi.org/10.1103/physrevlett.116.061102
543
+ type: article-journal
544
+ author:
545
+ - family: Abbott
546
+ given: B.P.
547
+ - family: Abbott
548
+ given: R.
549
+ - family: Abbott
550
+ given: T.D.
551
+ - family: Abernathy
552
+ given: M. R.
553
+ - family: Acernese
554
+ given: F.
555
+ - family: Ackley
556
+ given: K.
557
+ - family: Adams
558
+ given: C.
559
+ - family: Adams
560
+ given: T.
561
+ - family: Addesso
562
+ given: P.
563
+ - family: Zweizig
564
+ given: J.
565
+ issued:
566
+ - year: '2016'
567
+ month: '2'
568
+ title: Observation of gravitational waves from a binary black hole merger
569
+ container-title: Phys. Rev. Lett.
570
+ publisher: American Physical Society (APS)
571
+ volume: '116'
572
+ issue: '6'
573
+ URL: http://doi.org/10.1103/physrevlett.116.061102
574
+
575
+ - id: http://doi.org/10.7935/K5MW2F23
576
+ type: dataset
577
+ author:
578
+ - literal: LIGO Scientific Collaboration
579
+ issued:
580
+ - year: '2016'
581
+ title: Data release for event gW150914
582
+ publisher: LIGO Scientific Collaboration
583
+ URL: http://doi.org/10.7935/K5MW2F23
584
+
585
+ - id: http://doi.org/10.7484/INSPIREHEP.DATA.26B4.TY5F
586
+ type: dataset
587
+ author:
588
+ - family: Aad
589
+ given: Georges
590
+ - family: Abajyan
591
+ given: Tatevik
592
+ - family: Abbott
593
+ given: Brad
594
+ - family: Abdallah
595
+ given: Jalal
596
+ - family: Abdel Khalek
597
+ given: Samah
598
+ - family: Abdinov
599
+ given: Ovsat
600
+ - family: Aben
601
+ given: Rosemarie
602
+ - family: Abi
603
+ given: Babak
604
+ - family: Abolins
605
+ given: Maris
606
+ - family: Zwalinski
607
+ given: Lukasz
608
+ issued:
609
+ - year: '2013'
610
+ title: 'Data from figure 7 from: Measurements of higgs boson production and couplings
611
+ in diboson final states with the aTLAS detector at the lHC'
612
+ title-short: Data from figure 7 from
613
+ publisher: HEPDATA
614
+ URL: http://doi.org/10.7484/INSPIREHEP.DATA.26B4.TY5F
615
+
616
+ - id: http://doi.org/10.7484/INSPIREHEP.DATA.RF5P.6M3K
617
+ type: dataset
618
+ author:
619
+ - family: Aad
620
+ given: Georges
621
+ - family: Abajyan
622
+ given: Tatevik
623
+ - family: Abbott
624
+ given: Brad
625
+ - family: Abdallah
626
+ given: Jalal
627
+ - family: Abdel Khalek
628
+ given: Samah
629
+ - family: Abdinov
630
+ given: Ovsat
631
+ - family: Aben
632
+ given: Rosemarie
633
+ - family: Abi
634
+ given: Babak
635
+ - family: Abolins
636
+ given: Maris
637
+ - family: Zwalinski
638
+ given: Lukasz
639
+ issued:
640
+ - year: '2013'
641
+ title: 'Data from figure 7 from: Measurements of higgs boson production and couplings
642
+ in diboson final states with the aTLAS detector at the lHC'
643
+ title-short: Data from figure 7 from
644
+ publisher: HEPDATA
645
+ URL: http://doi.org/10.7484/INSPIREHEP.DATA.RF5P.6M3K
646
+
647
+ - id: http://doi.org/10.7484/INSPIREHEP.DATA.A78C.HK44
648
+ type: dataset
649
+ author:
650
+ - family: Aad
651
+ given: Georges
652
+ - family: Abajyan
653
+ given: Tatevik
654
+ - family: Abbott
655
+ given: Brad
656
+ - family: Abdallah
657
+ given: Jalal
658
+ - family: Abdel Khalek
659
+ given: Samah
660
+ - family: Abdinov
661
+ given: Ovsat
662
+ - family: Aben
663
+ given: Rosemarie
664
+ - family: Abi
665
+ given: Babak
666
+ - family: Abolins
667
+ given: Maris
668
+ - family: Zwalinski
669
+ given: Lukasz
670
+ issued:
671
+ - year: '2013'
672
+ title: 'Data from figure 7 from: Measurements of higgs boson production and couplings
673
+ in diboson final states with the aTLAS detector at the lHC'
674
+ title-short: Data from figure 7 from
675
+ publisher: HEPDATA
676
+ URL: http://doi.org/10.7484/INSPIREHEP.DATA.A78C.HK44
677
+
678
+ - id: http://doi.org/10.5438/0010
679
+ type: article-journal
680
+ author:
681
+ - literal: DataCite Metadata Working Group
682
+ issued:
683
+ - year: '2014'
684
+ title: DataCite metadata schema for the publication and citation of research data
685
+ v3.1
686
+ publisher: DataCite e.V.
687
+ URL: http://doi.org/10.5438/0010
688
+
689
+ - id: http://doi.org/10.5281/ZENODO.49516
690
+ type: no-type
691
+ author:
692
+ - family: Fenner
693
+ given: Martin
694
+ - family: Wass
695
+ given: Joe
696
+ - family: Song
697
+ given: Jen
698
+ - family: Dennis
699
+ given: Zach
700
+ - family: Whitwell
701
+ given: Martyn
702
+ - family: Osowski
703
+ given: Joe
704
+ - family: Ivimey-Cook
705
+ given: Ruth
706
+ - family: Cave
707
+ given: Richard
708
+ - family: Lin
709
+ given: Jennifer
710
+ - family: Chodacki
711
+ given: John
712
+ issued:
713
+ - year: '2016'
714
+ title: Lagotto 5.0.1
715
+ publisher: Zenodo
716
+ URL: http://doi.org/10.5281/ZENODO.49516
717
+
718
+ - id: http://doi.org/10.3334/CDIAC/00001
719
+ type: dataset
720
+ author:
721
+ - literal: Environmental Sciences Division, Oak Ridge National Laboratory
722
+ issued:
723
+ - year: '2009'
724
+ title: Global, regional, and national fossil-fuel cO2 emissions
725
+ publisher: Carbon Dioxide Information Analysis Center (CDIAC)
726
+ URL: http://doi.org/10.3334/CDIAC/00001
727
+
728
+ - id: https://blog.datacite.org/to-better-understand-research-communication-we-need-a-groid-group-object-identifier
729
+ type: no-type
730
+ author:
731
+ - family: Katz
732
+ given: Dan S.
733
+ issued:
734
+ - year: '2016'
735
+ title: To better understand research communication, we need a gROID (group object
736
+ identifier)
737
+ publisher: DataCite Blog
738
+ URL: https://blog.datacite.org/to-better-understand-research-communication-we-need-a-groid-group-object-identifier
739
+
740
+ - id: https://blog.datacite.org/reference-lists-and-tables-of-content
741
+ type: no-type
742
+ author:
743
+ - family: Fenner
744
+ given: Martin
745
+ issued:
746
+ - year: '2015'
747
+ title: Reference lists and tables of content
748
+ publisher: DataCite Blog
749
+ URL: https://blog.datacite.org/reference-lists-and-tables-of-content
750
+
751
+ - id: https://figshare.com/blog/Unveiling_figshare_Collections_a_new_way_to_group_content/202
752
+ type: no-type
753
+ author:
754
+ - family: Hyndman
755
+ given: Alan
756
+ issued:
757
+ - year: '2016'
758
+ title: Unveiling figshare ’collections’ - a new way to group content
759
+ publisher: Figshare Blog
760
+ URL: https://figshare.com/blog/Unveiling_figshare_Collections_a_new_way_to_group_content/202
761
+
762
+ - id: http://doi.org/10.15252/msb.20156658
763
+ type: article-journal
764
+ author:
765
+ - family: McEntyre
766
+ given: J.
767
+ - family: Sarkans
768
+ given: U.
769
+ - family: Brazma
770
+ given: A.
771
+ issued:
772
+ - year: '2015'
773
+ month: '12'
774
+ title: The BioStudies database
775
+ container-title: Molecular Systems Biology
776
+ publisher: EMBO
777
+ page: '847-847'
778
+ volume: '11'
779
+ issue: '12'
780
+ URL: http://doi.org/10.15252/msb.20156658
781
+ DOI: 10.15252/msb.20156658
782
+
783
+ - id: http://doi.org/10.7717/peerj-cs.1
784
+ type: article-journal
785
+ author:
786
+ - family: Starr
787
+ given: Joan
788
+ - family: Castro
789
+ given: Eleni
790
+ - family: Crosas
791
+ given: Mercè
792
+ - family: Dumontier
793
+ given: Michel
794
+ - family: Downs
795
+ given: Robert R.
796
+ - family: Duerr
797
+ given: Ruth
798
+ - family: Haak
799
+ given: Laurel L.
800
+ - family: Haendel
801
+ given: Melissa
802
+ - family: Herman
803
+ given: Ivan
804
+ - family: Hodson
805
+ given: Simon
806
+ - family: Hourclé
807
+ given: Joe
808
+ - family: Kratz
809
+ given: John Ernest
810
+ - family: Lin
811
+ given: Jennifer
812
+ - family: Nielsen
813
+ given: Lars Holm
814
+ - family: Nurnberger
815
+ given: Amy
816
+ - family: Proell
817
+ given: Stefan
818
+ - family: Rauber
819
+ given: Andreas
820
+ - family: Sacchi
821
+ given: Simone
822
+ - family: Smith
823
+ given: Arthur
824
+ - family: Taylor
825
+ given: Mike
826
+ - family: Clark
827
+ given: Tim
828
+ issued:
829
+ - year: '2015'
830
+ month: '5'
831
+ title: Achieving human and machine accessibility of cited data in scholarly publications
832
+ container-title: PeerJ Computer Science
833
+ publisher: PeerJ
834
+ page: 'e1'
835
+ volume: '1'
836
+ URL: http://doi.org/10.7717/peerj-cs.1
837
+ DOI: 10.7717/peerj-cs.1
838
+
839
+ - id: https://blog.datacite.org/thinking-about-csv
840
+ type: no-type
841
+ author:
842
+ - family: Fenner
843
+ given: Martin
844
+ issued:
845
+ - year: '2016'
846
+ title: Thinking about CSV
847
+ publisher: DataCite Blog
848
+ URL: https://blog.datacite.org/thinking-about-csv
849
+
850
+ - id: https://github.com/datacite/jekyll-csvy
851
+ type: no-type
852
+ author:
853
+ - family: Fenner
854
+ given: Martin
855
+ issued:
856
+ - year: '2016'
857
+ title: '<span class="nocase">jekyll-csvy</span>: Jekyll converter for CSVY files'
858
+ title-short: <span class="nocase">jekyll-csvy</span>
859
+ publisher: GitHub
860
+ URL: https://github.com/datacite/jekyll-csvy
861
+
862
+ - id: https://cran.r-project.org/web/packages/rio/index.html
863
+ type: no-type
864
+ author:
865
+ - family: Becker
866
+ given: Jason
867
+ - family: Chan
868
+ given: Chung-hong
869
+ - family: Chan
870
+ given: Geoffrey CH
871
+ - family: Leeper
872
+ given: Thomas J.
873
+ - family: Gandrud
874
+ given: Christopher
875
+ - family: MacDonald
876
+ given: Andrew
877
+ - family: Zahn
878
+ given: Ista
879
+ issued:
880
+ - year: '2016'
881
+ title: 'Rio: A swiss-army knife for data I/O'
882
+ title-short: Rio
883
+ publisher: CRAN
884
+ URL: https://cran.r-project.org/web/packages/rio/index.html
885
+
886
+ - id: http://doi.org/10.6084/M9.FIGSHARE.3364708.V1
887
+ type: no-type
888
+ author:
889
+ - family: Karcher
890
+ given: Sebastian
891
+ issued:
892
+ - year: '2016'
893
+ title: Zotero for data repositories
894
+ publisher: Figshare
895
+ URL: http://doi.org/10.6084/M9.FIGSHARE.3364708.V1
896
+ DOI: 10.6084/M9.FIGSHARE.3364708.V1
897
+
898
+ - id: http://doi.org/10.1145/2783446.2783605
899
+ type: paper-conference
900
+ author:
901
+ - family: Garza
902
+ given: Kristian
903
+ - family: Goble
904
+ given: Carole
905
+ - family: Brooke
906
+ given: John
907
+ - family: Jay
908
+ given: Caroline
909
+ issued:
910
+ - year: '2015'
911
+ title: Framing the community data system interface
912
+ container-title: Proceedings of the 2015 british HCI conference on - british HCI
913
+ 15
914
+ publisher: Association for Computing Machinery (ACM)
915
+ URL: http://doi.org/10.1145/2783446.2783605
916
+ DOI: 10.1145/2783446.2783605
917
+
918
+ - id: http://doi.org/10.7717/peerj-cs.86
919
+ type: article-journal
920
+ author:
921
+ - family: Smith
922
+ given: AM
923
+ - family: Katz
924
+ given: DS
925
+ - family: Niemeyer
926
+ given: KE
927
+ - family: FORCE11-Software-Citation-Working-Group
928
+ issued:
929
+ - year: '2016'
930
+ month: september
931
+ title: Software citation principles
932
+ container-title: PeerJ Computer Science
933
+ publisher: PeerJ
934
+ URL: https://peerj.com/articles/cs-86/
935
+ DOI: 10.7717/peerj-cs.86
936
+
937
+ - id: http://doi.org/10.5438/0012
938
+ type: article-journal
939
+ author:
940
+ - literal: DataCite Metadata Working Group
941
+ issued:
942
+ - year: '2016'
943
+ title: DataCite metadata schema for the publication and citation of research data
944
+ v4.0
945
+ publisher: DataCite e.V.
946
+ URL: http://doi.org/10.5438/0012
947
+
948
+ - id: https://doi.org/10.5438/2906
949
+ type: no-type
950
+ author:
951
+ - family: Cruse
952
+ given: Patricia
953
+ - family: Haak
954
+ given: Laure
955
+ - family: Pentz
956
+ given: Ed
957
+ issued:
958
+ - year: '2016'
959
+ title: 'Organization identifier project: A way forward'
960
+ title-short: Organization identifier project
961
+ publisher: ORCID
962
+ URL: https://doi.org/10.5438/2906
963
+ DOI: 10.5438/2906
964
+
965
+ - id: https://doi.org/10.5438/7885
966
+ type: no-type
967
+ author:
968
+ - family: Fenner
969
+ given: Martin
970
+ - family: Paglione
971
+ given: Laura
972
+ - family: Demeranville
973
+ given: Tom
974
+ - family: Bilder
975
+ given: Geoff
976
+ issued:
977
+ - year: '2016'
978
+ title: Technical considerations for an organization identifier registry
979
+ publisher: ORCID
980
+ URL: https://doi.org/10.5438/7885
981
+ DOI: 10.5438/7885
982
+
983
+ - id: https://doi.org/10.5438/4716
984
+ type: no-type
985
+ author:
986
+ - family: Bilder
987
+ given: Geoffrey
988
+ - family: Brown
989
+ given: Josh
990
+ - family: Demeranville
991
+ given: Tom
992
+ issued:
993
+ - year: '2016'
994
+ title: 'Organisation identifiers: Current provider survey'
995
+ title-short: Organisation identifiers
996
+ publisher: ORCID
997
+ URL: https://doi.org/10.5438/4716
998
+ DOI: 10.5438/4716
999
+
1000
+ - id: https://doi.org/10.6084/M9.FIGSHARE.3479141
1001
+ type: no-type
1002
+ author:
1003
+ - family: Demeranville
1004
+ given: Tom
1005
+ - family: Brown
1006
+ given: Josh
1007
+ - family: Fenner
1008
+ given: Martin
1009
+ - family: Cruse
1010
+ given: Patricia
1011
+ - family: Haak
1012
+ given: Laure
1013
+ - family: Paglione
1014
+ given: Laura
1015
+ - family: Bilder
1016
+ given: Geoffrey
1017
+ - family: Lin
1018
+ given: Jennifer
1019
+ - family: Pentz
1020
+ given: Ed
1021
+ issued:
1022
+ - year: '2016'
1023
+ title: Organisation identifiers - minimum viable product requirements
1024
+ publisher: Figshare
1025
+ URL: https://doi.org/10.6084/M9.FIGSHARE.3479141
1026
+ DOI: 10.6084/M9.FIGSHARE.3479141
1027
+
1028
+ - id: https://doi.org/10.1371/journal.pone.0115253
1029
+ type: article-journal
1030
+ author:
1031
+ - family: Klein
1032
+ given: Martin
1033
+ - family: Sompel
1034
+ given: Herbert Van de
1035
+ - family: Sanderson
1036
+ given: Robert
1037
+ - family: Shankar
1038
+ given: Harihar
1039
+ - family: Balakireva
1040
+ given: Lyudmila
1041
+ - family: Zhou
1042
+ given: Ke
1043
+ - family: Tobin
1044
+ given: Richard
1045
+ issued:
1046
+ - year: '2014'
1047
+ month: '12'
1048
+ title: 'Scholarly Context Not Found: One in Five Articles Suffers from Reference
1049
+ Rot'
1050
+ title-short: Scholarly Context Not Found
1051
+ container-title: PLOS ONE
1052
+ page: 'e115253'
1053
+ volume: '9'
1054
+ issue: '12'
1055
+ keyword: Archives, Communications, Computer and information sciences, Evolutionary
1056
+ immunology, Extrapolation, Internet, Publication ethics, Species interactions
1057
+ URL: http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0115253
1058
+ DOI: 10.1371/journal.pone.0115253
1059
+ ISSN: '1932-6203'
1060
+
1061
+ - id: https://www.w3.org/Provider/Style/URI
1062
+ type: no-type
1063
+ author:
1064
+ - family: Berners-Lee
1065
+ given: Tim
1066
+ issued:
1067
+ - year: '1998'
1068
+ accessed:
1069
+ - year: '2016'
1070
+ month: '12'
1071
+ day: '14'
1072
+ title: 'Hypertext Style: Cool URIs don’t change.'
1073
+ title-short: Hypertext Style
1074
+ URL: https://www.w3.org/Provider/Style/URI
1075
+ ...
@@ -52,7 +52,7 @@ describe Bergamasco::Markdown do
52
52
  it 'should read yaml for doi metadata' do
53
53
  filepath = fixture_path + 'cool-dois.html.md'
54
54
  separator = "READMORE"
55
- metadata = subject.read_yaml_for_doi_metadata(filepath, separator: separator, csl: 'spec/apa.csl', bibliography: 'spec/references.bib')
55
+ metadata = subject.read_yaml_for_doi_metadata(filepath, separator: separator, csl: 'spec/fixtures/apa.csl', bibliography: 'spec/fixtures/references.yaml')
56
56
  expect(metadata["citation"]).to eq(["https://www.w3.org/Provider/Style/URI", "https://doi.org/10.1371/journal.pone.0115253"])
57
57
  end
58
58
 
@@ -64,6 +64,13 @@ describe Bergamasco::Markdown do
64
64
  expect(length).to eq(text.length)
65
65
  end
66
66
 
67
+ it 'should write bibliography to yaml' do
68
+ bib_path = fixture_path + 'references.bib'
69
+ yaml_path = fixture_path + 'references.yaml'
70
+ yaml = subject.write_bibliograpy_to_yaml(bib_path, yaml_path)
71
+ expect(yaml["references"].length).to eq(61)
72
+ end
73
+
67
74
  it 'should update file' do
68
75
  filepath = fixture_path + 'cool-dois.html.md'
69
76
  file = IO.read(filepath)
@@ -75,14 +82,14 @@ describe Bergamasco::Markdown do
75
82
  it 'should convert markdown' do
76
83
  filepath = fixture_path + 'cool-dois.html.md'
77
84
  file = IO.read(filepath)
78
- html = subject.render_html(file, skip_yaml_header: true, csl: 'spec/apa.csl', bibliography: 'spec/references.bib')
85
+ html = subject.render_html(file, skip_yaml_header: true, csl: 'spec/fixtures/apa.csl', bibliography: 'spec/fixtures/references.yaml')
79
86
  expect(html).to start_with("<p>In 1998 Tim Berners-Lee coined the term cool URIs <span class=\"citation\">(1998)</span>, that is URIs that don’t change.")
80
87
  end
81
88
 
82
89
  it 'should extract references' do
83
90
  filepath = fixture_path + 'cool-dois.html.md'
84
91
  file = IO.read(filepath)
85
- html = subject.render_html(file, skip_yaml_header: true, csl: 'spec/apa.csl', bibliography: 'spec/references.bib')
92
+ html = subject.render_html(file, skip_yaml_header: true, csl: 'spec/fixtures/apa.csl', bibliography: 'spec/fixtures/references.yaml')
86
93
  refs = subject.extract_references(html)
87
94
  expect(refs).to eq(["https://www.w3.org/Provider/Style/URI", "https://doi.org/10.1371/journal.pone.0115253"])
88
95
  end
@@ -32,8 +32,8 @@ describe Bergamasco::Summarize do
32
32
  filepath = fixture_path + 'cool-dois-without-yml.md'
33
33
  file = IO.read(filepath)
34
34
  separator = "READMORE"
35
- html = Bergamasco::Markdown.render_html(file, skip_yaml_header: true, csl: 'spec/apa.csl', bibliography: 'spec/references.bib')
36
- content = subject.summary_from_html(html, separator: separator, skip_yaml_header: true, csl: 'spec/apa.csl', bibliography: 'spec/references.bib')
35
+ html = Bergamasco::Markdown.render_html(file, skip_yaml_header: true, csl: 'spec/fixtures/apa.csl', bibliography: 'spec/fixtures/references.bib')
36
+ content = subject.summary_from_html(html, separator: separator, skip_yaml_header: true, csl: 'spec/fixtures/apa.csl', bibliography: 'spec/fixtures/references.bib')
37
37
  expect(content).to start_with("In 1998 Tim Berners-Lee coined the term cool URIs (1998), that is URIs that don’t change.")
38
38
  expect(content).to end_with("the referenced resource.")
39
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bergamasco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
@@ -272,13 +272,14 @@ files:
272
272
  - lib/bergamasco/summarize.rb
273
273
  - lib/bergamasco/version.rb
274
274
  - lib/bergamasco/whitelist_scrubber.rb
275
- - spec/apa.csl
276
275
  - spec/fixtures/abstract.tex
276
+ - spec/fixtures/apa.csl
277
277
  - spec/fixtures/cool-dois-without-yml.md
278
278
  - spec/fixtures/cool-dois.html.md
279
279
  - spec/fixtures/cool-dois.yml
280
+ - spec/fixtures/references.bib
281
+ - spec/fixtures/references.yaml
280
282
  - spec/markdown_spec.rb
281
- - spec/references.bib
282
283
  - spec/sanitize_spec.rb
283
284
  - spec/spec_helper.rb
284
285
  - spec/summarize_spec.rb