dm-is-friendly 1.1.2 → 1.1.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +11 -3
  2. data/VERSION +1 -1
  3. data/spec/spec_helper.rb +9 -9
  4. metadata +116 -116
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
+ require 'rake/rdoctask'
3
4
 
4
5
  begin
5
6
  require 'jeweler'
@@ -9,10 +10,10 @@ begin
9
10
  gemspec.email = "kabari@gmail.com"
10
11
  gemspec.homepage = "http://github.com/RipTheJacker/dm-is-friendly"
11
12
  gemspec.authors = ["RipTheJacker"]
12
-
13
+
13
14
  gemspec.has_rdoc = 'yard'
14
15
  gemspec.files = Dir['Rakefile', '{lib,spec}/**/*', 'README*', 'LICENSE*', 'VERSION'] - ['spec/log/dm.log']
15
-
16
+
16
17
  end
17
18
  Jeweler::GemcutterTasks.new
18
19
  rescue LoadError => e
@@ -29,7 +30,7 @@ begin
29
30
  t.rcov = true
30
31
  t.rcov_opts = %[-Ilib -Ispec --exclude "spec/spec_helper.rb"]
31
32
  t.rcov_opts << %[--no-html --aggregate coverage.data]
32
- end
33
+ end
33
34
  rescue LoadError
34
35
  task :spec do
35
36
  abort "RSpec gem is not available. In order to test use: bundle install"
@@ -41,6 +42,13 @@ end
41
42
  task :default => :spec
42
43
 
43
44
 
45
+ Rake::RDocTask.new do |rdoc|
46
+ rdoc.rdoc_dir = 'rdoc'
47
+ rdoc.title = "dm-is-friendly 1.1.01"
48
+ rdoc.rdoc_files.include('README*')
49
+ rdoc.rdoc_files.include('lib/**/*.rb')
50
+ end
51
+
44
52
  begin
45
53
  require 'reek/adapters/rake_task'
46
54
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.2
1
+ 1.1.15
@@ -23,15 +23,15 @@ ENV['LOG'] ||= "file"
23
23
 
24
24
  ADAPTERS = ENV["ADAPTERS"].split(' ')
25
25
 
