datacite-mapping 0.1.4 → 0.1.5

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: 0e3a18fb33b9c652f32beb77e758b5e317cfc0b1
4
- data.tar.gz: 967f6e66468d35a1d1938d3a19d4d530dd0bb22e
3
+ metadata.gz: 39a51d2bc6f023b2308eb35b6664c7596864b77e
4
+ data.tar.gz: 819bff7d2a7231ab63751730ccc97cf7e153f737
5
5
  SHA512:
6
- metadata.gz: 048fac57a650168fdd92e1f4c7ba293088a97b87decb7b72aadb5b8a928ec000cc37a6a40c396b7df01327ba75607f949f78fb5e7abd63475c8efe8c2fec8dba
7
- data.tar.gz: 87e5b52c29f34b3972cf6f208ccb1da757f441ea699ba4665232b4da96a53a1af1b9dd553f85a5c764e4f2754725107bdb97e4be794157fdd865e165cdfdf821
6
+ metadata.gz: ecc82770a27ba2628df4b052461a2685d23b560a1714707ecfd9542d3cab0029c9240e04af6bb4687d307f3532d1cf6919d7917a00d2a39b45c06eae80640575
7
+ data.tar.gz: 99c279353fc59098686af86a10b436e5066eae0f266787e2deae19699bfa47a085d0e42364a5eaf081b590a60cf8c56f5d8220892c8e774e47ff87ae83730218
data/.gitignore CHANGED
@@ -15,6 +15,10 @@
15
15
  *.a
16
16
  mkmf.log
17
17
 
18
+ # Bundler local gem installations
19
+
20
+ /vendor/
21
+
18
22
  # Gem
19
23
 
20
24
  datacite*gem
data/CHANGES.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.1.5 (27 Jan 2016)
2
+
3
+ - Make gemspec smart enough to handle SSH checkouts
4
+ - Update to [XML::MappingExtensions](https://github.com/dmolesUC3/xml-mapping_extensions) 0.3.4
5
+ - Update to [TypesafeEnum](https://github.com/dmolesUC3/typesafe_enum) 0.1.5
6
+
1
7
  ## 0.1.4 (6 Jan 2016)
2
8
 
3
9
  - Fix issue where missing `xml:lang` attribute in `<resource>` would produce a `no value, and no default value`
@@ -14,7 +14,8 @@ Gem::Specification.new do |spec|
14
14
  spec.description = 'A gem for working with the Datacite XML format'
15
15
  spec.license = 'MIT'
16
16
 
17
- origin_uri = URI(`git config --get remote.origin.url`.chomp)
17
+ origin = `git config --get remote.origin.url`.chomp
18
+ origin_uri = origin.start_with?('http') ? URI(origin) : URI(origin.sub('git@github.com:', 'https://github.com/'))
18
19
  spec.homepage = URI::HTTP.build(host: origin_uri.host, path: origin_uri.path.chomp('.git')).to_s
19
20
 
20
21
  spec.files = `git ls-files -z`.split("\x0")
@@ -23,8 +24,8 @@ Gem::Specification.new do |spec|
23
24
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
24
25
  spec.require_paths = ['lib']
25
26
 
26
- spec.add_dependency 'typesafe_enum', '~> 0.1', '>= 0.1.4'
27
- spec.add_dependency 'xml-mapping_extensions', '~> 0.3', '>= 0.3.3'
27
+ spec.add_dependency 'typesafe_enum', '~> 0.1', '>= 0.1.5'
28
+ spec.add_dependency 'xml-mapping_extensions', '~> 0.3', '>= 0.3.4'
28
29
 
29
30
  spec.add_development_dependency 'bundler', '~> 1.7'
30
31
  spec.add_development_dependency 'equivalent-xml', '~> 0.6.0'
@@ -4,7 +4,7 @@ module Datacite
4
4
  NAME = 'datacite-mapping'
5
5
 
6
6
  # The version of this gem
7
- VERSION = '0.1.4'
7
+ VERSION = '0.1.5'
8
8
 
9
9
  # The copyright notice for this gem
10
10
  COPYRIGHT = 'Copyright (c) 2016 The Regents of the University of California'
@@ -34,7 +34,7 @@ module Datacite
34
34
  end
35
35
 
36
36
  it 'requires a non-empty value' do
37
- expect { NameIdentifier.new(scheme: '', scheme: 'ORCID') }.to raise_error(ArgumentError)
37
+ expect { NameIdentifier.new(value: '', scheme: 'ORCID') }.to raise_error(ArgumentError)
38
38
  end
39
39
  end
40
40
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datacite-mapping
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Moles
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-06 00:00:00.000000000 Z
11
+ date: 2016-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typesafe_enum
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '0.1'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.1.4
22
+ version: 0.1.5
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '0.1'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.1.4
32
+ version: 0.1.5
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: xml-mapping_extensions
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '0.3'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 0.3.3
42
+ version: 0.3.4
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '0.3'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 0.3.3
52
+ version: 0.3.4
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: bundler
55
55
  requirement: !ruby/object:Gem::Requirement