komachi-develop 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/TIPS.md +1 -3
- data/komachi-develop.gemspec +3 -2
- data/lib/komachi-develop.rb +6 -8
- data/lib/komachi-develop/pry-extension.rb +3 -4
- data/lib/komachi-develop/pry-extension/caller_method.rb +0 -3
- data/lib/komachi-develop/pry-extension/copy.rb +0 -3
- data/lib/komachi-develop/pry-extension/hirb.rb +19 -15
- data/lib/komachi-develop/pry-extension/sql.rb +0 -3
- data/lib/komachi-develop/railtie.rb +0 -7
- data/lib/komachi-develop/version.rb +1 -1
- metadata +40 -27
- data/lib/komachi-develop/quiet_assets.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 073fc9b0b42492ed88a7b05e6c482e525dc4d4ec
|
4
|
+
data.tar.gz: 6c2a9ea381660b51ea0c13a0aeb80b62f13d4360
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c092507e97edd6d5aba8e3b49f94223caa130118e6dae5e2c0379e6bb0a40f5196584d852c7725667082901fa0950b541387ebbfb38c413be69f697e3627628
|
7
|
+
data.tar.gz: 738d09aef374b6229d37bd3404f6c2ab19b3ba13e34aa49c7843f13a9e4cbaa8041aa4fc23c4d80d10ca7f45a3bda9e132d723db287591bde464c2ea93cc8c4e
|
data/TIPS.md
CHANGED
data/komachi-develop.gemspec
CHANGED
@@ -23,8 +23,9 @@ Gem::Specification.new do |gem|
|
|
23
23
|
gem.add_dependency 'hirb-unicode'
|
24
24
|
gem.add_dependency 'better_errors'
|
25
25
|
gem.add_dependency 'binding_of_caller'
|
26
|
-
gem.add_dependency 'tapp'
|
27
|
-
gem.add_dependency '
|
26
|
+
gem.add_dependency 'tapp-awesome_print'
|
27
|
+
gem.add_dependency 'quiet_assets'
|
28
|
+
gem.add_dependency 'bullet'
|
28
29
|
|
29
30
|
# gem.add_dependency 'view_source_map'
|
30
31
|
# gem.add_dependency 'annotate'
|
data/lib/komachi-develop.rb
CHANGED
@@ -1,13 +1,11 @@
|
|
1
|
-
module KomachiDevelop
|
2
|
-
end
|
3
|
-
|
4
1
|
require 'komachi-develop/railtie'
|
5
2
|
require "komachi-develop/version"
|
6
|
-
require 'pry-rails'
|
7
3
|
require 'komachi-develop/pry-extension'
|
8
|
-
require 'pry-rescue'
|
9
|
-
require 'pry-stack_explorer'
|
10
4
|
require 'better_errors'
|
11
|
-
require 'awesome_print'
|
12
|
-
require '
|
5
|
+
require 'tapp-awesome_print'
|
6
|
+
require 'quiet_assets'
|
7
|
+
require 'bullet'
|
8
|
+
|
9
|
+
module KomachiDevelop
|
10
|
+
end
|
13
11
|
|
@@ -1,7 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
require 'pry'
|
1
|
+
require 'pry-rails'
|
2
|
+
require 'pry-rescue'
|
3
|
+
require 'pry-stack_explorer'
|
5
4
|
|
6
5
|
KomachiDevelop::PryExtension = Pry::CommandSet.new
|
7
6
|
command_glob = File.expand_path('../pry-extension/*.rb', __FILE__)
|
@@ -1,21 +1,25 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
begin
|
2
|
+
require 'hirb'
|
3
|
+
rescue LoadError
|
4
|
+
# Missing goodies, bummer
|
5
|
+
end
|
3
6
|
|
4
|
-
|
7
|
+
if defined? Hirb
|
8
|
+
# Slightly dirty hack to fully support in-session Hirb.disable/enable toggling
|
9
|
+
Hirb::View.instance_eval do
|
10
|
+
def enable_output_method
|
11
|
+
@output_method = true
|
12
|
+
@old_print = Pry.config.print
|
13
|
+
Pry.config.print = proc do |*args|
|
14
|
+
Hirb::View.view_or_page_output(args[1]) || @old_print.call(*args)
|
15
|
+
end
|
16
|
+
end
|
5
17
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
@old_print = Pry.config.print
|
10
|
-
Pry.config.print = proc do |output, value|
|
11
|
-
Hirb::View.view_or_page_output(value) || @old_print.call(output, value)
|
18
|
+
def disable_output_method
|
19
|
+
Pry.config.print = @old_print
|
20
|
+
@output_method = nil
|
12
21
|
end
|
13
22
|
end
|
14
23
|
|
15
|
-
|
16
|
-
Pry.config.print = @old_print
|
17
|
-
@output_method = nil
|
18
|
-
end
|
24
|
+
Hirb.enable
|
19
25
|
end
|
20
|
-
|
21
|
-
Hirb.enable
|
metadata
CHANGED
@@ -1,139 +1,153 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: komachi-develop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takumi MIURA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '4.0'
|
20
20
|
type: :runtime
|
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: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pry-rails
|
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: :runtime
|
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
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pry-stack_explorer
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: pry-rescue
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: hirb-unicode
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: better_errors
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: binding_of_caller
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name: tapp
|
112
|
+
name: tapp-awesome_print
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: quiet_assets
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: bullet
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
137
151
|
- !ruby/object:Gem::Version
|
138
152
|
version: '0'
|
139
153
|
description: development Gem set
|
@@ -143,7 +157,7 @@ executables: []
|
|
143
157
|
extensions: []
|
144
158
|
extra_rdoc_files: []
|
145
159
|
files:
|
146
|
-
- .gitignore
|
160
|
+
- ".gitignore"
|
147
161
|
- Gemfile
|
148
162
|
- LICENSE.txt
|
149
163
|
- README.md
|
@@ -156,7 +170,6 @@ files:
|
|
156
170
|
- lib/komachi-develop/pry-extension/copy.rb
|
157
171
|
- lib/komachi-develop/pry-extension/hirb.rb
|
158
172
|
- lib/komachi-develop/pry-extension/sql.rb
|
159
|
-
- lib/komachi-develop/quiet_assets.rb
|
160
173
|
- lib/komachi-develop/railtie.rb
|
161
174
|
- lib/komachi-develop/version.rb
|
162
175
|
homepage: https://github.com/mitaku/komachi_develop
|
@@ -168,17 +181,17 @@ require_paths:
|
|
168
181
|
- lib
|
169
182
|
required_ruby_version: !ruby/object:Gem::Requirement
|
170
183
|
requirements:
|
171
|
-
- -
|
184
|
+
- - ">="
|
172
185
|
- !ruby/object:Gem::Version
|
173
186
|
version: '0'
|
174
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
188
|
requirements:
|
176
|
-
- -
|
189
|
+
- - ">="
|
177
190
|
- !ruby/object:Gem::Version
|
178
191
|
version: '0'
|
179
192
|
requirements: []
|
180
193
|
rubyforge_project:
|
181
|
-
rubygems_version: 2.
|
194
|
+
rubygems_version: 2.2.2
|
182
195
|
signing_key:
|
183
196
|
specification_version: 4
|
184
197
|
summary: development Gem set
|
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# -*- coding: utf-8 -*-
|
3
|
-
|
4
|
-
Rails.application.assets.logger = Logger.new('/dev/null')
|
5
|
-
Rails::Rack::Logger.class_eval do
|
6
|
-
def call_with_quiet_assets(env)
|
7
|
-
previous_level = Rails.logger.level
|
8
|
-
Rails.logger.level = Logger::ERROR if env['PATH_INFO'].index(Rails.application.config.assets.prefix + "/") == 0
|
9
|
-
call_without_quiet_assets(env).tap do
|
10
|
-
Rails.logger.level = previous_level
|
11
|
-
end
|
12
|
-
end
|
13
|
-
alias_method_chain :call, :quiet_assets
|
14
|
-
end
|