model_probe 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f529486721f92533bdca5e5703fb35abccfd3dee
4
- data.tar.gz: 03b9be5b28786a64cf044886118db49fc29f2ed6
3
+ metadata.gz: 0cff622189ea7fcacf08ecfb65e1b0f459f43a04
4
+ data.tar.gz: 5e02a614bfd05e297054ae6e0158198f412b34e5
5
5
  SHA512:
6
- metadata.gz: 8946426d5e90e1da04c6123565ae65e39082fbc7cb42b6613e1ed90a15f1335045e9efe91ac4f4969a573d42030a7d5c2d9eda6fbfc89cede06210aa6cb3bb4d
7
- data.tar.gz: 490eeea279e7a3738025b4fa3a159addbd13acf76383bd75918768bc285ef1f196da59be8edf9d03a888354c9698a544ef2ed4415d1b92d05db0e3c4dd583712
6
+ metadata.gz: edd4072303a148f7513c2c7d2c5fd51128fae4f654a78c7d8eb756207f3246f26cc79d55c61c99c98330ba88dc514607618cd0b56550250c91efe490bc30783d
7
+ data.tar.gz: 917f11eb0ebc37a0b186f97cee843e8c3e9bff8cb56c0211b368b1a7130652b97a693e3747ee521cafb8c13804d7b77d523b22a8c222a1654e3107fd0f52d602
data/Gemfile.lock ADDED
@@ -0,0 +1,11 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+
5
+ PLATFORMS
6
+ ruby
7
+
8
+ DEPENDENCIES
9
+
10
+ BUNDLED WITH
11
+ 1.10.6
@@ -1,3 +1,3 @@
1
1
  module ModelProbe
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
data/lib/model_probe.rb CHANGED
@@ -98,7 +98,7 @@ module ModelProbe
98
98
 
99
99
  def validation_column?(column)
100
100
  return false if column.name == primary_key
101
- return true if column.null
101
+ return true unless column.null
102
102
  %i(text string).include?(column.type) && column.limit.to_i > 0
103
103
  end
104
104
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: model_probe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins
@@ -10,22 +10,21 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2016-08-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Provides a detailed view of the underlying schema that backs an ActiveModel.
13
+ description:
14
14
  email:
15
15
  - natehop@gmail.com
16
16
  executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - ".gitignore"
21
20
  - Gemfile
21
+ - Gemfile.lock
22
22
  - LICENSE.txt
23
23
  - README.md
24
24
  - Rakefile
25
25
  - lib/model_probe.rb
26
26
  - lib/model_probe/color.rb
27
27
  - lib/model_probe/version.rb
28
- - model_probe.gemspec
29
28
  homepage: http://hopsoft.github.com/model_probe/
30
29
  licenses: []
31
30
  metadata: {}
@@ -48,5 +47,5 @@ rubyforge_project:
48
47
  rubygems_version: 2.5.1
49
48
  signing_key:
50
49
  specification_version: 4
51
- summary: Schema introspection for ActiveModel.
50
+ summary: Schema introspection for ActiveModel
52
51
  test_files: []
data/.gitignore DELETED
@@ -1,17 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
data/model_probe.gemspec DELETED
@@ -1,19 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'model_probe/version'
5
-
6
- Gem::Specification.new do |gem|
7
- gem.name = "model_probe"
8
- gem.version = ModelProbe::VERSION
9
- gem.authors = ["Nathan Hopkins"]
10
- gem.email = ["natehop@gmail.com"]
11
- gem.description = "Provides a detailed view of the underlying schema that backs an ActiveModel."
12
- gem.summary = "Schema introspection for ActiveModel."
13
- gem.homepage = "http://hopsoft.github.com/model_probe/"
14
-
15
- gem.files = `git ls-files`.split($/)
16
- # gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
- # gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
- gem.require_paths = ["lib"]
19
- end