activefacts-api 1.9.8 → 1.9.9

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
  SHA1:
3
- metadata.gz: f39c2c06e4944b22596521987c4ac1d06e74d5d6
4
- data.tar.gz: 6324bef159376879b00a5dd4fc721d65d4c5555c
3
+ metadata.gz: f86657355ff6c748b745dadd01508eb174992352
4
+ data.tar.gz: 874518fe95ea9674746018eb1e2d28fb12b92e2f
5
5
  SHA512:
6
- metadata.gz: 17c173ea10a05b136276a2a0dfdba5cabef9a0a05d4fc79b8e7ef8c56c076e6ce96dbebba33f9b6b61b3bad890249b03791ba3d29bfc51b84b682044e4deac05
7
- data.tar.gz: 7ba7a00f79249465b3eeb66f73297d6d3707cacc5e101e2f9134ce313937cf575edf527bcbe278ec1f001cde80937580f25bb036c0fd173334ae778a50432be4
6
+ metadata.gz: 221ca6727dcfdde1389070a40aab5bc56133a51134ea346f82169bbe8239b9ae57c2bbc6c46cea22343107c1e4c0b64921957396707776b63f557a2c1192764b
7
+ data.tar.gz: b2f8b6dba4580ca1c9a3e7f15d6f8a7ffc20fdb197596b710aaaefbe132eaae12a865206d3490f9134cbdea2f47e94899b014a1c744f13f2606a2667a0afa18d
@@ -75,8 +75,7 @@ module ActiveFacts
75
75
  end
76
76
 
77
77
  def define_class_accessor m, klass
78
- (class << self; self; end).
79
- send(:define_method, m) do |*args|
78
+ singleton_class.send(:define_method, m) do |*args|
80
79
  if args.size == 0
81
80
  # Return the collection of all instances of this class in the constellation:
82
81
  instances[klass]
@@ -86,10 +86,9 @@ module ActiveFacts
86
86
  klass.class_eval do
87
87
  role_accessor_name = "#{role.name}_role"
88
88
  unless respond_to?(role_accessor_name)
89
- (class << self; self; end).
90
- send(:define_method, role_accessor_name) do
91
- role
92
- end
89
+ singleton_class.send(:define_method, role_accessor_name) do
90
+ role
91
+ end
93
92
  # else we can't create such a method without creating mayhem, so don't.
94
93
  end
95
94
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveFacts
2
2
  module API
3
- VERSION = "1.9.8"
3
+ VERSION = "1.9.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activefacts-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.8
4
+ version: 1.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clifford Heath