rack-webconsole-pry 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile.lock +3 -2
- data/Readme.md +2 -2
- data/lib/rack/webconsole/repl.rb +1 -0
- data/lib/rack/webconsole/version.rb +1 -1
- data/rack-webconsole-pry.gemspec +1 -1
- data/spec/rack/webconsole/repl_spec.rb +1 -1
- metadata +16 -16
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rack-webconsole-pry (0.1.
|
4
|
+
rack-webconsole-pry (0.1.5)
|
5
|
+
json
|
5
6
|
multi_json (>= 1.0.3)
|
6
7
|
pry
|
7
8
|
rack
|
@@ -11,6 +12,7 @@ GEM
|
|
11
12
|
specs:
|
12
13
|
bluecloth (2.2.0)
|
13
14
|
coderay (1.0.6)
|
15
|
+
json (1.7.3)
|
14
16
|
metaclass (0.0.1)
|
15
17
|
method_source (0.7.1)
|
16
18
|
minitest (2.11.4)
|
@@ -35,7 +37,6 @@ DEPENDENCIES
|
|
35
37
|
bluecloth
|
36
38
|
minitest
|
37
39
|
mocha
|
38
|
-
pry
|
39
40
|
purdytest
|
40
41
|
rack-webconsole-pry!
|
41
42
|
rake
|
data/Readme.md
CHANGED
@@ -20,7 +20,7 @@ protect against cross-site request forgery.
|
|
20
20
|
##Changes from original rack-webconsole
|
21
21
|
|
22
22
|
* Uses pry instead of ripl
|
23
|
-
* Supports colors
|
23
|
+
* Supports colors (used colors from the OS X IR\_Black theme for Terminal)
|
24
24
|
|
25
25
|
|
26
26
|
##Resources
|
@@ -34,7 +34,7 @@ protect against cross-site request forgery.
|
|
34
34
|
In your Gemfile:
|
35
35
|
|
36
36
|
```ruby
|
37
|
-
gem 'rack-webconsole'
|
37
|
+
gem 'rack-webconsole-pry', :require => 'rack-webconsole'
|
38
38
|
```
|
39
39
|
|
40
40
|
Rack-webconsole **needs JQuery**. If you are using Rails 3, JQuery is loaded by
|
data/lib/rack/webconsole/repl.rb
CHANGED
data/rack-webconsole-pry.gemspec
CHANGED
@@ -14,6 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.rubyforge_project = "rack-webconsole-pry"
|
15
15
|
|
16
16
|
s.add_runtime_dependency 'rack'
|
17
|
+
s.add_runtime_dependency 'json'
|
17
18
|
s.add_runtime_dependency 'multi_json', '>= 1.0.3'
|
18
19
|
s.add_runtime_dependency 'pry'
|
19
20
|
|
@@ -28,7 +29,6 @@ Gem::Specification.new do |s|
|
|
28
29
|
s.add_development_dependency 'yard'
|
29
30
|
s.add_development_dependency 'bluecloth'
|
30
31
|
s.add_development_dependency 'rake'
|
31
|
-
s.add_development_dependency 'pry'
|
32
32
|
|
33
33
|
s.files = `git ls-files`.split("\n")
|
34
34
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
@@ -23,7 +23,7 @@ module Rack
|
|
23
23
|
|
24
24
|
response = @repl.call(env).last.first
|
25
25
|
|
26
|
-
MultiJson.
|
26
|
+
MultiJson.load(response)['result'].must_include "8" # include because of coloring characters
|
27
27
|
end
|
28
28
|
|
29
29
|
it 'maintains local state in subsequent calls thanks to an evil global variable' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-webconsole-pry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -31,13 +31,13 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
34
|
+
name: json
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
none: false
|
37
37
|
requirements:
|
38
38
|
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '0'
|
41
41
|
type: :runtime
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -45,15 +45,15 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - ! '>='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: '0'
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
50
|
+
name: multi_json
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ! '>='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
56
|
+
version: 1.0.3
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -61,16 +61,16 @@ dependencies:
|
|
61
61
|
requirements:
|
62
62
|
- - ! '>='
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version:
|
64
|
+
version: 1.0.3
|
65
65
|
- !ruby/object:Gem::Dependency
|
66
|
-
name:
|
66
|
+
name: pry
|
67
67
|
requirement: !ruby/object:Gem::Requirement
|
68
68
|
none: false
|
69
69
|
requirements:
|
70
70
|
- - ! '>='
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
|
-
type: :
|
73
|
+
type: :runtime
|
74
74
|
prerelease: false
|
75
75
|
version_requirements: !ruby/object:Gem::Requirement
|
76
76
|
none: false
|
@@ -79,7 +79,7 @@ dependencies:
|
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
|
-
name:
|
82
|
+
name: minitest
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
84
84
|
none: false
|
85
85
|
requirements:
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: purdytest
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
none: false
|
101
101
|
requirements:
|
@@ -111,7 +111,7 @@ dependencies:
|
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '0'
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
|
-
name:
|
114
|
+
name: yard
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
@@ -127,7 +127,7 @@ dependencies:
|
|
127
127
|
- !ruby/object:Gem::Version
|
128
128
|
version: '0'
|
129
129
|
- !ruby/object:Gem::Dependency
|
130
|
-
name:
|
130
|
+
name: bluecloth
|
131
131
|
requirement: !ruby/object:Gem::Requirement
|
132
132
|
none: false
|
133
133
|
requirements:
|
@@ -143,7 +143,7 @@ dependencies:
|
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
|
-
name:
|
146
|
+
name: rake
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
148
148
|
none: false
|
149
149
|
requirements:
|
@@ -203,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
203
203
|
version: '0'
|
204
204
|
segments:
|
205
205
|
- 0
|
206
|
-
hash:
|
206
|
+
hash: 1304411900807532056
|
207
207
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
208
|
none: false
|
209
209
|
requirements:
|
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
212
|
version: '0'
|
213
213
|
segments:
|
214
214
|
- 0
|
215
|
-
hash:
|
215
|
+
hash: 1304411900807532056
|
216
216
|
requirements: []
|
217
217
|
rubyforge_project: rack-webconsole-pry
|
218
218
|
rubygems_version: 1.8.24
|