rails_edge_test 1.2.2 → 2.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f76e0ca72985fe961a1fb7212fbd12a2d3ff28efe4a18deb54428a52b8a6a5f
4
- data.tar.gz: a90de3d289aae88c28bb5da061ee690975681feb190d115885feeda973168408
3
+ metadata.gz: 3f254a3ab28aabeb6732802db6355f412f4f9eff0302c734af7f71dd2b2eb5cb
4
+ data.tar.gz: 189ccbbc421055611776f46ffc3d6650bcc3d6b48f5ae53b65fb3cdc1601411a
5
5
  SHA512:
6
- metadata.gz: 5ebd2ff2ad61b8624c123941a9b65552bc33cbf88727a88e47b2277b5d60b20a9377152bc488e436397359a4e6904f784c482d99c7dfb9a94cfb2aa642592be1
7
- data.tar.gz: a923c2258a59c85228beb4169413f1924014a5a1d5291a1c62a3b4918d0cf84df5d70fef2bccf4014b355081dff43a8a86a5b0d6f0960bf733a3a649e20d632a
6
+ metadata.gz: 2e05472d386a113698de311c02a276f9727450fbb63c3b6788fbe3a0d009736a64807ab667c64275b977498864474f2e88885b0a070188a51a462afc9276226a
7
+ data.tar.gz: 4f3d3ec5cae403b7bc32105065fbc23dff2d86f68cc30c9411597459bee237bb80ff97919b68cbcb909893921271326a42880952ae7eaaa578df8abbb0b2d55f
@@ -0,0 +1,28 @@
1
+ name: Run tests
2
+ on:
3
+ pull_request:
4
+ branches:
5
+ - "master"
6
+ push:
7
+ branches:
8
+ - "master"
9
+
10
+ # We also provide a way to run this manually, if needed.
11
+ workflow_dispatch:
12
+
13
+ jobs:
14
+ ci:
15
+ runs-on: ubuntu-22.04
16
+ steps:
17
+ - name: Install Nix
18
+ uses: cachix/install-nix-action@v26
19
+ with:
20
+ nix_path: nixpkgs=channel:nixos-24.05
21
+
22
+ - name: Check out repository code
23
+ uses: actions/checkout@v3
24
+ with:
25
+ fetch-depth: 0
26
+
27
+ - name: Run tests
28
+ run: nix-shell --run rspec
data/.gitignore CHANGED
@@ -1,4 +1,4 @@
1
- /.bundle/
1
+ .bundle/
2
2
  /.yardoc
3
3
  /Gemfile.lock
4
4
  /_yardoc/
@@ -18,3 +18,5 @@
18
18
 
19
19
  # nixified bundle
20
20
  /nix/vendor
21
+ .direnv/
22
+ vendor
data/Appraisals ADDED
@@ -0,0 +1,7 @@
1
+ appraise 'rails-5.2' do
2
+ gem 'rails', '~> 5.2.0'
3
+ end
4
+
5
+ appraise 'rails-6.0' do
6
+ gem 'rails', '~> 6.0.0'
7
+ end
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # The Changelog
2
2
 
