web-connect-rails 0.1.3 → 0.1.5
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/lib/generators/web_connect/install/templates/initializer.rb +8 -0
- data/lib/netfira/web_connect/rails/version.rb +1 -1
- data/spec/dummy/Gemfile +1 -2
- data/spec/dummy/Gemfile.lock +4 -4
- data/spec/dummy/config/initializers/web_connect.rb +10 -0
- data/spec/dummy/log/test.log +99 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8138efc17f173cca23871a15c6ad0668046c7051
|
4
|
+
data.tar.gz: 72bd56a12ceddf45c87d3dcf6bdcfd746bddfcbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2d9b98eef70e7141ca4ced448cd339f39632da3f07a0ef79fdaac1d8af25d402d44ca764db904ce221ddcef4804f6c4879b5ee0ac10a32a2b4e78870eccd880
|
7
|
+
data.tar.gz: fac2182c566c4815968a6cce30ab01d013a6a80dd1d3a77f51b22fa641ffaa8f89885720c8fe4aa5573d5a4b3e7403383d5b3621d314b1c8947d8c2fcbed96a5
|
@@ -6,6 +6,7 @@ Netfira::WebConnect::Rails.configure do |config|
|
|
6
6
|
|
7
7
|
# By default, WebConnect will use the host application's database.
|
8
8
|
# Uncomment this section if you want to use a different database.
|
9
|
+
#
|
9
10
|
# config.db = {
|
10
11
|
# adapter: 'sqlite3',
|
11
12
|
# database: "#{Rails.root}/db/wc_#{Rails.env}.sqlite3"
|
@@ -40,4 +41,11 @@ Netfira::WebConnect::Rails.configure do |config|
|
|
40
41
|
!shop_name.nil? && !password.nil?
|
41
42
|
end
|
42
43
|
|
44
|
+
# WebConnect can form sessions with clients to ease load on your
|
45
|
+
# authenticator. To use WebConnect sessions, uncomment the line below,
|
46
|
+
# and set a session lifetime. Assign `true` if you won't want your
|
47
|
+
# sessions to expire.
|
48
|
+
#
|
49
|
+
# config.session_lifetime = 30.days
|
50
|
+
|
43
51
|
end
|
data/spec/dummy/Gemfile
CHANGED
@@ -2,7 +2,6 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gem 'rails', '~> 4.1'
|
4
4
|
gem 'rspec-rails', '3.0.0.beta2'
|
5
|
-
# gem 'web-connect',
|
6
|
-
gem 'web-connect', path: File.expand_path('../../../../web-connect', __FILE__)
|
5
|
+
# gem 'web-connect', path: File.expand_path('../../../../web-connect', __FILE__)
|
7
6
|
gem 'web-connect-rails', path: File.expand_path('../../..', __FILE__)
|
8
7
|
gem 'sqlite3'
|
data/spec/dummy/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: /Users/Neil/Documents/github.com/netfira/web-connect
|
3
3
|
specs:
|
4
|
-
web-connect (0.1.
|
4
|
+
web-connect (0.1.2)
|
5
5
|
activerecord (~> 4.1)
|
6
6
|
fastimage (~> 1.6)
|
7
7
|
locale (~> 2.1)
|
@@ -11,9 +11,9 @@ PATH
|
|
11
11
|
PATH
|
12
12
|
remote: /Users/Neil/Documents/github.com/netfira/web-connect-rails
|
13
13
|
specs:
|
14
|
-
web-connect-rails (0.1.
|
15
|
-
rails (~> 4.1
|
16
|
-
web-connect
|
14
|
+
web-connect-rails (0.1.3)
|
15
|
+
rails (~> 4.1)
|
16
|
+
web-connect (~> 0.1)
|
17
17
|
|
18
18
|
GEM
|
19
19
|
remote: https://rubygems.org/
|
@@ -6,6 +6,7 @@ Netfira::WebConnect::Rails.configure do |config|
|
|
6
6
|
|
7
7
|
# By default, WebConnect will use the host application's database.
|
8
8
|
# Uncomment this section if you want to use a different database.
|
9
|
+
#
|
9
10
|
# config.db = {
|
10
11
|
# adapter: 'sqlite3',
|
11
12
|
# database: "#{Rails.root}/db/wc_#{Rails.env}.sqlite3"
|
@@ -26,6 +27,7 @@ Netfira::WebConnect::Rails.configure do |config|
|
|
26
27
|
# :model_type The type of file (plural), e.g. images, attachments
|
27
28
|
#
|
28
29
|
# See http://rdoc.info/gems/paperclip for specifics.
|
30
|
+
# TODO: S3 file storage
|
29
31
|
config.file_store = {
|
30
32
|
path: ':rails_root/public/system/uploaded_files/shop_:shop_id/:model_type/:filename'
|
31
33
|
}
|
@@ -36,8 +38,16 @@ Netfira::WebConnect::Rails.configure do |config|
|
|
36
38
|
#
|
37
39
|
# Your handler may also return a string that clients should use as
|
38
40
|
# a password in subsequent requests.
|
41
|
+
# TODO: Real authentication556
|
39
42
|
config.on_authenticate do |shop_name, password|
|
40
43
|
!shop_name.nil? && !password.nil?
|
41
44
|
end
|
42
45
|
|
46
|
+
# WebConnect can form sessions with clients to ease load on your
|
47
|
+
# authenticator. To use WebConnect sessions, uncomment the line below,
|
48
|
+
# and set a session lifetime. Assign `true` if you won't want your
|
49
|
+
# sessions to expire.
|
50
|
+
#
|
51
|
+
# config.session_lifetime = 30.days
|
52
|
+
|
43
53
|
end
|
data/spec/dummy/log/test.log
CHANGED
@@ -487,3 +487,102 @@ Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)
|
|
487
487
|
Started GET "/webconnect/info" for 127.0.0.1 at 2014-06-04 17:11:49 +1000
|
488
488
|
[1m[35m (0.0ms)[0m rollback transaction
|
489
489
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
490
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "wc_schema_migrations".* FROM "wc_schema_migrations"[0m
|
491
|
+
[1m[35mNetfira::WebConnect::Models::Table Load (0.1ms)[0m SELECT "wc__tables".* FROM "wc__tables"
|
492
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "wc_schema_migrations".* FROM "wc_schema_migrations"[0m
|
493
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
494
|
+
FROM sqlite_master
|
495
|
+
WHERE name='index_wc__shops_on_name' AND type='index'
|
496
|
+
UNION ALL
|
497
|
+
SELECT sql
|
498
|
+
FROM sqlite_temp_master
|
499
|
+
WHERE name='index_wc__shops_on_name' AND type='index'
|
500
|
+
|
501
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
502
|
+
FROM sqlite_master
|
503
|
+
WHERE name='index_wc_attachments_to_products_on_product_id' AND type='index'
|
504
|
+
UNION ALL
|
505
|
+
SELECT sql
|
506
|
+
FROM sqlite_temp_master
|
507
|
+
WHERE name='index_wc_attachments_to_products_on_product_id' AND type='index'
|
508
|
+
[0m
|
509
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
510
|
+
FROM sqlite_master
|
511
|
+
WHERE name='index_wc_attachments_to_products_on_attachment_id' AND type='index'
|
512
|
+
UNION ALL
|
513
|
+
SELECT sql
|
514
|
+
FROM sqlite_temp_master
|
515
|
+
WHERE name='index_wc_attachments_to_products_on_attachment_id' AND type='index'
|
516
|
+
|
517
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
518
|
+
FROM sqlite_master
|
519
|
+
WHERE name='index_wc_buyers_to_products_on_product_id' AND type='index'
|
520
|
+
UNION ALL
|
521
|
+
SELECT sql
|
522
|
+
FROM sqlite_temp_master
|
523
|
+
WHERE name='index_wc_buyers_to_products_on_product_id' AND type='index'
|
524
|
+
[0m
|
525
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
526
|
+
FROM sqlite_master
|
527
|
+
WHERE name='index_wc_buyers_to_products_on_buyer_id' AND type='index'
|
528
|
+
UNION ALL
|
529
|
+
SELECT sql
|
530
|
+
FROM sqlite_temp_master
|
531
|
+
WHERE name='index_wc_buyers_to_products_on_buyer_id' AND type='index'
|
532
|
+
|
533
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
534
|
+
FROM sqlite_master
|
535
|
+
WHERE name='index_wc_categories_l10n_on_category_id' AND type='index'
|
536
|
+
UNION ALL
|
537
|
+
SELECT sql
|
538
|
+
FROM sqlite_temp_master
|
539
|
+
WHERE name='index_wc_categories_l10n_on_category_id' AND type='index'
|
540
|
+
[0m
|
541
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
542
|
+
FROM sqlite_master
|
543
|
+
WHERE name='index_wc_categories_to_products_on_product_id' AND type='index'
|
544
|
+
UNION ALL
|
545
|
+
SELECT sql
|
546
|
+
FROM sqlite_temp_master
|
547
|
+
WHERE name='index_wc_categories_to_products_on_product_id' AND type='index'
|
548
|
+
|
549
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
550
|
+
FROM sqlite_master
|
551
|
+
WHERE name='index_wc_categories_to_products_on_category_id' AND type='index'
|
552
|
+
UNION ALL
|
553
|
+
SELECT sql
|
554
|
+
FROM sqlite_temp_master
|
555
|
+
WHERE name='index_wc_categories_to_products_on_category_id' AND type='index'
|
556
|
+
[0m
|
557
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
558
|
+
FROM sqlite_master
|
559
|
+
WHERE name='index_wc_images_to_products_on_product_id' AND type='index'
|
560
|
+
UNION ALL
|
561
|
+
SELECT sql
|
562
|
+
FROM sqlite_temp_master
|
563
|
+
WHERE name='index_wc_images_to_products_on_product_id' AND type='index'
|
564
|
+
|
565
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
566
|
+
FROM sqlite_master
|
567
|
+
WHERE name='index_wc_images_to_products_on_image_id' AND type='index'
|
568
|
+
UNION ALL
|
569
|
+
SELECT sql
|
570
|
+
FROM sqlite_temp_master
|
571
|
+
WHERE name='index_wc_images_to_products_on_image_id' AND type='index'
|
572
|
+
[0m
|
573
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
574
|
+
FROM sqlite_master
|
575
|
+
WHERE name='index_wc_products_l10n_on_product_id' AND type='index'
|
576
|
+
UNION ALL
|
577
|
+
SELECT sql
|
578
|
+
FROM sqlite_temp_master
|
579
|
+
WHERE name='index_wc_products_l10n_on_product_id' AND type='index'
|
580
|
+
|
581
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
582
|
+
FROM sqlite_master
|
583
|
+
WHERE name='unique_wc_schema_migrations' AND type='index'
|
584
|
+
UNION ALL
|
585
|
+
SELECT sql
|
586
|
+
FROM sqlite_temp_master
|
587
|
+
WHERE name='unique_wc_schema_migrations' AND type='index'
|
588
|
+
[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web-connect-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil E. Pearson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|