26
- DRIVERS = {
26
+ DRIVERS = {
27
27
  :sqlite => 'sqlite3::memory:',
28
- :mysql => 'mysql://datamapper:datamapper@localhost/dm_plugin_test',
29
- :postgres => 'postgres://datamapper:datamapper@localhost/dm_plugin_test'
28
+ :mysql => 'mysql://datamapper:datamapper@localhost/dm_is_friendly_test',
29
+ :postgres => 'postgres://postgres:postgres@localhost/dm_is_friendly_test'
30
30
  }
31
31
 
32
32
  def load_driver(name, default_uri)
33
33
  return false unless DRIVERS[name]
34
-
34
+
35
35
  begin
36
36
  # DataMapper::Logger.new('./spec/log/dm.log')
37
37
  DataMapper.setup(name, ENV["#{name.to_s.upcase}_SPEC_URI"] || default_uri)
@@ -50,14 +50,14 @@ module SpecAdapterHelper
50
50
  before(:all) do
51
51
  load_driver(adapter.to_sym, ::DRIVERS[adapter.to_sym])
52
52
  end
53
-
53
+
54
54
  instance_eval(&block)
55
55
  end
56
56
  end
57
57
  end
58
-
58
+
59
59
  def self.extended(base)
60
- base.class_eval do
60
+ base.class_eval do
61
61
  def log(msg)
62
62
  DataMapper.logger.debug("****** #{msg}")
63
63
  end
@@ -67,10 +67,10 @@ module SpecAdapterHelper
67
67
  end
68
68
 
69
69
  RSpec.configure do |config|
70
-
70
+
71
71
  config.extend( DataMapper::Spec::Adapters::Helpers)
72
72
  config.extend(SpecAdapterHelper)
73
-
73
+
74
74
  config.after :all do
75
75
  DataMapper::Spec.cleanup_models
76
76
  end
metadata CHANGED
@@ -1,136 +1,128 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: dm-is-friendly
3
- version: !ruby/object:Gem::Version
4
- version: 1.1.2
3
+ version: !ruby/object:Gem::Version
4
+ hash: 13
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 1
9
+ - 15
10
+ version: 1.1.15
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - RipTheJacker
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-11-23 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: dm-core
16
- requirement: !ruby/object:Gem::Requirement
17
+
18
+ date: 2011-04-08 00:00:00 -05:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ prerelease: false
23
+ type: :runtime
24
+ requirement: &id001 !ruby/object:Gem::Requirement
17
25
  none: false
18
- requirements:
26
+ requirements:
19
27
  - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 1.2.0
22
- type: :runtime
28
+ - !ruby/object:Gem::Version
29
+ hash: 19
30
+ segments:
31
+ - 1
32
+ - 1
33
+ - 0
34
+ version: 1.1.0
35
+ name: dm-core
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
23
38
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
39
+ type: :development
40
+ requirement: &id002 !ruby/object:Gem::Requirement
25
41
  none: false
26
- requirements:
42
+ requirements:
27
43
  - - ~>
28
- - !ruby/object:Gem::Version
29
- version: 1.2.0
30
- - !ruby/object:Gem::Dependency
44
+ - !ruby/object:Gem::Version
45
+ hash: 49
46
+ segments:
47
+ - 0
48
+ - 8
49
+ - 7
50
+ version: 0.8.7
31
51
  name: rake
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :development
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
39
54
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: rspec
48
- requirement: !ruby/object:Gem::Requirement
55
+ type: :development
56
+ requirement: &id003 !ruby/object:Gem::Requirement
49
57
  none: false
50
- requirements:
58
+ requirements:
51
59
  - - ~>
52
- - !ruby/object:Gem::Version
53
- version: 2.12.0
54
- type: :development
60
+ - !ruby/object:Gem::Version
61
+ hash: 11
62
+ segments:
63
+ - 2
64
+ - 1
65
+ - 0
66
+ version: 2.1.0
67
+ name: rspec
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
55
70
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
71
+ type: :development
72
+ requirement: &id004 !ruby/object:Gem::Requirement
57
73
  none: false
58
- requirements:
74
+ requirements:
59
75
  - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 2.12.0
62
- - !ruby/object:Gem::Dependency
76
+ - !ruby/object:Gem::Version
77
+ hash: 7
78
+ segments:
79
+ - 1
80
+ - 4
81
+ version: "1.4"
63
82
  name: jeweler
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: '1.4'
70
- type: :development
83
+ version_requirements: *id004
84
+ - !ruby/object:Gem::Dependency
71
85
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: '1.4'
78
- - !ruby/object:Gem::Dependency
79
- name: dm-aggregates
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ~>
84
- - !ruby/object:Gem::Version
85
- version: 1.2.0
86
86
  type: :development
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
87
+ requirement: &id005 !ruby/object:Gem::Requirement
89
88
  none: false
90
- requirements:
89
+ requirements:
91
90
  - - ~>
92
- - !ruby/object:Gem::Version
93
- version: 1.2.0
94
- - !ruby/object:Gem::Dependency
95
- name: dm-types
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ~>
100
- - !ruby/object:Gem::Version
101
- version: 1.2.0
102
- type: :development
91
+ - !ruby/object:Gem::Version
92
+ hash: 19
93
+ segments:
94
+ - 1
95
+ - 1
96
+ - 0
97
+ version: 1.1.0
98
+ name: dm-aggregates
99
+ version_requirements: *id005
100
+ - !ruby/object:Gem::Dependency
103
101
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ~>
108
- - !ruby/object:Gem::Version
109
- version: 1.2.0
110
- - !ruby/object:Gem::Dependency
111
- name: dm-migrations
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ~>
116
- - !ruby/object:Gem::Version
117
- version: 1.2.0
118
102
  type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
103
+ requirement: &id006 !ruby/object:Gem::Requirement
121
104
  none: false
122
- requirements:
105
+ requirements:
123
106
  - - ~>
124
- - !ruby/object:Gem::Version
125
- version: 1.2.0
107
+ - !ruby/object:Gem::Version
108
+ hash: 19
109
+ segments:
110
+ - 1
111
+ - 1
112
+ - 0
113
+ version: 1.1.0
114
+ name: dm-types
115
+ version_requirements: *id006
126
116
  description:
127
117
  email: kabari@gmail.com
128
118
  executables: []
119
+
129
120
  extensions: []
130
- extra_rdoc_files:
121
+
122
+ extra_rdoc_files:
131
123
  - LICENSE
132
124
  - README.markdown
133
- files:
125
+ files:
134
126
  - LICENSE
135
127
  - README.markdown
136
128
  - Rakefile
@@ -139,32 +131,40 @@ files:
139
131
  - lib/dm-is-friendly/is/friendly.rb
140
132
  - spec/dm-is-friendly_spec.rb
141
133
  - spec/spec_helper.rb
134
+ has_rdoc: true
142
135
  homepage: http://github.com/RipTheJacker/dm-is-friendly
143
136
  licenses: []
137
+
144
138
  post_install_message:
145
139
  rdoc_options: []
146
- require_paths:
140
+
141
+ require_paths:
147
142
  - lib
148
- required_ruby_version: !ruby/object:Gem::Requirement
143
+ required_ruby_version: !ruby/object:Gem::Requirement
149
144
  none: false
150
- requirements:
151
- - - ! '>='
152
- - !ruby/object:Gem::Version
153
- version: '0'
154
- segments:
145
+ requirements:
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ hash: 3
149
+ segments:
155
150
  - 0
156
- hash: -97200408363854928
157
- required_rubygems_version: !ruby/object:Gem::Requirement
151
+ version: "0"
152
+ required_rubygems_version: !ruby/object:Gem::Requirement
158
153
  none: false
159
- requirements:
160
- - - ! '>='
161
- - !ruby/object:Gem::Version
162
- version: '0'
154
+ requirements:
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ hash: 3
158
+ segments:
159
+ - 0
160
+ version: "0"
163
161
  requirements: []
162
+
164
163
  rubyforge_project:
165
- rubygems_version: 1.8.24
164
+ rubygems_version: 1.6.2
166
165
  signing_key:
167
166
  specification_version: 3
168
- summary: DataMapper plugin that adds self-referential friendship functionality to
169
- your models.
170
- test_files: []
167
+ summary: DataMapper plugin that adds self-referential friendship functionality to your models.
168
+ test_files:
169
+ - spec/dm-is-friendly_spec.rb
170
+ - spec/spec_helper.rb