console_update 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/{gemspec → .gemspec} +5 -3
- data/CHANGELOG.rdoc +3 -0
- data/README.rdoc +8 -5
- data/Rakefile +3 -3
- data/init.rb +1 -1
- data/lib/console_update/version.rb +1 -1
- data/lib/console_update.rb +3 -1
- data/test/deps.rip +3 -0
- data/test/test_helper.rb +1 -2
- metadata +17 -8
data/{gemspec → .gemspec}
RENAMED
@@ -9,12 +9,14 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.email = "gabriel.horner@gmail.com"
|
10
10
|
s.homepage = "http://tagaholic.me/console_update/"
|
11
11
|
s.summary = "Edit your database records via the console and your favorite editor."
|
12
|
-
s.description = "Updates records from the console via your preferred editor. You can update a record's columns as well as any attribute that has accessor methods.
|
12
|
+
s.description = "Updates records from the console via your preferred editor. You can update a record's columns as well as any attribute that has accessor methods. Records are edited via a temporary file and once saved, the records are updated. Records go through a filter before and after editing the file. Yaml is the default filter, but you can define your own filter simply with a module and 2 expected methods. See ConsoleUpdate::Filter for more details. Compatible with all major Ruby versions and Rails 2.3.x and up."
|
13
13
|
s.required_rubygems_version = ">= 1.3.6"
|
14
14
|
s.rubyforge_project = 'tagaholic'
|
15
|
-
s.add_development_dependency 'bacon'
|
15
|
+
s.add_development_dependency 'bacon', '>= 1.1.0'
|
16
16
|
s.add_development_dependency 'mocha'
|
17
17
|
s.add_development_dependency 'mocha-on-bacon'
|
18
|
-
s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c}]) + %w{Rakefile gemspec
|
18
|
+
s.files = Dir.glob(%w[{lib,test}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c} **/deps.rip]) + %w{Rakefile .gemspec}
|
19
|
+
s.files += ['init.rb']
|
19
20
|
s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
|
21
|
+
s.license = 'MIT'
|
20
22
|
end
|
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -11,20 +11,23 @@ and up.
|
|
11
11
|
|
12
12
|
Install as a gem
|
13
13
|
|
14
|
-
|
14
|
+
$ gem install console_update
|
15
15
|
|
16
|
-
# add in
|
16
|
+
# with bundler: add in Gemfile
|
17
|
+
gem 'console_update'
|
18
|
+
|
19
|
+
# without bundler: add in config/environment.rb
|
17
20
|
config.gem "console_update"
|
18
21
|
|
19
22
|
Or as a plugin
|
20
23
|
|
21
|
-
|
24
|
+
$ script/plugin install git://github.com/cldwalker/console_update.git
|
22
25
|
|
23
26
|
== Examples
|
24
27
|
|
25
28
|
For a given model Url, update your records as you please:
|
26
29
|
|
27
|
-
|
30
|
+
$ script/console
|
28
31
|
|
29
32
|
# Update a record from the object
|
30
33
|
>> Url.first.console_update
|
@@ -100,7 +103,7 @@ may have missed.
|
|
100
103
|
== Motivation
|
101
104
|
The need for editing speed in my {console-based project}[http://github.com/cldwalker/tag-tree].
|
102
105
|
|
103
|
-
== Issues
|
106
|
+
== Bugs/Issues
|
104
107
|
Please report them {on github}[http://github.com/cldwalker/console_update/issues].
|
105
108
|
|
106
109
|
== Links
|
data/Rakefile
CHANGED
@@ -2,12 +2,12 @@ require 'rake'
|
|
2
2
|
require 'fileutils'
|
3
3
|
|
4
4
|
def gemspec
|
5
|
-
@gemspec ||= eval(File.read('gemspec'), binding, 'gemspec')
|
5
|
+
@gemspec ||= eval(File.read('.gemspec'), binding, '.gemspec')
|
6
6
|
end
|
7
7
|
|
8
8
|
desc "Build the gem"
|
9
9
|
task :gem=>:gemspec do
|
10
|
-
sh "gem build gemspec"
|
10
|
+
sh "gem build .gemspec"
|
11
11
|
FileUtils.mkdir_p 'pkg'
|
12
12
|
FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg'
|
13
13
|
end
|
@@ -32,4 +32,4 @@ task :test do |t|
|
|
32
32
|
sh 'bacon -q -Ilib -I. test/*_test.rb'
|
33
33
|
end
|
34
34
|
|
35
|
-
task :default => :test
|
35
|
+
task :default => :test
|
data/init.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
require 'console_update'
|
data/lib/console_update.rb
CHANGED
data/test/deps.rip
ADDED
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: console_update
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 17
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Gabriel Horner
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-09-30 00:00:00 -04:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
@@ -25,9 +26,12 @@ dependencies:
|
|
25
26
|
requirements:
|
26
27
|
- - ">="
|
27
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 19
|
28
30
|
segments:
|
31
|
+
- 1
|
32
|
+
- 1
|
29
33
|
- 0
|
30
|
-
version:
|
34
|
+
version: 1.1.0
|
31
35
|
type: :development
|
32
36
|
version_requirements: *id001
|
33
37
|
- !ruby/object:Gem::Dependency
|
@@ -38,6 +42,7 @@ dependencies:
|
|
38
42
|
requirements:
|
39
43
|
- - ">="
|
40
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
41
46
|
segments:
|
42
47
|
- 0
|
43
48
|
version: "0"
|
@@ -51,12 +56,13 @@ dependencies:
|
|
51
56
|
requirements:
|
52
57
|
- - ">="
|
53
58
|
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
54
60
|
segments:
|
55
61
|
- 0
|
56
62
|
version: "0"
|
57
63
|
type: :development
|
58
64
|
version_requirements: *id003
|
59
|
-
description: Updates records from the console via your preferred editor. You can update a record's columns as well as any attribute that has accessor methods.
|
65
|
+
description: Updates records from the console via your preferred editor. You can update a record's columns as well as any attribute that has accessor methods. Records are edited via a temporary file and once saved, the records are updated. Records go through a filter before and after editing the file. Yaml is the default filter, but you can define your own filter simply with a module and 2 expected methods. See ConsoleUpdate::Filter for more details. Compatible with all major Ruby versions and Rails 2.3.x and up.
|
60
66
|
email: gabriel.horner@gmail.com
|
61
67
|
executables: []
|
62
68
|
|
@@ -79,13 +85,14 @@ files:
|
|
79
85
|
- LICENSE.txt
|
80
86
|
- CHANGELOG.rdoc
|
81
87
|
- README.rdoc
|
88
|
+
- test/deps.rip
|
82
89
|
- Rakefile
|
83
|
-
- gemspec
|
90
|
+
- .gemspec
|
84
91
|
- init.rb
|
85
92
|
has_rdoc: true
|
86
93
|
homepage: http://tagaholic.me/console_update/
|
87
|
-
licenses:
|
88
|
-
|
94
|
+
licenses:
|
95
|
+
- MIT
|
89
96
|
post_install_message:
|
90
97
|
rdoc_options: []
|
91
98
|
|
@@ -96,6 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
103
|
requirements:
|
97
104
|
- - ">="
|
98
105
|
- !ruby/object:Gem::Version
|
106
|
+
hash: 3
|
99
107
|
segments:
|
100
108
|
- 0
|
101
109
|
version: "0"
|
@@ -104,6 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
112
|
requirements:
|
105
113
|
- - ">="
|
106
114
|
- !ruby/object:Gem::Version
|
115
|
+
hash: 23
|
107
116
|
segments:
|
108
117
|
- 1
|
109
118
|
- 3
|