types 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/Gemfile +1 -0
  2. data/Gemfile.lock +2 -0
  3. data/VERSION +1 -1
  4. data/lib/types.rb +2 -1
  5. data/types.gemspec +6 -4
  6. metadata +20 -27
data/Gemfile CHANGED
@@ -2,6 +2,7 @@ source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
4
  gem "multitype-introspection", ">= 0.1.0"
5
+ gem "abstract", ">= 1.0.0"
5
6
 
6
7
  # Add dependencies to develop your gem here.
7
8
  # Include everything needed to run rake, tests, features, etc.
@@ -1,6 +1,7 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ abstract (1.0.0)
4
5
  git (1.2.5)
5
6
  jeweler (1.5.2)
6
7
  bundler (~> 1.0.0)
@@ -13,6 +14,7 @@ PLATFORMS
13
14
  ruby
14
15
 
15
16
  DEPENDENCIES
17
+ abstract (>= 1.0.0)
16
18
  bundler (~> 1.0.0)
17
19
  jeweler (~> 1.5.2)
18
20
  multitype-introspection (>= 0.1.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -2,6 +2,7 @@
2
2
  # (c) 2011 Martin Kozák (martinkozak@martinkozak.net)
3
3
 
4
4
  require "multitype-introspection"
5
+ require "abstract"
5
6
 
6
7
  ##
7
8
  # Root library module.
@@ -24,7 +25,7 @@ module Types
24
25
  #
25
26
 
26
27
  def type_classes
27
- raise Exception::new("Class is abstract.")
28
+ not_implemented
28
29
  end
29
30
 
30
31
  ##
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{types}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Martin Kozák"]
12
- s.date = %q{2011-01-27}
12
+ s.date = %q{2011-03-01}
13
13
  s.email = %q{martinkozak@martinkozak.net}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.txt",
@@ -29,24 +29,26 @@ Gem::Specification.new do |s|
29
29
  s.homepage = %q{http://github.com/martinkozak/types}
30
30
  s.licenses = ["MIT"]
31
31
  s.require_paths = ["lib"]
32
- s.rubygems_version = %q{1.3.7}
32
+ s.rubygems_version = %q{1.5.3}
33
33
  s.summary = %q{Introduces group of classes as eqivalent to some data types in other languages such as boolean and allows introspection according to type of class too. In fact, partially replaces multiple inheritance because introduces unlimited formal genericity for every class.}
34
34
 
35
35
  if s.respond_to? :specification_version then
36
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
37
36
  s.specification_version = 3
38
37
 
39
38
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
40
39
  s.add_runtime_dependency(%q<multitype-introspection>, [">= 0.1.0"])
40
+ s.add_runtime_dependency(%q<abstract>, [">= 1.0.0"])
41
41
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
42
42
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
43
43
  else
44
44
  s.add_dependency(%q<multitype-introspection>, [">= 0.1.0"])
45
+ s.add_dependency(%q<abstract>, [">= 1.0.0"])
45
46
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
46
47
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
47
48
  end
48
49
  else
49
50
  s.add_dependency(%q<multitype-introspection>, [">= 0.1.0"])
51
+ s.add_dependency(%q<abstract>, [">= 1.0.0"])
50
52
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
51
53
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
52
54
  end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: types
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 2
9
- version: 0.1.2
4
+ prerelease:
5
+ version: 0.1.3
10
6
  platform: ruby
11
7
  authors:
12
8
  - "Martin Koz\xC3\xA1k"
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-01-27 00:00:00 +01:00
13
+ date: 2011-03-01 00:00:00 +01:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -24,44 +20,43 @@ dependencies:
24
20
  requirements:
25
21
  - - ">="
26
22
  - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- - 1
30
- - 0
31
23
  version: 0.1.0
32
24
  type: :runtime
33
25
  prerelease: false
34
26
  version_requirements: *id001
35
27
  - !ruby/object:Gem::Dependency
36
- name: bundler
28
+ name: abstract
37
29
  requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 1.0.0
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: bundler
40
+ requirement: &id003 !ruby/object:Gem::Requirement
38
41
  none: false
39
42
  requirements:
40
43
  - - ~>
41
44
  - !ruby/object:Gem::Version
42
- segments:
43
- - 1
44
- - 0
45
- - 0
46
45
  version: 1.0.0
47
46
  type: :development
48
47
  prerelease: false
49
- version_requirements: *id002
48
+ version_requirements: *id003
50
49
  - !ruby/object:Gem::Dependency
51
50
  name: jeweler
52
- requirement: &id003 !ruby/object:Gem::Requirement
51
+ requirement: &id004 !ruby/object:Gem::Requirement
53
52
  none: false
54
53
  requirements:
55
54
  - - ~>
56
55
  - !ruby/object:Gem::Version
57
- segments:
58
- - 1
59
- - 5
60
- - 2
61
56
  version: 1.5.2
62
57
  type: :development
63
58
  prerelease: false
64
- version_requirements: *id003
59
+ version_requirements: *id004
65
60
  description:
66
61
  email: martinkozak@martinkozak.net
67
62
  executables: []
@@ -95,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
95
90
  requirements:
96
91
  - - ">="
97
92
  - !ruby/object:Gem::Version
98
- hash: 1047582636863163754
93
+ hash: -2560325811155880679
99
94
  segments:
100
95
  - 0
101
96
  version: "0"
@@ -104,13 +99,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
99
  requirements:
105
100
  - - ">="
106
101
  - !ruby/object:Gem::Version
107
- segments:
108
- - 0
109
102
  version: "0"
110
103
  requirements: []
111
104
 
112
105
  rubyforge_project:
113
- rubygems_version: 1.3.7
106
+ rubygems_version: 1.5.3
114
107
  signing_key:
115
108
  specification_version: 3
116
109
  summary: Introduces group of classes as eqivalent to some data types in other languages such as boolean and allows introspection according to type of class too. In fact, partially replaces multiple inheritance because introduces unlimited formal genericity for every class.