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 +4 -4
- data/dont.gemspec +2 -0
- data/lib/dont.rb +2 -2
- data/lib/dont/version.rb +1 -1
- metadata +29 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 403a3db127556cfce32a357144d5f4de3b5c3e54
|
4
|
+
data.tar.gz: d39e2718237b61d04fe89b2c519b42424420b878
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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
|