mszczytowski-spring-fu 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README +10 -5
- data/lib/maciej_szczytowski/spring_fu.rb +3 -3
- data/spring-fu.gemspec +1 -1
- metadata +1 -1
data/README
CHANGED
@@ -53,19 +53,24 @@ Installation
|
|
53
53
|
|
54
54
|
config.gem 'mszczytowski-spring-fu', :lib => 'spring-fu', :source => 'http://gems.github.com'
|
55
55
|
|
56
|
-
10. Add
|
56
|
+
10. Add spring-fu and others needed dependency in Warbler config:
|
57
57
|
|
58
|
-
config.gems
|
58
|
+
config.gems += ["spring-fu", "activerecord-jdbcsqlite3-adapter", "activerecord-jdbc-adapter", "jdbc-sqlite3", "jruby-openssl"]
|
59
59
|
|
60
|
-
|
60
|
+
11. Change database.yml to use jdbc connection:
|
61
|
+
|
62
|
+
adapter: jdbcsqlite3
|
63
|
+
url: jdbc:sqlite:/tmp/development.sqlite3
|
64
|
+
|
65
|
+
12. Install gems:
|
61
66
|
|
62
67
|
jruby -S rake gems:install
|
63
68
|
|
64
|
-
|
69
|
+
13. Create war file:
|
65
70
|
|
66
71
|
jruby -S rake war
|
67
72
|
|
68
|
-
|
73
|
+
14. Deploy on Tomcat and have fun.
|
69
74
|
|
70
75
|
Usage
|
71
76
|
=====
|
@@ -122,9 +122,9 @@ module MaciejSzczytowski
|
|
122
122
|
end
|
123
123
|
|
124
124
|
def self.spring_imported?
|
125
|
-
|
126
|
-
|
127
|
-
|
125
|
+
import org.springframework.web.context.support.WebApplicationContextUtils
|
126
|
+
rescue NameError
|
127
|
+
define_mock_bean_for_error MaciejSzczytowski::SpringFu::ERROR_SPRING_CLASS_NOT_IMPORTED
|
128
128
|
end
|
129
129
|
|
130
130
|
def self.define_mock_bean_for_error(error_message)
|
data/spring-fu.gemspec
CHANGED