assure 0.1.2 → 1.0

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.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/assure.gemspec +1 -1
  3. data/test/assure_test.rb +4 -4
  4. metadata +8 -11
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2bdf5d2ea930c58efd2b33e79f6d66d99b946f0a
4
+ data.tar.gz: a35bd195a1a202866bba0847918aa5e9247b56db
5
+ SHA512:
6
+ metadata.gz: 250e7e08f93e2a27f923fa5b8662857a376d8c9e870b578009feb9489ebb82465c6ce2cbdd5c762e2bc666ae5e2f03cf19cb7cc61cea0dc5e49dc77de3f9fd04
7
+ data.tar.gz: a3191a61a5000c8d94548f0d3d7fc15fab14ab21ffb7eaa88f6ac7a36fcdac4fa67c398778671acee87ad4b1da3fcbd16d32686be865498651323e9342bd6bb5
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  SPEC = Gem::Specification.new do |s|
4
4
  s.name = "assure"
5
- s.version = "0.1.2"
5
+ s.version = "1.0"
6
6
  s.author = "Pluron, Inc."
7
7
  s.email = "support@pluron.com"
8
8
  s.homepage = "http://github.com/acunote/assure"
@@ -11,23 +11,23 @@ class AssureTest < Test::Unit::TestCase
11
11
  exception = assert_raise(RuntimeError) do
12
12
  assure(false)
13
13
  end
14
- assert_equal 'test/assure_test.rb:12: test_basic: Assertion "false" failed', exception.message
14
+ assert_equal '/test/assure_test.rb:12: block in test_basic: Assertion "false" failed', exception.message
15
15
 
16
16
  exception = assert_raise(RuntimeError) do
17
17
  assure(nil)
18
18
  end
19
- assert_equal 'test/assure_test.rb:17: test_basic: Assertion "nil" failed', exception.message
19
+ assert_equal '/test/assure_test.rb:17: block in test_basic: Assertion "nil" failed', exception.message
20
20
 
21
21
  exception = assert_raise(RuntimeError) do
22
22
  x = 2
23
23
  assure( x == 3, "#{x} == 2" )
24
24
  end
25
- assert_equal "test/assure_test.rb:23: test_basic: Assertion \"x == 3, \"\#{x} == 2\"\" failed\n2 == 2", exception.message
25
+ assert_equal "/test/assure_test.rb:23: block in test_basic: Assertion \"x == 3, \"\#{x} == 2\"\" failed\n2 == 2", exception.message
26
26
 
27
27
  exception = assert_raise(RuntimeError) do
28
28
  assure(1.is_a? String)
29
29
  end
30
- assert_equal 'test/assure_test.rb:28: test_basic: Assertion "1.is_a? String" failed', exception.message
30
+ assert_equal '/test/assure_test.rb:28: block in test_basic: Assertion "1.is_a? String" failed', exception.message
31
31
  end
32
32
 
33
33
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ version: '1.0'
6
5
  platform: ruby
7
6
  authors:
8
7
  - Pluron, Inc.
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-08-23 00:00:00.000000000 Z
11
+ date: 2013-12-26 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Adds assure and internal_error methods
15
14
  email: support@pluron.com
@@ -17,7 +16,7 @@ executables: []
17
16
  extensions: []
18
17
  extra_rdoc_files: []
19
18
  files:
20
- - .gitignore
19
+ - ".gitignore"
21
20
  - LICENSE
22
21
  - README.md
23
22
  - Rakefile
@@ -28,28 +27,26 @@ files:
28
27
  homepage: http://github.com/acunote/assure
29
28
  licenses:
30
29
  - MIT
30
+ metadata: {}
31
31
  post_install_message:
32
32
  rdoc_options: []
33
33
  require_paths:
34
34
  - lib
35
35
  required_ruby_version: !ruby/object:Gem::Requirement
36
- none: false
37
36
  requirements:
38
- - - ! '>='
37
+ - - ">="
39
38
  - !ruby/object:Gem::Version
40
39
  version: '0'
41
40
  required_rubygems_version: !ruby/object:Gem::Requirement
42
- none: false
43
41
  requirements:
44
- - - ! '>='
42
+ - - ">="
45
43
  - !ruby/object:Gem::Version
46
44
  version: '0'
47
45
  requirements: []
48
46
  rubyforge_project:
49
- rubygems_version: 1.8.23
47
+ rubygems_version: 2.2.0
50
48
  signing_key:
51
- specification_version: 3
49
+ specification_version: 4
52
50
  summary: Raises internal error when expression evaluates to nil or false.
53
51
  test_files:
54
52
  - test/assure_test.rb
55
- has_rdoc: true