ixtlan-audit 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/lib/ixtlan/audit/audit_rack.rb +0 -1
- data/lib/ixtlan/audit/manager.rb +7 -1
- data/lib/ixtlan/audit/railtie.rb +1 -1
- metadata +6 -8
- data/README.textile +0 -4
- data/features/generators.feature +0 -5
- data/features/step_definitions/simple_steps.rb +0 -22
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2008 Kristian Meier
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/lib/ixtlan/audit/manager.rb
CHANGED
data/lib/ixtlan/audit/railtie.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- mkristian
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-
|
17
|
+
date: 2011-04-30 00:00:00 +05:30
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -83,9 +83,7 @@ extensions: []
|
|
83
83
|
extra_rdoc_files: []
|
84
84
|
|
85
85
|
files:
|
86
|
-
-
|
87
|
-
- features/step_definitions/simple_steps.rb
|
88
|
-
- features/generators.feature
|
86
|
+
- MIT-LICENSE
|
89
87
|
- lib/ixtlan-audit.rb
|
90
88
|
- lib/generators/ixtlan/audit_base.rb
|
91
89
|
- lib/generators/ixtlan/audit_scaffold/audit_scaffold_generator.rb
|
@@ -96,8 +94,8 @@ files:
|
|
96
94
|
- lib/ixtlan/audit/user_logger.rb
|
97
95
|
has_rdoc: true
|
98
96
|
homepage: http://github.com/mkristian/ixtlan-audit
|
99
|
-
licenses:
|
100
|
-
|
97
|
+
licenses:
|
98
|
+
- MIT-LICENSE
|
101
99
|
post_install_message:
|
102
100
|
rdoc_options:
|
103
101
|
- --main
|
data/README.textile
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
h1. Rails Audit Log
|
2
|
-
|
3
|
-
p. once you have a logged in user in your system, the usual request log can be improved by added the login name of the user to log output. but since you associate data with a "real" person privacy comes into play. the best privacy protection is not to store data, but in our case the compromise is to just define how long the data shall be stored (define an expiration date for the data).
|
4
|
-
|
data/features/generators.feature
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
Feature: Generators for Ixtlan Audit
|
2
|
-
|
3
|
-
Scenario: The slf4r rails template creates a rails application which uses slf4r-wrapper
|
4
|
-
Given I create new rails application with template "simple.template"
|
5
|
-
Then the output should contain "setup slf4r logger wrapper with ActiveSupport::BufferedLogger"
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
Given /^I create new rails application with template "(.*)"$/ do |template|
|
3
|
-
name = template.sub(/.template$/, '')
|
4
|
-
directory = File.join('target', name)
|
5
|
-
rails_version = ENV['RAILS_VERSION'] || '3.0.1'
|
6
|
-
|
7
|
-
ruby = defined?(JRUBY_VERSION) ? "jruby" : "ruby"
|
8
|
-
rails_command = "#{ENV['GEM_HOME']}/bin/rails"
|
9
|
-
rails_command = "-S rails" unless File.exists?(rails_command)
|
10
|
-
command = "#{rails_command} _#{rails_version}_ new #{directory} -f -m templates/#{template}"
|
11
|
-
FileUtils.rm_rf(directory)
|
12
|
-
|
13
|
-
system "#{ruby} #{command}"
|
14
|
-
|
15
|
-
@result = File.read("target/#{name}/log/development.log")
|
16
|
-
puts @result
|
17
|
-
end
|
18
|
-
|
19
|
-
Then /^the output should contain \"(.*)\"$/ do |expected|
|
20
|
-
(@result =~ /.*#{expected}.*/).should_not be_nil
|
21
|
-
end
|
22
|
-
|