rare_map 2.0.1 → 2.0.2
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/README.rdoc +3 -0
- data/bin/raremap +20 -1
- data/lib/rare_map/version.rb +1 -1
- metadata +5 -5
data/README.rdoc
CHANGED
@@ -35,6 +35,9 @@ Create a new config/rare_map.yml with following lines in rails
|
|
35
35
|
$ raremap
|
36
36
|
|
37
37
|
* Standalone: A demo.rb example is generated for you in the root of your application
|
38
|
+
* RareMap console which is like rails console for standalone app can be run by following command
|
39
|
+
|
40
|
+
$ raremap console # or simply run `raremap c`
|
38
41
|
|
39
42
|
== Advanced RareMap use
|
40
43
|
|
data/bin/raremap
CHANGED
@@ -2,4 +2,23 @@
|
|
2
2
|
|
3
3
|
require 'rare_map'
|
4
4
|
|
5
|
-
|
5
|
+
if ARGV[0] == 'console' || ARGV[0] == 'c'
|
6
|
+
bases = Dir['./app/models/**/*_base.rb']
|
7
|
+
models = Dir['./app/models/**/*.rb'] - bases
|
8
|
+
|
9
|
+
if bases.empty? && models.empty?
|
10
|
+
puts '*****************************************************************'
|
11
|
+
puts " RareMap console can't be launched!"
|
12
|
+
puts " Please put your ActiveRecord models in app/models directory."
|
13
|
+
puts '*****************************************************************'
|
14
|
+
exit
|
15
|
+
end
|
16
|
+
|
17
|
+
options = "-I./app/models -ractive_record"
|
18
|
+
bases.each { |file| options << " -r#{file}" }
|
19
|
+
models.each { |file| options << " -r#{file}" }
|
20
|
+
|
21
|
+
exec "irb " << options << " --simple-prompt"
|
22
|
+
else
|
23
|
+
RareMap.mapping
|
24
|
+
end
|
data/lib/rare_map/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rare_map
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
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-03-
|
12
|
+
date: 2013-03-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
segments:
|
146
146
|
- 0
|
147
|
-
hash: -
|
147
|
+
hash: -1418084712865183312
|
148
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
@@ -153,13 +153,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
segments:
|
155
155
|
- 0
|
156
|
-
hash: -
|
156
|
+
hash: -1418084712865183312
|
157
157
|
requirements: []
|
158
158
|
rubyforge_project:
|
159
159
|
rubygems_version: 1.8.25
|
160
160
|
signing_key:
|
161
161
|
specification_version: 3
|
162
|
-
summary: rare_map-2.0.
|
162
|
+
summary: rare_map-2.0.2
|
163
163
|
test_files:
|
164
164
|
- test/helper.rb
|
165
165
|
- test/test_rare_map.rb
|