ascribe 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -114,8 +114,6 @@ module Ascribe
114
114
  options[key.to_s] = value
115
115
  end
116
116
  end
117
-
118
- # Iterate through
119
117
  end
120
118
 
121
119
  def update(attrs={})
@@ -162,6 +160,17 @@ module Ascribe
162
160
  attributes.merge("options" => options)
163
161
  end
164
162
 
163
+ def inspect
164
+ attrs = attributes.map do |attribute|
165
+ "@#{attribute[0]}=#{attribute[1] ? attribute[1] : "nil"}"
166
+ end
167
+ opts = options.map do |option|
168
+ "@#{option[0]}=#{option[1] ? option[1] : "nil"}"
169
+ end
170
+ result = attrs + opts
171
+ "#<#{self.class.name} #{attrs.join(" ")}>"
172
+ end
173
+
165
174
  end
166
175
  end
167
176
  end
@@ -1,3 +1,3 @@
1
1
  module Ascribe
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/ascribe.rb CHANGED
@@ -6,6 +6,5 @@ require 'ascribe/version'
6
6
  require 'ascribe/attributes'
7
7
 
8
8
  module Ascribe
9
- # Your code goes here...
10
- end
11
-
9
+ class ValidationError; end
10
+ end
metadata CHANGED
@@ -1,56 +1,80 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ascribe
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.2
3
+ version: !ruby/object:Gem::Version
4
+ hash: 25
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 3
10
+ version: 0.0.3
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Dan Ryan
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-09-11 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2011-09-23 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: activemodel
16
- requirement: &70149126918840 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 19
29
+ segments:
30
+ - 3
31
+ - 0
32
+ - 10
21
33
  version: 3.0.10
22
34
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70149126918840
25
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
26
37
  name: yajl-ruby
27
- requirement: &70149126918340 !ruby/object:Gem::Requirement
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
28
40
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 59
45
+ segments:
46
+ - 0
47
+ - 8
48
+ - 2
32
49
  version: 0.8.2
33
50
  type: :runtime
34
- prerelease: false
35
- version_requirements: *70149126918340
36
- - !ruby/object:Gem::Dependency
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
37
53
  name: rake
38
- requirement: &70149136261340 !ruby/object:Gem::Requirement
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
39
56
  none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 63
61
+ segments:
62
+ - 0
63
+ - 9
64
+ - 2
43
65
  version: 0.9.2
44
66
  type: :runtime
45
- prerelease: false
46
- version_requirements: *70149136261340
47
- description: ''
48
- email:
67
+ version_requirements: *id003
68
+ description: ""
69
+ email:
49
70
  - dan@appliedawesome.com
50
71
  executables: []
72
+
51
73
  extensions: []
74
+
52
75
  extra_rdoc_files: []
53
- files:
76
+
77
+ files:
54
78
  - .gitignore
55
79
  - Gemfile
56
80
  - README.md
@@ -64,28 +88,37 @@ files:
64
88
  - spec/spec_helper.rb
65
89
  homepage: https://github.com/danryan/ascribe
66
90
  licenses: []
91
+
67
92
  post_install_message:
68
93
  rdoc_options: []
69
- require_paths:
94
+
95
+ require_paths:
70
96
  - lib
71
- required_ruby_version: !ruby/object:Gem::Requirement
97
+ required_ruby_version: !ruby/object:Gem::Requirement
72
98
  none: false
73
- requirements:
74
- - - ! '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ hash: 3
103
+ segments:
104
+ - 0
105
+ version: "0"
106
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
107
  none: false
79
- requirements:
80
- - - ! '>='
81
- - !ruby/object:Gem::Version
82
- version: '0'
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ hash: 3
112
+ segments:
113
+ - 0
114
+ version: "0"
83
115
  requirements: []
116
+
84
117
  rubyforge_project: ascribe
85
- rubygems_version: 1.8.8
118
+ rubygems_version: 1.8.10
86
119
  signing_key:
87
120
  specification_version: 3
88
121
  summary: Attributes for your Ruby objects
89
- test_files:
122
+ test_files:
90
123
  - spec/ascribe_spec.rb
91
124
  - spec/spec_helper.rb