imagine 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -6,6 +6,21 @@ It's still in active development.
|
|
6
6
|
|
7
7
|
* [Github project](http://www.github.com/knewter/imagine)
|
8
8
|
|
9
|
+
## USAGE
|
10
|
+
To use Imagine in your app, simply add it to your Gemfile. Then, mount it by:
|
11
|
+
|
12
|
+
mount Imagine::Engine, :at => "/imagine"
|
13
|
+
|
14
|
+
Install the migrations with:
|
15
|
+
|
16
|
+
bundle exec rake imagine:install:migrations
|
17
|
+
|
18
|
+
And run the migrations with:
|
19
|
+
|
20
|
+
bundle exec rake db:migrate
|
21
|
+
|
22
|
+
Finally, visit /imagine/albums in your browser to get started.
|
23
|
+
|
9
24
|
## TODO
|
10
25
|
* Build the plugin system
|
11
26
|
* Build a plugin that ships with core that handles a basic display style
|
@@ -40,3 +55,4 @@ This project uses MIT-LICENSE.
|
|
40
55
|
Josh Adams (josh@isotope11.com)
|
41
56
|
|
42
57
|
Some code (plugin system, .travis.yml) lifted ungraciously from http://github.com/resolve/refinerycms. Those guys are awesome.
|
58
|
+
|
data/Rakefile
CHANGED
@@ -25,6 +25,8 @@ load 'rails/tasks/engine.rake'
|
|
25
25
|
|
26
26
|
require 'rake/testtask'
|
27
27
|
|
28
|
+
require 'rspec/core/rake_task'
|
29
|
+
|
28
30
|
Rake::TestTask.new(:test) do |t|
|
29
31
|
t.libs << 'lib'
|
30
32
|
t.libs << 'test'
|
@@ -32,5 +34,9 @@ Rake::TestTask.new(:test) do |t|
|
|
32
34
|
t.verbose = false
|
33
35
|
end
|
34
36
|
|
37
|
+
desc 'run specs'
|
38
|
+
RSpec::Core::RakeTask.new do |t|
|
39
|
+
t.pattern = "./spec/**/*_spec.rb"
|
40
|
+
end
|
35
41
|
|
36
|
-
task :default => :
|
42
|
+
task :default => :spec
|
data/lib/imagine/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imagine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-08-28 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: imagine-basic_list_view
|
16
|
-
requirement: &
|
16
|
+
requirement: &13306580 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *13306580
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: haml-rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &13306160 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *13306160
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: dragonfly
|
38
|
-
requirement: &
|
38
|
+
requirement: &13305620 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.9.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *13305620
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rack-cache
|
49
|
-
requirement: &
|
49
|
+
requirement: &13305120 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.5.3
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *13305120
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rspec-rails
|
60
|
-
requirement: &
|
60
|
+
requirement: &13304660 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '2.5'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *13304660
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: capybara
|
71
|
-
requirement: &
|
71
|
+
requirement: &13304240 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *13304240
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: factory_girl
|
82
|
-
requirement: &
|
82
|
+
requirement: &13303760 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *13303760
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: spork
|
93
|
-
requirement: &
|
93
|
+
requirement: &13303340 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *13303340
|
102
102
|
description: Imagine can be dropped into an app to provide albums and images in your
|
103
103
|
app. It supports extensions to specify new view styles.
|
104
104
|
email: josh@isotope11.com
|
@@ -107,30 +107,32 @@ extensions: []
|
|
107
107
|
extra_rdoc_files: []
|
108
108
|
files:
|
109
109
|
- lib/tasks/imagine_tasks.rake
|
110
|
-
- lib/imagine
|
110
|
+
- lib/imagine.rb
|
111
111
|
- lib/imagine/engine.rb
|
112
112
|
- lib/imagine/version.rb
|
113
113
|
- lib/imagine/plugin.rb
|
114
|
-
- lib/imagine.rb
|
115
|
-
- app/
|
116
|
-
- app/
|
117
|
-
- app/
|
118
|
-
- app/models/imagine/image.rb
|
114
|
+
- lib/imagine/plugins.rb
|
115
|
+
- app/warehouses/imagine/image.rb
|
116
|
+
- app/warehouses/imagine/album.rb
|
117
|
+
- app/controllers/imagine/images_controller.rb
|
119
118
|
- app/controllers/imagine/application_controller.rb
|
120
119
|
- app/controllers/imagine/albums_controller.rb
|
121
|
-
- app/
|
120
|
+
- app/assets/javascripts/imagine2/application.js
|
121
|
+
- app/assets/stylesheets/imagine2/application.css
|
122
122
|
- app/views/imagine/images/new.html.haml
|
123
123
|
- app/views/imagine/images/show.html.haml
|
124
|
-
- app/views/imagine/albums/new.html.haml
|
125
124
|
- app/views/imagine/albums/index.html.haml
|
125
|
+
- app/views/imagine/albums/new.html.haml
|
126
126
|
- app/views/imagine/albums/show.html.haml
|
127
|
-
- app/
|
128
|
-
- app/
|
127
|
+
- app/models/imagine/image.rb
|
128
|
+
- app/models/imagine/album.rb
|
129
129
|
- app/helpers/imagine/application_helper.rb
|
130
|
+
- db/migrate/20110826162909_create_albums.rb
|
131
|
+
- db/migrate/20110826222354_create_images.rb
|
132
|
+
- basic_list_view/lib/imagine-basic_list_view.rb
|
130
133
|
- basic_list_view/imagine-basic_list_view.gemspec
|
131
134
|
- basic_list_view/app/views/imagine/images/basic_list_view/_image.html.haml
|
132
135
|
- basic_list_view/app/views/imagine/albums/basic_list_view/show.html.haml
|
133
|
-
- basic_list_view/lib/imagine-basic_list_view.rb
|
134
136
|
- MIT-LICENSE
|
135
137
|
- Rakefile
|
136
138
|
- README.md
|