burp_cms 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/burp/files_controller.rb +1 -1
- data/app/lib/burp/util.rb +4 -3
- data/lib/burp/version.rb +1 -1
- metadata +51 -3
@@ -70,7 +70,7 @@ module Burp
|
|
70
70
|
|
71
71
|
Burp::Util.create_smaller_images(upload_directory_path+File.basename(file.path)) if file.path.match(/(jpg|jpeg|gif|png)$/i)
|
72
72
|
|
73
|
-
Util.commit("Burp: file upload")
|
73
|
+
Util.commit("Burp: file upload",:path => upload_directory_path)
|
74
74
|
render :json => {:success => true}
|
75
75
|
end
|
76
76
|
end
|
data/app/lib/burp/util.rb
CHANGED
@@ -5,9 +5,10 @@ require 'RMagick'
|
|
5
5
|
module Burp
|
6
6
|
module Util
|
7
7
|
|
8
|
-
def self.commit(message = "auto commit")
|
9
|
-
|
10
|
-
`cd #{
|
8
|
+
def self.commit(message = "auto commit", options)
|
9
|
+
options[:path] ||= Burp.content_directory
|
10
|
+
raise "missing git repo in burp cms directory" if `cd #{options[:path]}; git st 2>&1`.match(/Not a git repository/)
|
11
|
+
`cd #{options[:path]}; git add .; git commit -a -m "Burp: #{message}"`
|
11
12
|
end
|
12
13
|
|
13
14
|
def self.create_smaller_images(file_path)
|
data/lib/burp/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: burp_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: burp_cms
|
@@ -475,6 +475,54 @@ dependencies:
|
|
475
475
|
- - ~>
|
476
476
|
- !ruby/object:Gem::Version
|
477
477
|
version: 1.8.4
|
478
|
+
- !ruby/object:Gem::Dependency
|
479
|
+
name: rdoc
|
480
|
+
requirement: !ruby/object:Gem::Requirement
|
481
|
+
none: false
|
482
|
+
requirements:
|
483
|
+
- - ~>
|
484
|
+
- !ruby/object:Gem::Version
|
485
|
+
version: '3.12'
|
486
|
+
type: :development
|
487
|
+
prerelease: false
|
488
|
+
version_requirements: !ruby/object:Gem::Requirement
|
489
|
+
none: false
|
490
|
+
requirements:
|
491
|
+
- - ~>
|
492
|
+
- !ruby/object:Gem::Version
|
493
|
+
version: '3.12'
|
494
|
+
- !ruby/object:Gem::Dependency
|
495
|
+
name: bundler
|
496
|
+
requirement: !ruby/object:Gem::Requirement
|
497
|
+
none: false
|
498
|
+
requirements:
|
499
|
+
- - ! '>='
|
500
|
+
- !ruby/object:Gem::Version
|
501
|
+
version: '0'
|
502
|
+
type: :development
|
503
|
+
prerelease: false
|
504
|
+
version_requirements: !ruby/object:Gem::Requirement
|
505
|
+
none: false
|
506
|
+
requirements:
|
507
|
+
- - ! '>='
|
508
|
+
- !ruby/object:Gem::Version
|
509
|
+
version: '0'
|
510
|
+
- !ruby/object:Gem::Dependency
|
511
|
+
name: jeweler
|
512
|
+
requirement: !ruby/object:Gem::Requirement
|
513
|
+
none: false
|
514
|
+
requirements:
|
515
|
+
- - ~>
|
516
|
+
- !ruby/object:Gem::Version
|
517
|
+
version: 1.8.4
|
518
|
+
type: :development
|
519
|
+
prerelease: false
|
520
|
+
version_requirements: !ruby/object:Gem::Requirement
|
521
|
+
none: false
|
522
|
+
requirements:
|
523
|
+
- - ~>
|
524
|
+
- !ruby/object:Gem::Version
|
525
|
+
version: 1.8.4
|
478
526
|
- !ruby/object:Gem::Dependency
|
479
527
|
name: rspec
|
480
528
|
requirement: !ruby/object:Gem::Requirement
|
@@ -973,7 +1021,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
973
1021
|
version: '0'
|
974
1022
|
segments:
|
975
1023
|
- 0
|
976
|
-
hash: -
|
1024
|
+
hash: -3795509618820238023
|
977
1025
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
978
1026
|
none: false
|
979
1027
|
requirements:
|