fredit 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/fredit_controller.rb +2 -2
- metadata +5 -5
@@ -38,14 +38,14 @@ class FreditController < ::ApplicationController
|
|
38
38
|
if params[:commit] =~ /delete/i
|
39
39
|
`git rm #@path`
|
40
40
|
flash[:notice] = "#@path deleted"
|
41
|
-
res = system %Q|git commit --author='#{author}' --file
|
41
|
+
res = system %Q|git commit --author='#{author}' --file #{edit_msg_file.path} #{@path}|
|
42
42
|
@path = nil
|
43
43
|
else
|
44
44
|
n = params[:source].gsub(/\r\n/, "\n")
|
45
45
|
File.open(@path, 'w') {|f| f.write(n)}
|
46
46
|
system %Q|git add #{@path}|
|
47
47
|
flash[:notice] = "#@path updated"
|
48
|
-
res = system %Q|git commit --author='#{author}' --file
|
48
|
+
res = system %Q|git commit --author='#{author}' --file #{edit_msg_file.path} #{@path}|
|
49
49
|
end
|
50
50
|
if res == false
|
51
51
|
flash[:notice] = "Something went wrong with git. Make sure you changed something and filled in required fields."
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fredit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-10-25 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: git
|
16
|
-
requirement: &
|
16
|
+
requirement: &76083830 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *76083830
|
25
25
|
description: Edit the front end of Rails apps through the browser.
|
26
26
|
email:
|
27
27
|
- dhchoi@gmail.com
|
@@ -56,7 +56,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
56
|
version: '0'
|
57
57
|
segments:
|
58
58
|
- 0
|
59
|
-
hash:
|
59
|
+
hash: -247553329
|
60
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
version: '0'
|
66
66
|
segments:
|
67
67
|
- 0
|
68
|
-
hash:
|
68
|
+
hash: -247553329
|
69
69
|
requirements: []
|
70
70
|
rubyforge_project:
|
71
71
|
rubygems_version: 1.8.11
|