hexx-validators 0.0.2 → 0.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: 4e6072a2fd084ab76c6effcebf02b01ef9161b47
4
- data.tar.gz: 71dcb75f1f2837047710c1f76438fb9da5963800
3
+ metadata.gz: 84eeeeebe81f104f736e072c747ac97de51cd027
4
+ data.tar.gz: 2cc1c8149c56bb64a13eeda0e51201ae98094f3b
5
5
  SHA512:
6
- metadata.gz: 656d117c28bd1bda81d627d4cfb808745c190b7b4a4e72e5801b32497e30d4ae6c09050f051fcc31c6362a52def943ba38b406fba29101278dbc63de0ec51a1d
7
- data.tar.gz: 34a4d675e0fdd88612d4cb80873ef8e7a14c8cc8ecd9e8dd8423a0e6d1a6121e639a93f4e968959a4e9cba033c7dfdfc4cf6054e964403560357e1a2a487a28d
6
+ metadata.gz: 6f4556b6a404a5f7ace4a03e12664c431833bbc880327da8fb6698b0ed2358432a7f8e91f48ea0716de4cf799ec8f769b8e5ab917d0b75edf731aa7de370daa0
7
+ data.tar.gz: 5128fb0ced9efe2408718d658fbffebd31568f04d669ae18099d1fc56b98cc4ecd953e80b4166f20268539d5234031f12516d522c4136a24bf8a104ca1446bdc
data/.metrics CHANGED
@@ -1,5 +1,8 @@
1
1
  # Settings for metric_fu and its packages are collected in the `config/metrics`
2
2
  # and loaded by the Hexx::Suit::Metrics::MetricFu.
3
3
 
4
- require "hexx-suit"
5
- Hexx::Suit::Metrics::MetricFu.load
4
+ begin
5
+ require "hexx-suit"
6
+ Hexx::Suit::Metrics::MetricFu.load
7
+ rescue LoadError
8
+ end
@@ -1,5 +1,7 @@
1
1
  ---
2
2
  language: ruby
3
+ bundler_args: --without metrics
4
+ script: rake test:coverage:run
3
5
  rvm:
4
6
  - '2.0'
5
7
  - ruby-head
data/Gemfile CHANGED
@@ -2,6 +2,4 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- group :development do
6
- gem "hexx-suit", "1.2", require: false
7
- end
5
+ gem "hexx-suit", "~> 2.0", group: :metrics if RUBY_ENGINE == "ruby"
data/Rakefile CHANGED
@@ -10,8 +10,13 @@ end
10
10
  Bundler::GemHelper.install_tasks
11
11
 
12
12
  # Loads the Hexx::Suit and its tasks
13
- require "hexx-suit"
14
- Hexx::Suit.install_tasks
13
+ begin
14
+ require "hexx-suit"
15
+ Hexx::Suit.install_tasks
16
+ rescue LoadError
17
+ require "hexx-rspec"
18
+ Hexx::RSpec.install_tasks
19
+ end
15
20
 
16
21
  # Sets the Hexx::Suit :test task to default
17
22
  task default: "test:coverage:run"
@@ -20,6 +20,6 @@ Gem::Specification.new do |gem|
20
20
 
21
21
  gem.required_ruby_version = "~> 2.0"
22
22
  gem.add_runtime_dependency "hexx-cli", "~> 0.0"
23
- gem.add_development_dependency "hexx-rspec", "~> 0.2", ">= 0.2.2"
23
+ gem.add_development_dependency "hexx-rspec", "~> 0.3"
24
24
 
25
25
  end
@@ -6,7 +6,7 @@ module Hexx
6
6
 
7
7
  # The semantic version of the module.
8
8
  # @see http://semver.org/ Semantic versioning 2.0
9
- VERSION = "0.0.2".freeze
9
+ VERSION = "0.0.3".freeze
10
10
 
11
11
  end # module Validators
12
12
 
@@ -1,10 +1,10 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  # Loads the RSpec test suit.
4
- require "hexx-suit"
4
+ require "hexx-rspec"
5
5
 
6
6
  # Loads runtime metrics in the current scope
7
- Hexx::Suit.load_metrics_for(self)
7
+ Hexx::RSpec.load_metrics_for(self)
8
8
 
9
9
  # Loads the code of the module.
10
10
  require "hexx-validators"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexx-validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kozin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-15 00:00:00.000000000 Z
11
+ date: 2015-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hexx-cli
@@ -30,20 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.2'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 0.2.2
33
+ version: '0.3'
37
34
  type: :development
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
38
  - - "~>"
42
39
  - !ruby/object:Gem::Version
43
- version: '0.2'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 0.2.2
40
+ version: '0.3'
47
41
  description: Thor-based generator of an ActiveModel validatorsand its unit test templates.
48
42
  email: andrew.kozin@gmail.com
49
43
  executables: []