merb-admin 0.8.7 → 0.8.8

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,6 +1,7 @@
1
1
  !gems/cache/
2
2
  *.db
3
3
  *.gem
4
+ *.rbc
4
5
  *.sqlite
5
6
  *.sqlite3
6
7
  *.sw[p|o]
data/Gemfile CHANGED
@@ -13,9 +13,13 @@ group :test do
13
13
  gem 'dm-migrations', '~> 1.0'
14
14
  gem 'dm-sqlite-adapter', '~> 1.0'
15
15
  gem 'dm-validations', '~> 1.0'
16
- gem 'thin', '~> 1.2'
17
16
  gem 'rspec', '~> 1.3'
18
- gem 'sequel', '~> 3.16'
19
- gem 'sqlite3-ruby', '~> 1.3', :require => 'sqlite3'
17
+ gem 'sequel', '~> 3.18'
18
+ if 'java' == RUBY_PLATFORM
19
+ gem 'activerecord-jdbcsqlite3-adapter', '~> 1.0', :platform => :jruby
20
+ gem 'jdbc-sqlite3', '~> 3.6', :platform => :jruby
21
+ else
22
+ gem 'sqlite3-ruby', '~> 1.3'
23
+ end
20
24
  gem 'webrat', '~> 0.7'
21
25
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- merb-admin (0.8.7)
4
+ merb-admin (0.8.8)
5
5
  builder (~> 2.1)
6
6
  merb-assets (~> 1.1)
7
7
  merb-helpers (~> 1.1)
@@ -16,7 +16,6 @@ GEM
16
16
  activesupport (2.3.10)
17
17
  addressable (2.2.2)
18
18
  builder (2.1.2)
19
- daemons (1.1.0)
20
19
  data_objects (0.10.2)
21
20
  addressable (~> 2.1)
22
21
  dm-aggregates (1.0.2)
@@ -40,13 +39,19 @@ GEM
40
39
  uuidtools (~> 2.1.1)
41
40
  dm-validations (1.0.2)
42
41
  dm-core (~> 1.0.2)
42
+ do_jdbc (0.10.2-java)
43
+ data_objects (= 0.10.2)
43
44
  do_sqlite3 (0.10.2)
44
45
  data_objects (= 0.10.2)
46
+ do_sqlite3 (0.10.2-java)
47
+ data_objects (= 0.10.2)
48
+ do_jdbc (= 0.10.2)
49
+ jdbc-sqlite3 (>= 3.5.8)
45
50
  erubis (2.6.6)
46
51
  abstract (>= 1.0.0)
47
- eventmachine (0.12.10)
48
52
  extlib (0.9.15)
49
53
  fastercsv (1.5.3)
54
+ jdbc-sqlite3 (3.6.14.2.056-java)
50
55
  json_pure (1.4.6)
51
56
  merb-assets (1.1.3)
52
57
  merb-core (~> 1.1.3)
@@ -62,26 +67,26 @@ GEM
62
67
  merb-slices (1.1.3)
63
68
  merb-core (~> 1.1.3)
64
69
  mime-types (1.16)
65
- nokogiri (1.4.3.1)
70
+ nokogiri (1.4.4)
71
+ nokogiri (1.4.4-java)
72
+ weakling (>= 0.0.3)
66
73
  rack (1.2.1)
67
74
  rack-test (0.5.6)
68
75
  rack (>= 1.0)
69
76
  rake (0.8.7)
70
77
  rspec (1.3.1)
71
- sequel (3.16.0)
72
- sqlite3-ruby (1.3.1)
78
+ sequel (3.18.0)
79
+ sqlite3-ruby (1.3.2)
73
80
  stringex (1.1.0)
74
- thin (1.2.7)
75
- daemons (>= 1.0.9)
76
- eventmachine (>= 0.12.6)
77
- rack (>= 1.0.0)
78
81
  uuidtools (2.1.1)
79
- webrat (0.7.1)
82
+ weakling (0.0.4-java)
83
+ webrat (0.7.2)
80
84
  nokogiri (>= 1.2.0)
81
85
  rack (>= 1.0)
82
86
  rack-test (>= 0.5.3)
83
87
 
84
88
  PLATFORMS
89
+ java
85
90
  ruby
86
91
 
87
92
  DEPENDENCIES
