bergamasco 0.2.9 → 0.2.11

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: 019430c76e307359d0bdfa7e2e1f4bb6b765899b
4
- data.tar.gz: 242da0ac868471fbfa51f9c8ddb77d55d7581836
3
+ metadata.gz: e2c271ca888d8a0c3c9c41e268b1ad43d6b8eff9
4
+ data.tar.gz: c758ee38dfd64e623cf9e29cea95b9db1845cb6c
5
5
  SHA512:
6
- metadata.gz: feeff06a54ade78d2bd83ea8cda527e424b960307987c86c13598098dfb0271f4497e46d41980799d87b03bd1e15c25312cc3e43d5a431d3e857a7c66f3206c2
7
- data.tar.gz: 14132388259869c8befb75255da89f3daaba00792205057feb9a826c804da94d8aee98f723c593132294f2d931fead7aca6b33aa4fefc29037e50a6ad4855500
6
+ metadata.gz: 6fb0486c6e820e2f9c07bbb9161c0849cea4a3630e64fcf9e465d494904fcf9c0541fe46828c97aff171371e32b74a50068cb5a7acd4ee62fc12c48c8b6ce75d
7
+ data.tar.gz: 2cef5d5ffa7686c118c126280aca44f83f06a3a3a09446056a13c32c7394123f31502f24dda924efc9504554692addf491d7c876a83de09f25dfffe2be2915d5
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bergamasco (0.2.9)
4
+ bergamasco (0.2.11)
5
5
  activesupport (~> 4.2, >= 4.2.5)
6
6
  addressable (~> 2.3.8)
7
7
  builder (~> 3.2, >= 3.2.2)
@@ -25,7 +25,7 @@ module Bergamasco
25
25
  metadata = update_yaml_frontmatter(metadata, new_metadata)
26
26
  new_file = join_yaml_frontmatter(metadata, content)
27
27
  IO.write(filepath, new_file)
28
- new_file
28
+ metadata
29
29
  end
30
30
 
31
31
  def self.read_yaml(filepath)
@@ -1,3 +1,3 @@
1
1
  module Bergamasco
2
- VERSION = "0.2.9"
2
+ VERSION = "0.2.11"
3
3
  end
@@ -74,8 +74,8 @@ describe Bergamasco::Markdown do
74
74
  it 'should update file' do
75
75
  filepath = fixture_path + 'cool-dois.html.md'
76
76
  new_metadata = { "doi" => "10.23725/0000-03VC"}
77
- file = subject.update_file(filepath, new_metadata)
78
- expect(file).to include("\ndoi: 10.23725/0000-03VC\n")
77
+ metadata = subject.update_file(filepath, new_metadata)
78
+ expect(metadata["doi"]).to eq("10.23725/0000-03VC")
79
79
  end
80
80
 
81
81
  it 'should convert markdown' do
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.9
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner