closure_tree 5.1.0 → 5.1.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: df0555778d166d7f54acabde46e6118f2990c6c5
4
- data.tar.gz: 837a50c2039d612eac26a9d4bf4ec106729991b0
3
+ metadata.gz: ed9e9ee1d96298188863154501be9befbc2529d1
4
+ data.tar.gz: 9eab4fbf0b8b40dbaead055c5d18d4367d801489
5
5
  SHA512:
6
- metadata.gz: 223f1243db513bc4754d6894f971799a0b998642841f5fb536b7023e9b4b8437ce3cca6b9e750477534b04674c46e49e00544022a2b1186f4d1cd4e691c10c9d
7
- data.tar.gz: 5ca1595f2c52d857902d51020cc354b035272a210c5e3d6748071a86840beecc65ae996d6001ca5d4883c51175a6d30aa9b60aa34f4e429c55942676cba7ee73
6
+ metadata.gz: f0e90ba79f6900faa44bead080114a2c83b51fbc5c97ef5aea18dd8a563352e89ed2d49a9e8645a5957d6a5bd95cf219ebd5fd886400ecfc1ecde2a51b1e80d1
7
+ data.tar.gz: 66406674bbe8f32d8ce0c545dcc412d8bd2e50a2f61e4e8428cf0bbedbdb367e0faf0bb783a6e51e6634cd438344c0bae29e8bb9f39fb54c8443cb6e0845993e
@@ -1,11 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ### 5.1.1
4
+
5
+ * Fixed bug in `rails g closure_tree:migration` (introduced by me, not by seuros!)
6
+ that was reported and fixed by [Rich Kuo](https://github.com/richkuo). Thanks!
7
+
3
8
  ### 5.1.0
4
9
 
5
10
  * [Abdelkader Boudih](https://github.com/seuros) added a database generator
6
11
  for the hierarchies table. Thanks!
7
12
  * [Jason Weathered](https://github.com/jasoncodes) fixed [issue #117](https://github.com/mceachen/closure_tree/pull/117)
8
- with the preordered traversal code that assumed the primary key column was called `id`. Thanks!
13
+ with the preordered traversal code that assumed the primary key column was called `id`. Thanks!
9
14
 
10
15
  ### 5.0.0
11
16
 
@@ -1,3 +1,3 @@
1
1
  module ClosureTree
2
- VERSION = Gem::Version.new('5.1.0') unless defined?(::ClosureTree::VERSION)
2
+ VERSION = Gem::Version.new('5.1.1') unless defined?(::ClosureTree::VERSION)
3
3
  end
@@ -15,11 +15,11 @@ module ClosureTree
15
15
  end
16
16
 
17
17
  def create_migration_file
18
- migration_template 'create_hierarchies_table.rb.erb', "db/migrate/create_#{singular_table_name}_hierarchies.rb"
18
+ migration_template 'create_hierarchies_table.rb.erb', "db/migrate/create_#{ct.hierarchy_table_name}.rb"
19
19
  end
20
20
 
21
21
  def migration_class_name
22
- "Create#{ct.hierarchy_class_name}".gsub(/\W/, '')
22
+ "Create#{ct.hierarchy_table_name.camelize}"
23
23
  end
24
24
 
25
25
  def ct
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: closure_tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew McEachen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-06 00:00:00.000000000 Z
11
+ date: 2014-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord