marco-polo 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +1 -1
- data/lib/marco-polo.rb +16 -0
- data/lib/marco-polo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzQzNWFhMWQ5MjI0NjVlZjM5MzczYjJmYzllMmE2OTNjZjY2MjkyZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjRhMTQ2NDQ2NDY5M2ZjYzIxNDE2OGY5ZTcwMzQyZWI3MTJhZjU2ZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzRkNjQ4YjQwZGY4YTZjNzY4MmVjZTc5MWQ5MmIxMDAyMjczY2Y5NmEyNGUy
|
10
|
+
MTI3YzkyMzZiMjczOGNiMGU3NGQ4MGNlM2NiMGVjNWRjODU4ODIyZDRiODZl
|
11
|
+
NTRiNjdkOWIzMGYwNDI4YzRjNTllZWNiN2NiMWNkMzFiMGE0MmE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODdkODI5M2EyMDdlYjRhODBiMTE2YmM1ZTczYjA1MmI5MjQxMDM0OGU0ZTg4
|
14
|
+
NDExMzY1M2IwOTNjMTQ4MDIxY2E0YWQzNzMyZThkMDY0ZmNlMGQ2NzIxODky
|
15
|
+
ZWQ2ODE3MjNkODdmMTA3Y2UyYjljMDBjODE1ZDMyOTIxNGEyNmE=
|
data/README.md
CHANGED
data/lib/marco-polo.rb
CHANGED
@@ -16,3 +16,19 @@ module MarcoPolo
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
+
if defined? Pry
|
20
|
+
Pry.config.prompt = [
|
21
|
+
proc {
|
22
|
+
current_app = Rails.application.class.parent_name.underscore.gsub("_", "-")
|
23
|
+
rails_env = Rails.env.downcase
|
24
|
+
|
25
|
+
# shorten some common long environment names
|
26
|
+
rails_env = "dev" if rails_env == "development"
|
27
|
+
rails_env = "prod" if rails_env == "production"
|
28
|
+
|
29
|
+
"#{current_app}(#{rails_env})> "
|
30
|
+
},
|
31
|
+
proc { "> "}
|
32
|
+
]
|
33
|
+
end
|
34
|
+
|
data/lib/marco-polo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marco-polo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Doyle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: MarcoPolo shows your app name and environment in your console prompt
|
14
14
|
so you don't accidentally break production
|