super_current 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: c7b06278344d52daeca7f894da9550e61b31949db0aeab3d8b253ecd715745b4
4
- data.tar.gz: 73966d1ce60a49767b6510c77e268f7d792cb5a33bf89831822bc476ad955234
3
+ metadata.gz: dac48a364c1fcb0c66a4bc9463a658f96f1c450eaeb8d97629b168bc349112ef
4
+ data.tar.gz: f2f602af42e17972fcad9cd7765bff6242cc80faa7582706aa041432f9671f32
5
5
  SHA512:
6
- metadata.gz: 399e4951acc3605e3e88865b987f6af2627216889571450ad2186cb938e4aa856b18defd257e7e432f0e8611e596bdd6c701da7c5345f65c2d691dfb7634f465
7
- data.tar.gz: 316da47d7a8161393f221166276ef556c3c03b04fe2797ee5899a33a080bbd5beaaa904991f31868b4ee1d5e0b95e8f6677d1ab8b758bcdcb2f0a382bf214a67
6
+ metadata.gz: f0c0d8fb27b3b52c9648c48c1a1d341c51419b438b4f40e79ed449ffefe39560dbe78a63cc0b3bf24182d9ab3362e760dbfa2d20e4ebbaf0d6be8482616a9390
7
+ data.tar.gz: c98349f49104dcca586024bcfa3b7468b43af8557b4736c3e5ee94bbf62fd5438055c44b9541bce84cf9bf024d3d0699bcb9f5094e52e38de244c0ba4e620a2c
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SuperCurrent
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/lib/super_current.rb CHANGED
@@ -1,14 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'super_current/version'
4
- require 'super_current/railtie'
5
- require 'dry-configurable'
3
+ require "super_current/version"
4
+ require "super_current/railtie"
5
+ require "dry-configurable"
6
6
 
7
7
  # SuperCurrent makes it easier to use ActiveSupport::CurrentAttributes
8
8
  module SuperCurrent
9
9
  extend Dry::Configurable
10
10
 
11
- setting :current_class_name, default: 'Current', reader: true
11
+ setting :current_class_name, default: "Current", reader: true
12
12
 
13
13
  # The class that actually has the CurrentAttributes as parent class
14
14
  # Named SuperSuperCurrent to avoid conflicts with the SuperCurrent module
@@ -28,9 +28,9 @@ module SuperCurrent
28
28
  end
29
29
 
30
30
  def self.method_missing(method, *args)
31
- super unless method.to_s.end_with?('=')
31
+ super unless method.to_s.end_with?("=")
32
32
 
33
- attribute_name = method.to_s.chomp('=')
33
+ attribute_name = method.to_s.chomp("=")
34
34
  attribute_value = args.first
35
35
 
36
36
  class_eval { attribute attribute_name.to_sym }
@@ -39,7 +39,7 @@ module SuperCurrent
39
39
  end
40
40
 
41
41
  def self.respond_to_missing?(method, include_private = false)
42
- @methods.include?(method.to_s) || method.to_s.end_with?('=') || super
42
+ @methods.include?(method.to_s) || method.to_s.end_with?("=") || super
43
43
  end
44
44
  end
45
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_current
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sampo Kuokkanen
@@ -66,13 +66,13 @@ files:
66
66
  - lib/super_current/railtie.rb
67
67
  - lib/super_current/version.rb
68
68
  - lib/tasks/super_current_tasks.rake
69
- homepage: https://www.google.com
69
+ homepage: https://github.com/sampokuokkanen/SuperCurrent
70
70
  licenses:
71
71
  - MIT
72
72
  metadata:
73
- homepage_uri: https://www.google.com
74
- source_code_uri: https://www.google.com
75
- changelog_uri: https://www.google.com
73
+ homepage_uri: https://github.com/sampokuokkanen/SuperCurrent
74
+ source_code_uri: https://github.com/sampokuokkanen/SuperCurrent
75
+ changelog_uri: https://github.com/sampokuokkanen/SuperCurrent/blob/main/CHANGELOG.md
76
76
  post_install_message:
77
77
  rdoc_options: []
78
78
  require_paths: