object_info 0.1.1 → 0.1.2
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/README.md +49 -0
- data/lib/object_info/version.rb +1 -1
- data/object_info.gemspec +2 -2
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: baf42bf56df6fba8c22026a496aa03717811ea60
|
4
|
+
data.tar.gz: 43172792560b6651b1519b79edcb6f2c8f9ba82f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14941532d5dfd471f890b6c72b21643c1cbc5d23e51cede812e442d213c96c0103e977166e04663ddf91743d48bc0853a240f08093feb5f1a5e9ab056fc0051e
|
7
|
+
data.tar.gz: d16e012561dbeaa0cbd9f17954a30be1fd6090ecb93919cf9ffb6f4ee8e06f4a12d02d734508364720ad007d91cc860692b5df1b36d295c62a31e5d1e0ae5e69
|
data/README.md
CHANGED
@@ -38,6 +38,55 @@ If you specify true as second parameter, the output will also include attributes
|
|
38
38
|
|
39
39
|
|
40
40
|
You can also use ```owl``` instead of ```oi```, because an owl sees things hide in the dark.
|
41
|
+
|
42
|
+
|
43
|
+
## Sample output
|
44
|
+
```
|
45
|
+
> owl Book.first
|
46
|
+
Book Load (1.5ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT ? [["LIMIT", 1]]
|
47
|
+
Class: Book
|
48
|
+
Class_methods:
|
49
|
+
[
|
50
|
+
[0] initialize() Book
|
51
|
+
[1] method_that_do_things() Book
|
52
|
+
[2] test_below_structure() Book
|
53
|
+
[3] test_net_exception_handling(&block) Book
|
54
|
+
]
|
55
|
+
Associations:
|
56
|
+
--> has_many:
|
57
|
+
nothing
|
58
|
+
---> belongs_to:
|
59
|
+
relation name: author
|
60
|
+
Instance methods:
|
61
|
+
[
|
62
|
+
[0] :tester_method,
|
63
|
+
[1] :tester_method_two,
|
64
|
+
[2] :belongs_to_counter_cache_after_update,
|
65
|
+
[3] :autosave_associated_records_for_author
|
66
|
+
]
|
67
|
+
Callbacks:
|
68
|
+
after save >>> tester_method_two
|
69
|
+
before save >>> autosave_associated_records_for_author
|
70
|
+
before save >>> tester_method
|
71
|
+
Payload:
|
72
|
+
Author Load (1.5ms) SELECT "authors".* FROM "authors" WHERE "authors"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
|
73
|
+
#<Book:0x007fc14f188a90> {
|
74
|
+
:id => 1,
|
75
|
+
:title => "Test title",
|
76
|
+
:category => 1,
|
77
|
+
:pages => 300,
|
78
|
+
:author => #<Author:0x007fc150841480> {
|
79
|
+
:id => 1,
|
80
|
+
:name => "Chiara",
|
81
|
+
:created_at => Tue, 01 Nov 2016 11:24:18 UTC +00:00,
|
82
|
+
:updated_at => Tue, 01 Nov 2016 11:24:18 UTC +00:00
|
83
|
+
},
|
84
|
+
:created_at => Mon, 31 Oct 2016 16:06:24 UTC +00:00,
|
85
|
+
:updated_at => Tue, 08 Nov 2016 15:05:44 UTC +00:00,
|
86
|
+
:author_id => 1
|
87
|
+
}
|
88
|
+
```
|
89
|
+
|
41
90
|
## Development
|
42
91
|
|
43
92
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/object_info/version.rb
CHANGED
data/object_info.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Fabio Ros"]
|
10
10
|
spec.email = ["fabio@ros90@gmail.com"]
|
11
11
|
|
12
|
-
spec.
|
13
|
-
spec.
|
12
|
+
spec.description = %q{This gem gives some informations about an object's context.}
|
13
|
+
spec.summary = %q{Thinked for development use.
|
14
14
|
It produces a list of Methods, attributes, relations and callbacks related to the passed resource.
|
15
15
|
You can invoke it with ```oi``` or ```owl``` ( because an owl sees things through the dark ).}
|
16
16
|
spec.homepage = "https://github.com/FabioRos/object_info"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: object_info
|
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
|
- Fabio Ros
|
@@ -66,10 +66,7 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 1.7.0
|
69
|
-
description:
|
70
|
-
Thinked for development use.
|
71
|
-
It produces a list of Methods, attributes, relations and callbacks related to the passed resource.
|
72
|
-
You can invoke it with ```oi``` or ```owl``` ( because an owl sees things through the dark ).
|
69
|
+
description: This gem gives some informations about an object's context.
|
73
70
|
email:
|
74
71
|
- fabio@ros90@gmail.com
|
75
72
|
executables: []
|
@@ -111,5 +108,7 @@ rubyforge_project:
|
|
111
108
|
rubygems_version: 2.5.1
|
112
109
|
signing_key:
|
113
110
|
specification_version: 4
|
114
|
-
summary:
|
111
|
+
summary: Thinked for development use. It produces a list of Methods, attributes, relations
|
112
|
+
and callbacks related to the passed resource. You can invoke it with ```oi``` or ```owl```
|
113
|
+
( because an owl sees things through the dark ).
|
115
114
|
test_files: []
|