console_color 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MjA1OTllNmE0N2I2ZmQ1N2RjZWEzYzk5M2MzN2Y1YzA0Y2JkNGE1YQ==
5
- data.tar.gz: !binary |-
6
- MWI1MDk3OTAzZDRmZDEzNDlhN2Q5OWUxM2ExMzc2NzUyZmNkZDY5Mg==
2
+ SHA1:
3
+ metadata.gz: 7111e3241567cdacafe00d296e0d9ba72e0310ca
4
+ data.tar.gz: df1bf954067cb81680e92850aedbe439e85c135e
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NTJlZjVkMDM4M2I1NjJlNmM2NzcwMjcwYjlkY2RiZTNlMjYzNTcyMTM4MTI3
10
- YzAwMmUzYTYwMjE3OTgxYWZmMTg5M2QwYzgxYTU3Y2M5Y2ZiYjZlYmYwZmEy
11
- OTljMjM2Y2IwNjU2MDQ1Njk5NzUwN2VhNDg1NzhkMzhjZDcxZGU=
12
- data.tar.gz: !binary |-
13
- MTFmY2NlN2FlNDYxYWQ5OTRlYzUzMDI2MThmZmRlYjRmMTk3ZjcyNzQyOWIx
14
- NjQ2YjU3Nzc3NjI1ZTg1NDk5ZjliNzk0YTY4YmE1ZTk1MzI3ZTE4YThjNGMx
15
- Yzc3YjBhYTc0MTBkNDUwNDAxMGI1ZTcyYzc4MDBiOTMwNmY3MDA=
6
+ metadata.gz: eca31a58f7e2c2b62e475b4b2fd91b806f964f87fc70c99e551defbe09bcac16c8fbee79a34a263b3ee8b2ec08e23292642ad8d8741b0541685bc2ea47342557
7
+ data.tar.gz: 2aeae2fa559d19610af34c91a9d60d7f47e8cd268918e400626ae0fa0c89956dc98c5bf6cd69c260f7c999810a9c21b099aeb6ce8072e97ed57c0bb4339a308e
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 Joey Aghion, Artsy
1
+ Copyright (c) 2013 Joey Aghion
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -37,6 +37,6 @@ Or install it yourself as:
37
37
  5. Create new Pull Request
38
38
 
39
39
 
40
- © Joey Aghion, Artsy
40
+ © Joey Aghion
41
41
 
42
42
  [LICENSE](LICENSE.txt)
@@ -1,29 +1,26 @@
1
1
  module ConsoleColor
2
2
  class Railtie < Rails::Railtie
3
+ module IRBSetup
4
+ def setup(*)
5
+ super
3
6
 
4
- config.after_initialize do
7
+ prompt = "\001#{ConsoleColor::COLORS[Rails.env]}\002#{Rails.application.class.parent_name.downcase}:#{Rails.env}"
8
+ IRB.conf[:PROMPT][:RAILS_APP] = {
9
+ PROMPT_I: "#{prompt}>\e[0m ",
10
+ PROMPT_N: "#{prompt}>\e[0m ",
11
+ PROMPT_S: "#{prompt}%l\e[0m ",
12
+ PROMPT_C: "#{prompt}*\e[0m ",
13
+ RETURN: "=> %s\n",
14
+ AUTO_INDENT: true
15
+ }
16
+ IRB.conf[:PROMPT_MODE] = :RAILS_APP
17
+ end
18
+ end
5
19
 
20
+ config.after_initialize do
6
21
  class << IRB
7
-
8
- def setup_with_custom_prompt(ap_path)
9
- setup_without_custom_prompt(ap_path)
10
- prompt = "\001#{ConsoleColor::COLORS[Rails.env]}\002#{Rails.application.class.parent_name.downcase}:#{Rails.env}"
11
- IRB.conf[:PROMPT][:RAILS_APP] = {
12
- PROMPT_I: "#{prompt}>\e[0m ",
13
- PROMPT_N: "#{prompt}>\e[0m ",
14
- PROMPT_S: "#{prompt}%l\e[0m ",
15
- PROMPT_C: "#{prompt}*\e[0m ",
16
- RETURN: "=> %s\n",
17
- AUTO_INDENT: true
18
- }
19
- IRB.conf[:PROMPT_MODE] = :RAILS_APP
20
- end
21
-
22
- alias_method_chain :setup, :custom_prompt
23
-
22
+ prepend IRBSetup
24
23
  end
25
-
26
24
  end
27
-
28
25
  end
29
26
  end
@@ -1,3 +1,3 @@
1
1
  module ConsoleColor
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: console_color
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joey Aghion
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-23 00:00:00.000000000 Z
11
+ date: 2017-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: Add color-coded app and environment information to the Rails console
@@ -46,7 +46,7 @@ executables: []
46
46
  extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
- - .gitignore
49
+ - ".gitignore"
50
50
  - Gemfile
51
51
  - LICENSE.txt
52
52
  - README.md
@@ -65,17 +65,17 @@ require_paths:
65
65
  - lib
66
66
  required_ruby_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ! '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.1.11
78
+ rubygems_version: 2.6.11
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Add color-coded app and environment information to the Rails console prompt.