kit 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +13 -0
- data/README.rdoc +1 -1
- data/lib/kit.rb +2 -0
- metadata +35 -55
data/CHANGELOG.rdoc
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
= Kit ChangeLog
|
2
|
+
|
3
|
+
== 0.3.0
|
4
|
+
|
5
|
+
=== Breaking changes
|
6
|
+
|
7
|
+
* Kits are now expected to have an actions.rb file and specific global action files in the actions directory. This allows one to write methods available to all actions and methods available to specific actions (helps with DRY). See the skeleton kit for the updated structure.
|
8
|
+
|
9
|
+
=== Enhancements
|
10
|
+
|
11
|
+
* Added changelog.
|
12
|
+
|
13
|
+
=== Bug fixes
|
data/README.rdoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
== What is Kit?
|
4
4
|
|
5
|
-
Kit is a framework for making simple management tools called kits. Each kit keeps track of a set of objects (the bits) and info about them. Actions of different types can be queued as tasks and run separately. Bits are put into groups so that code for each action type can be different for each group. The tasks are stored in a
|
5
|
+
Kit is a framework for making simple management tools called kits. Each kit keeps track of a set of objects (the bits) and info about them. Actions of different types can be queued as tasks and run separately. Bits are put into groups so that code for each action type can be different for each group. The tasks are stored in a separate database, so the permissions for adding tasks and managing bit meta information can be set separately.
|
6
6
|
|
7
7
|
== Using Kit
|
8
8
|
|
data/lib/kit.rb
CHANGED
@@ -30,6 +30,7 @@ class Kit
|
|
30
30
|
begin
|
31
31
|
load @@kit_path + "/bit.rb"
|
32
32
|
load @@kit_path + "/kit.rb"
|
33
|
+
load @@kit_path + "/actions.rb"
|
33
34
|
rescue LoadError
|
34
35
|
end
|
35
36
|
|
@@ -124,6 +125,7 @@ class Kit
|
|
124
125
|
|
125
126
|
actions = tasks.group_by { |t| t[:action] } . keys
|
126
127
|
actions.each do |a|
|
128
|
+
load @@kit_path + "/actions/#{a}.rb"
|
127
129
|
load @@kit_path + "/actions/#{b.group_name}/#{a}.rb"
|
128
130
|
b.extend Actions
|
129
131
|
end
|
metadata
CHANGED
@@ -1,84 +1,64 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: kit
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 2
|
8
|
-
- 0
|
9
|
-
version: 0.2.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.0
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Evan Boyd Sosenko
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-02-25 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: sqlite3
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &75741220 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 1
|
30
|
-
- 3
|
31
|
-
- 3
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
32
21
|
version: 1.3.3
|
33
22
|
type: :runtime
|
34
|
-
|
35
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *75741220
|
25
|
+
description: ! "\t\tKit is a framework for making simple management tools called kits.\n"
|
36
26
|
email:
|
37
27
|
executables: []
|
38
|
-
|
39
28
|
extensions: []
|
40
|
-
|
41
29
|
extra_rdoc_files: []
|
42
|
-
|
43
|
-
files:
|
44
|
-
- lib/kit.rb
|
45
|
-
- lib/kit/bit.rb
|
30
|
+
files:
|
46
31
|
- lib/kit/db_sqlite3.rb
|
47
|
-
-
|
32
|
+
- lib/kit/bit.rb
|
33
|
+
- lib/kit.rb
|
34
|
+
- CHANGELOG.rdoc
|
48
35
|
- README.rdoc
|
49
|
-
|
36
|
+
- LICENCE.txt
|
50
37
|
homepage:
|
51
|
-
licenses:
|
52
|
-
-
|
38
|
+
licenses:
|
39
|
+
- MIT
|
53
40
|
post_install_message:
|
54
41
|
rdoc_options: []
|
55
|
-
|
56
|
-
require_paths:
|
42
|
+
require_paths:
|
57
43
|
- lib
|
58
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
45
|
none: false
|
60
|
-
requirements:
|
61
|
-
- -
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
segments:
|
64
|
-
- 1
|
65
|
-
- 9
|
66
|
-
- 2
|
46
|
+
requirements:
|
47
|
+
- - ! '>='
|
48
|
+
- !ruby/object:Gem::Version
|
67
49
|
version: 1.9.2
|
68
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
51
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
|
75
|
-
version: "0"
|
76
|
-
requirements:
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
requirements:
|
77
57
|
- SQLite3
|
78
58
|
rubyforge_project:
|
79
|
-
rubygems_version: 1.
|
59
|
+
rubygems_version: 1.8.11
|
80
60
|
signing_key:
|
81
61
|
specification_version: 3
|
82
62
|
summary: Extendable tool to manage site development and more.
|
83
63
|
test_files: []
|
84
|
-
|
64
|
+
has_rdoc:
|