cite-me 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cite_me.rb +2 -2
  3. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f7332ba7339ac351690687825ee8fc59e2ef4d6
4
- data.tar.gz: 212889b24118c86b6ab9dd229de8c95b0a03e334
3
+ metadata.gz: 1136570e84ccad429e53632bfb708069bca03ba7
4
+ data.tar.gz: 5dd6a4c067ee770d6ad972b3470477a85bd917c5
5
5
  SHA512:
6
- metadata.gz: ca87b9765e9682f1f875bd74ebc2c3ccb2259ec6efa224ae62bce9263660ecb1cd7da0bd24d612b5465b9c88250c439c436c04e8acf8726beb4758cc7ef474bb
7
- data.tar.gz: 1a73fae9bef0d358d38cafbc1cba3db4cf9952d081900612ee61be4d0abdebfe34a07a53eb8618ff18f6bb94beea65a8db54105a281816d3d1a9f5b15e0ad1e3
6
+ metadata.gz: 6c3869c12d0923100642a2a499aaf7e763ea3d82741f6db5e8170d5bb65cd487275f0b9198dd0287fd4ff9e72bd0e33037a74dfa5d175c87edcc71e10ae65385
7
+ data.tar.gz: 2a7a4d0b7719465daa8e0d65999eea63c5f4bea39c766f72008d43419218afcdb8f7cde6562f81e7dfd37bd9f93cebd153f058d7d41f033530fe656592b8216e
data/lib/cite_me.rb CHANGED
@@ -96,12 +96,12 @@ class Cite_Me
96
96
  # John Doe or John A. Doe
97
97
  name = author.split(" ")
98
98
  middle_initial = author.scan(/ \w\. /)
99
- author_string += name.last + ", " + name.first + middle_initial.first.to_s
99
+ author_string += name.last._to_s + ", " + name.first.to_s + middle_initial.first.to_s
100
100
  # add a period if it's the last entry and NOT a name with a middle initial
101
101
  author_string += index == option.length - 1 ? ". " : ", and " if middle_initial.empty?
102
102
  end
103
103
  end
104
- author_string
104
+ author_string.to_s
105
105
  end
106
106
 
107
107
  def author_info(clean_options)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cite-me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Smith
@@ -28,18 +28,19 @@ require_paths:
28
28
  - lib
29
29
  required_ruby_version: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  required_rubygems_version: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - '>='
36
+ - - ">="
37
37
  - !ruby/object:Gem::Version
38
38
  version: '0'
39
39
  requirements: []
40
40
  rubyforge_project:
41
- rubygems_version: 2.1.11
41
+ rubygems_version: 2.2.2
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: Create MLA citations
45
45
  test_files: []
46
+ has_rdoc: