active_record-framing 0.1.0.pre.5 → 0.1.0.pre.6

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: 50f9ead434db94b752243dc9e02394e66b3ddfffce6ef928d956a216b60f1152
4
- data.tar.gz: 8076e981ada88139570808b4a557ab2ff8fc142da0968194f16a4ad343af2ccd
3
+ metadata.gz: f3a82c08956116555faae0d8aa11a5faaa4a848f14ba048fcdf0f02098ae6bac
4
+ data.tar.gz: a12376394a7995c2dbc3227fbeb877553f7e3ee11e12cfc7a7238c41187d371f
5
5
  SHA512:
6
- metadata.gz: 766afa51855672ad7ad6d0dad90f7dcd3431f2ef3a26a9c1d56c7eb77d2bef6cff5cc1a29b0f2c0a6e8289f72e7da27737e7d199ec6074969c4850e7cbe31f89
7
- data.tar.gz: f57a1021461f0dbe7d769badd5267eada20a0c331e801bea521326454089873fa0ed474be55bcac6b075af6afe704cb1452f6e8b80f2d663e9e4ad2e6db3d691
6
+ metadata.gz: f70fb299b5d86d342aed612b11793bbcdba78083a629cb08e68e5bd84d15fedae6c30f0cdad691f97e379bb4e64b2d0fcab65623230d25e5e7c3f18d0d9d450e
7
+ data.tar.gz: 454cc8d8aabccec93899e1c816726dc20a04b2a5fa4eb24f3a48649d6071ad0dbd810effef4b7a09fcf81c6fd1cc6d842d51265c8c18295f4da5bf043c95348c
data/README.md CHANGED
@@ -12,7 +12,7 @@ Unlike scopes, they do not affect the values of attributes upon creation.
12
12
 
13
13
  ## Requirements
14
14
 
15
- - Ruby 2.4+
15
+ - Ruby 2.3+
16
16
  - ActiveRecord 4.2+
17
17
 
18
18
  ## Installation
@@ -63,6 +63,18 @@ module ActiveRecord
63
63
  return @registry[frame_type][model.name]
64
64
  end
65
65
 
66
+ # def value_for(frame_type, model, skip_inherited_frame = false)
67
+ # raise_invalid_frame_type!(frame_type)
68
+ # return @registry[frame_type][model.name] if skip_inherited_frame
69
+ # klass = model
70
+ # base = model.base_class
71
+ # while klass <= base
72
+ # value = @registry[frame_type][klass.name]
73
+ # return value if value
74
+ # klass = klass.superclass
75
+ # end
76
+ # end
77
+
66
78
  # Sets the +value+ for a given +frame_type+ and +model+.
67
79
  def set_value_for(frame_type, model, value)
68
80
  raise_invalid_frame_type!(frame_type)
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Framing
3
- VERSION = "0.1.0-5"
3
+ VERSION = "0.1.0-6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record-framing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.5
4
+ version: 0.1.0.pre.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Stevens
@@ -179,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
179
179
  requirements:
180
180
  - - ">="
181
181
  - !ruby/object:Gem::Version
182
- version: '2.4'
182
+ version: '2.3'
183
183
  required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - ">"