web-connect-rails 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e330d20fad2d7e32400e3f88725dda84f94c5e11
4
- data.tar.gz: c63c2c0fd618a3a755000f2eaec937b164bc7c6a
3
+ metadata.gz: 8138efc17f173cca23871a15c6ad0668046c7051
4
+ data.tar.gz: 72bd56a12ceddf45c87d3dcf6bdcfd746bddfcbb
5
5
  SHA512:
6
- metadata.gz: 15cc3d7f0fb2d821ed5f23fbca7fe43afc609cf2fd4cadd1da2834e1a1d8f93455c8787f19ac788cd21633f17e658db3b2547374a6c7b4f54bd292a0ebbf9e4f
7
- data.tar.gz: e9f24d79ca9de4e124ce6103da7b08b32821c288b4c5c0ff6c63783ca253b8964659e963783e37b06cea50b4519bbbdc936ec55a239d0ab6fddd44c188f4f191
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
@@ -1,7 +1,7 @@
1
1
  module Netfira
2
2
  module WebConnect
3
3
  module Rails
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.5'
5
5
  end
6
6
  end
7
7
  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', git: 'git@github.com:netfira/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'
@@ -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.0)
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.1)
15
- rails (~> 4.1.0.rc2)
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
@@ -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
   (0.0ms) rollback transaction
489
489
   (0.0ms) rollback transaction
490
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "wc_schema_migrations".* FROM "wc_schema_migrations"
491
+ Netfira::WebConnect::Models::Table Load (0.1ms) SELECT "wc__tables".* FROM "wc__tables"
492
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "wc_schema_migrations".* FROM "wc_schema_migrations"
493
+  (0.1ms) 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
+  (0.1ms)  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
+ 
509
+  (0.1ms) 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
+  (0.1ms)  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
+ 
525
+  (0.1ms) 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
+  (0.1ms)  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
+ 
541
+  (0.1ms) 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
+  (0.1ms)  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
+ 
557
+  (0.1ms) 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
+  (0.1ms)  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
+ 
573
+  (0.1ms) 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
+  (0.1ms)  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
+ 
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.3
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-04 00:00:00.000000000 Z
11
+ date: 2014-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails