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 CHANGED
@@ -7,3 +7,4 @@ doc/*
7
7
  coverage/*
8
8
  *.rbc
9
9
  tags
10
+ .rbx
data/Gemfile.lock CHANGED
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-webconsole-pry (0.1.4)
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
@@ -92,6 +92,7 @@ module Rack
92
92
  rescue StandardError => e
93
93
  $pry_output.write("Error: " + e.message)
94
94
  end
95
+
95
96
  # cleanup (supposed to call when $pry is destroyed)
96
97
  # pry.repl_epilogue(target)
97
98
 
@@ -2,6 +2,6 @@
2
2
  module Rack
3
3
  class Webconsole
4
4
  # rack-webconsole version number.
5
- VERSION = "0.1.4"
5
+ VERSION = "0.1.5"
6
6
  end
7
7
  end
@@ -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.decode(response)['result'].must_include "8" # include because of coloring characters
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
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: multi_json
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: 1.0.3
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: 1.0.3
48
+ version: '0'
49
49
  - !ruby/object:Gem::Dependency
50
- name: pry
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: '0'
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: '0'
64
+ version: 1.0.3
65
65
  - !ruby/object:Gem::Dependency
66
- name: minitest
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: :development
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: purdytest
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: yard
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: bluecloth
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: rake
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: pry
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: -636117117429631465
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: -636117117429631465
215
+ hash: 1304411900807532056
216
216
  requirements: []
217
217
  rubyforge_project: rack-webconsole-pry
218
218
  rubygems_version: 1.8.24