crazy_db 0.0.1 → 0.0.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 ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NjE4NDJjNThiYTkxOGZjOWY3ZDNiYjY5MDc3NzA5YWFhZTMyYzVhYQ==
5
+ data.tar.gz: !binary |-
6
+ MDA1YjM3MjY4NGEzNTMxYjI2NmJkYzZkYWY4NjUzMzRkY2M4YzJlMg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MTczZjQzYTJlYjAzYmM0Yjc0YzJiYTRiZGY0M2VjYTZiNTkyZmJkNDUzYjMw
10
+ MDdmOWE1ZDlmOTM1MWM5M2M1MTJkNTI3NzkzZjMzNDVjZTYyYTVmM2QzYjhm
11
+ MDU0Y2I0MWI5NGEzYTAxYjAzMjMyNjg5ZjdmYjA0OTQ4Nzk1NDk=
12
+ data.tar.gz: !binary |-
13
+ NTBmN2MxYWRiNjZkMTgwZWRhNmNmZGFhYzRjZTI0MTA4N2Q2NWQ5ZjM0OTkw
14
+ MzY1MjQ3YmIwMjBkYjYzNzIxYWYxMTZkZTI0N2ZhMGQ3ZDI4Yjg4NGVhZmQ2
15
+ NzZjNjZkMzY1YWI3MTFiZGQ1MTIxMjZmMTMzOTI2NzdjMmMyNDc=
data/crazy_db.gemspec CHANGED
@@ -10,8 +10,8 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["hcnaveenkumar@gmail.com"]
11
11
  spec.description = "Rails database information"
12
12
  spec.summary = "Crazy DB"
13
- spec.homepage = "http://rubygems.org/gems/crazy_db"
14
- #spec.license = "MIT"
13
+ spec.homepage = "http://rubygems.org/gems/crazy_db/0.0.2"
14
+ spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split("\n")
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -1,3 +1,3 @@
1
1
  module CrazyDb
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/crazy_db.rb CHANGED
@@ -2,12 +2,16 @@ require "crazy_db/version"
2
2
  module CrazyDb
3
3
  class CrazyDbOne
4
4
  # Your code goes here...
5
- def today_date
5
+ def database_information
6
6
  puts "DATABASE NAME - #{Rails.configuration.database_configuration["development"]["database"]}"
7
7
  puts "TOTAL NUMBER OF TABLES - #{ActiveRecord::Base.connection.tables.count}"
8
8
  puts "DATABASE TABLE NAMES"
9
9
  ActiveRecord::Base.connection.tables.each do |table|
10
- puts table
10
+ begin
11
+ puts "#{table} - #{table.classify.constantize.count} Records"
12
+ rescue
13
+
14
+ end
11
15
  end
12
16
  end
13
17
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crazy_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Naveen
@@ -26,28 +25,28 @@ files:
26
25
  - crazy_db.gemspec
27
26
  - lib/crazy_db.rb
28
27
  - lib/crazy_db/version.rb
29
- homepage: http://rubygems.org/gems/crazy_db
30
- licenses: []
28
+ homepage: http://rubygems.org/gems/crazy_db/0.0.2
29
+ licenses:
30
+ - MIT
31
+ metadata: {}
31
32
  post_install_message:
32
33
  rdoc_options: []
33
34
  require_paths:
34
35
  - lib
35
36
  required_ruby_version: !ruby/object:Gem::Requirement
36
- none: false
37
37
  requirements:
38
38
  - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  required_rubygems_version: !ruby/object:Gem::Requirement
42
- none: false
43
42
  requirements:
44
43
  - - ! '>='
45
44
  - !ruby/object:Gem::Version
46
45
  version: '0'
47
46
  requirements: []
48
47
  rubyforge_project:
49
- rubygems_version: 1.8.24
48
+ rubygems_version: 2.0.3
50
49
  signing_key:
51
- specification_version: 3
50
+ specification_version: 4
52
51
  summary: Crazy DB
53
52
  test_files: []