ronin-gen 1.1.0.rc2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- ### 1.1.0 / 2012-01-01
1
+ ### 1.1.0 / 2012-02-12
2
2
 
3
3
  * Require parameters ~> 0.4.
4
4
  * Require ronin-support ~> 0.4.
@@ -16,8 +16,8 @@ dependencies:
16
16
  data_paths: ~> 0.3
17
17
  parameters: ~> 0.4
18
18
  # Ronin dependencies:
19
- ronin-support: ~> 0.4.0.rc2
20
- ronin: ~> 1.4.0.rc2
19
+ ronin-support: ~> 0.4
20
+ ronin: ~> 1.4
21
21
 
22
22
  development_dependencies:
23
23
  bundler: ~> 1.0
@@ -57,8 +57,29 @@ module Ronin
57
57
  def generate!
58
58
  require_params :path
59
59
 
60
- FileUtils.mkdir_p @path
61
- chdir(@path) { super }
60
+ FileUtils.mkdir_p(@path)
61
+ FileUtils.chdir(@path) { super }
62
+ end
63
+
64
+ protected
65
+
66
+ #
67
+ # Changes current working directory, relative to the generated directory.
68
+ #
69
+ # @param [String] path
70
+ # The path within the generated directory to switch to.
71
+ #
72
+ # @yield []
73
+ # The given block will be ran after the current working directory
74
+ # has been changed. After the block has returned, the current working
75
+ # directory will be changed back.
76
+ #
77
+ # @since 1.1.0
78
+ #
79
+ # @see http://rubydoc.info/stdlib/core/Dir#chdir-class_method
80
+ #
81
+ def chdir(path='.')
82
+ super(File.join(@path,path),&block)
62
83
  end
63
84
 
64
85
  end
@@ -261,6 +261,8 @@ module Ronin
261
261
  #
262
262
  # @api semipublic
263
263
  #
264
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#chmod-instance_method
265
+ #
264
266
  def chmod(mode,paths)
265
267
  print_action 'chmod', mode.to_s(8), *paths
266
268
 
@@ -280,6 +282,8 @@ module Ronin
280
282
  #
281
283
  # @api semipublic
282
284
  #
285
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#chmod_R-instance_method
286
+ #
283
287
  def chmod_R(mode,paths)
284
288
  print_action 'chmod -R', mode.to_s(8)
285
289
 
@@ -302,6 +306,8 @@ module Ronin
302
306
  #
303
307
  # @api semipublic
304
308
  #
309
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#chown-instance_method
310
+ #
305
311
  def chown(user,group,paths)
306
312
  print_action 'chown', "#{user}:#{group}", *paths
307
313
 
@@ -324,6 +330,8 @@ module Ronin
324
330
  #
325
331
  # @api semipublic
326
332
  #
333
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#chown_R-instance_method
334
+ #
327
335
  def chown_R(user,group,paths)
328
336
  print_action 'chown -R', "#{user}:#{group}", *paths
329
337
 
@@ -341,6 +349,8 @@ module Ronin
341
349
  #
342
350
  # @since 0.2.0
343
351
  #
352
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#cp-instance_method
353
+ #
344
354
  def cp(file,destination=file)
345
355
  print_action 'cp', destination
346
356
 
@@ -364,11 +374,13 @@ module Ronin
364
374
  #
365
375
  # @since 1.0.0
366
376
  #
377
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#cp_r-instance_method
378
+ #
367
379
  def cp_r(directory,destination=directory)
368
380
  print_action 'cp -r', destination
369
381
 
370
382
  data_dirs(directory) do |dir|
371
- cp_r(dir,destination)
383
+ super(dir,destination)
372
384
  end
373
385
  end
374
386
 
@@ -391,6 +403,8 @@ module Ronin
391
403
  #
392
404
  # @api semipublic
393
405
  #
406
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#install-instance_method
407
+ #
394
408
  def install(src,dest,options={})
395
409
  options = {:mode => options[:mode]} # only pass in :mode
396
410
 
@@ -412,6 +426,8 @@ module Ronin
412
426
  #
413
427
  # @api semipublic
414
428
  #
429
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#ln-instance_method
430
+ #
415
431
  def ln(src,dest)
416
432
  print_action 'ln', src, dest
417
433
 
@@ -431,6 +447,8 @@ module Ronin
431
447
  #
432
448
  # @api semipublic
433
449
  #
450
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#ln_s-instance_method
451
+ #
434
452
  def ln_s(src,dest)
435
453
  print_action 'ln -s', src, dest
436
454
 
@@ -450,6 +468,8 @@ module Ronin
450
468
  #
451
469
  # @api semipublic
452
470
  #
471
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#ln_sf-instance_method
472
+ #
453
473
  def ln_sf(src,dest)
454
474
  print_action 'ln -sf', src, dest
455
475
 
@@ -467,6 +487,8 @@ module Ronin
467
487
  #