@@ -98,7 +103,6 @@ DEPENDENCIES
98
103
  merb-helpers (~> 1.1)
99
104
  merb-slices (~> 1.1)
100
105
  rspec (~> 1.3)
101
- sequel (~> 3.16)
106
+ sequel (~> 3.18)
102
107
  sqlite3-ruby (~> 1.3)
103
- thin (~> 1.2)
104
108
  webrat (~> 0.7)
@@ -4,8 +4,8 @@ It currently offers the features listed here[http://sferik.tadalist.com/lists/13
4
4
 
5
5
  Take it for a test drive with sample data here[http://merb-admin.heroku.com/].
6
6
  == Screenshots
7
- http://github.com/sferik/merb-admin/raw/master/screenshots/list.png
8
- http://github.com/sferik/merb-admin/raw/master/screenshots/edit.png
7
+ https://github.com/sferik/merb-admin/raw/master/screenshots/list.png
8
+ https://github.com/sferik/merb-admin/raw/master/screenshots/edit.png
9
9
  == Installation
10
10
  $ gem install merb-admin
11
11
  In your app, add the following dependency to <tt>Gemfile</tt>:
data/Rakefile CHANGED
@@ -1,4 +1,3 @@
1
- require 'rubygems'
2
1
  require 'merb-core'
3
2
  require 'merb-core/tasks/merb'
4
3
  require 'spec/rake/spectask'
@@ -1,7 +1,5 @@
1
1
  if defined?(Merb::Plugins)
2
2
 
3
- $:.unshift File.dirname(__FILE__)
4
-
5
3
  require 'merb-slices'
6
4
  Merb::Plugins.add_rakefiles "merb-admin/merbtasks", "merb-admin/slicetasks", "merb-admin/spectasks"
7
5
 
@@ -24,6 +22,7 @@ if defined?(Merb::Plugins)
24
22
 
25
23
  # Slice metadata
26
24
  self.description = "MerbAdmin is a Merb plugin that provides an easy-to-use interface for managing your data."
25
+ require File.expand_path('../merb-admin/version', __FILE__)
27
26
  self.version = VERSION
28
27
  self.author = "Erik Michaels-Ober"
29
28
 
@@ -1,3 +1,3 @@
1
1
  module MerbAdmin
2
- VERSION = "0.8.7"
2
+ VERSION = "0.8.8"
3
3
  end
@@ -1,40 +1,38 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.expand_path("../lib/merb-admin/version", __FILE__)
2
+ require File.expand_path('../lib/merb-admin/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
- s.add_development_dependency("activerecord", "~> 2.3")
6
- s.add_development_dependency("dm-core", "~> 1.0")
7
- s.add_development_dependency("dm-aggregates", "~> 1.0")
8
- s.add_development_dependency("dm-types", "~> 1.0")
9
- s.add_development_dependency("dm-migrations", "~> 1.0")
10
- s.add_development_dependency("dm-sqlite-adapter", "~> 1.0")
11
- s.add_development_dependency("dm-validations", "~> 1.0")
12
- s.add_development_dependency("thin", "~> 1.2")
13
- s.add_development_dependency("rspec", "~> 1.3")
14
- s.add_development_dependency("sequel", "~> 3.16")
15
- s.add_development_dependency("sqlite3-ruby", "~> 1.3")
16
- s.add_development_dependency("webrat", "~> 0.7")
17
- s.add_runtime_dependency("builder", "~> 2.1")
18
- s.add_runtime_dependency("merb-assets", "~> 1.1")
19
- s.add_runtime_dependency("merb-helpers", "~> 1.1")
20
- s.add_runtime_dependency("merb-slices", "~> 1.1")
5
+ s.add_development_dependency('activerecord', '~> 2.3')
6
+ s.add_development_dependency('dm-core', '~> 1.0')
7
+ s.add_development_dependency('dm-aggregates', '~> 1.0')
8
+ s.add_development_dependency('dm-types', '~> 1.0')
9
+ s.add_development_dependency('dm-migrations', '~> 1.0')
10
+ s.add_development_dependency('dm-sqlite-adapter', '~> 1.0')
11
+ s.add_development_dependency('dm-validations', '~> 1.0')
12
+ s.add_development_dependency('rspec', '~> 1.3')
13
+ s.add_development_dependency('sequel', '~> 3.18')
14
+ s.add_development_dependency('webrat', '~> 0.7')
15
+ s.add_runtime_dependency('builder', '~> 2.1')
16
+ s.add_runtime_dependency('merb-assets', '~> 1.1')
17
+ s.add_runtime_dependency('merb-helpers', '~> 1.1')
18
+ s.add_runtime_dependency('merb-slices', '~> 1.1')
21
19
  s.authors = ["Erik Michaels-Ober"]
22
20
  s.description = %q{MerbAdmin is a Merb plugin that provides an easy-to-use interface for managing your data}
23
- s.email = "sferik@gmail.com"
24
- s.extra_rdoc_files = ["LICENSE", "README.rdoc"]
21
+ s.email = ['sferik@gmail.com']
22
+ s.extra_rdoc_files = ['LICENSE', 'README.rdoc']
25
23
  s.files = `git ls-files`.split("\n")
26
- s.homepage = "http://rubygems.org/gems/merb-admin"
27
- s.name = "merb-admin"
24
+ s.homepage = 'http://rubygems.org/gems/merb-admin'
25
+ s.name = 'merb-admin'
28
26
  s.post_install_message =<<eos
29
27
  ********************************************************************************
30
28
  Make sure to add authorization logic before deploying to production!
31
29
  WARNING: MerbAdmin does not implement any authorization scheme.
32
30
  ********************************************************************************
33
31
  eos
34
- s.rdoc_options = ["--charset=UTF-8"]
35
- s.require_paths = ["lib"]
36
- s.required_rubygems_version = Gem::Requirement.new(">= 1.3.6") if s.respond_to? :required_rubygems_version=
37
- s.rubyforge_project = "merb-admin"
32
+ s.rdoc_options = ['--charset=UTF-8']
33
+ s.require_paths = ['lib']
34
+ s.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if s.respond_to? :required_rubygems_version=
35
+ s.rubyforge_project = 'merb-admin'
38
36
  s.summary = %q{MerbAdmin is a Merb plugin that provides an easy-to-use interface for managing your data}
39
37
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
40
38
  s.version = MerbAdmin::VERSION
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.join(File.dirname(__FILE__), '..', 'spec_helper.rb')
2
+ require File.expand_path('../../spec_helper', __FILE__)
3
3
 
4
4
  describe "MerbAdmin" do
5
5
  before(:each) do
@@ -1,4 +1,3 @@
1
- require 'rubygems'
2
1
  require 'merb-core'
3
2
  require 'merb-slices'
4
3
  require 'spec'
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-admin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 8
9
- - 7
10
- version: 0.8.7
8
+ - 8
9
+ version: 0.8.8
11
10
  platform: ruby
12
11
  authors:
13
12
  - Erik Michaels-Ober
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-10-16 00:00:00 -07:00
17
+ date: 2010-12-13 00:00:00 -08:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -26,7 +25,6 @@ dependencies:
26
25
  requirements:
27
26
  - - ~>
28
27
  - !ruby/object:Gem::Version
29
- hash: 5
30
28
  segments:
31
29
  - 2
32
30
  - 3
@@ -41,7 +39,6 @@ dependencies:
41
39
  requirements:
42
40
  - - ~>
43
41
  - !ruby/object:Gem::Version
44
- hash: 15
45
42
  segments:
46
43
  - 1
47
44
  - 0
@@ -56,7 +53,6 @@ dependencies:
56
53
  requirements:
57
54
  - - ~>
58
55
  - !ruby/object:Gem::Version
59
- hash: 15
60
56
  segments:
61
57
  - 1
62
58
  - 0
@@ -71,7 +67,6 @@ dependencies:
71
67
  requirements:
72
68
  - - ~>
73
69
  - !ruby/object:Gem::Version
74
- hash: 15
75
70
  segments:
76
71
  - 1
77
72
  - 0
@@ -86,7 +81,6 @@ dependencies:
86
81
  requirements:
87
82
  - - ~>
88
83
  - !ruby/object:Gem::Version
89
- hash: 15
90
84
  segments:
91
85
  - 1
92
86
  - 0
@@ -101,7 +95,6 @@ dependencies:
101
95
  requirements:
102
96
  - - ~>
103
97
  - !ruby/object:Gem::Version
104
- hash: 15
105
98
  segments:
106
99
  - 1
107
100
  - 0
@@ -116,150 +109,113 @@ dependencies:
116
109
  requirements:
117
110
  - - ~>
118
111
  - !ruby/object:Gem::Version
119
- hash: 15
120
112
  segments:
121
113
  - 1
122
114
  - 0
123
115
  version: "1.0"
124
116
  type: :development
125
117
  version_requirements: *id007
126
- - !ruby/object:Gem::Dependency
127
- name: thin
128
- prerelease: false
129
- requirement: &id008 !ruby/object:Gem::Requirement
130
- none: false
131
- requirements:
132
- - - ~>
133
- - !ruby/object:Gem::Version
134
- hash: 11
135
- segments:
136
- - 1
137
- - 2
138
- version: "1.2"
139
- type: :development
140
- version_requirements: *id008
141
118
  - !ruby/object:Gem::Dependency
142
119
  name: rspec
143
120
  prerelease: false
144
- requirement: &id009 !ruby/object:Gem::Requirement
121
+ requirement: &id008 !ruby/object:Gem::Requirement
145
122
  none: false
146
123
  requirements:
147
124
  - - ~>
148
125
  - !ruby/object:Gem::Version
149
- hash: 9
150
126
  segments:
151
127
  - 1
152
128
  - 3
153
129
  version: "1.3"
154
130
  type: :development
155
- version_requirements: *id009
131
+ version_requirements: *id008
156
132
  - !ruby/object:Gem::Dependency
157
133
  name: sequel
158
134
  prerelease: false
159
- requirement: &id010 !ruby/object:Gem::Requirement
160
- none: false
161
- requirements:
162
- - - ~>
163
- - !ruby/object:Gem::Version
164
- hash: 39
165
- segments:
166
- - 3
167
- - 16
168
- version: "3.16"
169
- type: :development
170
- version_requirements: *id010
171
- - !ruby/object:Gem::Dependency
172
- name: sqlite3-ruby
173
- prerelease: false
174
- requirement: &id011 !ruby/object:Gem::Requirement
135
+ requirement: &id009 !ruby/object:Gem::Requirement
175
136
  none: false
176
137
  requirements:
177
138
  - - ~>
178
139
  - !ruby/object:Gem::Version
179
- hash: 9
180
140
  segments:
181
- - 1
182
141
  - 3
183
- version: "1.3"
142
+ - 18
143
+ version: "3.18"
184
144
  type: :development
185
- version_requirements: *id011
145
+ version_requirements: *id009
186
146
  - !ruby/object:Gem::Dependency
187
147
  name: webrat
188
148
  prerelease: false
189
- requirement: &id012 !ruby/object:Gem::Requirement
149
+ requirement: &id010 !ruby/object:Gem::Requirement
190
150
  none: false
191
151
  requirements:
192
152
  - - ~>
193
153
  - !ruby/object:Gem::Version
194
- hash: 5
195
154
  segments:
196
155
  - 0
197
156
  - 7
198
157
  version: "0.7"
199
158
  type: :development
200
- version_requirements: *id012
159
+ version_requirements: *id010
201
160
  - !ruby/object:Gem::Dependency
202
161
  name: builder
203
162
  prerelease: false
204
- requirement: &id013 !ruby/object:Gem::Requirement
163
+ requirement: &id011 !ruby/object:Gem::Requirement
205
164
  none: false
206
165
  requirements:
207
166
  - - ~>
208
167
  - !ruby/object:Gem::Version
209
- hash: 1
210
168
  segments:
211
169
  - 2
212
170
  - 1
213
171
  version: "2.1"
214
172
  type: :runtime
215
- version_requirements: *id013
173
+ version_requirements: *id011
216
174
  - !ruby/object:Gem::Dependency
217
175
  name: merb-assets
218
176
  prerelease: false
219
- requirement: &id014 !ruby/object:Gem::Requirement
177
+ requirement: &id012 !ruby/object:Gem::Requirement
220
178
  none: false
221
179
  requirements:
222
180
  - - ~>
223
181
  - !ruby/object:Gem::Version
224
- hash: 13
225
182
  segments:
226
183
  - 1
227
184
  - 1
228
185
  version: "1.1"
229
186
  type: :runtime
230
- version_requirements: *id014
187
+ version_requirements: *id012
231
188
  - !ruby/object:Gem::Dependency
232
189
  name: merb-helpers
233
190
  prerelease: false
234
- requirement: &id015 !ruby/object:Gem::Requirement
191
+ requirement: &id013 !ruby/object:Gem::Requirement
235
192
  none: false
236
193
  requirements:
237
194
  - - ~>
238
195
  - !ruby/object:Gem::Version
239
- hash: 13
240
196
  segments:
241
197
  - 1
242
198
  - 1
243
199
  version: "1.1"
244
200
  type: :runtime
245
- version_requirements: *id015
201
+ version_requirements: *id013
246
202
  - !ruby/object:Gem::Dependency
247
203
  name: merb-slices
248
204
  prerelease: false
249
- requirement: &id016 !ruby/object:Gem::Requirement
205
+ requirement: &id014 !ruby/object:Gem::Requirement
250
206
  none: false
251
207
  requirements:
252
208
  - - ~>
253
209
  - !ruby/object:Gem::Version
254
- hash: 13
255
210
  segments:
256
211
  - 1
257
212
  - 1
258
213
  version: "1.1"
259
214
  type: :runtime
260
- version_requirements: *id016
215
+ version_requirements: *id014
261
216
  description: MerbAdmin is a Merb plugin that provides an easy-to-use interface for managing your data
262
- email: sferik@gmail.com
217
+ email:
218
+ - sferik@gmail.com
263
219
  executables: []
264
220
 
265
221
  extensions: []
@@ -393,7 +349,6 @@ files:
393
349
  - screenshots/index.png
394
350
  - screenshots/list.png
395
351
  - screenshots/new.png
396
- - spec/controllers/main_spec.rb
397
352
  - spec/migrations/activerecord/001_create_divisions_migration.rb
398
353
  - spec/migrations/activerecord/002_create_drafts_migration.rb
399
354
  - spec/migrations/activerecord/003_create_leagues_migration.rb
@@ -440,7 +395,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
440
395
  requirements:
441
396
  - - ">="
442
397
  - !ruby/object:Gem::Version
443
- hash: 3
444
398
  segments:
445
399
  - 0
446
400
  version: "0"
@@ -449,7 +403,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
449
403
  requirements:
450
404
  - - ">="
451
405
  - !ruby/object:Gem::Version
452
- hash: 23
453
406
  segments:
454
407
  - 1
455
408
  - 3
@@ -463,7 +416,6 @@ signing_key:
463
416
  specification_version: 3
464
417
  summary: MerbAdmin is a Merb plugin that provides an easy-to-use interface for managing your data
465
418
  test_files:
466
- - spec/controllers/main_spec.rb
467
419
  - spec/migrations/activerecord/001_create_divisions_migration.rb
468
420
  - spec/migrations/activerecord/002_create_drafts_migration.rb
469
421
  - spec/migrations/activerecord/003_create_leagues_migration.rb
@@ -1,25 +0,0 @@
1
- require File.dirname(__FILE__) + '/../spec_helper'
2
-
3
- describe MerbAdmin::Main do
4
-
5
- before(:each) do
6
- mount_slice
7
- end
8
-
9
- it "should have helper methods for dealing with public paths" do
10
- @controller = dispatch_to(MerbAdmin::Main, :index)
11
-
12
- @controller.public_path_for(:image).should == "/slices/merb-admin/images"
13
- @controller.public_path_for(:javascript).should == "/slices/merb-admin/javascripts"
14
- @controller.public_path_for(:stylesheet).should == "/slices/merb-admin/stylesheets"
15
-
16
- @controller.image_path.should == "/slices/merb-admin/images"
17
- @controller.javascript_path.should == "/slices/merb-admin/javascripts"
18
- @controller.stylesheet_path.should == "/slices/merb-admin/stylesheets"
19
-
20
- @controller.app_path_for(:image).should == "#{Merb.root}/public/slices/merb-admin/images"
21
- @controller.app_path_for(:javascript).should == "#{Merb.root}/public/slices/merb-admin/javascripts"
22
- @controller.app_path_for(:stylesheet).should == "#{Merb.root}/public/slices/merb-admin/stylesheets"
23
- end
24
-
25
- end