inkling 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  class Inkling::Log < ActiveRecord::Base
2
-
2
+ set_table_name 'inkling_logs'
3
3
  end
@@ -53,6 +53,12 @@ class Inkling::Theme < ActiveRecord::Base
53
53
  def self.site_theme_file
54
54
  "#{Inkling::THEME_LAYOUTS_DIR}#{self.site.file_name}"
55
55
  end
56
+
57
+ #takes a directory and recursively interns all structures there as a theme structure
58
+ # (just like any sub directory in app/views)
59
+ def self.install_from_dir(dirname)
60
+
61
+ end
56
62
 
57
63
  def write_file
58
64
  File.open("#{Inkling::THEME_LAYOUTS_DIR}#{self.file_name}", "w") {|f| f.write(self.body)}
@@ -53,11 +53,10 @@ class CreateInklingTables < ActiveRecord::Migration
53
53
  t.timestamps
54
54
  end
55
55
 
56
- # create_table :inkling_logs do |t|
57
- # t.string :actor, :null => false
58
- # t.integer :can_can_action_id
59
- # t.timestamps
60
- # end
56
+ create_table :inkling_logs do |t|
57
+ t.timestamps
58
+ t.text :text, :null => false
59
+ end
61
60
 
62
61
  end
63
62
 
@@ -1,4 +1,4 @@
1
- require 'ruby-debug'
1
+
2
2
  module Inkling
3
3
  module Routing
4
4
  class TypeConstraint
@@ -1,3 +1,3 @@
1
1
  module Inkling
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -63,4 +63,8 @@ describe Inkling::Theme do
63
63
  theme.destroy
64
64
  File.exist?("tmp/inkling/themes/#{theme.file_name}").should be_false
65
65
  end
66
+
67
+ # describe "installing theme files" do
68
+ #
69
+ # end
66
70
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors: []
12
12
 
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-16 00:00:00 +11:00
17
+ date: 2010-11-18 00:00:00 +11:00
18
18
  default_executable: inkling
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency