smarter_listing 0.2.8 → 0.2.9
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 +4 -4
- data/app/views/smarter_listing/new.html.erb +6 -0
- data/lib/smarter_listing/controller_extension.rb +4 -1
- data/lib/smarter_listing/version.rb +1 -1
- data/test/controllers/listings_controller_test.rb +54 -30
- data/test/dummy/app/controllers/listings_controller.rb +1 -5
- data/test/dummy/config/application.rb +1 -0
- data/test/dummy/config/environments/test.rb +3 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +9523 -38924
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/helpers/smarter_listing_loader_test.rb +1 -1
- data/test/integrations/workflow_test.rb +14 -0
- data/test/test_helper.rb +4 -1
- metadata +67 -39
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -16
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require "test_helper"
|
|
2
|
+
|
|
3
|
+
describe "Workflow", :capybara do
|
|
4
|
+
it "has index" do
|
|
5
|
+
visit listings_path
|
|
6
|
+
page.has_css? '.count', text: '1'
|
|
7
|
+
page.has_link? '.sortable', count: 2
|
|
8
|
+
page.has_link? '.copy', count: 1
|
|
9
|
+
page.has_link? '.edit', count: 1
|
|
10
|
+
page.has_link? '.destroy', count: 1
|
|
11
|
+
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
end
|
data/test/test_helper.rb
CHANGED
|
@@ -3,6 +3,8 @@ ENV['RAILS_ENV'] = 'test'
|
|
|
3
3
|
|
|
4
4
|
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
|
5
5
|
require 'rails/test_help'
|
|
6
|
+
require "minitest/rails"
|
|
7
|
+
require "minitest/rails/capybara"
|
|
6
8
|
|
|
7
9
|
Rails.backtrace_cleaner.remove_silencers!
|
|
8
10
|
|
|
@@ -13,5 +15,6 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
|
13
15
|
ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
|
|
14
16
|
|
|
15
17
|
class ActionController::TestCase
|
|
18
|
+
ActiveRecord::Migration.check_pending!
|
|
16
19
|
fixtures :all
|
|
17
|
-
end
|
|
20
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smarter_listing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Sprauer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-04-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -52,6 +52,34 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '1'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: minitest-rails
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '2'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '2'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: minitest-rails-capybara
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '2'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '2'
|
|
55
83
|
description: DRY improvements to the fine gem "smart_listing". See http://showcase.sology.eu/smart_listing
|
|
56
84
|
for more details
|
|
57
85
|
email:
|
|
@@ -71,6 +99,7 @@ files:
|
|
|
71
99
|
- app/views/smarter_listing/edit.html.erb
|
|
72
100
|
- app/views/smarter_listing/edit.js.erb
|
|
73
101
|
- app/views/smarter_listing/index.js.erb
|
|
102
|
+
- app/views/smarter_listing/new.html.erb
|
|
74
103
|
- app/views/smarter_listing/new.js.erb
|
|
75
104
|
- app/views/smarter_listing/update.js.erb
|
|
76
105
|
- lib/smarter_listing.rb
|
|
@@ -115,11 +144,9 @@ files:
|
|
|
115
144
|
- test/dummy/config/locales/en.yml
|
|
116
145
|
- test/dummy/config/routes.rb
|
|
117
146
|
- test/dummy/config/secrets.yml
|
|
118
|
-
- test/dummy/db/development.sqlite3
|
|
119
147
|
- test/dummy/db/migrate/20140724101100_create_listings.rb
|
|
120
148
|
- test/dummy/db/schema.rb
|
|
121
149
|
- test/dummy/db/test.sqlite3
|
|
122
|
-
- test/dummy/log/development.log
|
|
123
150
|
- test/dummy/log/test.log
|
|
124
151
|
- test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
|
125
152
|
- test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
|
@@ -129,6 +156,7 @@ files:
|
|
|
129
156
|
- test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
|
130
157
|
- test/fixtures/listings.yml
|
|
131
158
|
- test/helpers/smarter_listing_loader_test.rb
|
|
159
|
+
- test/integrations/workflow_test.rb
|
|
132
160
|
- test/test_helper.rb
|
|
133
161
|
homepage: http://github.com/MichaelSp/smarter_listing
|
|
134
162
|
licenses:
|
|
@@ -150,59 +178,59 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
150
178
|
version: '0'
|
|
151
179
|
requirements: []
|
|
152
180
|
rubyforge_project:
|
|
153
|
-
rubygems_version: 2.
|
|
181
|
+
rubygems_version: 2.2.2
|
|
154
182
|
signing_key:
|
|
155
183
|
specification_version: 4
|
|
156
184
|
summary: Smart Listing even smarter (and DRYer)
|
|
157
185
|
test_files:
|
|
158
|
-
- test/dummy/
|
|
186
|
+
- test/dummy/README.rdoc
|
|
159
187
|
- test/dummy/log/test.log
|
|
160
|
-
- test/dummy/
|
|
161
|
-
- test/dummy/
|
|
162
|
-
- test/dummy/
|
|
163
|
-
- test/dummy/
|
|
188
|
+
- test/dummy/app/models/listing.rb
|
|
189
|
+
- test/dummy/app/helpers/application_helper.rb
|
|
190
|
+
- test/dummy/app/views/layouts/default.html.erb
|
|
191
|
+
- test/dummy/app/views/listings/index.html.erb
|
|
192
|
+
- test/dummy/app/views/listings/_table_header.html.erb
|
|
193
|
+
- test/dummy/app/views/listings/_form.html.erb
|
|
194
|
+
- test/dummy/app/views/listings/_listing.html.erb
|
|
195
|
+
- test/dummy/app/controllers/application_controller.rb
|
|
196
|
+
- test/dummy/app/controllers/listings_controller.rb
|
|
197
|
+
- test/dummy/app/assets/stylesheets/application.css
|
|
198
|
+
- test/dummy/app/assets/javascripts/application.js
|
|
199
|
+
- test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
|
164
200
|
- test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
|
201
|
+
- test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
|
165
202
|
- test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
|
166
203
|
- test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
|
167
204
|
- test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
|
168
|
-
- test/dummy/
|
|
169
|
-
- test/dummy/
|
|
205
|
+
- test/dummy/db/schema.rb
|
|
206
|
+
- test/dummy/db/migrate/20140724101100_create_listings.rb
|
|
207
|
+
- test/dummy/db/test.sqlite3
|
|
170
208
|
- test/dummy/config.ru
|
|
171
|
-
- test/dummy/
|
|
172
|
-
- test/dummy/
|
|
173
|
-
- test/dummy/
|
|
174
|
-
- test/dummy/
|
|
175
|
-
- test/dummy/app/views/listings/index.html.erb
|
|
176
|
-
- test/dummy/app/views/listings/_table_header.html.erb
|
|
177
|
-
- test/dummy/app/views/listings/_listing.html.erb
|
|
178
|
-
- test/dummy/app/views/listings/_form.html.erb
|
|
179
|
-
- test/dummy/app/views/layouts/default.html.erb
|
|
180
|
-
- test/dummy/app/helpers/application_helper.rb
|
|
181
|
-
- test/dummy/app/models/listing.rb
|
|
182
|
-
- test/dummy/bin/bundle
|
|
183
|
-
- test/dummy/bin/rake
|
|
184
|
-
- test/dummy/bin/rails
|
|
185
|
-
- test/dummy/Rakefile
|
|
209
|
+
- test/dummy/config/locales/en.yml
|
|
210
|
+
- test/dummy/config/environments/production.rb
|
|
211
|
+
- test/dummy/config/environments/development.rb
|
|
212
|
+
- test/dummy/config/environments/test.rb
|
|
186
213
|
- test/dummy/config/routes.rb
|
|
187
|
-
- test/dummy/config/application.rb
|
|
188
|
-
- test/dummy/config/environment.rb
|
|
189
|
-
- test/dummy/config/secrets.yml
|
|
190
214
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
|
191
|
-
- test/dummy/config/initializers/
|
|
215
|
+
- test/dummy/config/initializers/session_store.rb
|
|
192
216
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
|
217
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
|
193
218
|
- test/dummy/config/initializers/assets.rb
|
|
194
219
|
- test/dummy/config/initializers/cookies_serializer.rb
|
|
195
|
-
- test/dummy/config/initializers/session_store.rb
|
|
196
220
|
- test/dummy/config/initializers/inflections.rb
|
|
197
|
-
- test/dummy/config/initializers/
|
|
198
|
-
- test/dummy/config/
|
|
221
|
+
- test/dummy/config/initializers/mime_types.rb
|
|
222
|
+
- test/dummy/config/environment.rb
|
|
199
223
|
- test/dummy/config/boot.rb
|
|
200
|
-
- test/dummy/config/
|
|
201
|
-
- test/dummy/config/
|
|
202
|
-
- test/dummy/config/environments/test.rb
|
|
224
|
+
- test/dummy/config/application.rb
|
|
225
|
+
- test/dummy/config/secrets.yml
|
|
203
226
|
- test/dummy/config/database.yml
|
|
204
|
-
- test/dummy/
|
|
227
|
+
- test/dummy/Rakefile
|
|
228
|
+
- test/dummy/bin/rake
|
|
229
|
+
- test/dummy/bin/bundle
|
|
230
|
+
- test/dummy/bin/rails
|
|
205
231
|
- test/test_helper.rb
|
|
206
|
-
- test/controllers/listings_controller_test.rb
|
|
207
232
|
- test/helpers/smarter_listing_loader_test.rb
|
|
208
233
|
- test/fixtures/listings.yml
|
|
234
|
+
- test/controllers/listings_controller_test.rb
|
|
235
|
+
- test/integrations/workflow_test.rb
|
|
236
|
+
has_rdoc:
|
|
Binary file
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
[1m[36m (14.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
|
2
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
3
|
-
[1m[36m (11.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
4
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
5
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
|
6
|
-
[1m[35m (12.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
|
7
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
8
|
-
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
|
9
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
10
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
11
|
-
Migrating to CreateListings (20140724101100)
|
|
12
|
-
[1m[35m (0.0ms)[0m begin transaction
|
|
13
|
-
[1m[36m (0.2ms)[0m [1mCREATE TABLE "listings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "content" varchar(255), "deleted_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
|
14
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140724101100"]]
|
|
15
|
-
[1m[36m (11.6ms)[0m [1mcommit transaction[0m
|
|
16
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|