mods 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use ruby-1.9.3@mods --create
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ script: rake rspec
3
+ rvm:
4
+ - 1.9.3
5
+ - 1.9.2
6
+ - jruby-19mode
7
+ notifications:
8
+ email:
9
+ - ndushay@stanford.edu
@@ -0,0 +1,3 @@
1
+ --title 'Ruby Mods Gem Documentation'
2
+ lib/**/*.rb -
3
+ README.rdoc LICENSE
@@ -1,8 +1,12 @@
1
- # Mods
1
+ = Mods
2
2
 
3
3
  A Ruby gem to parse MODS (Metadata Object Description Schema) records. More information about MODS can be found at http://www.loc.gov/standards/mods/registry.php.
4
4
 
5
- ## Installation
5
+ Source code at https://github.com/sul-dlss/mods/
6
+
7
+ Generated API docs at http://rubydoc.info/gems/mods/
8
+
9
+ == Installation
6
10
 
7
11
  Add this line to your application's Gemfile:
8
12
 
@@ -16,11 +20,11 @@ Or install it yourself as:
16
20
 
17
21
  $ gem install mods
18
22
 
19
- ## Usage
23
+ == Usage
20
24
 
21
25
  TODO: Write usage instructions here
22
26
 
23
- ## Contributing
27
+ == Contributing
24
28
 
25
29
  1. Fork it
26
30
  2. Create your feature branch (`git checkout -b my-new-feature`)
@@ -29,6 +33,7 @@ TODO: Write usage instructions here
29
33
  5. Push to the branch (`git push origin my-new-feature`)
30
34
  6. Create new Pull Request
31
35
 
32
- ## Releases
36
+ == Releases
33
37
 
38
+ 0.0.2 Set up rake tasks, publishing rdoc, and continuous integration.
34
39
  0.0.1 Grab the name
data/Rakefile CHANGED
@@ -1,2 +1,46 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
+
4
+ require 'rake'
5
+ require 'bundler'
6
+
7
+ require 'rspec/core/rake_task'
8
+ require 'yard'
9
+ require 'yard/rake/yardoc_task'
10
+
11
+ begin
12
+ Bundler.setup(:default, :development)
13
+ rescue Bundler::BundlerError => e
14
+ $stderr.puts e.message
15
+ $stderr.puts "Run `bundle install` to install missing gems"
16
+ exit e.status_code
17
+ end
18
+
19
+ task :default => :ci
20
+
21
+ desc "run continuous integration suite (tests, coverage, docs)"
22
+ task :ci => [:rspec, :doc]
23
+
24
+ task :spec => :rspec
25
+
26
+ RSpec::Core::RakeTask.new(:rspec) do |spec|
27
+ spec.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
28
+ end
29
+
30
+ # Use yard to build docs
31
+ begin
32
+ project_root = File.expand_path(File.dirname(__FILE__) + "/../..")
33
+ doc_dest_dir = File.join(project_root, 'doc')
34
+
35
+ YARD::Rake::YardocTask.new(:doc) do |yt|
36
+ yt.files = Dir.glob(File.join(project_root, 'lib', '**', '*.rb')) +
37
+ [ File.join(project_root, 'README.rdoc') ]
38
+ yt.options = ['--output-dir', doc_dest_dir, '--readme', 'README.rdoc', '--title', 'Ruby Mods Gem Documentation']
39
+ end
40
+ rescue LoadError
41
+ desc "Generate YARD Documentation"
42
+ task :doc do
43
+ abort "Please install the YARD gem to generate rdoc."
44
+ end
45
+ end
46
+
@@ -1,3 +1,3 @@
1
1
  module Mods
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -14,4 +14,20 @@ Gem::Specification.new do |gem|
14
14
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
15
15
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
16
  gem.require_paths = ["lib"]
17
+
18
+ # Runtime dependencies
19
+ gem.add_dependency 'nokogiri'
20
+
21
+ # Bundler will install these gems too if you've checked out solrmarc-wrapper source from git and run 'bundle install'
22
+ # It will not add these as dependencies if you require solrmarc-wrapper for other projects
23
+ gem.add_development_dependency "rake"
24
+ # docs
25
+ gem.add_development_dependency "rdoc"
26
+ gem.add_development_dependency "yard"
27
+ # tests
28
+ gem.add_development_dependency 'rspec'
29
+ gem.add_development_dependency 'simplecov'
30
+ gem.add_development_dependency 'simplecov-rcov'
31
+ # gem.add_development_dependency 'ruby-debug19'
32
+
17
33
  end
metadata CHANGED
@@ -1,17 +1,129 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mods
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.1
4
+ version: 0.0.2
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Naomi Dushay
9
9
  - Bess Sadler
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-31 00:00:00.000000000Z
14
- dependencies: []
13
+ date: 2012-10-31 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: nokogiri
17
+ requirement: !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
31
+ - !ruby/object:Gem::Dependency
32
+ name: rake
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ type: :development
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rdoc
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ - !ruby/object:Gem::Dependency
64
+ name: yard
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ type: :development
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ - !ruby/object:Gem::Dependency
80
+ name: rspec
81
+ requirement: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ type: :development
88
+ prerelease: false
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ - !ruby/object:Gem::Dependency
96
+ name: simplecov
97
+ requirement: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov-rcov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
15
127
  description: A Ruby gem to parse MODS (Metadata Object Description Schema) records
16
128
  email:
17
129
  - ndushay AT stanford.edu
@@ -21,36 +133,46 @@ extensions: []
21
133
  extra_rdoc_files: []
22
134
  files:
23
135
  - .gitignore
136
+ - .rvmrc
137
+ - .travis.yml
138
+ - .yardopts
24
139
  - Gemfile
25
140
  - LICENSE
26
- - README.md
141
+ - README.rdoc
27
142
  - Rakefile
28
143
  - lib/mods.rb
29
144
  - lib/mods/version.rb
30
145
  - mods.gemspec
31
146
  homepage: ''
32
147
  licenses: []
33
- post_install_message:
148
+ post_install_message:
34
149
  rdoc_options: []
35
150
  require_paths:
36
151
  - lib
37
152
  required_ruby_version: !ruby/object:Gem::Requirement
153
+ none: false
38
154
  requirements:
39
155
  - - ! '>='
40
156
  - !ruby/object:Gem::Version
41
157
  version: '0'
42
- none: false
158
+ segments:
159
+ - 0
160
+ hash: 94644165565743159
43
161
  required_rubygems_version: !ruby/object:Gem::Requirement
162
+ none: false
44
163
  requirements:
45
164
  - - ! '>='
46
165
  - !ruby/object:Gem::Version
47
166
  version: '0'
48
- none: false
167
+ segments:
168
+ - 0
169
+ hash: 94644165565743159
49
170
  requirements: []
50
- rubyforge_project:
51
- rubygems_version: 1.8.15
52
- signing_key:
171
+ rubyforge_project:
172
+ rubygems_version: 1.8.24
173
+ signing_key:
53
174
  specification_version: 3
54
- summary: A Ruby gem to parse MODS (Metadata Object Description Schema) records. More information about MODS can be found at http://www.loc.gov/standards/mods/registry.php.
175
+ summary: A Ruby gem to parse MODS (Metadata Object Description Schema) records. More
176
+ information about MODS can be found at http://www.loc.gov/standards/mods/registry.php.
55
177
  test_files: []
56
- ...
178
+ has_rdoc: