dm-visualizer 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 91e87e1c03c4f810c587aa497c230b1c181c63f0
4
+ data.tar.gz: 8ebbdfb79fc5cf457141ffbd5de964cf3171b0fd
5
+ SHA512:
6
+ metadata.gz: ecd91b80a9c21aa87e4ca98683333d49ac88ede6fa024c1f68df6eed286103291ff55825e2eb020177f8286bbc8a842854463488df16ba878892d8ce4c253e0a
7
+ data.tar.gz: d67b96d88dac07112cc4c53a5c82f8686d15b014fffbffbd2bf8eee7d39828fcb9c79e1bad76cf3f3f9bb0d3e0b74e1b58ecb73fc3e882c17f691b98ac0bd2dd
@@ -1,3 +1,8 @@
1
+ ### 0.2.3 / 2014-06-02
2
+
3
+ * Rescue the `Bundler::BundlerError` exception when activating a bundled
4
+ project.
5
+
1
6
  ### 0.2.2 / 2012-08-03
2
7
 
3
8
  * Relax version requirements for dependencies.
data/Gemfile CHANGED
@@ -1,11 +1,11 @@
1
- source :rubygems
1
+ source 'https://rubygems.org/'
2
2
 
3
3
  gemspec
4
4
 
5
5
  group(:development) do
6
- gem 'rake', '~> 0.8'
6
+ gem 'rake', '~> 10.0'
7
7
  gem 'kramdown', '~> 0.12'
8
8
 
9
- gem 'rubygems-tasks', '~> 0.1'
9
+ gem 'rubygems-tasks', '~> 0.2'
10
10
  gem 'rspec', '~> 2.4'
11
11
  end
data/Rakefile CHANGED
@@ -1,12 +1,9 @@
1
1
  require 'rubygems'
2
- require 'bundler'
3
2
 
4
3
  begin
5
- Bundler.setup(:development, :doc)
6
- rescue Bundler::BundlerError => e
7
- warn e.message
8
- warn "Run `bundle install` to install missing gems"
9
- exit e.status_code
4
+ require 'bundler/setup'
5
+ rescue LoadError => e
6
+ abort e.message
10
7
  end
11
8
 
12
9
  require 'rake'
@@ -1,5 +1,5 @@
1
1
  name: dm-visualizer
2
- version: 0.2.2
2
+ version: 0.2.3
3
3
  summary:
4
4
  Visualizes the Models, Properties and Relationships defined in a
5
5
  DataMapper based Ruby project.
@@ -89,7 +89,7 @@ module DataMapper
89
89
 
90
90
  begin
91
91
  Bundler.require(*@bundle)
92
- rescue Bundler::BundleError => error
92
+ rescue Bundler::BundlerError => error
93
93
  log error.message
94
94
  log "Run `bundle install` to install missing gems"
95
95
  end
@@ -163,7 +163,7 @@ module DataMapper
163
163
 
164
164
  #
165
165
  # Enumerates over each DataMapper Model loaded from the project.
166
- #
166
+
167
167
  # @yield [model]
168
168
  # The given block will be passed every model registered with
169
169
  # DataMapper.
@@ -196,7 +196,7 @@ module DataMapper
196
196
  # If no block is given, an Enumerator object will be returned.
197
197
  #
198
198
  def each_model_inheritence
199
- return enum_for(:each_model_inheritence) unless block_given?
199
+ return enum_for(__method__) unless block_given?
200
200
 
201
201
  each_model do |model|
202
202
  direct_ancestor = model.ancestors[1]
@@ -227,7 +227,7 @@ module DataMapper
227
227
  # If no block is given, an Enumerator object will be returned.
228
228
  #
229
229
  def each_foreign_key(model)
230
- return enum_for(:each_foreign_key,model) unless block_given?
230
+ return enum_for(__method__,model) unless block_given?
231
231
 
232
232
  # XXX: in dm-core 1.1.0, `Model#relationships` returns a
233
233
  # `DataMapper::RelationshipSet`, instead of a `Mash`, which does
@@ -259,7 +259,7 @@ module DataMapper
259
259
  # If no block is given, an Enumerator object will be returned.
260
260
  #
261
261
  def each_property(model)
262
- return enum_for(:each_property,model) unless block_given?
262
+ return enum_for(__method__,model) unless block_given?
263
263
 
264
264
  foreign_keys = Set[]
265
265
 
@@ -289,7 +289,7 @@ module DataMapper
289
289
  # If no block is given, an Enumerator object will be returned.
290
290
  #
291
291
  def each_relationship
292
- return enum_for(:each_relationship) unless block_given?
292
+ return enum_for(__method__) unless block_given?
293
293
 
294
294
  each_model do |model|
295
295
  each_relationship_for(model) do |relationship|
@@ -327,10 +327,8 @@ module DataMapper
327
327
  # not provide the `each_value` method.
328
328
  model.relationships.each do |args|
329
329
  relationship = case args
330
- when Array
331
- args.last
332
- else
333
- args
330
+ when Array then args.last
331
+ else args
334
332
  end
335
333
 
336
334
  unless relationship.respond_to?(:through)
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-visualizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
5
- prerelease:
4
+ version: 0.2.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Postmodern
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-08-04 00:00:00.000000000 Z
11
+ date: 2014-06-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: ruby-graphviz
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: dm-core
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: bundler
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: yard
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -120,27 +111,26 @@ files:
120
111
  homepage: https://github.com/postmodern/dm-visualizer
121
112
  licenses:
122
113
  - MIT
114
+ metadata: {}
123
115
  post_install_message:
124
116
  rdoc_options: []
125
117
  require_paths:
126
118
  - lib
127
119
  required_ruby_version: !ruby/object:Gem::Requirement
128
- none: false
129
120
  requirements:
130
- - - ! '>='
121
+ - - '>='
131
122
  - !ruby/object:Gem::Version
132
123
  version: '0'
133
124
  required_rubygems_version: !ruby/object:Gem::Requirement
134
- none: false
135
125
  requirements:
136
- - - ! '>='
126
+ - - '>='
137
127
  - !ruby/object:Gem::Version
138
128
  version: '0'
139
129
  requirements: []
140
130
  rubyforge_project:
141
- rubygems_version: 1.8.24
131
+ rubygems_version: 2.0.14
142
132
  signing_key:
143
- specification_version: 3
133
+ specification_version: 4
144
134
  summary: Visualizes the Models, Properties and Relationships defined in a DataMapper
145
135
  based Ruby project.
146
136
  test_files: []