3
+ ## Version 2.0.0: August 13, 2024
4
+ - drops support for Ruby 2.*
5
+ - adds `post` method for simulating post requests
6
+
7
+ ## Version 1.2.3: December 8, 2020
8
+ - Add rails 6 support (#39)
9
+
3
10
  ## Version 1.2.2: April 20, 2020
4
11
  - config.include allows module functions to be available within controller helper methods
5
12
 
@@ -28,7 +28,17 @@ module RailsEdgeTest::Dsl
28
28
  @response
29
29
  end
30
30
 
31
- def perform_get(parameters = {})
31
+ def perform_get(parameters={})
32
+ process(parameters)
33
+ end
34
+
35
+ def perform_post(parameters={})
36
+ request.instance_variable_set(:@method, "POST")
37
+ request.env['REQUEST_METHOD'] = "POST"
38
+ process(parameters)
39
+ end
40
+
41
+ def process(parameters={})
32
42
  request.assign_parameters(
33
43
  ::Rails.application.routes,
34
44
  controller_class.controller_path,
@@ -1,3 +1,3 @@
1
1
  module RailsEdgeTest
2
- VERSION = "1.2.2"
2
+ VERSION = "2.0.0"
3
3
  end
data/nix/Gemfile CHANGED
@@ -2,11 +2,11 @@
2
2
  # since bundix doesn't support reading the gemspec itself.
3
3
  source 'https://rubygems.org'
4
4
 
5
- gem 'actionpack', '~> 5.2'
5
+ gem 'actionpack', '~> 7.0'
6
6
 
7
7
  group :development do
8
- gem 'rails', '~> 5.2'
9
- gem 'sqlite3', '~> 1.4.0'
8
+ gem 'rails', '~> 7.0'
9
+ gem 'sqlite3', '~> 1.6.3'
10
10
  gem 'rake', '~> 13.0'
11
- gem 'rspec', '~> 3.9'
11
+ gem 'rspec', '~> 3.12'
12
12
  end
data/nix/Gemfile.lock CHANGED
@@ -1,138 +1,172 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- actioncable (5.2.4.2)
5
- actionpack (= 5.2.4.2)
4
+ actioncable (7.0.5)
5
+ actionpack (= 7.0.5)
6
+ activesupport (= 7.0.5)
6
7
  nio4r (~> 2.0)
7
8
  websocket-driver (>= 0.6.1)
8
- actionmailer (5.2.4.2)
9
- actionpack (= 5.2.4.2)
10
- actionview (= 5.2.4.2)
11
- activejob (= 5.2.4.2)
9
+ actionmailbox (7.0.5)
10
+ actionpack (= 7.0.5)
11
+ activejob (= 7.0.5)
12
+ activerecord (= 7.0.5)
13
+ activestorage (= 7.0.5)
14
+ activesupport (= 7.0.5)
15
+ mail (>= 2.7.1)
16
+ net-imap
17
+ net-pop
18
+ net-smtp
19
+ actionmailer (7.0.5)
20
+ actionpack (= 7.0.5)
21
+ actionview (= 7.0.5)
22
+ activejob (= 7.0.5)
23
+ activesupport (= 7.0.5)
12
24
  mail (~> 2.5, >= 2.5.4)
25
+ net-imap
26
+ net-pop
27
+ net-smtp
13
28
  rails-dom-testing (~> 2.0)
14
- actionpack (5.2.4.2)
15
- actionview (= 5.2.4.2)
16
- activesupport (= 5.2.4.2)
17
- rack (~> 2.0, >= 2.0.8)
29
+ actionpack (7.0.5)
30
+ actionview (= 7.0.5)
31
+ activesupport (= 7.0.5)
32
+ rack (~> 2.0, >= 2.2.4)
18
33
  rack-test (>= 0.6.3)
19
34
  rails-dom-testing (~> 2.0)
20
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
21
- actionview (5.2.4.2)
22
- activesupport (= 5.2.4.2)
35
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
+ actiontext (7.0.5)
37
+ actionpack (= 7.0.5)
38
+ activerecord (= 7.0.5)
39
+ activestorage (= 7.0.5)
40
+ activesupport (= 7.0.5)
41
+ globalid (>= 0.6.0)
42
+ nokogiri (>= 1.8.5)
43
+ actionview (7.0.5)
44
+ activesupport (= 7.0.5)
23
45
  builder (~> 3.1)
24
46
  erubi (~> 1.4)
25
47
  rails-dom-testing (~> 2.0)
26
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
27
- activejob (5.2.4.2)
28
- activesupport (= 5.2.4.2)
48
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
49
+ activejob (7.0.5)
50
+ activesupport (= 7.0.5)
29
51
  globalid (>= 0.3.6)
30
- activemodel (5.2.4.2)
31
- activesupport (= 5.2.4.2)
32
- activerecord (5.2.4.2)
33
- activemodel (= 5.2.4.2)
34
- activesupport (= 5.2.4.2)
35
- arel (>= 9.0)
36
- activestorage (5.2.4.2)
37
- actionpack (= 5.2.4.2)
38
- activerecord (= 5.2.4.2)
39
- marcel (~> 0.3.1)
40
- activesupport (5.2.4.2)
52
+ activemodel (7.0.5)
53
+ activesupport (= 7.0.5)
54
+ activerecord (7.0.5)
55
+ activemodel (= 7.0.5)
56
+ activesupport (= 7.0.5)
57
+ activestorage (7.0.5)
58
+ actionpack (= 7.0.5)
59
+ activejob (= 7.0.5)
60
+ activerecord (= 7.0.5)
61
+ activesupport (= 7.0.5)
62
+ marcel (~> 1.0)
63
+ mini_mime (>= 1.1.0)
64
+ activesupport (7.0.5)
41
65
  concurrent-ruby (~> 1.0, >= 1.0.2)
42
- i18n (>= 0.7, < 2)
43
- minitest (~> 5.1)
44
- tzinfo (~> 1.1)
45
- arel (9.0.0)
66
+ i18n (>= 1.6, < 2)
67
+ minitest (>= 5.1)
68
+ tzinfo (~> 2.0)
46
69
  builder (3.2.4)
47
- concurrent-ruby (1.1.6)
70
+ concurrent-ruby (1.2.2)
48
71
  crass (1.0.6)
49
- diff-lcs (1.3)
50
- erubi (1.9.0)
51
- globalid (0.4.2)
52
- activesupport (>= 4.2.0)
53
- i18n (1.8.2)
72
+ date (3.3.3)
73
+ diff-lcs (1.5.0)
74
+ erubi (1.12.0)
75
+ globalid (1.1.0)
76
+ activesupport (>= 5.0)
77
+ i18n (1.13.0)
54
78
  concurrent-ruby (~> 1.0)
55
- loofah (2.5.0)
79
+ loofah (2.21.3)
56
80
  crass (~> 1.0.2)
57
- nokogiri (>= 1.5.9)
58
- mail (2.7.1)
81
+ nokogiri (>= 1.12.0)
82
+ mail (2.8.1)
59
83
  mini_mime (>= 0.1.1)
60
- marcel (0.3.3)
61
- mimemagic (~> 0.3.2)
84
+ net-imap
85
+ net-pop
86
+ net-smtp
87
+ marcel (1.0.2)
62
88
  method_source (1.0.0)
63
- mimemagic (0.3.4)
64
- mini_mime (1.0.2)
65
- mini_portile2 (2.4.0)
66
- minitest (5.14.0)
67
- nio4r (2.5.2)
68
- nokogiri (1.10.9)
69
- mini_portile2 (~> 2.4.0)
70
- rack (2.2.2)
71
- rack-test (1.1.0)
72
- rack (>= 1.0, < 3)
73
- rails (5.2.4.2)
74
- actioncable (= 5.2.4.2)
75
- actionmailer (= 5.2.4.2)
76
- actionpack (= 5.2.4.2)
77
- actionview (= 5.2.4.2)
78
- activejob (= 5.2.4.2)
79
- activemodel (= 5.2.4.2)
80
- activerecord (= 5.2.4.2)
81
- activestorage (= 5.2.4.2)
82
- activesupport (= 5.2.4.2)
83
- bundler (>= 1.3.0)
84
- railties (= 5.2.4.2)
85
- sprockets-rails (>= 2.0.0)
89
+ mini_mime (1.1.2)
90
+ mini_portile2 (2.8.2)
91
+ minitest (5.18.0)
92
+ net-imap (0.3.4)
93
+ date
94
+ net-protocol
95
+ net-pop (0.1.2)
96
+ net-protocol
97
+ net-protocol (0.2.1)
98
+ timeout
99
+ net-smtp (0.3.3)
100
+ net-protocol
101
+ nio4r (2.5.9)
102
+ nokogiri (1.15.2)
103
+ mini_portile2 (~> 2.8.2)
104
+ racc (~> 1.4)
105
+ racc (1.6.2)
106
+ rack (2.2.7)
107
+ rack-test (2.1.0)
108
+ rack (>= 1.3)
109
+ rails (7.0.5)
110
+ actioncable (= 7.0.5)
111
+ actionmailbox (= 7.0.5)
112
+ actionmailer (= 7.0.5)
113
+ actionpack (= 7.0.5)
114
+ actiontext (= 7.0.5)
115
+ actionview (= 7.0.5)
116
+ activejob (= 7.0.5)
117
+ activemodel (= 7.0.5)
118
+ activerecord (= 7.0.5)
119
+ activestorage (= 7.0.5)
120
+ activesupport (= 7.0.5)
121
+ bundler (>= 1.15.0)
122
+ railties (= 7.0.5)
86
123
  rails-dom-testing (2.0.3)
87
124
  activesupport (>= 4.2.0)
88
125
  nokogiri (>= 1.6)
89
- rails-html-sanitizer (1.3.0)
90
- loofah (~> 2.3)
91
- railties (5.2.4.2)
92
- actionpack (= 5.2.4.2)
93
- activesupport (= 5.2.4.2)
126
+ rails-html-sanitizer (1.6.0)
127
+ loofah (~> 2.21)
128
+ nokogiri (~> 1.14)
129
+ railties (7.0.5)
130
+ actionpack (= 7.0.5)
131
+ activesupport (= 7.0.5)
94
132
  method_source
95
- rake (>= 0.8.7)
96
- thor (>= 0.19.0, < 2.0)
97
- rake (13.0.1)
98
- rspec (3.9.0)
99
- rspec-core (~> 3.9.0)
100
- rspec-expectations (~> 3.9.0)
101
- rspec-mocks (~> 3.9.0)
102
- rspec-core (3.9.1)
103
- rspec-support (~> 3.9.1)
104
- rspec-expectations (3.9.1)
133
+ rake (>= 12.2)
134
+ thor (~> 1.0)
135
+ zeitwerk (~> 2.5)
136
+ rake (13.0.6)
137
+ rspec (3.12.0)
138
+ rspec-core (~> 3.12.0)
139
+ rspec-expectations (~> 3.12.0)
140
+ rspec-mocks (~> 3.12.0)
141
+ rspec-core (3.12.2)
142
+ rspec-support (~> 3.12.0)
143
+ rspec-expectations (3.12.3)
105
144
  diff-lcs (>= 1.2.0, < 2.0)
106
- rspec-support (~> 3.9.0)
107
- rspec-mocks (3.9.1)
145
+ rspec-support (~> 3.12.0)
146
+ rspec-mocks (3.12.5)
108
147
  diff-lcs (>= 1.2.0, < 2.0)
109
- rspec-support (~> 3.9.0)
110
- rspec-support (3.9.2)
111
- sprockets (4.0.0)
148
+ rspec-support (~> 3.12.0)
149
+ rspec-support (3.12.0)
150
+ sqlite3 (1.6.3)
151
+ mini_portile2 (~> 2.8.0)
152
+ thor (1.2.2)
153
+ timeout (0.3.2)
154
+ tzinfo (2.0.6)
112
155
  concurrent-ruby (~> 1.0)
113
- rack (> 1, < 3)
114
- sprockets-rails (3.2.1)
115
- actionpack (>= 4.0)
116
- activesupport (>= 4.0)
117
- sprockets (>= 3.0.0)
118
- sqlite3 (1.4.2)
119
- thor (1.0.1)
120
- thread_safe (0.3.6)
121
- tzinfo (1.2.7)
122
- thread_safe (~> 0.1)
123
- websocket-driver (0.7.1)
156
+ websocket-driver (0.7.5)
124
157
  websocket-extensions (>= 0.1.0)
125
- websocket-extensions (0.1.4)
158
+ websocket-extensions (0.1.5)
159
+ zeitwerk (2.6.8)
126
160
 
127
161
  PLATFORMS
128
162
  ruby
129
163
 
130
164
  DEPENDENCIES
131
- actionpack (~> 5.2)
132
- rails (~> 5.2)
165
+ actionpack (~> 7.0)
166
+ rails (~> 7.0)
133
167
  rake (~> 13.0)
134
- rspec (~> 3.9)
135
- sqlite3 (~> 1.4.0)
168
+ rspec (~> 3.12)
169
+ sqlite3 (~> 1.6.3)
136
170
 
137
171
  BUNDLED WITH
138
- 1.17.3
172
+ 2.3.7