fredit 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/controllers/fredit_controller.rb +2 -2
- metadata +4 -4
|
@@ -29,14 +29,14 @@ class FreditController < ::ApplicationController
|
|
|
29
29
|
if params[:commit] =~ /delete/i
|
|
30
30
|
`git rm #@path`
|
|
31
31
|
flash[:notice] = "#@path deleted"
|
|
32
|
-
`git commit --author=
|
|
32
|
+
`git commit --author="#{author}" -m "#{edit_msg}" #{@path}`
|
|
33
33
|
@path = nil
|
|
34
34
|
else
|
|
35
35
|
n = params[:source].gsub(/\r\n/, "\n")
|
|
36
36
|
File.open(@path, 'w') {|f| f.write(n)}
|
|
37
37
|
`git add #{@path}`
|
|
38
38
|
flash[:notice] = "#@path updated"
|
|
39
|
-
`git commit --author=
|
|
39
|
+
`git commit --author="#{author}" -m "#{edit_msg}" #{@path}`
|
|
40
40
|
end
|
|
41
41
|
params.delete(:source)
|
|
42
42
|
|
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.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -43,7 +43,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
43
43
|
version: '0'
|
|
44
44
|
segments:
|
|
45
45
|
- 0
|
|
46
|
-
hash: -
|
|
46
|
+
hash: -244463729
|
|
47
47
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
48
|
none: false
|
|
49
49
|
requirements:
|
|
@@ -52,11 +52,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
52
52
|
version: '0'
|
|
53
53
|
segments:
|
|
54
54
|
- 0
|
|
55
|
-
hash: -
|
|
55
|
+
hash: -244463729
|
|
56
56
|
requirements: []
|
|
57
57
|
rubyforge_project:
|
|
58
58
|
rubygems_version: 1.8.11
|
|
59
59
|
signing_key:
|
|
60
60
|
specification_version: 3
|
|
61
|
-
summary: fredit 0.0.
|
|
61
|
+
summary: fredit 0.0.6
|
|
62
62
|
test_files: []
|