angular_ui_tree_rails 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +415 -0
- data/Rakefile +2 -0
- data/angular_ui_tree_rails.gemspec +26 -0
- data/lib/angular_ui_tree_rails.rb +6 -0
- data/lib/angular_ui_tree_rails/version.rb +3 -0
- metadata +122 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ad043fd34b83cb86a7ccd3333400ee49be57869e
|
4
|
+
data.tar.gz: 980af9a9859a8da237dd841d21d8adcb2cfd1022
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 200f14d9177c3b5fea072a083698eba7c5c2212654ffa496393ebe2f2ec39502bc61e40fb1acdfefeebd3397c7afffeba9fba80a9237408ccb60acba445585dc
|
7
|
+
data.tar.gz: 269e0ca4ec1ad3c756931f702d2466737d06a70da93ab20aef3e93a42e211c1570e37fa0f0061bd6349901fa637540e6e9ad421ffd33f89f23dd03405572766a
|
data/.gitignore
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Taylor Mitchell
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,415 @@
|
|
1
|
+
Angular UI Tree Rails
|
2
|
+
======================
|
3
|
+
|
4
|
+
[](https://travis-ci.org/JimLiu/angular-ui-tree)
|
5
|
+
|
6
|
+
Angular UI Tree is an AngularJS UI component that can sort nested lists, provides drag & drop support and doesn't depend on jQuery. If you are a user who uses `angular-nestedSortable`, this is [How to migrate From v1.x to v2.0](https://github.com/JimLiu/angular-ui-tree/wiki/Migrate-From-v1.x-to-v2.0).
|
7
|
+
|
8
|
+
|
9
|
+
## Features
|
10
|
+
|
11
|
+
- Uses the native AngularJS scope for data binding
|
12
|
+
- Sorted and move items through the entire tree
|
13
|
+
- Prevent elements from accepting child nodes
|
14
|
+
|
15
|
+
## Supported browsers
|
16
|
+
|
17
|
+
The Angular UI Tree is tested with the following browsers:
|
18
|
+
|
19
|
+
- Chrome (stable)
|
20
|
+
- Firefox
|
21
|
+
- IE 8, 9 and 10
|
22
|
+
|
23
|
+
For IE8 support, make sure you do the following:
|
24
|
+
|
25
|
+
- include an [ES5 shim](https://github.com/es-shims/es5-shim)
|
26
|
+
- make your [AngularJS application compatible with Internet Explorer](http://docs.angularjs.org/guide/ie)
|
27
|
+
- use [jQuery 1.x](http://jquery.com/browser-support/)
|
28
|
+
|
29
|
+
## Installation
|
30
|
+
|
31
|
+
Add this line to your application's Gemfile:
|
32
|
+
|
33
|
+
gem 'angular_ui_tree_rails'
|
34
|
+
|
35
|
+
And then execute:
|
36
|
+
|
37
|
+
$ bundle
|
38
|
+
|
39
|
+
Or install it yourself as:
|
40
|
+
|
41
|
+
$ gem install angular_ui_tree_rails
|
42
|
+
|
43
|
+
## Javascript
|
44
|
+
|
45
|
+
|
46
|
+
You will need to add the angular-ui-tree object in your application.js:
|
47
|
+
|
48
|
+
//= require angular-ui-tree
|
49
|
+
|
50
|
+
## Javascript
|
51
|
+
|
52
|
+
|
53
|
+
You will need to add the angular-ui-tree object in your application.scss:
|
54
|
+
|
55
|
+
*= require angular-ui-tree
|
56
|
+
|
57
|
+
## Demo
|
58
|
+
Watch the Tree component in action on the [demo page](http://jimliu.github.io/angular-ui-tree/).
|
59
|
+
|
60
|
+
### Code
|
61
|
+
Add the sortable module as a dependency to your application module:
|
62
|
+
|
63
|
+
```js
|
64
|
+
var myAppModule = angular.module('MyApp', ['ui.tree'])
|
65
|
+
```
|
66
|
+
|
67
|
+
Injecting `ui.tree`, `ui-tree-nodes`, `ui-tree-node`, `ui-tree-handle` to your html.
|
68
|
+
|
69
|
+
#### HTML View or Templates
|
70
|
+
```html
|
71
|
+
<div ui-tree>
|
72
|
+
<ol ui-tree-nodes="" ng-model="list">
|
73
|
+
<li ng-repeat="item in list" ui-tree-node>
|
74
|
+
<div ui-tree-handle>
|
75
|
+
{{item.title}}
|
76
|
+
</div>
|
77
|
+
<ol ui-tree-nodes="" ng-model="item.items">
|
78
|
+
<li ng-repeat="subItem in item.items" ui-tree-node>
|
79
|
+
<div ui-tree-handle>
|
80
|
+
{{subItem.title}}
|
81
|
+
</div>
|
82
|
+
</li>
|
83
|
+
</ol>
|
84
|
+
</li>
|
85
|
+
</ol>
|
86
|
+
</div>
|
87
|
+
```
|
88
|
+
**Developing Notes:**
|
89
|
+
- Adding `ui-tree` to your root element of the tree.
|
90
|
+
- Adding `ui-tree-nodes` to the elements which contain the nodes. `ng-model` is required, and it should be an array, so that the directive knows which model to bind and update.
|
91
|
+
- Adding `ui-tree-node` to your node element, it always follows the `ng-repeat` attribute.
|
92
|
+
- Adding `ui-tree-handle` to the element used to drag the object.
|
93
|
+
- All `ui-tree`, `ui-tree-nodes`, `ng-model`, `ui-tree-node` are necessary. And they can be nested.
|
94
|
+
- If you don't add a `ui-tree-handle` for a node, the entire node can be dragged.
|
95
|
+
|
96
|
+
#### Unlimited nesting HTML View or Templates Example
|
97
|
+
|
98
|
+
```html
|
99
|
+
<!-- Nested node template -->
|
100
|
+
<script type="text/ng-template" id="nodes_renderer.html">
|
101
|
+
<div ui-tree-handle>
|
102
|
+
{{node.title}}
|
103
|
+
</div>
|
104
|
+
<ol ui-tree-nodes="" ng-model="node.nodes">
|
105
|
+
<li ng-repeat="node in node.nodes" ui-tree-node ng-include="'nodes_renderer.html'">
|
106
|
+
</li>
|
107
|
+
</ol>
|
108
|
+
</script>
|
109
|
+
<div ui-tree>
|
110
|
+
<ol ui-tree-nodes="" ng-model="data" id="tree-root">
|
111
|
+
<li ng-repeat="node in data" ui-tree-node ng-include="'nodes_renderer.html'"></li>
|
112
|
+
</ol>
|
113
|
+
</div>
|
114
|
+
```
|
115
|
+
|
116
|
+
## Structure of angular-ui-tree
|
117
|
+
|
118
|
+
ui-tree --> Root of tree
|
119
|
+
ui-tree-nodes --> Container of nodes
|
120
|
+
ui-tree-node --> One of the node of a tree
|
121
|
+
ui-tree-handle --> Handle
|
122
|
+
ui-tree-nodes --> Container of child-nodes
|
123
|
+
ui-tree-node --> Child node
|
124
|
+
ui-tree-handle --> Handle
|
125
|
+
ui-tree-node --> Child node
|
126
|
+
ui-tree-node --> Another node
|
127
|
+
ui-tree-handle --> Handle
|
128
|
+
|
129
|
+
## Migrate From v1.x to v2.0
|
130
|
+
[Migrate From v1.x to v2.0](https://github.com/JimLiu/angular-ui-tree/wiki/Migrate-From-v1.x-to-v2.0)
|
131
|
+
|
132
|
+
## API
|
133
|
+
|
134
|
+
### ui-tree
|
135
|
+
`ui-tree` is the root scope for a tree
|
136
|
+
|
137
|
+
#### Attributes
|
138
|
+
##### data-drag-enabled
|
139
|
+
Turn on dragging and dropping of nodes.
|
140
|
+
- `true` (default): allow drag and drop
|
141
|
+
- `false`: turn off drag and drop
|
142
|
+
|
143
|
+
##### data-max-depth
|
144
|
+
Number of levels a nodes can be nested (default 0). 0 means no limit.
|
145
|
+
**Note**
|
146
|
+
If you write your own [$callbacks.accept](#accept) method, you have to check `data-max-depth` by yourself.
|
147
|
+
|
148
|
+
##### data-drag-delay
|
149
|
+
Number of milliseconds a click must be held to start a drag. (default 0)
|
150
|
+
|
151
|
+
##### data-empty-place-holder-enabled
|
152
|
+
If a tree is empty, there will be an empty place hoder which is used to drop node from other trees by default.
|
153
|
+
- `true` (default): display an empty place holder if the tree is empty
|
154
|
+
- `false`: do not display an empty place hoder
|
155
|
+
|
156
|
+
##### Example
|
157
|
+
- turn on/off drag and drop.
|
158
|
+
- Limit depth to 5
|
159
|
+
- 500 milliseconds delay
|
160
|
+
```html
|
161
|
+
<div ui-tree data-drag-enabled="tree.enabled" data-max-depth="5" data-drag-delay="500">
|
162
|
+
|
163
|
+
</div>
|
164
|
+
```
|
165
|
+
|
166
|
+
#### Methods of scope
|
167
|
+
##### collapseAll()
|
168
|
+
Collapse all it's child nodes.
|
169
|
+
|
170
|
+
##### expandAll()
|
171
|
+
Expand all it's child nodes.
|
172
|
+
|
173
|
+
##### $callbacks (type: Object)
|
174
|
+
`$callbacks` is a very important property for `angular-ui-tree`. When some special events trigger, the functions in `$callbacks` are called. The callbacks can be passed through the directive.
|
175
|
+
Example:
|
176
|
+
```js
|
177
|
+
myAppModule.controller('MyController', function($scope) {
|
178
|
+
$scope.treeOptions = {
|
179
|
+
accept: function(sourceNodeScope, destNodesScope, destIndex) {
|
180
|
+
return true;
|
181
|
+
},
|
182
|
+
};
|
183
|
+
});
|
184
|
+
```
|
185
|
+
```html
|
186
|
+
<div ui-tree="treeOptions">
|
187
|
+
<ol ui-tree-nodes ng-model="nodes">
|
188
|
+
<li ng-repeat="node in nodes" ui-tree-node>{{node.title}}</li>
|
189
|
+
</ol>
|
190
|
+
</div>
|
191
|
+
```
|
192
|
+
|
193
|
+
#### Methods in $callbacks
|
194
|
+
##### <a name="accept"></a>accept(sourceNodeScope, destNodesScope, destIndex)
|
195
|
+
Check if the current dragging node can be dropped in the `ui-tree-nodes`.
|
196
|
+
|
197
|
+
**Parameters:**
|
198
|
+
- `sourceNodeScope`: The scope of source node which is dragging.
|
199
|
+
- `destNodesScope`: The scope of `ui-tree-nodes` which you want to drop in.
|
200
|
+
- `destIndex`: The position you want to drop in.
|
201
|
+
|
202
|
+
**Return**
|
203
|
+
If the nodes accept the current dragging node.
|
204
|
+
- `true` Allow it to drop.
|
205
|
+
- `false` Not allow.
|
206
|
+
|
207
|
+
##### <a name="beforeDrag"></a>beforeDrag(sourceNodeScope)
|
208
|
+
Check if the current selected node can be dragged.
|
209
|
+
|
210
|
+
**Parameters:**
|
211
|
+
- `sourceNodeScope`: The scope of source node which is selected.
|
212
|
+
|
213
|
+
**Return**
|
214
|
+
If current node is draggable.
|
215
|
+
- `true` Allow it to drag.
|
216
|
+
- `false` Not allow.
|
217
|
+
|
218
|
+
##### <a name="dropped"></a>dropped(event)
|
219
|
+
If a node moves it's position after dropped, the `nodeDropped` callback will be called.
|
220
|
+
|
221
|
+
**Parameters:**
|
222
|
+
- <a name="eventParam"></a>`event`: Event arguments, it's an object.
|
223
|
+
* `source`: Source object
|
224
|
+
+ `nodeScope`: The scope of source node which was dragged.
|
225
|
+
+ `nodesScope`: The scope of the parent nodes of source node when it began to drag.
|
226
|
+
+ `index`: The position when it began to drag.
|
227
|
+
* `dest`: Destination object
|
228
|
+
+ `nodesScope`: The scope of `ui-tree-nodes` which you just dropped in.
|
229
|
+
+ `index`: The position you dropped in.
|
230
|
+
* `elements`: The dragging relative elements.
|
231
|
+
+ `placeholder`: The placeholder element.
|
232
|
+
+ `dragging`: The dragging element.
|
233
|
+
* `pos`: Position object.
|
234
|
+
|
235
|
+
##### <a name="dragStart"></a>dragStart(event)
|
236
|
+
The `dragStart` function is called when the user starts to drag the node.
|
237
|
+
**Parameters:**
|
238
|
+
Same as [Parameters](#eventParam) of dropped.
|
239
|
+
|
240
|
+
##### dragMove(event)
|
241
|
+
The `dragMove` function is called when the user moves the node.
|
242
|
+
|
243
|
+
**Parameters:**
|
244
|
+
Same as [Parameters](#eventParam) of dropped.
|
245
|
+
|
246
|
+
##### dragStop(event)
|
247
|
+
The `dragStop` function is called when the user stop dragging the node.
|
248
|
+
|
249
|
+
**Parameters:**
|
250
|
+
Same as [Parameters](#eventParam) of dropped.
|
251
|
+
|
252
|
+
##### beforeDrop(event)
|
253
|
+
The `beforeDrop` function is called before the dragging node is dropped.
|
254
|
+
|
255
|
+
**Parameters:**
|
256
|
+
Same as [Parameters](#eventParam) of dropped.
|
257
|
+
|
258
|
+
### ui-tree-nodes
|
259
|
+
`ui-tree-nodes` is the container of nodes. Every `ui-tree-node` should have a `ui-tree-nodes` as it's container, a `ui-tree-nodes` can have multiple child nodes.
|
260
|
+
|
261
|
+
#### Attributes
|
262
|
+
##### data-nodrop<a name="nodes_attrs_nodrop"></a>
|
263
|
+
Turn off drop of nodes.
|
264
|
+
##### data-max-depth<a name="nodes_attrs_maxDepth"></a>
|
265
|
+
Number of levels a nodes can be nested (default 0). 0 means no limit. It can override the `data-max-depth` in `ui-tree`.
|
266
|
+
**Note**
|
267
|
+
If you write your own [$callbacks.accept](#accept) method, you have to check `data-nodrop` and `data-max-depth` by yourself.
|
268
|
+
|
269
|
+
Example: turn off drop.
|
270
|
+
```html
|
271
|
+
<ol ui-tree-nodes ng-model="nodes" data-nodrop>
|
272
|
+
<li ng-repeat="node in nodes" ui-tree-node>{{node.title}}</li>
|
273
|
+
</ol>
|
274
|
+
```
|
275
|
+
|
276
|
+
#### Properties of scope
|
277
|
+
##### $element (type: AngularElement)
|
278
|
+
The html element which bind with the `ui-tree-nodes` scope.
|
279
|
+
|
280
|
+
##### $modelValue (type: Object)
|
281
|
+
The data which bind with the scope.
|
282
|
+
|
283
|
+
##### $nodes (type: Array)
|
284
|
+
All it's child nodes. The type of child node is scope of `ui-tree-node`.
|
285
|
+
|
286
|
+
##### $nodeScope (type: Scope of ui-tree-node)
|
287
|
+
The scope of node which current `ui-tree-nodes` belongs to.
|
288
|
+
For example:
|
289
|
+
|
290
|
+
ui-tree-nodes --> nodes 1
|
291
|
+
ui-tree-node --> node 1.1
|
292
|
+
ui-tree-nodes --> nodes 1.1
|
293
|
+
ui-tree-node --> node 1.1.1
|
294
|
+
ui-tree-node --> node 1.1.2
|
295
|
+
ui-tree-node --> node 1.2
|
296
|
+
|
297
|
+
The property `$nodeScope of` `nodes 1.1` is `node 1.1`. The property `$nodes` of `nodes 1.1` is [`node 1.1.1`, `node 1.1.2`]
|
298
|
+
|
299
|
+
##### maxDepth
|
300
|
+
Number of levels a node can be nested. It bases on the attribute [data-max-depth](#nodes_attrs_maxDepth).
|
301
|
+
|
302
|
+
##### nodrop
|
303
|
+
Turn off drop on nodes. It bases on the attribute [data-nodrag](#nodes_attrs_nodrop).
|
304
|
+
|
305
|
+
#### Methods of scope
|
306
|
+
##### depth()
|
307
|
+
Get the depth.
|
308
|
+
|
309
|
+
##### outOfDepth(sourceNode)
|
310
|
+
Check if depth limit has reached
|
311
|
+
|
312
|
+
##### isParent(nodeScope)
|
313
|
+
Check if the nodes is the parent of the target node.
|
314
|
+
**Parameters:**
|
315
|
+
- `nodeScope`: The target node which is used to check with the current nodes.
|
316
|
+
|
317
|
+
|
318
|
+
### ui-tree-node
|
319
|
+
A node of a tree. Every `ui-tree-node` should have a `ui-tree-nodes` as it's container.
|
320
|
+
|
321
|
+
#### Attributes
|
322
|
+
##### data-nodrag
|
323
|
+
Turn off drag of node.
|
324
|
+
Example: turn off drag.
|
325
|
+
```html
|
326
|
+
<ol ui-tree-nodes ng-model="nodes">
|
327
|
+
<li ng-repeat="node in nodes" ui-tree-node data-nodrag>{{node.title}}</li>
|
328
|
+
</ol>
|
329
|
+
```
|
330
|
+
|
331
|
+
##### data-collapsed
|
332
|
+
Collapse the node.
|
333
|
+
|
334
|
+
#### Properties of scope
|
335
|
+
##### $element (type: AngularElement)
|
336
|
+
The html element which bind with the `ui-tree-nodes` scope.
|
337
|
+
|
338
|
+
##### $modelValue (type: Object)
|
339
|
+
The data which bind with the scope.
|
340
|
+
|
341
|
+
##### collapsed (type: Bool)
|
342
|
+
If the node is collapsed
|
343
|
+
|
344
|
+
- `true`: Current node is collapsed;
|
345
|
+
- `false`: Current node is expanded.
|
346
|
+
|
347
|
+
##### $parentNodeScope (type: Scope of ui-tree-node)
|
348
|
+
The scope of parent node.
|
349
|
+
|
350
|
+
##### $childNodesScope (type: Scope of ui-tree-nodes)
|
351
|
+
The scope of it's `ui-tree-nodes`.
|
352
|
+
|
353
|
+
##### $parentNodesScope (type: Scope of ui-tree-nodes)
|
354
|
+
The scope of it's parent `ui-tree-nodes`.
|
355
|
+
|
356
|
+
For example:
|
357
|
+
|
358
|
+
ui-tree-nodes --> nodes 1
|
359
|
+
ui-tree-node --> node 1.1
|
360
|
+
ui-tree-nodes --> nodes 1.1
|
361
|
+
ui-tree-node --> node 1.1.1
|
362
|
+
ui-tree-node --> node 1.1.2
|
363
|
+
ui-tree-node --> node 1.2
|
364
|
+
|
365
|
+
- `node 1.1.1`.`$parentNodeScope` is `node 1.1`.
|
366
|
+
- `node 1.1`.`$childNodesScope` is `nodes 1.1`.
|
367
|
+
- `node 1.1`.`$parentNodesScope` is `nodes 1`.
|
368
|
+
|
369
|
+
#### Methods of scope
|
370
|
+
##### collapse()
|
371
|
+
Collapse current node.
|
372
|
+
|
373
|
+
##### expand()
|
374
|
+
Expand current node.
|
375
|
+
|
376
|
+
##### toggle()
|
377
|
+
Toggle current node.
|
378
|
+
|
379
|
+
##### remove()
|
380
|
+
Remove current node.
|
381
|
+
|
382
|
+
##### depth()
|
383
|
+
Get the depth of the node.
|
384
|
+
|
385
|
+
##### maxSubDepth()
|
386
|
+
Get the max depth of all the child nodes. If there is no child nodes, return 0.
|
387
|
+
|
388
|
+
##### isSibling(targetNodeScope)
|
389
|
+
Check if the current node is sibling with the target node.
|
390
|
+
**Parameters:**
|
391
|
+
- `targetNodeScope`: The target node which is used to check with the current node.
|
392
|
+
|
393
|
+
##### isChild(targetNodeScope)
|
394
|
+
Check if the current node is a child of the target node.
|
395
|
+
**Parameters:**
|
396
|
+
- `targetNodeScope`: The target node which is used to check with the current node.
|
397
|
+
|
398
|
+
|
399
|
+
### ui-tree-handle
|
400
|
+
Use the `ui-tree-handle` to specify an element used to drag the object. If you don't add a `ui-tree-handle` for a node, the entire node can be dragged.
|
401
|
+
|
402
|
+
## NgModules Link
|
403
|
+
|
404
|
+
[Give them a like on ngmodules](http://ngmodules.org/modules/angular-ui-tree)
|
405
|
+
|
406
|
+
## Thanks to the makers of Angular-UI-Tree!(I did not create the angular code, just the gem.)
|
407
|
+
|
408
|
+
## Contributing
|
409
|
+
|
410
|
+
1. Fork it ( https://github.com/[my-github-username]/angular_ui_tree_rails/fork )
|
411
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
412
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
413
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
414
|
+
5. Create a new Pull Request
|
415
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'angular_ui_tree_rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "angular_ui_tree_rails"
|
8
|
+
spec.version = AngularUiTreeRails::VERSION
|
9
|
+
spec.authors = ["Taylor Mitchell"]
|
10
|
+
spec.email = ["scy0846@gmail.com"]
|
11
|
+
spec.summary = %q{Angular UI Tree for Rails}
|
12
|
+
spec.description = %q{Drag and Drop Tree UI for Angular}
|
13
|
+
spec.homepage = "https://github.com/scy0846/angular_ui_tree_rails"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
22
|
+
spec.add_development_dependency "angularjs-rails"
|
23
|
+
spec.add_development_dependency "jquery-rails"
|
24
|
+
spec.add_development_dependency "jquery-ui-rails"
|
25
|
+
spec.add_development_dependency "rake"
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,122 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: angular_ui_tree_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Taylor Mitchell
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-08-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: angularjs-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jquery-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jquery-ui-rails
|
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'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: Drag and Drop Tree UI for Angular
|
84
|
+
email:
|
85
|
+
- scy0846@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- Gemfile
|
92
|
+
- LICENSE.txt
|
93
|
+
- README.md
|
94
|
+
- Rakefile
|
95
|
+
- angular_ui_tree_rails.gemspec
|
96
|
+
- lib/angular_ui_tree_rails.rb
|
97
|
+
- lib/angular_ui_tree_rails/version.rb
|
98
|
+
homepage: https://github.com/scy0846/angular_ui_tree_rails
|
99
|
+
licenses:
|
100
|
+
- MIT
|
101
|
+
metadata: {}
|
102
|
+
post_install_message:
|
103
|
+
rdoc_options: []
|
104
|
+
require_paths:
|
105
|
+
- lib
|
106
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '0'
|
116
|
+
requirements: []
|
117
|
+
rubyforge_project:
|
118
|
+
rubygems_version: 2.2.2
|
119
|
+
signing_key:
|
120
|
+
specification_version: 4
|
121
|
+
summary: Angular UI Tree for Rails
|
122
|
+
test_files: []
|