dao 5.3.2 → 5.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +8 -8
  2. data/Rakefile +34 -16
  3. data/dao.gemspec +22 -3
  4. data/lib/dao.rb +1 -1
  5. metadata +143 -3
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjczMDcyNTc1MjA4NTgwN2E5NmEwNjNhNTI3MDI5M2QxMTA1YWM4ZA==
4
+ OTRlMDY3ZGVhYzRmY2RiNzY5NTM2OGI2NDFmZWI3ZDBjN2Y4NTVjMw==
5
5
  data.tar.gz: !binary |-
6
- OWJkNzIzYWY0Nzg4ZjYwZWM1YjdhZGFhYTRhZDYyOThlYzg4ZTQ2NQ==
6
+ MjJlMGQwOWQ4OWRmMWJkMjYzMDlmZmFjOTU4MTMwYTRiNWIyNDJkMA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YzkxNjcyYTBjMjA0MGI0MjcwMjYwMzAzZWY2YWQ3YzFmN2NjN2ZlZTBiOTI4
10
- YmRlNDE1OTFmMjBjYzljOGIwNDg1OGJlMTk2ODEzZTRkYjY0ZjU5ODg5NjBl
11
- Y2IwZWEyMzFmODk3YTZiNGI2MzdkYTk0NWVjY2Y0MDI2MTA1OGU=
9
+ YmZkNGI3MGY4MTcwNTM1ZWM1ZjA0MTQyY2Y2ZGE0M2M4NGVlOTY3YzdlNjAy
10
+ ZGU0YzIwODM3M2RlZmUyNDU4NjllZTNjMGU4YTU1N2RmZWM4Njc0MWNmMmYx
11
+ MWJmMjE4ZWJhMzk0MmY0MzU5ZDM1OWEzMDdiZDJhOTFjNTJiODg=
12
12
  data.tar.gz: !binary |-
13
- OTRjN2I1MGZlYzdlNzMxNWIxZjI3NGFlOWIwZDgxY2E0MzkxYTVmYmRhODI2
14
- NzY2ZWNjZDE1M2Y5NTk5OTA5ZmQ2NzBhZTQ3MDYzNDc3MGNlNjEyZDFmYzhl
15
- YjM0MDU5MzEwMmQxNTdmMGJmNmYxYzMxYjJjYzAxZDhhY2RmMjI=
13
+ MGRhMTk2Mzg3YTg5Nzc1M2E4YjNmYjVlZTBhM2I3YWU0OTVkMGRkM2IzM2Zh
14
+ YmFhMmJkNDhkNzkzMGE3ZGU0ZTMwYWZhNTUyZjU0M2NmOWQ1NGZkOGE4MmM1
15
+ ZWQwZDg5YTg1NjA4M2IyYjFjZmRjNDgwMmYwNDc0YTQ3YjY3OWM=
data/Rakefile CHANGED
@@ -104,39 +104,51 @@ task :gemspec do
104
104
  end
105
105
  extensions = [extensions].flatten.compact
106
106
 
107
+ if This.dependencies.nil?
108
+ dependencies = []
109
+ else
110
+ case This.dependencies
111
+ when Hash
112
+ dependencies = This.dependencies.values
113
+ when Array
114
+ dependencies = This.dependencies
115
+ end
116
+ end
117
+
107
118
  template =
108
119
  if test(?e, 'gemspec.erb')
109
120
  Template{ IO.read('gemspec.erb') }
110
121
  else
