undercarriage 0.3.0 → 0.3.1

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: 559e80f965a59b18fcbf8a6e73794ec46271d0e42bee153bcc215d393343216e
4
- data.tar.gz: b4d88ead8c3576c47cb52be8ac23c9e44f65add36e499e8072649f215302442d
3
+ metadata.gz: 896cd3cd3468873467c28f021f5379e7042f28b9d6fedd1f726d21db4d2b3305
4
+ data.tar.gz: 75e2c2d35fdfe1bdbf4bfa5ae6bcbc59d8e1d2b33f905976b61d90206afe7a1a
5
5
  SHA512:
6
- metadata.gz: 51e19014eb0a462810268058435a775dd25d02b69ba815ccbdce46e0a5a364b9e3553c246bb8a056f082cdb486410d8eb281a5abaddeca7fe2b9ab5afb8ed89b
7
- data.tar.gz: 66caf3c904f4263eca9b6146c3e577a0712148179c478bfb1e1405de6ea496a0bcb4c6d44f8c04f2dc2480634e6e850d6b1714709d332c3bc61425ba8e4d0428
6
+ metadata.gz: 7d7a1cc57db69d47fe238a659277d3a12f7dc2a7c170df836af4ac16646ee144a49164c9510b30d96e06cc9208305bd50b0d3bd0c5c2864c9f829b31308ef714
7
+ data.tar.gz: 87e852138ca62f7a2e0bf4fd54385c228810d49f8a40ef77846dc15a8fee99577a1e0eb6e0ec8cd78c7b43a68d994e40ec0bb60abf77ae39aba2f30bf442c745
data/lib/undercarriage.rb CHANGED
@@ -18,13 +18,10 @@ require 'undercarriage/controllers/restful/permitted_attributes_concern'
18
18
  require 'undercarriage/controllers/restful/utility_concern'
19
19
  require 'undercarriage/models/published_concern'
20
20
 
21
- require 'undercarriage/railtie'
22
-
23
21
  ##
24
22
  # Undercarriage
25
23
  #
26
24
  # Undercarriage is a set of concerns to add to your application to trim some of the fat from controllers and models.
27
25
  #
28
26
  module Undercarriage
29
- # Your code goes here...
30
27
  end
@@ -75,7 +75,7 @@ module Undercarriage
75
75
  preferred_locales = (accepted_languages_header << I18n.default_locale.to_s).uniq
76
76
  available_locales = I18n.available_locales.map(&:to_s)
77
77
 
78
- preferred_locales.intersection(available_locales).first
78
+ (preferred_locales & available_locales).first
79
79
  end
80
80
 
81
81
  def accepted_languages_header
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Undercarriage
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: undercarriage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Freerksen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-05 00:00:00.000000000 Z
11
+ date: 2021-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -54,7 +54,6 @@ files:
54
54
  - lib/undercarriage/controllers/restful/utility_concern.rb
55
55
  - lib/undercarriage/controllers/restful_concern.rb
56
56
  - lib/undercarriage/models/published_concern.rb
57
- - lib/undercarriage/railtie.rb
58
57
  - lib/undercarriage/version.rb
59
58
  homepage: https://github.com/dfreerksen/undercarriage
60
59
  licenses:
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Undercarriage
4
- class Railtie < ::Rails::Railtie
5
- end
6
- end