kudos 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/kudos/version.rb +1 -1
  3. data/lib/kudos.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 794f0cfa50b1a522d89d6d5bbe5ad3c22699bbe96c2c8eaf0a3249558a946aec
4
- data.tar.gz: 60e25e21ff551fa92d3feac2c683ed2040869d636df99bb3def1936787977ec7
3
+ metadata.gz: ebb7e489ed4526e9167779847225e408094b13bbc0eeb8d9886e91d3dc183fda
4
+ data.tar.gz: b1ff458db038d7572f2f930c863f43c2c397efd8abb61204c374db406a97f52c
5
5
  SHA512:
6
- metadata.gz: 0aead887db0291c2729485680c81fb0d7e46bf401c439ccf6c2e64440d81d8f0a69fc261d0c92628a1f8b8686d10cc4fe2ee63a30835d9337abe76c15080187c
7
- data.tar.gz: d45687689fd6c3f403c64a518dded792ad59901c009a31529b52a8960caa7228de8e4524500fdaffe3df4c4abe6a266747dae309f004ab7ae620a6bf5f9476ec
6
+ metadata.gz: 0f0d8e9b3d5d208842c15e2ab726102fa0616e8e1efdfc294444d0001888fa7d17b97da7f252e1c787af3336c7c5b781c195fdb215bbc7a038e8490a50aecfec
7
+ data.tar.gz: bb59a485c713ca0b9d46fbe3037ae52afc97199dcf91858f5650e7fa07e0e871f092e437a900e2691db63040e52a04e7a1b53479f657ff6e302d00965b9fdf4b
data/lib/kudos/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kudos
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
data/lib/kudos.rb CHANGED
@@ -36,8 +36,8 @@ module Kudos
36
36
  end
37
37
 
38
38
  def award(award_name, *attributes)
39
- achievements = configuration.achievements_model_name.where(award_name: award_name).order(rank: :asc)
40
- awards[award_name].call(achievements, *attributes)
39
+ achievements = Kudos::Achievement.where(award_name: award_name.to_s).order(rank: :asc)
40
+ configuration.achievements_model_name.awards[award_name].call(achievements, *attributes)
41
41
  end
42
42
  end
43
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kudos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdanov Anton