bowtie 0.5.8 → 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bowtie.gemspec +1 -1
- data/lib/bowtie/adapters/mongomapper.rb +7 -1
- metadata +41 -62
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c2d4003bb34a519f8c55f8102eee1321c7594707
|
4
|
+
data.tar.gz: 68f297ddffe53a011d028c84d76e8966f3cfcb25
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 713ff7a5cfe9c57ab6f866d04be3b6d4633567565c43bb7958a98e3bcf04a368fdc6ea695eb5056bb4d369e1f018fcb44039385d7317d402957928452541f122
|
7
|
+
data.tar.gz: 3d58d47a0ffce004fd9ab1765ad90484a0f1070d55573272fbd45e677f552fba1431db08964efadf01cd18d556c44d2069cb49e1328308d16d16d15d654a2475
|
data/bowtie.gemspec
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
module Bowtie
|
2
2
|
|
3
3
|
def self.models
|
4
|
-
models
|
4
|
+
@models ||= []
|
5
|
+
# models = MongoMapper::Document.descendants.to_a.uniq
|
5
6
|
# models.each {|m| models = models + m.subclasses}
|
6
7
|
# models
|
7
8
|
end
|
@@ -123,6 +124,11 @@ end
|
|
123
124
|
|
124
125
|
module MongoMapper::Document
|
125
126
|
|
127
|
+
def self.included(base)
|
128
|
+
Bowtie.models.push(base)
|
129
|
+
super
|
130
|
+
end
|
131
|
+
|
126
132
|
def primary_key
|
127
133
|
send(self.class.primary_key)
|
128
134
|
end
|
metadata
CHANGED
@@ -1,50 +1,39 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: bowtie
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 5
|
9
|
-
- 8
|
10
|
-
version: 0.5.8
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.9
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
6
|
+
authors:
|
7
|
+
- Tomás Pollak
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2012-04-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: sinatra
|
22
|
-
|
23
|
-
|
24
|
-
none: false
|
25
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
26
17
|
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 51
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
- 9
|
32
|
-
- 4
|
18
|
+
- !ruby/object:Gem::Version
|
33
19
|
version: 0.9.4
|
34
20
|
type: :runtime
|
35
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.9.4
|
36
27
|
description: Simple admin scaffold for MongoMapper and DataMapper models.
|
37
28
|
email: tomas@forkhq.com
|
38
29
|
executables: []
|
39
|
-
|
40
30
|
extensions: []
|
41
|
-
|
42
|
-
extra_rdoc_files:
|
31
|
+
extra_rdoc_files:
|
43
32
|
- lib/bowtie.rb
|
44
33
|
- lib/bowtie/admin.rb
|
45
34
|
- lib/bowtie/core_extensions.rb
|
46
35
|
- lib/bowtie/helpers.rb
|
47
|
-
files:
|
36
|
+
files:
|
48
37
|
- README.md
|
49
38
|
- bowtie.gemspec
|
50
39
|
- lib/bowtie.rb
|
@@ -53,6 +42,10 @@ files:
|
|
53
42
|
- lib/bowtie/admin.rb
|
54
43
|
- lib/bowtie/core_extensions.rb
|
55
44
|
- lib/bowtie/helpers.rb
|
45
|
+
- lib/bowtie/public/css/bowtie.css
|
46
|
+
- lib/bowtie/public/js/bowtie.js
|
47
|
+
- lib/bowtie/public/js/jquery.jeditable.pack.js
|
48
|
+
- lib/bowtie/public/js/jquery.tablesorter.pack.js
|
56
49
|
- lib/bowtie/views/errors.erb
|
57
50
|
- lib/bowtie/views/field.erb
|
58
51
|
- lib/bowtie/views/flash.erb
|
@@ -60,53 +53,39 @@ files:
|
|
60
53
|
- lib/bowtie/views/index.erb
|
61
54
|
- lib/bowtie/views/layout.erb
|
62
55
|
- lib/bowtie/views/new.erb
|
56
|
+
- lib/bowtie/views/row.erb
|
63
57
|
- lib/bowtie/views/search.erb
|
64
58
|
- lib/bowtie/views/show.erb
|
65
59
|
- lib/bowtie/views/subtypes.erb
|
66
60
|
- lib/bowtie/views/table.erb
|
67
|
-
- lib/bowtie/views/row.erb
|
68
|
-
- lib/bowtie/public/css/bowtie.css
|
69
|
-
- lib/bowtie/public/js/bowtie.js
|
70
|
-
- lib/bowtie/public/js/jquery.tablesorter.pack.js
|
71
|
-
- lib/bowtie/public/js/jquery.jeditable.pack.js
|
72
61
|
homepage: http://github.com/tomas/bowtie
|
73
62
|
licenses: []
|
74
|
-
|
63
|
+
metadata: {}
|
75
64
|
post_install_message:
|
76
|
-
rdoc_options:
|
77
|
-
- --line-numbers
|
78
|
-
- --inline-source
|
79
|
-
- --title
|
65
|
+
rdoc_options:
|
66
|
+
- "--line-numbers"
|
67
|
+
- "--inline-source"
|
68
|
+
- "--title"
|
80
69
|
- Bowtie
|
81
|
-
- --main
|
70
|
+
- "--main"
|
82
71
|
- README
|
83
|
-
require_paths:
|
72
|
+
require_paths:
|
84
73
|
- lib
|
85
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
-
|
87
|
-
requirements:
|
74
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
88
76
|
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
version: "0"
|
94
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
-
none: false
|
96
|
-
requirements:
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
97
81
|
- - ">="
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
|
100
|
-
segments:
|
101
|
-
- 1
|
102
|
-
- 2
|
103
|
-
version: "1.2"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '1.2'
|
104
84
|
requirements: []
|
105
|
-
|
106
85
|
rubyforge_project: bowtie
|
107
|
-
rubygems_version:
|
86
|
+
rubygems_version: 2.2.0
|
108
87
|
signing_key:
|
109
88
|
specification_version: 3
|
110
89
|
summary: MongoMapper & DataMapper admin interface
|
111
90
|
test_files: []
|
112
|
-
|
91
|
+
has_rdoc:
|