active_object 5.5.2 → 5.5.3
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 +4 -4
- data/.gitignore +4 -0
- data/.irbrc +44 -0
- data/.rubocop.yml +2 -0
- data/README.md +2 -0
- data/lib/active_object/numeric.rb +2 -0
- data/lib/active_object/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0defeadff70dccd4e5e304698bf45fdccb89a690c7f41c5a001d3a6caa6dedaa
|
4
|
+
data.tar.gz: fda47f4a96d84a512f90b17e011d7dfee6b8ebb0d2d73270a8f4917810e80ac2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c844d2991441b2b210fe6fc01cd4b9a71c866ae34fe646a51402e81871f003d057760d1c8d21ad5fb1393d3b36dcf0439a7b1a7ed572dc1ccee7cb796ce5521
|
7
|
+
data.tar.gz: b052305a82d693c9b69143c79e79d2dfce0dbe1a2118c9fa14cfca25bc1d17aa2843eed5dfcc551140fc39de4c4f48a4cf582a1388a1518edd27cf88c8948afe
|
data/.gitignore
CHANGED
data/.irbrc
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Awesome print
|
4
|
+
begin
|
5
|
+
require 'awesome_print'
|
6
|
+
|
7
|
+
AwesomePrint.irb!
|
8
|
+
rescue LoadError => err
|
9
|
+
warn "Couldn't load awesome_print: #{err}"
|
10
|
+
end
|
11
|
+
|
12
|
+
# IRB
|
13
|
+
require 'irb/completion'
|
14
|
+
|
15
|
+
ARGV.concat %w[--readline --prompt-mode simple]
|
16
|
+
|
17
|
+
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
18
|
+
IRB.conf[:EVAL_HISTORY] = 1000
|
19
|
+
IRB.conf[:SAVE_HISTORY] = 1000
|
20
|
+
IRB.conf[:HISTORY_FILE] = File.expand_path('.irbrc_history')
|
21
|
+
|
22
|
+
# Rails
|
23
|
+
railsrc_path = File.expand_path('.irbrc_rails')
|
24
|
+
|
25
|
+
if (ENV['RAILS_ENV'] || defined?(Rails)) && File.exist?(railsrc_path)
|
26
|
+
begin
|
27
|
+
load railsrc_path
|
28
|
+
rescue Exception => err
|
29
|
+
warn "Could not load: #{railsrc_path} because of #{err}"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
# Object
|
34
|
+
class Object
|
35
|
+
|
36
|
+
def interesting_methods
|
37
|
+
case self.class
|
38
|
+
when Class then public_methods.sort - Object.public_methods
|
39
|
+
when Module then public_methods.sort - Module.public_methods
|
40
|
+
else public_methods.sort - Object.new.public_methods
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.5.
|
4
|
+
version: 5.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- ".DS_Store"
|
119
119
|
- ".fasterer.yml"
|
120
120
|
- ".gitignore"
|
121
|
+
- ".irbrc"
|
121
122
|
- ".reek.yml"
|
122
123
|
- ".rspec"
|
123
124
|
- ".rubocop.yml"
|