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 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 gem dependency in Warbler config:
56
+ 10. Add spring-fu and others needed dependency in Warbler config:
57
57
 
58
- config.gems << "spring-fu"
58
+ config.gems += ["spring-fu", "activerecord-jdbcsqlite3-adapter", "activerecord-jdbc-adapter", "jdbc-sqlite3", "jruby-openssl"]
59
59
 
60
- 10. Install gems:
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
- 11. Create war file:
69
+ 13. Create war file:
65
70
 
66
71
  jruby -S rake war
67
72
 
68
- 12. Deploy on Tomcat and have fun.
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
- #import org.springframework.web.context.support.WebApplicationContextUtils
126
- #rescue NameError
127
- #define_mock_bean_for_error MaciejSzczytowski::SpringFu::ERROR_SPRING_CLASS_NOT_IMPORTED
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{spring-fu}
3
- s.version = "0.1.2"
3
+ s.version = "0.1.3"
4
4
 
5
5
  s.specification_version = 2 if s.respond_to? :specification_version=
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mszczytowski-spring-fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Szczytowski