console_log 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ require 'pry'
2
+ require 'test_helper'
3
+
4
+ module ConsoleLog
5
+ class ConsoleLogHelperTest < ActionDispatch::IntegrationTest
6
+ def setup
7
+ ConsoleLog.instance.reset
8
+ end
9
+
10
+ test "rendering javascript with console.log present" do
11
+ get '/'
12
+
13
+ message = /console\.log\(\"test\ message\"\);/
14
+ assert_match message, @response.body
15
+ end
16
+ end
17
+ end
@@ -1,7 +1,7 @@
1
1
  require 'test_helper'
2
2
 
3
3
  module ConsoleLog
4
- class ConsoleLogTest < ActiveSupport::TestCase
4
+ class ConsoleLogBaseTest < ActiveSupport::TestCase
5
5
  def setup
6
6
  @instance = ConsoleLog.instance
7
7
  @instance.reset
@@ -1,7 +1,7 @@
1
1
  require 'test_helper'
2
2
 
3
3
  module ConsoleLog
4
- class ConsoleLogControllerTest < ActionController::TestCase
4
+ class ConsoleLogEngineTest < ActionController::TestCase
5
5
  tests ApplicationController
6
6
 
7
7
  test "console_log is available to controllers" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: console_log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - arktisklada
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-12 00:00:00.000000000 Z
11
+ date: 2015-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.0
19
+ version: '4.1'
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
- version: 4.2.0
26
+ version: '4.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -61,22 +61,23 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - MIT-LICENSE
63
63
  - Rakefile
64
+ - app/helpers/console_log_helper.rb
65
+ - app/views/console_log/_javascript.html.erb
64
66
  - lib/console_log.rb
65
67
  - lib/console_log/base.rb
66
68
  - lib/console_log/engine.rb
67
69
  - lib/console_log/helpers.rb
68
70
  - lib/console_log/version.rb
69
- - test/console_log/base_test.rb
70
- - test/console_log/engine_test.rb
71
- - test/console_log_test.rb
72
71
  - test/dummy/README.rdoc
73
72
  - test/dummy/Rakefile
74
73
  - test/dummy/app/assets/javascripts/application.js
75
74
  - test/dummy/app/assets/stylesheets/application.css
76
75
  - test/dummy/app/controllers/application_controller.rb
76
+ - test/dummy/app/controllers/test_controller.rb
77
77
  - test/dummy/app/helpers/application_helper.rb
78
78
  - test/dummy/app/models/test_model.rb
79
79
  - test/dummy/app/views/layouts/application.html.erb
80
+ - test/dummy/app/views/test/index.html.erb
80
81
  - test/dummy/bin/bundle
81
82
  - test/dummy/bin/rails
82
83
  - test/dummy/bin/rake
@@ -128,7 +129,11 @@ files:
128
129
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/sXVipYmBT7GQWuWJn182zZjaDwJWsboo1W0vdMgAgW0.cache
129
130
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/td9wUl9SLRnSSgE2ZK_VqCzLxTkFiCW50KkOhE916Wo.cache
130
131
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/xuSPIZilDQAufQRWVREmhA96yxwGo11tYyedlLAeCHo.cache
132
+ - test/integrations/helper_test.rb
131
133
  - test/test_helper.rb
134
+ - test/units/base_test.rb
135
+ - test/units/console_log_test.rb
136
+ - test/units/engine_test.rb
132
137
  homepage: https://github.com/arktisklada/console_log
133
138
  licenses:
134
139
  - MIT
@@ -154,15 +159,14 @@ signing_key:
154
159
  specification_version: 4
155
160
  summary: Log rails variables to the browser console.
156
161
  test_files:
157
- - test/console_log/base_test.rb
158
- - test/console_log/engine_test.rb
159
- - test/console_log_test.rb
160
162
  - test/dummy/app/assets/javascripts/application.js
161
163
  - test/dummy/app/assets/stylesheets/application.css
162
164
  - test/dummy/app/controllers/application_controller.rb
165
+ - test/dummy/app/controllers/test_controller.rb
163
166
  - test/dummy/app/helpers/application_helper.rb
164
167
  - test/dummy/app/models/test_model.rb
165
168
  - test/dummy/app/views/layouts/application.html.erb
169
+ - test/dummy/app/views/test/index.html.erb
166
170
  - test/dummy/bin/bundle
167
171
  - test/dummy/bin/rails
168
172
  - test/dummy/bin/rake
@@ -216,4 +220,8 @@ test_files:
216
220
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/U1VSbYuwBxuqHnDUAFTbVqSWL1apsumrAmJh_hTud8Q.cache
217
221
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/W2RS29DFSbTEZEU-Ep-gET_iIMxO8KtilGEP93vW02I.cache
218
222
  - test/dummy/tmp/cache/assets/test/sprockets/v3.0/xuSPIZilDQAufQRWVREmhA96yxwGo11tYyedlLAeCHo.cache
223
+ - test/integrations/helper_test.rb
219
224
  - test/test_helper.rb
225
+ - test/units/base_test.rb
226
+ - test/units/console_log_test.rb
227
+ - test/units/engine_test.rb