rdl 1.0.0.rc4 → 1.0.0.rc5

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: 34e6eddfee2d08722132c424591d878ffbc18f02
4
- data.tar.gz: ff24c0cc1d42115c74a08eb71c4e559387b70ec9
3
+ metadata.gz: f08d83f1ab28460fdf388e66bb895301e15074de
4
+ data.tar.gz: 3aa93fb286eaa230381861d94eb5c3c84d1216c2
5
5
  SHA512:
6
- metadata.gz: 4b73359d42f51dd62711d909c45871e5846f8f07550ec9dee14c5f37e01768fc2d7fd50cb2fcdda5589eb2a8e6ae3c7f4c71c3207eb125116704ece7533d57e2
7
- data.tar.gz: 5fa178c68df8d9e1f302c921d6037b3b4178f8219c1d4d9ac133118958b6b3f9a8b9181a459b59611e2dccd30b4772787defd10e6885fd322bb358bde5efb593
6
+ metadata.gz: b40bbe4769252d20b12908a0d60fddb5a361c33cf129142bf9d408203f81d4829d11c86cd43f57065f727d0c46bb56ffa93a40796b3842a88e698cc78f224327
7
+ data.tar.gz: a86819890911ddc6177ab05b83f0f38725e3e801bb59812ce4aeadbbecdec14656955a6ea33b485dabc90f7f91c07a06f2fef5bc0f055bf46e4c6b5d552d9c50
data/README.md CHANGED
@@ -39,7 +39,7 @@ RDL contracts and types are stored in memory at run time, so it's also possible
39
39
  > rdl_query 'hash' # get type for instance method of current class
40
40
  Object#hash: () -> Fixnum
41
41
  => nil
42
- > rdl_query 'String#include' # get type for instance method of another class
42
+ > rdl_query 'String#include?' # get type for instance method of another class
43
43
  String#include?: (String) -> FalseClass or TrueClass
44
44
  => nil
45
45
  > rdl_query 'Pathname.glob' # get type for singleton method of a class
@@ -4,7 +4,7 @@
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'rdl'
7
- s.version = '1.0.0.rc4'
7
+ s.version = '1.0.0.rc5'
8
8
  s.date = '2015-12-17'
9
9
  s.summary = 'Ruby type and contract system'
10
10
  s.description = <<-EOF
@@ -1,11 +1,11 @@
1
1
  class Class
2
2
  rdl_nowrap
3
3
 
4
- type 'allocate', '() -> %any' # Instance of class self
5
- type 'inherited', '(Class) -> %any'
4
+ type :allocate, '() -> %any' # Instance of class self
5
+ type :inherited, '(Class) -> %any'
6
6
  #type 'initialize', '() -> '
7
7
  #type 'new', '(*%any) -> %any' #Causes two other test cases to fail
8
- type 'superclass', '() -> Class or nil'
8
+ type :superclass, '() -> Class or nil'
9
9
 
10
10
  # type :class_eval, '() {() -> %any} -> %any'
11
11
  # type :method_defined?, '(String or Symbol) -> %bool'
@@ -1,6 +1,6 @@
1
1
  class Date
2
2
  rdl_nowrap
3
3
 
4
- type('self.now', "() -> DateTime")
5
- type(:strftime, "(String) -> String")
4
+ type 'self.now', '() -> DateTime'
5
+ type :strftime, '(String) -> String'
6
6
  end
@@ -1,17 +1,17 @@
1
1
  class Exception
2
2
  rdl_nowrap
3
-
4
- type '==', '(%any) -> %bool'
5
- type 'backtrace', '() -> Array<String>'
6
- type 'backtrace_locations', '() -> Array<Thread::Backtrace::Location>'
7
- type 'cause', '() -> nil' # TODO exception is proper postcondition
8
- type 'exception', '(?String) -> Exception' # or error
3
+
4
+ type :==, '(%any) -> %bool'
5
+ type :backtrace, '() -> Array<String>'
6
+ type :backtrace_locations, '() -> Array<Thread::Backtrace::Location>'
7
+ type :cause, '() -> nil' # TODO exception is proper postcondition
8
+ type :exception, '(?String) -> Exception' # or error
9
9
  # type 'initialize', '() -> '
10
- type 'inspect', '() -> String'
11
- type 'message', '() -> String'
10
+ type :inspect, '() -> String'
11
+ type :message, '() -> String'
12
12
  # type 'method_missing', '() -> '
13
13
  # type 'respond_to?', '() -> '
14
14
  # type 'respond_to_missing?', '() -> '
15
- type 'set_backtrace', '(String or Array<String>) -> Array<String>'
16
- type 'to_s', '() -> String'
15
+ type :set_backtrace, '(String or Array<String>) -> Array<String>'
16
+ type :to_s, '() -> String'
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc4
4
+ version: 1.0.0.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey S. Foster