stanford-mods 0.0.1 → 0.0.2

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.
data/README.rdoc CHANGED
@@ -24,7 +24,20 @@ Or install it yourself as:
24
24
 
25
25
  == Usage
26
26
 
27
- TODO: Write usage instructions here
27
+ 1. add stanford-mods to your gemfile
28
+ 2. require 'stanford-mods'
29
+ 3. (I don't think you will also need to require 'mods', but you might)
30
+
31
+ > m = Stanford::Mods::Record.new
32
+ > m.from_str('<mods><genre>ape</genre></mods>')
33
+ > m.genre
34
+ => [#<Nokogiri::XML::Element:0x3fe07b48bb24 name="genre" children=[#<Nokogiri::XML::Text:0x3fe07a09a7dc "ape">]>]
35
+ > m.genre.text
36
+ => "ape"
37
+
38
+ > m.to_be_removed <-- method I wrote in stanford-mods for proof of concept
39
+ in foo!
40
+ => nil
28
41
 
29
42
  ## Contributing
30
43
 
@@ -37,4 +50,5 @@ TODO: Write usage instructions here
37
50
 
38
51
  == Releases
39
52
 
40
- 0.0.1
53
+ 0.0.2 add usage instructions to readme
54
+ 0.0.1 Initial commit - grab name
@@ -1,5 +1,5 @@
1
1
  module Stanford
2
2
  module Mods
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stanford-mods
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -162,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  segments:
164
164
  - 0
165
- hash: -3964216596678128240
165
+ hash: 893390290114598282
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  none: false
168
168
  requirements:
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  version: '0'
172
172
  segments:
173
173
  - 0
174
- hash: -3964216596678128240
174
+ hash: 893390290114598282
175
175
  requirements: []
176
176
  rubyforge_project:
177
177
  rubygems_version: 1.8.24