edge 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1eb4aa8563c1847f2ecd36c8507834a80f81a80c
4
- data.tar.gz: 1a08d6bca601260f9c1f4bad477357d2f6770cb8
3
+ metadata.gz: 500f3f8da28efe6bff2bf598de8a5d57e0bf5566
4
+ data.tar.gz: 668120882414ee2aba95c072325e51132308e02e
5
5
  SHA512:
6
- metadata.gz: c9460fc7955f919c88b240e4bd426d228d8b1451241530ced75b02d950093ca6c65d336f15baa501df85d9d87422eae9141a493117feee1f69c54d07565a69cd
7
- data.tar.gz: 3634da19a17379187e192470ba7e73ee991cc197fe32347ab47a6b061f571689d5066026259e72239d31df555c5b56492e63e0564c7191e3df181a438f78d1ed
6
+ metadata.gz: 8f4a7412655a6583140b6982ed8d8f32b9596ee9e8ffcac31219cb39be69b1e9d4de193d5415cb66e3a744128c93e03afa57781724f2770fc5f334761786e6de
7
+ data.tar.gz: 830fc852b809b98c80713d54404631ca313fbb0d1b579c6c65a5aacd1c3d1384c7eba0d987e616bd12c0d42aa6404c86e933d7420436dd723ea7d3f5bdff3c11
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # Unreleased
2
+
3
+ * Include rake as development dependency
4
+ * Fix for not passing string to belongs_to class_name (davekaro)
5
+
1
6
  # 0.4.0 (December 23, 2014)
2
7
 
3
8
  * Fix failure with bind_values
data/edge.gemspec CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |gem|
19
19
 
20
20
  gem.add_development_dependency 'pg'
21
21
  gem.add_development_dependency 'pry'
22
+ gem.add_development_dependency 'rake'
22
23
  gem.add_development_dependency 'rspec', "~> 3.1.0"
23
24
  gem.add_development_dependency 'guard', ">= 0.10.0"
24
25
  gem.add_development_dependency 'guard-rspec', ">= 0.6.0"
data/lib/edge/forest.rb CHANGED
@@ -16,7 +16,7 @@ module Edge
16
16
  self.forest_order = options[:order] || nil
17
17
 
18
18
  common_options = {
19
- :class_name => self,
19
+ :class_name => self.name,
20
20
  :foreign_key => forest_foreign_key
21
21
  }
22
22
 
data/lib/edge/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Edge
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/spec/forest_spec.rb CHANGED
@@ -218,10 +218,11 @@ describe "Edge::Forest" do
218
218
 
219
219
  describe "self.acts_as_forest" do
220
220
  it 'can be used twice' do
221
- Location2 = Class.new(ActiveRecord::Base) do
221
+ class Location2 < ActiveRecord::Base
222
222
  self.table_name = 'locations'
223
223
  acts_as_forest :order => "name"
224
224
  end
225
+
225
226
  Location2.find_forest
226
227
  end
227
228
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Christensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-23 00:00:00.000000000 Z
11
+ date: 2015-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rspec
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -140,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
154
  version: '0'
141
155
  requirements: []
142
156
  rubyforge_project:
143
- rubygems_version: 2.2.2
157
+ rubygems_version: 2.4.5
144
158
  signing_key:
145
159
  specification_version: 4
146
160
  summary: Graph functionality for ActiveRecord. Provides tree/forest modeling structure