468
488
  # @since 0.2.0
469
489
  #
490
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#mkdir-instance_method
491
+ #
470
492
  def mkdir(dir)
471
493
  print_action 'mkdir', dir
472
494
 
@@ -484,6 +506,8 @@ module Ronin
484
506
  #
485
507
  # @since 0.2.0
486
508
  #
509
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#mkdir_p-instance_method
510
+ #
487
511
  def mkdir_p(dir)
488
512
  print_action 'mkdir -p', dir
489
513
 
@@ -503,6 +527,8 @@ module Ronin
503
527
  #
504
528
  # @since 1.1.0
505
529
  #
530
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#mv-instance_method
531
+ #
506
532
  def mv(src,dest)
507
533
  print_action 'mv', src, dest
508
534
 
@@ -525,6 +551,8 @@ module Ronin
525
551
  #
526
552
  # @api semipublic
527
553
  #
554
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#rm-instance_method
555
+ #
528
556
  def rm(paths,options={})
529
557
  options = {:force => options[:force]} # only pass in :force
530
558
 
@@ -549,6 +577,8 @@ module Ronin
549
577
  #
550
578
  # @api semipublic
551
579
  #
580
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#rm_r-instance_method
581
+ #
552
582
  def rm_r(paths,options={})
553
583
  options = {:force => options[:force]} # only pass in :force
554
584
 
@@ -567,6 +597,8 @@ module Ronin
567
597
  #
568
598
  # @api semipublic
569
599
  #
600
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#rm_rf-instance_method
601
+ #
570
602
  def rm_rf(paths)
571
603
  print_action 'rm -rf', *paths
572
604
 
@@ -583,6 +615,8 @@ module Ronin
583
615
  #
584
616
  # @api semipublic
585
617
  #
618
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#rmdir-instance_method
619
+ #
586
620
  def rmdir(dirs)
587
621
  print_action 'rmdir', *dirs
588
622
 
@@ -600,6 +634,8 @@ module Ronin
600
634
  #
601
635
  # @since 0.2.0
602
636
  #
637
+ # @see http://rubydoc.info/stdlib/fileutils/FileUtils#touch-instance_method
638
+ #
603
639
  def touch(file)
604
640
  print_action 'touch', file
605
641
 
@@ -20,6 +20,6 @@
20
20
  module Ronin
21
21
  module Gen
22
22
  # Ronin Gen version
23
- VERSION = '1.1.0.rc2'
23
+ VERSION = '1.1.0'
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ronin-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.rc2
5
- prerelease: 6
4
+ version: 1.1.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Postmodern
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-27 00:00:00.000000000 Z
12
+ date: 2012-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: open_namespace
16
- requirement: &11422740 !ruby/object:Gem::Requirement
16
+ requirement: &17567500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0.3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *11422740
24
+ version_requirements: *17567500
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: data_paths
27
- requirement: &11421940 !ruby/object:Gem::Requirement
27
+ requirement: &17565300 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0.3'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *11421940
35
+ version_requirements: *17565300
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: parameters
38
- requirement: &11420820 !ruby/object:Gem::Requirement
38
+ requirement: &17564440 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,32 +43,32 @@ dependencies:
43
43
  version: '0.4'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *11420820
46
+ version_requirements: *17564440
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: ronin-support
49
- requirement: &11420000 !ruby/object:Gem::Requirement
49
+ requirement: &17563580 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 0.4.0.rc2
54
+ version: '0.4'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *11420000
57
+ version_requirements: *17563580
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: ronin
60
- requirement: &11419340 !ruby/object:Gem::Requirement
60
+ requirement: &17546540 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
64
64
  - !ruby/object:Gem::Version
65
- version: 1.4.0.rc2
65
+ version: '1.4'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *11419340
68
+ version_requirements: *17546540
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
- requirement: &11418360 !ruby/object:Gem::Requirement
71
+ requirement: &17532540 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '1.0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *11418360
79
+ version_requirements: *17532540
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: yard
82
- requirement: &11417300 !ruby/object:Gem::Requirement
82
+ requirement: &17530720 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.7.0
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *11417300
90
+ version_requirements: *17530720
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: yard-parameters
93
- requirement: &11416340 !ruby/object:Gem::Requirement
93
+ requirement: &17525680 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,7 +98,7 @@ dependencies:
98
98
  version: 0.1.0
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *11416340
101
+ version_requirements: *17525680
102
102
  description: Ronin Gen is a Ruby library for Ronin that provides various generators.
103
103
  email: postmodern.mod3@gmail.com
104
104
  executables:
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  requirements:
194
194
  - git >= 1.6.0.0, for the library generator
195
195
  rubyforge_project:
196
- rubygems_version: 1.8.10
196
+ rubygems_version: 1.8.16
197
197
  signing_key:
198
198
  specification_version: 3
199
199
  summary: A Ruby library for Ronin that provides various generators.