undercarriage 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bfccc91ecab39aec340c24709817eddbee2ae225a893d2f721f0696080f5680
4
- data.tar.gz: 9183a706e4744f7a1e54625ed3449975ac89dea2ce118c11d82b346a15ff0637
3
+ metadata.gz: 31eecbc405432e03696e5e1bbf2de1a51f9c8283b98027d10732272527df8a89
4
+ data.tar.gz: 78fdc57d5373a23c9f265a2fc6229798f51c38d5b08afe851301989a58ef5c20
5
5
  SHA512:
6
- metadata.gz: c20a00b93e8a251e0a399c8a30e9c67ca0424630bd231cfb52c30fc411bc6c087cf3d2a0e0e39f143933ff3ac11e0940e802fe7d05470804457e4c653bdc327b
7
- data.tar.gz: a9c25f95f2adcd1cff72bff54798f92ae9d761744847d088ef1ae17464908c6f6c221411c7062df5e6cd3d19183616ca441c5051fc419acb767609c1a2c1666c
6
+ metadata.gz: ec1fd30ade971146c1da5575c7a8023491f9811da0e3b1bc0f3edbe3ffb157610a19555d2472ce77070fac0b1dc2cf6968d2ce22708f0dee552260dd1b3c71f4
7
+ data.tar.gz: ffe06c3e008ce280d33c7ee2b656d49a1a7db2fb05a8e7aedd774504ff4ccfdedd56a7c50518298740b29156ca5dcd462583498df0e38d957d93057312bb61e1
@@ -74,10 +74,10 @@ module Undercarriage
74
74
  private
75
75
 
76
76
  def flash_message_builder(action, status, past_tense)
77
- defaults = flash_message_defaults(controller_name_singular_human, action, status, past_tense)
77
+ defaults = flash_message_defaults(controller_name_singular_title, action, status, past_tense)
78
78
  message = defaults.shift
79
79
 
80
- I18n.t(message, resource_name: controller_name_singular_human,
80
+ I18n.t(message, resource_name: controller_name_singular_title,
81
81
  downcase_resource_name: controller_name_singular,
82
82
  default: defaults)
83
83
  end
@@ -28,11 +28,12 @@ module Undercarriage
28
28
  end
29
29
 
30
30
  ##
31
- # Singular human name
31
+ # Titleized controller name
32
32
  #
33
- def controller_name_singular_human
34
- controller_name_singular.humanize
33
+ def controller_name_singular_title
34
+ controller_name_singular.titleize
35
35
  end
36
+ alias controller_name_singular_human controller_name_singular_title
36
37
 
37
38
  ##
38
39
  # Model name
@@ -4,5 +4,5 @@ module Undercarriage
4
4
  ##
5
5
  # Undercarriage version
6
6
  #
7
- VERSION = '0.5.3'
7
+ VERSION = '0.5.4'
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: undercarriage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Freerksen