buoys 2.0.2 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/buoys/buoy.rb +1 -0
- data/lib/buoys/config.rb +1 -3
- data/lib/buoys/loader.rb +1 -1
- data/lib/buoys/railtie.rb +1 -1
- data/lib/buoys/version.rb +1 -1
- data/test/buoys_generator_test.rb +2 -2
- data/test/dummy/log/development.log +24 -0
- data/test/dummy/log/test.log +94 -0
- data/test/test_helper.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7206430f425484e8e75b8cd16a49b6a737dafdc54486dfc7d803d1cd06a05b91
|
4
|
+
data.tar.gz: 170521a71be7ff33dd3d1a29a377f3e8dc2f2993debae6273e0ef3dc01249cd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 126f9ac46f9f98f28e24cdb3566c9ebc3d997c8e55f793ebc3e2545b1821e74944123748d02b6b36396b35d93f91b90bdb8afab2891f8d2502564aba60a09fbb
|
7
|
+
data.tar.gz: 153b7a25618e75baa83a554cacee3d97ef68adf320591c1bb1d20838655b0c067fb34a8a727b1def1f6b6958535d8c8e95a79046e9e7661af34755bde03276b3
|
data/lib/buoys/buoy.rb
CHANGED
data/lib/buoys/config.rb
CHANGED
data/lib/buoys/loader.rb
CHANGED
data/lib/buoys/railtie.rb
CHANGED
data/lib/buoys/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# rubocop:disable Style/RegexpLiteral,
|
3
|
+
# rubocop:disable Style/RegexpLiteral, Layout/LineLength
|
4
4
|
require 'test_helper'
|
5
5
|
require 'generators/buoys/install_generator'
|
6
6
|
|
@@ -51,4 +51,4 @@ class BuoysGeneratorTest < Rails::Generators::TestCase
|
|
51
51
|
assert_file File.expand_path('./config/locales/buoys.en.yml', dest_root)
|
52
52
|
end
|
53
53
|
end
|
54
|
-
# rubocop:enable Style/RegexpLiteral,
|
54
|
+
# rubocop:enable Style/RegexpLiteral, Layout/LineLength
|
@@ -103,3 +103,27 @@ true by adding the following to your application.rb file:
|
|
103
103
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
104
104
|
[1m[36mActiveRecord::InternalMetadata Update (0.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2021-01-16 06:49:23.451712"], ["key", "environment"]]
|
105
105
|
[1m[35m (2.7ms)[0m [1m[36mcommit transaction[0m
|
106
|
+
DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
|
107
|
+
`legacy_connection_handling` to `false` in your application.
|
108
|
+
|
109
|
+
The new connection handling does not support `connection_handlers`
|
110
|
+
getter and setter.
|
111
|
+
|
112
|
+
Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
|
113
|
+
(called from require at bin/rails:4)
|
114
|
+
DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
|
115
|
+
`legacy_connection_handling` to `false` in your application.
|
116
|
+
|
117
|
+
The new connection handling does not support `connection_handlers`
|
118
|
+
getter and setter.
|
119
|
+
|
120
|
+
Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
|
121
|
+
(called from require at bin/rails:4)
|
122
|
+
DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
|
123
|
+
`legacy_connection_handling` to `false` in your application.
|
124
|
+
|
125
|
+
The new connection handling does not support `connection_handlers`
|
126
|
+
getter and setter.
|
127
|
+
|
128
|
+
Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
|
129
|
+
(called from require at bin/rails:4)
|
data/test/dummy/log/test.log
CHANGED
@@ -619,3 +619,97 @@ BuoysHelerTest: test_.buoy_(has_configuration_options_in_link's_arguments)
|
|
619
619
|
BuoysTest: test_.buoy_file_paths
|
620
620
|
--------------------------------
|
621
621
|
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
622
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
623
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
624
|
+
-----------------------------------------------
|
625
|
+
BuoysGeneratorTest: test_option_--template_slim
|
626
|
+
-----------------------------------------------
|
627
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
628
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
629
|
+
-----------------------------------------------
|
630
|
+
BuoysGeneratorTest: test_option_--template_haml
|
631
|
+
-----------------------------------------------
|
632
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
633
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
634
|
+
-------------------------------------------
|
635
|
+
BuoysGeneratorTest: test_no_template_option
|
636
|
+
-------------------------------------------
|
637
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
638
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
639
|
+
------------------------------------------
|
640
|
+
BuoysHelerTest: test_.buoys_(no_given_key)
|
641
|
+
------------------------------------------
|
642
|
+
Rendered breadcrumbs/_buoys.erb (0.5ms)
|
643
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
644
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
645
|
+
------------------------------------------------------------
|
646
|
+
BuoysHelerTest: test_.buoy_(has_2_`link`s_in_one_buoy_block)
|
647
|
+
------------------------------------------------------------
|
648
|
+
Rendered breadcrumbs/_buoys.erb (1.8ms)
|
649
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
650
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
651
|
+
--------------------------------------------
|
652
|
+
BuoysHelerTest: test_.buoy_(not_only_active)
|
653
|
+
--------------------------------------------
|
654
|
+
Rendered breadcrumbs/_buoys.erb (0.3ms)
|
655
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
656
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
657
|
+
---------------------------------------------------
|
658
|
+
BuoysHelerTest: test_.buoy_(use_polymorphic_routes)
|
659
|
+
---------------------------------------------------
|
660
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
661
|
+
[1m[36mUser Create (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "test user"], ["created_at", "2022-02-15 15:38:54.845963"], ["updated_at", "2022-02-15 15:38:54.845963"]]
|
662
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
663
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
664
|
+
[1m[36mItem Create (0.1ms)[0m [1m[32mINSERT INTO "items" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "test item"], ["created_at", "2022-02-15 15:38:54.848511"], ["updated_at", "2022-02-15 15:38:54.848511"]]
|
665
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
666
|
+
Rendered breadcrumbs/_buoys.erb (0.9ms)
|
667
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
668
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
669
|
+
-----------------------------------------
|
670
|
+
BuoysHelerTest: test_.buoy_(only_current)
|
671
|
+
-----------------------------------------
|
672
|
+
Rendered breadcrumbs/_buoys.erb (0.1ms)
|
673
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
674
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
675
|
+
-------------------------------------------------------
|
676
|
+
BuoysHelerTest: test_.buoy_(receive_multiple_arguments)
|
677
|
+
-------------------------------------------------------
|
678
|
+
Rendered breadcrumbs/_buoys.erb (0.2ms)
|
679
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
680
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
681
|
+
--------------------------------------------------------------------------
|
682
|
+
BuoysHelerTest: test_.buoy_(has_configuration_options_in_link's_arguments)
|
683
|
+
--------------------------------------------------------------------------
|
684
|
+
Rendered breadcrumbs/_buoys.erb (0.2ms)
|
685
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
686
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
687
|
+
--------------------------------
|
688
|
+
BuoysTest: test_.buoy_file_paths
|
689
|
+
--------------------------------
|
690
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
691
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
692
|
+
---------------------------------
|
693
|
+
BuoysLoaderTest: test_.buoy_files
|
694
|
+
---------------------------------
|
695
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
696
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
697
|
+
----------------------------
|
698
|
+
BuoysLoaderTest: test_.buoys
|
699
|
+
----------------------------
|
700
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
701
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
702
|
+
------------------------------------------------
|
703
|
+
BuoysBuoyTest: test_can_use_:symbol_as_link_name
|
704
|
+
------------------------------------------------
|
705
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
706
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
707
|
+
----------------------------------------------------------------------------------
|
708
|
+
BuoysBuoyTest: test_can_interpret_multiple_`link`s_in_one_buoy_block_with_argument
|
709
|
+
----------------------------------------------------------------------------------
|
710
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
711
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
712
|
+
------------------------------------------------------------
|
713
|
+
BuoysBuoyTest: test_delegate_unknown_methods_to_view_context
|
714
|
+
------------------------------------------------------------
|
715
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
data/test/test_helper.rb
CHANGED
@@ -18,6 +18,6 @@ Rails::TestUnitReporter.executable = 'bin/test'
|
|
18
18
|
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
|
19
19
|
ActiveSupport::TestCase.fixture_path = File.expand_path('fixtures', __dir__)
|
20
20
|
ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
|
21
|
-
ActiveSupport::TestCase.file_fixture_path = ActiveSupport::TestCase.fixture_path
|
21
|
+
ActiveSupport::TestCase.file_fixture_path = "#{ActiveSupport::TestCase.fixture_path}/files"
|
22
22
|
ActiveSupport::TestCase.fixtures :all
|
23
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buoys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- muryoimpl
|
@@ -58,14 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '1.25'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '1.25'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop-rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.13'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.13'
|
69
83
|
description: A Ruby on Rails breadcrumbs plugin.
|
70
84
|
email:
|
71
85
|
- muryoimpl@gmail.com
|