marco-polo 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.rdoc +29 -0
- data/lib/marco-polo/marco-polo.irbrc.rb +1 -1
- data/lib/marco-polo/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjhlMmIwZmY2Yzc4N2JiZTBmYTBlMDRmZDIzY2Q4YmM4ZmUyODJmMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTdiZjNiY2MwZTVhMGRjMjVhZTVhYWJiYWRmNWQxMDc5NDI4ZGI3Zg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTk5YmI5MjNjNjJhY2NhMTc2YmVjNzlkNjM4NjQzMzRiYzkxMDdjN2NlNmNl
|
10
|
+
MzdmOGM3NmQ2YzE5ZTE3MWU3ZDliZGJlMmY0NjM1NGM2YjY2ZGIwMGJlYzUz
|
11
|
+
YjRjNTRjZmFhMjQ5MzBiM2M2ODI2NjkzM2JlYmY3YWYzOWY4MDg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGRjNzYzMTdjODA1OTEwMGQxNDgwOGIzZmM2NmViNGY0MWEwODkwNTQ4YTcw
|
14
|
+
NWI0YTIzNGNkYzE0NzBmNzRkMDUzODkxNThlMjhiZWJjMDU2NjkwMjQ2ZmYy
|
15
|
+
MmI5YmFhYTRkMjg4ZDJjNGE4OTA1N2FhMzA0YzlhZWM3YTI1Mjg=
|
data/README.rdoc
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
= marco-polo
|
2
|
+
|
3
|
+
MarcoPolo shows your app name and environment in your console prompt so you don't accidentally break production
|
4
|
+
|
5
|
+
== Installation
|
6
|
+
|
7
|
+
In your Gemfile: gem "marco-polo", "~> 0.1.0"
|
8
|
+
$ bundle install
|
9
|
+
|
10
|
+
== Usage
|
11
|
+
|
12
|
+
There's nothing to do! Just install the gem and bask in your newfound console security.
|
13
|
+
|
14
|
+
Before marco-polo:
|
15
|
+
|
16
|
+
~/Sites/myapp$ rails c
|
17
|
+
>
|
18
|
+
|
19
|
+
~/Sites/myapp$ heroku run console -a myapp
|
20
|
+
>
|
21
|
+
|
22
|
+
After marco-polo:
|
23
|
+
|
24
|
+
~/Sites/myapp$ rails c
|
25
|
+
myapp(dev)>
|
26
|
+
|
27
|
+
~/Sites/myapp$ heroku run console -a myapp
|
28
|
+
myapp(prod)>
|
29
|
+
|
@@ -5,7 +5,7 @@ elsif Rails and Rails.env
|
|
5
5
|
end
|
6
6
|
|
7
7
|
if rails_env
|
8
|
-
current_app =
|
8
|
+
current_app = Rails.application.class.parent_name.underscore.gsub("_", "-")
|
9
9
|
|
10
10
|
# shorten some common long environment names
|
11
11
|
rails_env = "dev" if rails_env == "development"
|
data/lib/marco-polo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marco-polo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Doyle
|
@@ -17,6 +17,7 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
+
- README.rdoc
|
20
21
|
- lib/marco-polo.rb
|
21
22
|
- lib/marco-polo/marco-polo.irbrc.rb
|
22
23
|
- lib/marco-polo/version.rb
|