attribution 0.9.1 → 0.9.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 465049007b0878be5f3011b44be9eae8e2a45e79
4
- data.tar.gz: 377c3d034d4a4a3794531c53ef7764a32519b42b
3
+ metadata.gz: 87e85e249e4cf33c4188ac53fc9920613e503d6a
4
+ data.tar.gz: 4da999e16adcfa45572dbd58525387857ef62498
5
5
  SHA512:
6
- metadata.gz: 8e0daba150f2620356590745e3d072c37f05f675a68ae91172e57adbf1005fb511516be606f059c56d5233e324fdf229dfcc0bad8d1e459a8192c058b652e274
7
- data.tar.gz: 8a94de2fda927d95e33d968125a167f0a38ffd7e70769036283a6c0300bc790d938a204753e3188f820e00671d24e14c8ed46141883fcb1d262bbf2655d13460
6
+ metadata.gz: 4c468e7ef528a1ca4ee2188238141ba795d9c8e6a57972828b8cee6a55c38af4cf07e3ea158e73296f28d4edc6f5b1a2d66df08d26e1a81694e311fda214fcbd
7
+ data.tar.gz: 7813df84bb4b4b8da04efe111aa3a6b5f3296540656fa91385f8da5457cdaddf363e443b805bd5de38ee38b6cc4c8353e79dfcda82201596f2e4ad4f2dbd0f41
data/attribution.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "attribution"
5
- gem.version = "0.9.1"
5
+ gem.version = "0.9.2"
6
6
  gem.authors = ["Paul Barry"]
7
7
  gem.email = ["mail@paulbarry.com"]
8
8
  gem.description = %q{Add attributes to Ruby objects}
data/lib/attribution.rb CHANGED
@@ -327,7 +327,7 @@ module Attribution
327
327
 
328
328
  add_association association_name, :has_many, metadata
329
329
 
330
- association_class_name = metadata.try(:fetch, :class_name, [name.split('::')[0..-2].join('::'), association_name.to_s.singularize.classify].reject(&:blank?).join('::'))
330
+ association_class_name = metadata.try(:fetch, :class_name, [name.split('::')[0..-2].join('::'), association_name.to_s.classify].reject(&:blank?).join('::'))
331
331
 
332
332
  # foos
333
333
  define_method(association_name) do |*query|
@@ -1,3 +1,3 @@
1
1
  module Attribution
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attribution
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Barry