dont 0.1.1 → 0.1.2

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: 79e390ca714c283c11ab6c6ed2df51bc9623dcfe
4
- data.tar.gz: 0e65bfb6b8d054d1cfe0311bc951b13f2edf7996
3
+ metadata.gz: 403a3db127556cfce32a357144d5f4de3b5c3e54
4
+ data.tar.gz: d39e2718237b61d04fe89b2c519b42424420b878
5
5
  SHA512:
6
- metadata.gz: 5673e14de0efd99161fd5e474d1809c8312c3e9e17e2048710a94f2ba3659fd5c71b46edb6e8068692ff18ddea013f3d6fc9b4a69a3f4cfeb67fa537181cbe8b
7
- data.tar.gz: ebd77b1c6e42494ec0988fcc4c2477468702fa66edba988645e0b168cdcb5567a1ae1ab3d037fbca21db9854b8c7ea512b5ec6e0cdbc4d471e59db30a021daed
6
+ metadata.gz: 3edaf5249591d2af3646f1b926aef81b1c5b84967e84ff873e00a2eba46f3c44556f7c18a618e5ba30fceb36486e2afb6a360870ae73699e535386cc86304b7f
7
+ data.tar.gz: 260ad407d1c267df6352336c5da2e9a07b834fef1a93255245427c1c24d958573fa08f9055a3878aa70c7f1404757b03bc8610f55d94b5a8b7e8c7d847c488b1
data/dont.gemspec CHANGED
@@ -26,4 +26,6 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "bundler", "~> 1.13"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
28
28
  spec.add_development_dependency "rspec", "~> 3.0"
29
+ spec.add_development_dependency "sqlite3", "~> 1.3.12"
30
+ spec.add_development_dependency "activerecord", "~> 4.2"
29
31
  end
data/lib/dont.rb CHANGED
@@ -77,9 +77,9 @@ class Dont < Module
77
77
  handler.call(self, method)
78
78
  if is_ar_attribute
79
79
  if method =~ /=$/
80
- self[method] = args.first
80
+ self[method.to_s.gsub(/=$/, '')] = args.first
81
81
  else
82
- self[method]
82
+ self[method.to_s.gsub(/\?$/, '')]
83
83
  end
84
84
  else
85
85
  old_method.bind(self).call(*args)
data/lib/dont/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Dont < Module
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dont
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maarten Claes
@@ -66,6 +66,34 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sqlite3
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.3.12
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.3.12
83
+ - !ruby/object:Gem::Dependency
84
+ name: activerecord
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '4.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '4.2'
69
97
  description: Mark methods as deprecated
70
98
  email:
71
99
  - maartencls@gmail.com