awesome_nested_set-tools 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 15e69effe9b645c77ae7ce9f05e785ef973e049c
4
+ data.tar.gz: 3a590eda34fd0b911b1e922075081777dff4a304
5
+ SHA512:
6
+ metadata.gz: 37c411cf5d7940e4de044b706fed07697ca90e2deaffff594683c962245e756cfe63350f81855b98ffde416db184e4e51c72c17c9a111f5aaf6bf7856e54d390
7
+ data.tar.gz: ef24486ab39aa4b2621395c93d5ae2573e48216dc93253d26a47440fd9507e09162e0e09b805e64e9d2f230f325d941d30c7d3e1c487ac056ed301a1fac9c756
@@ -36,6 +36,7 @@ module AwesomeNestedSet
36
36
  elsif i != 0
37
37
  output << '</li><li>'
38
38
  end
39
+ o = o.first if o.is_a? Array
39
40
  output << capture(o, path.size - 1, &block)
40
41
  end
41
42
 
@@ -1,5 +1,5 @@
1
1
  module AwesomeNestedSet
2
2
  module Tools
3
- VERSION = "0.0.1"
4
- end
3
+ VERSION = "0.0.2"
4
+ end
5
5
  end
metadata CHANGED
@@ -1,139 +1,148 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: awesome_nested_set-tools
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - Roberto Vasquez Angel
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
-
13
- date: 2012-07-18 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
16
14
  name: rails
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ~>
22
- - !ruby/object:Gem::Version
23
- version: 3.2.5
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
24
23
  type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: sqlite3
28
24
  prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '3.2'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: sqlite3
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
32
37
  - - ">="
33
- - !ruby/object:Gem::Version
34
- version: "0"
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
35
40
  type: :development
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: yard
39
41
  prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: yard
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
43
51
  - - ">="
44
- - !ruby/object:Gem::Version
45
- version: "0"
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
46
54
  type: :development
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
49
- name: thin
50
55
  prerelease: false
51
- requirement: &id004 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: thin
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
54
65
  - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
57
68
  type: :development
58
- version_requirements: *id004
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
59
75
  description: Provides helpers and tools for awesome nested set.
60
- email:
76
+ email:
61
77
  - roberto@vasquez-angel.de
62
78
  executables: []
63
-
64
79
  extensions: []
65
-
66
80
  extra_rdoc_files: []
67
-
68
- files:
81
+ files:
82
+ - MIT-LICENSE
83
+ - README.rdoc
84
+ - Rakefile
69
85
  - config/locales/awesome_nested_set-tools.de.yml
70
86
  - lib/awesome_nested_set-tools.rb
71
- - lib/awesome_nested_set/tools/helper.rb
72
87
  - lib/awesome_nested_set/tools/engine.rb
88
+ - lib/awesome_nested_set/tools/helper.rb
73
89
  - lib/awesome_nested_set/tools/version.rb
74
90
  - lib/tasks/awesome_nested_set-tools_tasks.rake
75
- - MIT-LICENSE
76
- - Rakefile
77
- - README.rdoc
78
- - test/test_helper.rb
79
- - test/dummy/config.ru
80
- - test/dummy/Rakefile
91
+ - test/awesome_nested_set-tools_test.rb
81
92
  - test/dummy/README.rdoc
82
- - test/dummy/public/favicon.ico
83
- - test/dummy/public/500.html
84
- - test/dummy/public/422.html
85
- - test/dummy/public/404.html
93
+ - test/dummy/Rakefile
94
+ - test/dummy/app/assets/javascripts/application.js
95
+ - test/dummy/app/assets/stylesheets/application.css
96
+ - test/dummy/app/controllers/application_controller.rb
97
+ - test/dummy/app/helpers/application_helper.rb
98
+ - test/dummy/app/views/layouts/application.html.erb
99
+ - test/dummy/config.ru
86
100
  - test/dummy/config/application.rb
87
- - test/dummy/config/database.yml
88
- - test/dummy/config/routes.rb
89
101
  - test/dummy/config/boot.rb
90
- - test/dummy/config/locales/en.yml
91
- - test/dummy/config/environments/production.rb
102
+ - test/dummy/config/database.yml
103
+ - test/dummy/config/environment.rb
92
104
  - test/dummy/config/environments/development.rb
105
+ - test/dummy/config/environments/production.rb
93
106
  - test/dummy/config/environments/test.rb
94
- - test/dummy/config/environment.rb
107
+ - test/dummy/config/initializers/backtrace_silencers.rb
95
108
  - test/dummy/config/initializers/inflections.rb
96
- - test/dummy/config/initializers/wrap_parameters.rb
97
- - test/dummy/config/initializers/secret_token.rb
98
109
  - test/dummy/config/initializers/mime_types.rb
110
+ - test/dummy/config/initializers/secret_token.rb
99
111
  - test/dummy/config/initializers/session_store.rb
100
- - test/dummy/config/initializers/backtrace_silencers.rb
101
- - test/dummy/app/controllers/application_controller.rb
102
- - test/dummy/app/helpers/application_helper.rb
103
- - test/dummy/app/views/layouts/application.html.erb
104
- - test/dummy/app/assets/stylesheets/application.css
105
- - test/dummy/app/assets/javascripts/application.js
112
+ - test/dummy/config/initializers/wrap_parameters.rb
113
+ - test/dummy/config/locales/en.yml
114
+ - test/dummy/config/routes.rb
106
115
  - test/dummy/log/development.log
116
+ - test/dummy/public/404.html
117
+ - test/dummy/public/422.html
118
+ - test/dummy/public/500.html
119
+ - test/dummy/public/favicon.ico
107
120
  - test/dummy/script/rails
108
- - test/awesome_nested_set-tools_test.rb
121
+ - test/test_helper.rb
109
122
  homepage: https://github.com/robotex82/awesome_nested_set-tools
110
123
  licenses: []
111
-
124
+ metadata: {}
112
125
  post_install_message:
113
126
  rdoc_options: []
114
-
115
- require_paths:
127
+ require_paths:
116
128
  - lib
117
- required_ruby_version: !ruby/object:Gem::Requirement
118
- none: false
119
- requirements:
129
+ required_ruby_version: !ruby/object:Gem::Requirement
130
+ requirements:
120
131
  - - ">="
121
- - !ruby/object:Gem::Version
122
- version: "0"
123
- required_rubygems_version: !ruby/object:Gem::Requirement
124
- none: false
125
- requirements:
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ required_rubygems_version: !ruby/object:Gem::Requirement
135
+ requirements:
126
136
  - - ">="
127
- - !ruby/object:Gem::Version
128
- version: "0"
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
129
139
  requirements: []
130
-
131
140
  rubyforge_project:
132
- rubygems_version: 1.8.24
141
+ rubygems_version: 2.4.8
133
142
  signing_key:
134
- specification_version: 3
143
+ specification_version: 4
135
144
  summary: Provides helpers and tools for awesome nested set.
136
- test_files:
145
+ test_files:
137
146
  - test/test_helper.rb
138
147
  - test/dummy/config.ru
139
148
  - test/dummy/Rakefile