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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGY1Yjg3YTMxYjU1MmQxMTAzNGZlMGY4ZjRmZTkwNTY2Y2NiMjY5NA==
4
+ NzQzNWFhMWQ5MjI0NjVlZjM5MzczYjJmYzllMmE2OTNjZjY2MjkyZQ==
5
5
  data.tar.gz: !binary |-
6
- OTE3OWM2ZWY4YmNmZjVkYzU0MWM2OTAzMmFlOTBhZjZiOTg1ODk1Yg==
6
+ NjRhMTQ2NDQ2NDY5M2ZjYzIxNDE2OGY5ZTcwMzQyZWI3MTJhZjU2ZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTc1NGZiZTU5YmViOWUwNmNiMDE3NmMxODhlNzMzZmQ0NWVhYjY1NWJhMTEw
10
- ODg0YjQxOTlhMDNkOGRlNzRhNmM5NTVjZTkwMTE1OGU2NDk3NGE3OGUyNjJk
11
- ODA5NDYyNDhjNTI0ZDg0MTA5YzlhNTVhNGY3NjY1YmY0NjAwNGM=
9
+ NzRkNjQ4YjQwZGY4YTZjNzY4MmVjZTc5MWQ5MmIxMDAyMjczY2Y5NmEyNGUy
10
+ MTI3YzkyMzZiMjczOGNiMGU3NGQ4MGNlM2NiMGVjNWRjODU4ODIyZDRiODZl
11
+ NTRiNjdkOWIzMGYwNDI4YzRjNTllZWNiN2NiMWNkMzFiMGE0MmE=
12
12
  data.tar.gz: !binary |-
13
- ODg1ZGU4MTUwYzc1YjY3YmE4NmI0YzMzNDM5ZWYzNWI5YmFiMWRhODdiMmEy
14
- NjdhMTk0ZGJmZjczY2MxMDQ3YTUwZGYzNDg2YjE0YTIwZjkwMWE1MWIyYzVm
15
- NTg2MzFlOThjYzA2YWU4N2I4ZmJkNTNhY2U2YzQxNDgxNjRmMDQ=
13
+ ODdkODI5M2EyMDdlYjRhODBiMTE2YmM1ZTczYjA1MmI5MjQxMDM0OGU0ZTg4
14
+ NDExMzY1M2IwOTNjMTQ4MDIxY2E0YWQzNzMyZThkMDY0ZmNlMGQ2NzIxODky
15
+ ZWQ2ODE3MjNkODdmMTA3Y2UyYjljMDBjODE1ZDMyOTIxNGEyNmE=
data/README.md CHANGED
@@ -4,7 +4,7 @@ MarcoPolo shows your app name and environment in your console prompt so you don'
4
4
 
5
5
  ## Installation
6
6
 
7
- In your Gemfile: gem "marco-polo", "~> 0.1.0"
7
+ In your Gemfile: gem "marco-polo", "~> 1.0"
8
8
  $ bundle install
9
9
 
10
10
  ## Usage
@@ -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
+
@@ -1,3 +1,3 @@
1
1
  module MarcoPolo
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
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.0.0
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-15 00:00:00.000000000 Z
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