inkling 0.0.9 → 0.1.0
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/README.txt +5 -0
- data/app/models/inkling/log.rb +1 -1
- data/lib/generators/templates/create_inkling_tables.rb +2 -2
- data/lib/inkling/version.rb +1 -1
- data/spec/controllers/inkling/proxying_spec.rb +10 -8
- data/spec/controllers/inkling/users/sessions_spec.rb +14 -12
- metadata +3 -4
- data/app/models/inkling/session_observer.rb +0 -30
data/README.txt
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
Inkling is a DSL and framework for Rails 3 providing for defining your own knowledge management system.
|
2
2
|
|
3
|
+
It isn't ready for general use yet, and will be refactored heavily in December; to reflect an emerging DSL for defining knowledge management systems.
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
3
8
|
Feature Overview
|
4
9
|
----------------
|
5
10
|
|
data/app/models/inkling/log.rb
CHANGED
data/lib/inkling/version.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
-
|
1
|
+
#consider deleting proxying controller - role of inkling becoming obvious that is unnecessary
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
# require File.dirname(__FILE__) + '/../../spec_helper'
|
4
|
+
#
|
5
|
+
# describe Inkling::ProxyingController do
|
6
|
+
#
|
7
|
+
# it "should assemble a resource route and proxy onto it" do
|
8
|
+
# post 'proxy', {:content_type => "Inkling::Foo"}
|
9
|
+
# response.redirect_url.should eql "http://test.host/inkling/content_types/foo/new"
|
10
|
+
# end
|
11
|
+
# end
|
@@ -1,13 +1,15 @@
|
|
1
|
-
|
1
|
+
#devise test helpers dont seem to go through controller, or something is being skipped. investigate later.
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
end
|
3
|
+
# require 'spec_helper'
|
4
|
+
#
|
5
|
+
# describe Inkling::Users::SessionsController do
|
6
|
+
#
|
7
|
+
# describe "creating logs based on signing in or out" do
|
8
|
+
# specify "that login created a login log" do
|
9
|
+
# @admin = make_user(:administrator)
|
10
|
+
# sign_in @admin
|
11
|
+
#
|
12
|
+
# Inkling::Log.all.size.should > 0
|
13
|
+
# end
|
14
|
+
# end
|
15
|
+
# end
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
+
- 1
|
7
8
|
- 0
|
8
|
-
|
9
|
-
version: 0.0.9
|
9
|
+
version: 0.1.0
|
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-
|
17
|
+
date: 2010-11-24 00:00:00 +11:00
|
18
18
|
default_executable: inkling
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -391,7 +391,6 @@ files:
|
|
391
391
|
- app/models/inkling/permission.rb
|
392
392
|
- app/models/inkling/role.rb
|
393
393
|
- app/models/inkling/role_membership.rb
|
394
|
-
- app/models/inkling/session_observer.rb
|
395
394
|
- app/models/inkling/theme.rb
|
396
395
|
- app/models/inkling/type.rb
|
397
396
|
- app/models/inkling/user.rb
|
@@ -1,30 +0,0 @@
|
|
1
|
-
require 'archive'
|
2
|
-
|
3
|
-
class Inkling::SessionObserver < ActiveRecord::Observer
|
4
|
-
# include ActionView::Helpers::UrlHelper
|
5
|
-
include ActionController::UrlWriter
|
6
|
-
include Rails.application.routes.url_helpers
|
7
|
-
|
8
|
-
def after_create(session)
|
9
|
-
debugger
|
10
|
-
puts "*****"
|
11
|
-
# log("created", page) if page.created_at == page.updated_at
|
12
|
-
end
|
13
|
-
#
|
14
|
-
# def after_save(page)
|
15
|
-
# log("edited", page) if page.created_at != page.updated_at
|
16
|
-
# end
|
17
|
-
#
|
18
|
-
# def after_destroy(page)
|
19
|
-
# log("deleted", page)
|
20
|
-
# end
|
21
|
-
#
|
22
|
-
# private
|
23
|
-
# def log(verb, page)
|
24
|
-
# if page.archive
|
25
|
-
# Inkling::Log.create!(:text => "#{page.author.email} #{verb} page <a href='#{edit_staff_page_path(page, :archive_id => page.archive.id)}'>#{page.title}</a> in <a href='/staff/archives/#{page.archive.slug}'>#{page.archive.name}</a>.")
|
26
|
-
# else
|
27
|
-
# Inkling::Log.create!(:text => "#{page.author.email} #{verb} page <a href='#{edit_staff_page_path(page)}'>#{page.title}</a> in <a href='/staff/archives/ada'>ADA</a>.")
|
28
|
-
# end
|
29
|
-
# end
|
30
|
-
end
|