decko 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/reset_password.feature +1 -1
- data/features/signup.feature +1 -1
- data/lib/decko/config/environments/cucumber.rb +2 -0
- data/lib/decko/config/environments/development.rb +3 -0
- data/lib/decko/config/environments/test.rb +3 -0
- data/lib/decko/tasks/decko/bootstrap.rake +4 -3
- data/rails/controllers/card_controller.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe6721de26c10adf1320b391a9df11378815fcab
|
4
|
+
data.tar.gz: 4702ff9cda2eb4c700c1d463d50440b0d53374f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/features/signup.feature
CHANGED
@@ -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
|
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) &&
|
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
|
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
|
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.
|
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-
|
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.
|
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.
|
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
|