decko 0.3.1 → 0.3.2

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
  SHA1:
3
- metadata.gz: 0f31a12ba7a6495597a0110b4bd3427436405fde
4
- data.tar.gz: 0c3295aa6f2590ab5ebaffe3fa056dd79cc5092d
3
+ metadata.gz: fe6721de26c10adf1320b391a9df11378815fcab
4
+ data.tar.gz: 4702ff9cda2eb4c700c1d463d50440b0d53374f1
5
5
  SHA512:
6
- metadata.gz: 6fa275be3e7a70a2276fee62bd79a3544c9aff73fae7a50a22061e21431faf579cc17532ad413fd214be85a2e1777605a7385c89dd341df6b1f4c83144292455
7
- data.tar.gz: 484a92215a837fdfdf946deba1b899bc4015d1b861109b15eb782469e63764f9d3b6ced77d8c227ce4c58e9aa8cf58de767f66ce05e25838a7b4a4ddab0b81b4
6
+ metadata.gz: 8088c233195bbb2a7e2ef9bf169148b7b8fa7b84ffe4ee60e93714b04eb560d9b67e99f5cee8b8fca7052d3e03f0ccf057ed4cf2b5a05272b75e05c724633919
7
+ data.tar.gz: 32812063b2271f1b338c5af355cd5d04dd0aaf3ac5b39f7f9b9758d9f0a33df4eae45b42d0dde7c339793e469377c787e6bf0ed64015032b245bba77ead520e9
@@ -14,7 +14,7 @@ Feature: Reset password
14
14
  And I enter "joe@user.com" into "*email"
15
15
  And I press "Reset my password"
16
16
  And I wait 4 seconds
17
- Then "joe@user.com" should receive an email with subject "reset password for My Wagn"
17
+ Then "joe@user.com" should receive an email with subject "reset password for My Deck"
18
18
 
19
19
  When I open the email
20
20
  And I click the first link in the email
@@ -25,7 +25,7 @@ Feature: Signing up
25
25
  And I enter "wanna_pass" into "*password"
26
26
  And I press "Submit"
27
27
  Then I should see "Signup Success"
28
- And "wanna@wagn.org" should receive an email with subject "verification link for My Wagn"
28
+ And "wanna@wagn.org" should receive an email with subject "verification link for My Deck"
29
29
 
30
30
  When I open the email
31
31
  And I click the first link in the email
@@ -10,6 +10,8 @@ Decko.application.class.configure do
10
10
  # For more information see https://rspec.lighthouseapp.com/projects/16211/tickets/165
11
11
  config.cache_classes = true
12
12
 
13
+ config.prepopulate_cache = true
14
+
13
15
  # Log error messages when you accidentally call methods on nil.
14
16
  config.whiny_nils = true
15
17
 
@@ -13,6 +13,9 @@ Decko.application.class.configure do
13
13
 
14
14
  config.eager_load = false
15
15
 
16
+ config.eager_machine_refresh = true
17
+
18
+
16
19
  # In the development environment your application's code is reloaded on
17
20
  # every request. This slows down response time but is perfect for development
18
21
  # since you don't have to restart the web server when you make code changes.
@@ -12,6 +12,9 @@ Decko.application.class.configure do
12
12
 
13
13
  config.assets.enabled = true if Object.const_defined?(:JasmineRails)
14
14
 
15
+ config.persistent_cache = false
16
+ config.prepopulate_cache = true
17
+
15
18
  # Configure static asset server for tests with Cache-Control for performance
16
19
  config.serve_static_files = true
17
20
  config.static_cache_control = "public, max-age=3600"
@@ -53,7 +53,7 @@ namespace :decko do
53
53
 
54
54
  def clean_inputs_and_outputs
55
55
  # FIXME: can this be associated with the machine module somehow?
56
- %w(machine_input machine_output).each do |codename|
56
+ %w(machine_input machine_output machine_cache).each do |codename|
57
57
  Card.search(right: { codename: codename }).each do |card|
58
58
  FileUtils.rm_rf File.join("files", card.id.to_s), secure: true#
59
59
  next if reserved_output? card.name
@@ -63,7 +63,8 @@ namespace :decko do
63
63
  end
64
64
 
65
65
  def reserved_output? name
66
- (machine_seed_names.member? name.left_name.key) && (name.right_name.key == :machine_output.cardname.key)
66
+ (machine_seed_names.member? name.left_name.key) &&
67
+ (name.right_name.key == :machine_output.cardname.key)
67
68
  end
68
69
 
69
70
  def machine_seed_names
@@ -110,7 +111,7 @@ namespace :decko do
110
111
 
111
112
  def add_test_data
112
113
  return unless Rails.env == "test"
113
- load File.join(TEST_SEED_PATH, "seed.rb")
114
+ load CARD_TEST_SEED_SCRIPT_PATH
114
115
  SharedData.add_test_data
115
116
  end
116
117
 
@@ -57,7 +57,7 @@ class CardController < ActionController::Base
57
57
 
58
58
  def setup
59
59
  request.format = :html unless params[:format] # is this used??
60
- Card::Machine.refresh_script_and_style if Rails.env.development?
60
+ Card::Machine.refresh_script_and_style
61
61
  Card::Cache.renew
62
62
  Card::Env.reset controller: self
63
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decko
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-11-08 00:00:00.000000000 Z
14
+ date: 2017-11-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -33,14 +33,14 @@ dependencies:
33
33
  requirements:
34
34
  - - '='
35
35
  - !ruby/object:Gem::Version
36
- version: 1.93.1
36
+ version: 1.93.2
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - '='
42
42
  - !ruby/object:Gem::Version
43
- version: 1.93.1
43
+ version: 1.93.2
44
44
  description: a wiki approach to stuctured data, dynamic interaction, and web design
45
45
  email:
46
46
  - info@decko.org