cabalist 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/cabalist.rb CHANGED
@@ -6,7 +6,7 @@ require "cabalist/railtie" if defined? Rails
6
6
 
7
7
  module Cabalist
8
8
 
9
- def self.config
9
+ def self.configure
10
10
  yield Cabalist::Configuration.instance
11
11
  end
12
12
 
@@ -1,3 +1,3 @@
1
1
  module Cabalist
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -28,7 +28,7 @@ module Cabalist
28
28
  end
29
29
  if %w(Y y).include?(add_to_gui)
30
30
  inject_into_file "config/initializers/cabalist.rb",
31
- "\n c.frontend_classes << #{name}",
31
+ "\n config.frontend_classes << #{name}",
32
32
  :before => "\nend"
33
33
  end
34
34
  end
@@ -1,4 +1,4 @@
1
1
  # Setup your Cabalist installation
2
- Cabalist.config do |c|
3
- c.db_path = '/tmp/cabalist.db'
2
+ Cabalist.configure do |config|
3
+ config.db_path = '/tmp/cabalist.db'
4
4
  end
data/spec/spec_helper.rb CHANGED
@@ -10,8 +10,8 @@ ActiveRecord::Base.establish_connection(
10
10
  :database => "/tmp/cabalist.sqlite3"
11
11
  )
12
12
 
13
- Cabalist.config do |c|
14
- c.db_path = '/tmp/cabalist_level.db'
13
+ Cabalist.configure do |config|
14
+ config.db_path = '/tmp/cabalist_level.db'
15
15
  end
16
16
 
17
17
  RSpec.configure do |config|
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cabalist
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Marcin Wyszynski
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-04-23 00:00:00 Z
13
+ date: 2012-04-25 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ai4r
@@ -156,6 +156,27 @@ files:
156
156
  - README.md
157
157
  - Rakefile
158
158
  - cabalist.gemspec
159
+ - doc/Cabalist.html
160
+ - doc/Cabalist/ClassifierGenerator.html
161
+ - doc/Cabalist/Configuration.html
162
+ - doc/Cabalist/Frontend.html
163
+ - doc/Cabalist/InstallGenerator.html
164
+ - doc/Cabalist/ModelAdditions.html
165
+ - doc/Cabalist/Railtie.html
166
+ - doc/_index.html
167
+ - doc/class_list.html
168
+ - doc/css/common.css
169
+ - doc/css/full_list.css
170
+ - doc/css/style.css
171
+ - doc/file.README.html
172
+ - doc/file_list.html
173
+ - doc/frames.html
174
+ - doc/index.html
175
+ - doc/js/app.js
176
+ - doc/js/full_list.js
177
+ - doc/js/jquery.js
178
+ - doc/method_list.html
179
+ - doc/top-level-namespace.html
159
180
  - lib/cabalist.rb
160
181
  - lib/cabalist/configuration.rb
161
182
  - lib/cabalist/frontend.rb