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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTQ1ZmMxMWNmODk2NjgwZjEwNWIzZTJmMzA0MDY1N2JlOGM5YmFmYQ==
4
+ YjhlMmIwZmY2Yzc4N2JiZTBmYTBlMDRmZDIzY2Q4YmM4ZmUyODJmMg==
5
5
  data.tar.gz: !binary |-
6
- Y2EzYjNjNTA0ZWZiZmE2Y2U4YjA4YWI0NDg5ZGFjYzk2ZTVlOTExMw==
6
+ YTdiZjNiY2MwZTVhMGRjMjVhZTVhYWJiYWRmNWQxMDc5NDI4ZGI3Zg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OTEyNjIyZDZkZmViNjhmM2Y1OWY4Y2U4YjExYjAxNzBkNDcwMDRkZTY1Mjk0
10
- OWQ1MmMzZTkyNzE3YmE0ZTE0MTUzYjNmYzEwOTBkZmY4YjlhMzM3MDhjYjY5
11
- MzNiMjBmODM5YjMyMDRhOWExNmMyZjI1ZTI2Yzk2Njk2MzZlZTE=
9
+ ZTk5YmI5MjNjNjJhY2NhMTc2YmVjNzlkNjM4NjQzMzRiYzkxMDdjN2NlNmNl
10
+ MzdmOGM3NmQ2YzE5ZTE3MWU3ZDliZGJlMmY0NjM1NGM2YjY2ZGIwMGJlYzUz
11
+ YjRjNTRjZmFhMjQ5MzBiM2M2ODI2NjkzM2JlYmY3YWYzOWY4MDg=
12
12
  data.tar.gz: !binary |-
13
- YzFiOWQxNDQwNTMyOTI2MDg0MGY1ODM0Y2U4NmY5ZmY1N2ZmMzU4MzY2MmRl
14
- MzQyODdiOGVjODYwZThmOTI1MTk1MDRhYjY1YWFmYmY3MTExMTJhODNjYTA4
15
- ZDhmNTI5OTViOWJlNmI5OWFmOWEwZGUzZDkwOTgxZDM2MTc5YmU=
13
+ NGRjNzYzMTdjODA1OTEwMGQxNDgwOGIzZmM2NmViNGY0MWEwODkwNTQ4YTcw
14
+ NWI0YTIzNGNkYzE0NzBmNzRkMDUzODkxNThlMjhiZWJjMDU2NjkwMjQ2ZmYy
15
+ MmI5YmFhYTRkMjg4ZDJjNGE4OTA1N2FhMzA0YzlhZWM3YTI1Mjg=
@@ -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 = Dir.pwd.split('/').last
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"
@@ -1,3 +1,3 @@
1
1
  module MarcoPolo
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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