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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 692c61bd8e6dc1d6f9725cc01e98441fecfd0c4a
4
- data.tar.gz: dcd36a7b9776c7060a9631aa66a45c2ca3ee9b78
3
+ metadata.gz: baf42bf56df6fba8c22026a496aa03717811ea60
4
+ data.tar.gz: 43172792560b6651b1519b79edcb6f2c8f9ba82f
5
5
  SHA512:
6
- metadata.gz: 25958e0a3814b05f28f3d863fd07f970b9d776f879db292fef207156c1b8a4896d247073e08946606153b572bb378e5eab04d56220a2cb9b55b36b7ec8a5c7a6
7
- data.tar.gz: f1c2b1f5be75f1680ff598ca21efb4279f9d1d6fbddf8b30a7da928e73e33616427fd7ccdd47ab84b783a2c3c133e2e2550a7f11261c43af0691841eee84b3b7
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.
@@ -1,3 +1,3 @@
1
1
  module ObjectInfo
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.summary = %q{This gem gives some informations about an object's context.}
13
- spec.description = %q{Thinked for development use.
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.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: This gem gives some informations about an object's context.
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: []