111
122
  Template {
112
123
  <<-__
113
- ## #{ lib }.gemspec
124
+ ## <%= lib %>.gemspec
114
125
  #
115
126
 
116
127
  Gem::Specification::new do |spec|
117
- spec.name = #{ lib.inspect }
118
- spec.version = #{ version.inspect }
128
+ spec.name = <%= lib.inspect %>
129
+ spec.version = <%= version.inspect %>
119
130
  spec.platform = Gem::Platform::RUBY
120
- spec.summary = #{ lib.inspect }
121
- spec.description = #{ description.inspect }
122
- spec.license = #{ license.inspect }
131
+ spec.summary = <%= lib.inspect %>
132
+ spec.description = <%= description.inspect %>
133
+ spec.license = <%= license.inspect %>
123
134
 
124
- spec.files =\n#{ files.sort.pretty_inspect }
125
- spec.executables = #{ executables.inspect }
135
+ spec.files =\n<%= files.sort.pretty_inspect %>
136
+ spec.executables = <%= executables.inspect %>
126
137
 
127
138
  spec.require_path = "lib"
128
139
 
129
- spec.test_files = #{ test_files.inspect }
140
+ spec.test_files = <%= test_files.inspect %>
130
141
 
131
- ### spec.add_dependency 'lib', '>= version'
132
- #### spec.add_dependency 'map'
142
+ <% dependencies.each do |lib_version| %>
143
+ spec.add_dependency(*<%= Array(lib_version).flatten.inspect %>)
144
+ <% end %>
133
145
 
134
- spec.extensions.push(*#{ extensions.inspect })
146
+ spec.extensions.push(*<%= extensions.inspect %>)
135
147
 
136
- spec.rubyforge_project = #{ This.rubyforge_project.inspect }
137
- spec.author = #{ This.author.inspect }
138
- spec.email = #{ This.email.inspect }
139
- spec.homepage = #{ This.homepage.inspect }
148
+ spec.rubyforge_project = <%= This.rubyforge_project.inspect %>
149
+ spec.author = <%= This.author.inspect %>
150
+ spec.email = <%= This.email.inspect %>
151
+ spec.homepage = <%= This.homepage.inspect %>
140
152
  end
141
153
  __
142
154
  }
@@ -272,6 +284,12 @@ BEGIN {
272
284
  end
273
285
  This.version = version
274
286
 
287
+ # see if dependencies are export by the module
288
+ #
289
+ if This.object.respond_to?(:dependencies)
290
+ This.dependencies = This.object.dependencies
291
+ end
292
+
275
293
  # we need to know the name of the lib an it's version
276
294
  #
277
295
  abort('no lib') unless This.lib
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "dao"
6
- spec.version = "5.3.2"
6
+ spec.version = "5.3.3"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "dao"
9
9
  spec.description = "presenter, conducer, api, and better form objects for you rails' pleasure"
@@ -106,8 +106,27 @@ Gem::Specification::new do |spec|
106
106
 
107
107
  spec.test_files = nil
108
108
 
109
- ### spec.add_dependency 'lib', '>= version'
110
- #### spec.add_dependency 'map'
109
+
110
+ spec.add_dependency(*["rails", " >= 3.1"])
111
+
112
+ spec.add_dependency(*["map", " >= 6.0.0"])
113
+
114
+ spec.add_dependency(*["fattr", " >= 2.2"])
115
+
116
+ spec.add_dependency(*["coerce", " >= 0.0.3"])
117
+
118
+ spec.add_dependency(*["tagz", " >= 9.9.2"])
119
+
120
+ spec.add_dependency(*["multi_json", " >= 1.0.3"])
121
+
122
+ spec.add_dependency(*["uuidtools", " >= 2.1.2"])
123
+
124
+ spec.add_dependency(*["wrap", " >= 1.5.0"])
125
+
126
+ spec.add_dependency(*["rails_current", " >= 1.8.0"])
127
+
128
+ spec.add_dependency(*["rails_errors2html", " >= 1.3.0"])
129
+
111
130
 
112
131
  spec.extensions.push(*[])
113
132
 
data/lib/dao.rb CHANGED
@@ -11,7 +11,7 @@
11
11
  # dao libs
12
12
  #
13
13
  module Dao
14
- Version = '5.3.2' unless defined?(Version)
14
+ Version = '5.3.3' unless defined?(Version)
15
15
 
16
16
  def version
17
17
  Dao::Version
metadata CHANGED
@@ -1,15 +1,155 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dao
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.2
4
+ version: 5.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-15 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2014-02-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: map
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: 6.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 6.0.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: fattr
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '2.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '2.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: coerce
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.0.3
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: 0.0.3
69
+ - !ruby/object:Gem::Dependency
70
+ name: tagz
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: 9.9.2
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: 9.9.2
83
+ - !ruby/object:Gem::Dependency
84
+ name: multi_json
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: 1.0.3
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: 1.0.3
97
+ - !ruby/object:Gem::Dependency
98
+ name: uuidtools
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: 2.1.2
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: 2.1.2
111
+ - !ruby/object:Gem::Dependency
112
+ name: wrap
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: 1.5.0
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: 1.5.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: rails_current
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: 1.8.0
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ! '>='
137
+ - !ruby/object:Gem::Version
138
+ version: 1.8.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: rails_errors2html
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ! '>='
144
+ - !ruby/object:Gem::Version
145
+ version: 1.3.0
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ! '>='
151
+ - !ruby/object:Gem::Version
152
+ version: 1.3.0
13
153
  description: presenter, conducer, api, and better form objects for you rails' pleasure
14
154
  email: ara.t.howard@gmail.com
15
155
  executables: []