ronin 1.0.0.rc2 → 1.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.md +1 -4
- data/gemspec.yml +10 -10
- data/lib/ronin/cached_file.rb +2 -2
- data/lib/ronin/database/database.rb +4 -13
- data/lib/ronin/database/migrations.rb +0 -4
- data/lib/ronin/database/migrations/migration.rb +1 -1
- data/lib/ronin/ip_address.rb +1 -0
- data/lib/ronin/model/class_methods.rb +3 -1
- data/lib/ronin/model/types.rb +7 -1
- data/lib/ronin/ui/cli/command.rb +1 -1
- data/lib/ronin/ui/console.rb +5 -8
- data/lib/ronin/url.rb +3 -1
- data/lib/ronin/version.rb +1 -1
- metadata +28 -28
data/ChangeLog.md
CHANGED
@@ -1,10 +1,7 @@
|
|
1
|
-
### 1.0.0 / 2011-
|
1
|
+
### 1.0.0 / 2011-03-15
|
2
2
|
|
3
3
|
* Upgraded to the GPL-3 license.
|
4
4
|
* Require Ruby >= 1.8.7.
|
5
|
-
* Require i18n ~> 0.4.1.
|
6
|
-
* Require tzinfo ~> 0.3.22.
|
7
|
-
* Require activesupport ~> 3.0.0.
|
8
5
|
* Require dm-do-adapter ~> 1.1.0.
|
9
6
|
* Require dm-sqlite-adapter ~> 1.1.0.
|
10
7
|
* Require dm-core ~> 1.1.0.
|
data/gemspec.yml
CHANGED
@@ -36,17 +36,17 @@ required_ruby_version: ">= 1.8.7"
|
|
36
36
|
|
37
37
|
dependencies:
|
38
38
|
# DataMapper adapters
|
39
|
-
dm-do-adapter: ~> 1.1.0.
|
40
|
-
dm-sqlite-adapter: ~> 1.1.0.
|
39
|
+
dm-do-adapter: ~> 1.1.0.rc3
|
40
|
+
dm-sqlite-adapter: ~> 1.1.0.rc3
|
41
41
|
# DataMapper dependencies
|
42
|
-
dm-core: ~> 1.1.0.
|
43
|
-
dm-types: ~> 1.1.0.
|
44
|
-
dm-constraints: ~> 1.1.0.
|
45
|
-
dm-migrations: ~> 1.1.0.
|
46
|
-
dm-validations: ~> 1.1.0.
|
47
|
-
dm-serializer: ~> 1.1.0.
|
48
|
-
dm-aggregates: ~> 1.1.0.
|
49
|
-
dm-timestamps: ~> 1.1.0.
|
42
|
+
dm-core: ~> 1.1.0.rc3
|
43
|
+
dm-types: ~> 1.1.0.rc3
|
44
|
+
dm-constraints: ~> 1.1.0.rc3
|
45
|
+
dm-migrations: ~> 1.1.0.rc3
|
46
|
+
dm-validations: ~> 1.1.0.rc3
|
47
|
+
dm-serializer: ~> 1.1.0.rc3
|
48
|
+
dm-aggregates: ~> 1.1.0.rc3
|
49
|
+
dm-timestamps: ~> 1.1.0.rc3
|
50
50
|
# DataMapper plugins
|
51
51
|
dm-is-predefined: ~> 0.3.1
|
52
52
|
# Library dependencies
|
data/lib/ronin/cached_file.rb
CHANGED
@@ -63,7 +63,7 @@ module Ronin
|
|
63
63
|
#
|
64
64
|
def model_path
|
65
65
|
if self.model_name
|
66
|
-
|
66
|
+
Support::Inflector.underscore(self.model_name)
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
@@ -87,7 +87,7 @@ module Ronin
|
|
87
87
|
|
88
88
|
# filter out missing class names
|
89
89
|
model = begin
|
90
|
-
::Object.full_const_get(self.model_name)
|
90
|
+
DataMapper::Ext::Object.full_const_get(self.model_name)
|
91
91
|
rescue NameError
|
92
92
|
return nil
|
93
93
|
end
|
@@ -19,10 +19,8 @@
|
|
19
19
|
|
20
20
|
require 'ronin/database/exceptions/invalid_config'
|
21
21
|
require 'ronin/database/exceptions/unknown_repository'
|
22
|
-
require 'ronin/database/migrations
|
23
|
-
require 'ronin/model'
|
22
|
+
require 'ronin/database/migrations'
|
24
23
|
require 'ronin/config'
|
25
|
-
require 'ronin/installation'
|
26
24
|
|
27
25
|
require 'addressable/uri'
|
28
26
|
require 'yaml'
|
@@ -188,13 +186,9 @@ module Ronin
|
|
188
186
|
#
|
189
187
|
# Sets up the Database.
|
190
188
|
#
|
191
|
-
# @yield []
|
192
|
-
# The block to call after the Database has been setup, but before
|
193
|
-
# it is updated.
|
194
|
-
#
|
195
189
|
# @see Database.upgrade!
|
196
190
|
#
|
197
|
-
def Database.setup
|
191
|
+
def Database.setup
|
198
192
|
# setup the database log
|
199
193
|
Database.setup_log unless @log
|
200
194
|
|
@@ -203,11 +197,8 @@ module Ronin
|
|
203
197
|
DataMapper.setup(name,uri)
|
204
198
|
end
|
205
199
|
|
206
|
-
#
|
207
|
-
Database.upgrade!
|
208
|
-
|
209
|
-
# finalize the model relationships
|
210
|
-
DataMapper.finalize
|
200
|
+
# apply any new migrations to the database
|
201
|
+
Database.upgrade!
|
211
202
|
end
|
212
203
|
|
213
204
|
#
|
@@ -45,7 +45,3 @@ require 'ronin/database/migrations/create_campaigns_table'
|
|
45
45
|
require 'ronin/database/migrations/create_targets_table'
|
46
46
|
require 'ronin/database/migrations/create_cached_files_table'
|
47
47
|
require 'ronin/database/migrations/create_repositories_table'
|
48
|
-
|
49
|
-
require 'ronin/database/database'
|
50
|
-
|
51
|
-
Ronin::Database.upgrade!
|
data/lib/ronin/ip_address.rb
CHANGED
@@ -35,7 +35,9 @@ module Ronin
|
|
35
35
|
# @since 1.0.0
|
36
36
|
#
|
37
37
|
def relationship_name
|
38
|
-
self.name.split('::').last
|
38
|
+
name = Support::Inflector.underscore(self.name.split('::').last)
|
39
|
+
|
40
|
+
return Support::Inflector.pluralize(name).to_sym
|
39
41
|
end
|
40
42
|
|
41
43
|
#
|
data/lib/ronin/model/types.rb
CHANGED
data/lib/ronin/ui/cli/command.rb
CHANGED
data/lib/ronin/ui/console.rb
CHANGED
@@ -17,15 +17,8 @@
|
|
17
17
|
# along with Ronin. If not, see <http://www.gnu.org/licenses/>.
|
18
18
|
#
|
19
19
|
|
20
|
-
require 'ronin/ui/output/helpers'
|
21
|
-
require 'ronin/repository'
|
22
20
|
require 'ronin/config'
|
23
|
-
require 'ronin/
|
24
|
-
|
25
|
-
require 'ripl'
|
26
|
-
require 'ripl/completion'
|
27
|
-
require 'ripl/multi_line'
|
28
|
-
require 'ripl/auto_indent'
|
21
|
+
require 'ronin/repository'
|
29
22
|
|
30
23
|
module Ronin
|
31
24
|
module UI
|
@@ -146,6 +139,10 @@ module Ronin
|
|
146
139
|
# # # => "hello"
|
147
140
|
#
|
148
141
|
def Console.start(variables={},&block)
|
142
|
+
require 'ripl'
|
143
|
+
require 'ripl/completion'
|
144
|
+
require 'ripl/multi_line'
|
145
|
+
require 'ripl/auto_indent'
|
149
146
|
require 'ripl/color_result' if @@color
|
150
147
|
require 'ripl/short_errors' if @@short_errors
|
151
148
|
|
data/lib/ronin/url.rb
CHANGED
data/lib/ronin/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ronin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 6
|
5
|
-
version: 1.0.0.
|
5
|
+
version: 1.0.0.rc3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Postmodern
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-11 00:00:00 -08:00
|
14
14
|
default_executable: ronin
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.1.0.
|
23
|
+
version: 1.1.0.rc3
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: *id001
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - ~>
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 1.1.0.
|
34
|
+
version: 1.1.0.rc3
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: *id002
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 1.1.0.
|
45
|
+
version: 1.1.0.rc3
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
48
|
version_requirements: *id003
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
requirements:
|
54
54
|
- - ~>
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 1.1.0.
|
56
|
+
version: 1.1.0.rc3
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: *id004
|
@@ -64,7 +64,7 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - ~>
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 1.1.0.
|
67
|
+
version: 1.1.0.rc3
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: *id005
|
@@ -75,7 +75,7 @@ dependencies:
|
|
75
75
|
requirements:
|
76
76
|
- - ~>
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version: 1.1.0.
|
78
|
+
version: 1.1.0.rc3
|
79
79
|
type: :runtime
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: *id006
|
@@ -86,7 +86,7 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.1.0.
|
89
|
+
version: 1.1.0.rc3
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: *id007
|
@@ -97,7 +97,7 @@ dependencies:
|
|
97
97
|
requirements:
|
98
98
|
- - ~>
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: 1.1.0.
|
100
|
+
version: 1.1.0.rc3
|
101
101
|
type: :runtime
|
102
102
|
prerelease: false
|
103
103
|
version_requirements: *id008
|
@@ -108,7 +108,7 @@ dependencies:
|
|
108
108
|
requirements:
|
109
109
|
- - ~>
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: 1.1.0.
|
111
|
+
version: 1.1.0.rc3
|
112
112
|
type: :runtime
|
113
113
|
prerelease: false
|
114
114
|
version_requirements: *id009
|
@@ -119,7 +119,7 @@ dependencies:
|
|
119
119
|
requirements:
|
120
120
|
- - ~>
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: 1.1.0.
|
122
|
+
version: 1.1.0.rc3
|
123
123
|
type: :runtime
|
124
124
|
prerelease: false
|
125
125
|
version_requirements: *id010
|
@@ -139,12 +139,12 @@ dependencies:
|
|
139
139
|
requirement: &id012 !ruby/object:Gem::Requirement
|
140
140
|
none: false
|
141
141
|
requirements:
|
142
|
-
- - ~>
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: "0.5"
|
145
142
|
- - ">="
|
146
143
|
- !ruby/object:Gem::Version
|
147
144
|
version: 0.5.2
|
145
|
+
- - ~>
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: "0.5"
|
148
148
|
type: :runtime
|
149
149
|
prerelease: false
|
150
150
|
version_requirements: *id012
|
@@ -164,12 +164,12 @@ dependencies:
|
|
164
164
|
requirement: &id014 !ruby/object:Gem::Requirement
|
165
165
|
none: false
|
166
166
|
requirements:
|
167
|
-
- - ~>
|
168
|
-
- !ruby/object:Gem::Version
|
169
|
-
version: "0.2"
|
170
167
|
- - ">="
|
171
168
|
- !ruby/object:Gem::Version
|
172
169
|
version: 0.2.3
|
170
|
+
- - ~>
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: "0.2"
|
173
173
|
type: :runtime
|
174
174
|
prerelease: false
|
175
175
|
version_requirements: *id014
|
@@ -178,12 +178,12 @@ dependencies:
|
|
178
178
|
requirement: &id015 !ruby/object:Gem::Requirement
|
179
179
|
none: false
|
180
180
|
requirements:
|
181
|
-
- - ~>
|
182
|
-
- !ruby/object:Gem::Version
|
183
|
-
version: "0.2"
|
184
181
|
- - ">="
|
185
182
|
- !ruby/object:Gem::Version
|
186
183
|
version: 0.2.1
|
184
|
+
- - ~>
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: "0.2"
|
187
187
|
type: :runtime
|
188
188
|
prerelease: false
|
189
189
|
version_requirements: *id015
|
@@ -203,12 +203,12 @@ dependencies:
|
|
203
203
|
requirement: &id017 !ruby/object:Gem::Requirement
|
204
204
|
none: false
|
205
205
|
requirements:
|
206
|
-
- - ~>
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: "0.1"
|
209
206
|
- - ">="
|
210
207
|
- !ruby/object:Gem::Version
|
211
208
|
version: 0.1.2
|
209
|
+
- - ~>
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: "0.1"
|
212
212
|
type: :runtime
|
213
213
|
prerelease: false
|
214
214
|
version_requirements: *id017
|
@@ -217,12 +217,12 @@ dependencies:
|
|
217
217
|
requirement: &id018 !ruby/object:Gem::Requirement
|
218
218
|
none: false
|
219
219
|
requirements:
|
220
|
-
- - ~>
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: "0.1"
|
223
220
|
- - ">="
|
224
221
|
- !ruby/object:Gem::Version
|
225
222
|
version: 0.1.2
|
223
|
+
- - ~>
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
version: "0.1"
|
226
226
|
type: :runtime
|
227
227
|
prerelease: false
|
228
228
|
version_requirements: *id018
|
@@ -702,7 +702,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
702
702
|
requirements: []
|
703
703
|
|
704
704
|
rubyforge_project: ronin
|
705
|
-
rubygems_version: 1.
|
705
|
+
rubygems_version: 1.6.2
|
706
706
|
signing_key:
|
707
707
|
specification_version: 3
|
708
708
|
summary: A Ruby platform for exploit development and security research.
|