clean-assert 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,52 +1,4 @@
1
- = clean-assert
1
+ # clean-assert
2
2
 
3
- * http://github.com/niclasnilsson/clean-assert/
3
+ Renamed to clean_assert. See http://github.com/niclasnilsson/clean_assert/
4
4
 
5
- == DESCRIPTION:
6
-
7
- A Ruby library to get really clean asserts.
8
-
9
- Example:
10
-
11
- assert / "name != nil" / "not name.empty?" / "age >= 21"
12
-
13
- This will do three separate assertion checks and will give you an error message that includes
14
- the broken assertion code, the class and the method name. No need for having both the actual assertion and
15
- then a strained error message that you normally have to write to understand what broke. Also, due to it's terseness,
16
- you can afford having several guard clauses on one line instead of letting them take over your method, which keeps
17
- the signal-to-noise ratio sane.
18
-
19
- == FEATURES/PROBLEMS:
20
-
21
- * No known problems.
22
-
23
- == INSTALL:
24
-
25
- $ gem sources -a http://gems.github.com
26
- $ sudo gem install niclasnilsson-clean-assert
27
-
28
-
29
- == LICENSE:
30
-
31
- (The MIT License)
32
-
33
- Copyright (c) 2009 Niclas Nilsson
34
-
35
- Permission is hereby granted, free of charge, to any person obtaining
36
- a copy of this software and associated documentation files (the
37
- 'Software'), to deal in the Software without restriction, including
38
- without limitation the rights to use, copy, modify, merge, publish,
39
- distribute, sublicense, and/or sell copies of the Software, and to
40
- permit persons to whom the Software is furnished to do so, subject to
41
- the following conditions:
42
-
43
- The above copyright notice and this permission notice shall be
44
- included in all copies or substantial portions of the Software.
45
-
46
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
47
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
48
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
49
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
50
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
51
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
52
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,15 +1,14 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'clean-assert/version'
5
4
 
6
5
  Gem::Specification.new do |spec|
7
6
  spec.name = "clean-assert"
8
- spec.version = Clean::Assert::VERSION
7
+ spec.version = "1.0.1"
9
8
  spec.authors = ["Niclas Nilsson"]
10
9
  spec.email = ["niclas@niclasnilsson.se"]
11
- spec.description = %q{A Ruby gem to get really clean asserts}
12
- spec.summary = %q{A Ruby gem to get really clean asserts}
10
+ spec.description = %q{Don't use! Renamed to clean_assert}
11
+ spec.summary = %q{Don't use! Renamed to clean_assert}
13
12
  spec.homepage = "https://github.com/niclasnilsson/clean-assert"
14
13
  spec.license = "MIT"
15
14
 
@@ -18,9 +17,6 @@ Gem::Specification.new do |spec|
18
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
18
  spec.require_paths = ["lib"]
20
19
 
21
- spec.add_dependency "facets", "~> 2.9"
22
-
23
- spec.add_development_dependency "bundler", "~> 1.3"
20
+ spec.add_dependency "clean_assert"
24
21
  spec.add_development_dependency "rake"
25
- spec.add_development_dependency "rspec"
26
22
  end
@@ -1,8 +1 @@
1
- $:.unshift(File.dirname(__FILE__)) unless
2
- $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
-
4
- require 'clean-assert/clean-assert'
5
-
6
- module CleanAssert
7
- VERSION = '0.6.2'
8
- end
1
+ require 'clean_assert'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clean-assert
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,41 +12,19 @@ cert_chain: []
12
12
  date: 2013-10-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: facets
16
- requirement: &70102167125920 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '2.9'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: *70102167125920
25
- - !ruby/object:Gem::Dependency
26
- name: bundler
27
- requirement: &70102167125180 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ~>
31
- - !ruby/object:Gem::Version
32
- version: '1.3'
33
- type: :development
34
- prerelease: false
35
- version_requirements: *70102167125180
36
- - !ruby/object:Gem::Dependency
37
- name: rake
38
- requirement: &70102167124580 !ruby/object:Gem::Requirement
15
+ name: clean_assert
16
+ requirement: &70317305827560 !ruby/object:Gem::Requirement
39
17
  none: false
40
18
  requirements:
41
19
  - - ! '>='
42
20
  - !ruby/object:Gem::Version
43
21
  version: '0'
44
- type: :development
22
+ type: :runtime
45
23
  prerelease: false
46
- version_requirements: *70102167124580
24
+ version_requirements: *70317305827560
47
25
  - !ruby/object:Gem::Dependency
48
- name: rspec
49
- requirement: &70102167122900 !ruby/object:Gem::Requirement
26
+ name: rake
27
+ requirement: &70317305826540 !ruby/object:Gem::Requirement
50
28
  none: false
51
29
  requirements:
52
30
  - - ! '>='
@@ -54,8 +32,8 @@ dependencies:
54
32
  version: '0'
55
33
  type: :development
56
34
  prerelease: false
57
- version_requirements: *70102167122900
58
- description: A Ruby gem to get really clean asserts
35
+ version_requirements: *70317305826540
36
+ description: Don't use! Renamed to clean_assert
59
37
  email:
60
38
  - niclas@niclasnilsson.se
61
39
  executables: []
@@ -69,8 +47,6 @@ files:
69
47
  - Rakefile
70
48
  - clean-assert.gemspec
71
49
  - lib/clean-assert.rb
72
- - lib/clean-assert/clean-assert.rb
73
- - lib/clean-assert/version.rb
74
50
  - script/console
75
51
  - script/destroy
76
52
  - script/generate
@@ -100,7 +76,7 @@ rubyforge_project:
100
76
  rubygems_version: 1.8.17
101
77
  signing_key:
102
78
  specification_version: 3
103
- summary: A Ruby gem to get really clean asserts
79
+ summary: Don't use! Renamed to clean_assert
104
80
  test_files:
105
81
  - spec/clean_assert_spec.rb
106
82
  - spec/regular_methods.rb
@@ -1,19 +0,0 @@
1
- require 'facets'
2
-
3
- module Kernel
4
- alias_method :assert, :binding
5
- end
6
-
7
- class Binding
8
-
9
- def / expression
10
- if not eval expression
11
- the_caller = /\`([^\']+)\'/.match(caller(0).first)
12
- m = "unknown"
13
- m = the_caller ? the_caller[1] : m
14
- raise "Assertion '#{expression}' not satisfied in #{self.self()}##{m}"
15
- end
16
- self
17
- end
18
-
19
- end
@@ -1,5 +0,0 @@
1
- module Clean
2
- module Assert
3
- VERSION = "1.0.0"
4
- end
5
- end