min_max_validator 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38db3259d6533c22a29614ced4b5211ffd06ec3e
4
- data.tar.gz: 0a4b3762015aca70966d7845fcb1dda36402964c
3
+ metadata.gz: 041354381f89c6fc26c821baa913ba21566db208
4
+ data.tar.gz: a06d656f8040315fdaa4471ffb3ebf411e70fdd1
5
5
  SHA512:
6
- metadata.gz: 370bd59997189d7087d29bf5e666da720112eef7bde2dd70611ff05b8d292abcd4b56e20ceeeb41978ffa6e5966d7b5161c56d0a4d570350497bdb47e94a7277
7
- data.tar.gz: bd362e55ec3fedd0355b9d087a4f0cdbf6b168aae54cf8893341605a73852ac1a4d20b0ba2bca85f78e064e38463b2fcda97664628738bfc57ea7f5b8177a04e
6
+ metadata.gz: 942beccb65a9fd8b02afbd869b7a5c5b1bc895db791b99586542e60b68ac2d59e665d19d0c2f35bc2e0bcaf332fc3c0c8d8c3c32642db7c72aac41fc8172604d
7
+ data.tar.gz: fc71332118516b9bf0ddd01f981b7d8302e8ad23160880bf2936af81fadc8813153acccb3ad105f7710505acc07b0b477b48d03d7fbcbe421ceedcb979b58c01
data/.rvmrc ADDED
@@ -0,0 +1,62 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # This is an RVM Project .rvmrc file, used to automatically load the ruby
4
+ # development environment upon cd'ing into the directory
5
+
6
+ # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
7
+ # Only full ruby name is supported here, for short names use:
8
+ # echo "rvm use 2.1.0@min_max_validator" > .rvmrc
9
+ environment_id="ruby-2.1.0@min_max_validator"
10
+
11
+ # Uncomment the following lines if you want to verify rvm version per project
12
+ # rvmrc_rvm_version="1.25.14 (latest)" # 1.10.1 seems like a safe start
13
+ # eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | __rvm_awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
14
+ # echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
15
+ # return 1
16
+ # }
17
+
18
+ # First we attempt to load the desired environment directly from the environment
19
+ # file. This is very fast and efficient compared to running through the entire
20
+ # CLI and selector. If you want feedback on which environment was used then
21
+ # insert the word 'use' after --create as this triggers verbose mode.
22
+ if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
23
+ && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
24
+ then
25
+ \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
26
+ for __hook in "${rvm_path:-$HOME/.rvm}/hooks/after_use"*
27
+ do
28
+ if [[ -f "${__hook}" && -x "${__hook}" && -s "${__hook}" ]]
29
+ then \. "${__hook}" || true
30
+ fi
31
+ done
32
+ unset __hook
33
+ if (( ${rvm_use_flag:=1} >= 2 )) # display only when forced
34
+ then
35
+ if [[ $- == *i* ]] # check for interactive shells
36
+ then printf "%b" "Using: $(tput setaf 2 2>/dev/null)$GEM_HOME$(tput sgr0 2>/dev/null)
37
+ " # show the user the ruby and gemset they are using in green
38
+ else printf "%b" "Using: $GEM_HOME
39
+ " # don't use colors in non-interactive shells
40
+ fi
41
+ fi
42
+ else
43
+ # If the environment file has not yet been created, use the RVM CLI to select.
44
+ rvm --create "$environment_id" || {
45
+ echo "Failed to create RVM environment '${environment_id}'."
46
+ return 1
47
+ }
48
+ fi
49
+
50
+ # If you use bundler, this might be useful to you:
51
+ # if [[ -s Gemfile ]] && {
52
+ # ! builtin command -v bundle >/dev/null ||
53
+ # builtin command -v bundle | GREP_OPTIONS="" \grep $rvm_path/bin/bundle >/dev/null
54
+ # }
55
+ # then
56
+ # printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
57
+ # gem install bundler
58
+ # fi
59
+ # if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
60
+ # then
61
+ # bundle install | GREP_OPTIONS="" \grep -vE '^Using|Your bundle is complete'
62
+ # fi
@@ -1,3 +1,3 @@
1
1
  module MinMaxValidatorVersion
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -8,9 +8,9 @@ Gem::Specification.new do |spec|
8
8
  spec.version = MinMaxValidatorVersion::VERSION
9
9
  spec.authors = ["Naveen Agarwal"]
10
10
  spec.email = ["naveenagarwal287@gmail.com"]
11
- spec.summary = %q{mininum and maximum value validator for the two attributes.}
12
- spec.description = %q{mininum and maximum value validator for the two attributes.}
13
- spec.homepage = ""
11
+ spec.summary = %q{Mininum and Maximum value validator for the two attributes.}
12
+ spec.description = %q{Mininum and Maximum value validator for the two attributes. Checkout the github page}
13
+ spec.homepage = "https://github.com/naveenagarwal/min_max_validator"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.5"
22
- spec.add_development_dependency "rake"
23
- spec.add_development_dependency "activemodel", "~> 4.0.0"
22
+ spec.add_development_dependency "rake", "~> 10.1"
23
+ spec.add_development_dependency "activemodel", "~> 4.0"
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: min_max_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naveen Agarwal
@@ -28,31 +28,32 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '10.1'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '10.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activemodel
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 4.0.0
47
+ version: '4.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 4.0.0
55
- description: mininum and maximum value validator for the two attributes.
54
+ version: '4.0'
55
+ description: Mininum and Maximum value validator for the two attributes. Checkout
56
+ the github page
56
57
  email:
57
58
  - naveenagarwal287@gmail.com
58
59
  executables: []
@@ -61,6 +62,7 @@ extra_rdoc_files: []
61
62
  files:
62
63
  - ".gitignore"
63
64
  - ".rspec"
65
+ - ".rvmrc"
64
66
  - Gemfile
65
67
  - LICENSE.txt
66
68
  - README.md
@@ -71,7 +73,7 @@ files:
71
73
  - spec/min_max_validator_spec.rb
72
74
  - spec/salary.rb
73
75
  - spec/spec_helper.rb
74
- homepage: ''
76
+ homepage: https://github.com/naveenagarwal/min_max_validator
75
77
  licenses:
76
78
  - MIT
77
79
  metadata: {}
@@ -94,7 +96,7 @@ rubyforge_project:
94
96
  rubygems_version: 2.2.0
95
97
  signing_key:
96
98
  specification_version: 4
97
- summary: mininum and maximum value validator for the two attributes.
99
+ summary: Mininum and Maximum value validator for the two attributes.
98
100
  test_files:
99
101
  - spec/min_max_validator_spec.rb
100
102
  - spec/salary.rb