decko 0.3.3 → 0.3.4

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.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/lib/decko/generators/decko/templates/Gemfile +1 -0
  3. metadata +5 -109
  4. data/.rspec +0 -4
  5. data/Guardfile +0 -32
  6. data/decko.gemspec +0 -42
  7. data/features/attach.feature +0 -85
  8. data/features/autonaming.feature +0 -19
  9. data/features/conflict.feature +0 -41
  10. data/features/follow.feature +0 -64
  11. data/features/history.feature +0 -27
  12. data/features/layouts.feature +0 -25
  13. data/features/navbox.feature +0 -34
  14. data/features/notifications.feature +0 -33
  15. data/features/paging.feature +0 -34
  16. data/features/pointer_inputs.feature +0 -81
  17. data/features/presetting_content.feature +0 -13
  18. data/features/reference.feature +0 -26
  19. data/features/reset_password.feature +0 -35
  20. data/features/rules.feature +0 -45
  21. data/features/setup.feature +0 -32
  22. data/features/signup.feature +0 -61
  23. data/features/step_definitions/decko_steps.rb +0 -532
  24. data/features/step_definitions/email_steps.rb +0 -216
  25. data/features/step_definitions/history_steps.rb +0 -5
  26. data/features/step_definitions/web_steps.rb +0 -155
  27. data/features/step_definitions/window_steps.rb +0 -27
  28. data/features/structure.feature +0 -41
  29. data/features/support/debugger.rb +0 -44
  30. data/features/support/delayed_job.rb +0 -20
  31. data/features/support/env.rb +0 -115
  32. data/features/support/file.txt +0 -1
  33. data/features/support/image.png +0 -0
  34. data/features/support/image2.jpg +0 -0
  35. data/features/support/paths.rb +0 -63
  36. data/features/support/scopes.rb +0 -34
  37. data/features/support/wagn_env.rb +0 -11
  38. data/features/table_of_contents.feature +0 -36
  39. data/features/toolbar.feature +0 -29
  40. data/features/update_includers.feature +0 -75
  41. data/lib/decko/tasks/.gitkeep +0 -0
  42. data/spec/controllers/card_controller_spec.rb +0 -407
  43. data/spec/controllers/location_spec.rb +0 -25
  44. data/spec/javascripts/helpers/.gitkeep +0 -0
  45. data/spec/javascripts/helpers/jasmine-jquery.js +0 -812
  46. data/spec/javascripts/support/jasmine.yml.erb +0 -79
  47. data/spec/javascripts/support/jasmine_config.rb +0 -21
  48. data/spec/javascripts/support/jasmine_runner.rb +0 -21
  49. data/spec/javascripts/wagn_spec.coffee +0 -42
  50. data/test/1.10.0-data-dump.sql +0 -359
  51. data/test/performance/card_create_test.rb +0 -21
  52. data/test/performance/fetch_test.rb +0 -9
  53. data/test/performance/homepage_test.rb +0 -9
  54. data/test/performance/render_test.rb +0 -10
  55. data/test/script/run_engine_deck.sh +0 -47
  56. data/test/script/run_mig.sh +0 -29
  57. data/test/test_helper.rb +0 -125
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 562a4e5ff157507a8381eaa6ee407073b35ce605
4
- data.tar.gz: ab3ed6e1503bc5518a8cead539b13e71b2840b76
3
+ metadata.gz: f2f27e6289f3bcdaf5f0f20375414b8080159f64
4
+ data.tar.gz: 316b6d1b825d0c4f6c41f453d8336102b656905e
5
5
  SHA512:
6
- metadata.gz: d626a8598adc95a0a19083cbaf5d428ced1cc697916f6c2d41667405aee70db47cf4163c94ef3963e141664ab3b4f07d0fc9d6792828f4d5f1ef0a40fa8fe4c2
7
- data.tar.gz: 193be2103a3059e0c86e3a898e8ce628a7e3113954dec7ff2d76de00400495db04a3945f0655611c9cd62fa22b0f9567c466b8a4cb25111b7f07a9897d4a934d
6
+ metadata.gz: 06f2cf380009fb41f50fee45c1b700f1d7cb8c542a7cd5e550ae5289bbc04b19fbc7de082469a5e595c02f19db0c209ad4739fe7d14ca15e917f03756e81d300
7
+ data.tar.gz: 66eff74fd5a0483993514c9d2128ba25e097e2c745be425206eaf15ea9c60d3748df2240c14e3f8e074e8debc57388171c9a98a7ee2d3efb63a897944d3c97ec
@@ -36,6 +36,7 @@ group :test do
36
36
  end
37
37
 
38
38
  group :test, :development do
39
+ gem 'html2haml'
39
40
  gem 'rails-dev-tweaks'
40
41
  gem 'jasmine'
41
42
  gem 'jasmine-rails'
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.3
4
+ version: 0.3.4
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-20 00:00:00.000000000 Z
14
+ date: 2017-11-29 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.3
36
+ version: 1.93.4
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.3
43
+ version: 1.93.4
44
44
  description: a wiki approach to stuctured data, dynamic interaction, and web design
45
45
  email:
46
46
  - info@decko.org
@@ -49,9 +49,7 @@ executables:
49
49
  extensions: []
50
50
  extra_rdoc_files: []
51
51
  files:
52
- - ".rspec"
53
52
  - GPL
54
- - Guardfile
55
53
  - LICENSE
56
54
  - README.rdoc
57
55
  - app/assets/images/body-bg.bmp
@@ -72,41 +70,6 @@ files:
72
70
  - app/assets/images/smoothness/ui-icons_888888_256x240.png
73
71
  - app/assets/images/smoothness/ui-icons_cd0a0a_256x240.png
74
72
  - bin/decko
75
- - decko.gemspec
76
- - features/attach.feature
77
- - features/autonaming.feature
78
- - features/conflict.feature
79
- - features/follow.feature
80
- - features/history.feature
81
- - features/layouts.feature
82
- - features/navbox.feature
83
- - features/notifications.feature
84
- - features/paging.feature
85
- - features/pointer_inputs.feature
86
- - features/presetting_content.feature
87
- - features/reference.feature
88
- - features/reset_password.feature
89
- - features/rules.feature
90
- - features/setup.feature
91
- - features/signup.feature
92
- - features/step_definitions/decko_steps.rb
93
- - features/step_definitions/email_steps.rb
94
- - features/step_definitions/history_steps.rb
95
- - features/step_definitions/web_steps.rb
96
- - features/step_definitions/window_steps.rb
97
- - features/structure.feature
98
- - features/support/debugger.rb
99
- - features/support/delayed_job.rb
100
- - features/support/env.rb
101
- - features/support/file.txt
102
- - features/support/image.png
103
- - features/support/image2.jpg
104
- - features/support/paths.rb
105
- - features/support/scopes.rb
106
- - features/support/wagn_env.rb
107
- - features/table_of_contents.feature
108
- - features/toolbar.feature
109
- - features/update_includers.feature
110
73
  - lib/decko.rb
111
74
  - lib/decko/all.rb
112
75
  - lib/decko/application.rb
@@ -166,7 +129,6 @@ files:
166
129
  - lib/decko/mods_spec_helper.rb
167
130
  - lib/decko/response.rb
168
131
  - lib/decko/script_decko_loader.rb
169
- - lib/decko/tasks/.gitkeep
170
132
  - lib/decko/tasks/alias.rb
171
133
  - lib/decko/tasks/cucumber.rake
172
134
  - lib/decko/tasks/db.rake
@@ -568,22 +530,6 @@ files:
568
530
  - script/decko
569
531
  - script/rails
570
532
  - script/test_filter
571
- - spec/controllers/card_controller_spec.rb
572
- - spec/controllers/location_spec.rb
573
- - spec/javascripts/helpers/.gitkeep
574
- - spec/javascripts/helpers/jasmine-jquery.js
575
- - spec/javascripts/support/jasmine.yml.erb
576
- - spec/javascripts/support/jasmine_config.rb
577
- - spec/javascripts/support/jasmine_runner.rb
578
- - spec/javascripts/wagn_spec.coffee
579
- - test/1.10.0-data-dump.sql
580
- - test/performance/card_create_test.rb
581
- - test/performance/fetch_test.rb
582
- - test/performance/homepage_test.rb
583
- - test/performance/render_test.rb
584
- - test/script/run_engine_deck.sh
585
- - test/script/run_mig.sh
586
- - test/test_helper.rb
587
533
  homepage: http://decko.org
588
534
  licenses:
589
535
  - GPL-2.0
@@ -609,54 +555,4 @@ rubygems_version: 2.6.13
609
555
  signing_key:
610
556
  specification_version: 4
611
557
  summary: structured wiki web platform
612
- test_files:
613
- - features/attach.feature
614
- - features/autonaming.feature
615
- - features/conflict.feature
616
- - features/follow.feature
617
- - features/history.feature
618
- - features/layouts.feature
619
- - features/navbox.feature
620
- - features/notifications.feature
621
- - features/paging.feature
622
- - features/pointer_inputs.feature
623
- - features/presetting_content.feature
624
- - features/reference.feature
625
- - features/reset_password.feature
626
- - features/rules.feature
627
- - features/setup.feature
628
- - features/signup.feature
629
- - features/step_definitions/decko_steps.rb
630
- - features/step_definitions/email_steps.rb
631
- - features/step_definitions/history_steps.rb
632
- - features/step_definitions/web_steps.rb
633
- - features/step_definitions/window_steps.rb
634
- - features/structure.feature
635
- - features/support/debugger.rb
636
- - features/support/delayed_job.rb
637
- - features/support/env.rb
638
- - features/support/file.txt
639
- - features/support/image.png
640
- - features/support/image2.jpg
641
- - features/support/paths.rb
642
- - features/support/scopes.rb
643
- - features/support/wagn_env.rb
644
- - features/table_of_contents.feature
645
- - features/toolbar.feature
646
- - features/update_includers.feature
647
- - spec/controllers/card_controller_spec.rb
648
- - spec/controllers/location_spec.rb
649
- - spec/javascripts/helpers/.gitkeep
650
- - spec/javascripts/helpers/jasmine-jquery.js
651
- - spec/javascripts/support/jasmine.yml.erb
652
- - spec/javascripts/support/jasmine_config.rb
653
- - spec/javascripts/support/jasmine_runner.rb
654
- - spec/javascripts/wagn_spec.coffee
655
- - test/1.10.0-data-dump.sql
656
- - test/performance/card_create_test.rb
657
- - test/performance/fetch_test.rb
658
- - test/performance/homepage_test.rb
659
- - test/performance/render_test.rb
660
- - test/script/run_engine_deck.sh
661
- - test/script/run_mig.sh
662
- - test/test_helper.rb
558
+ test_files: []
data/.rspec DELETED
@@ -1,4 +0,0 @@
1
- --color
2
- --profile
3
- --backtrace
4
- --require spec_helper
data/Guardfile DELETED
@@ -1,32 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- # guard :rspec, cmd: 'bundle exec env COVERAGE=false rspec' do
5
- guard :rspec, cmd: "bundle exec wagn rspec" do
6
- watch(%r{^spec/.+_spec\.rb$})
7
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
8
- watch("spec/spec_helper.rb") { "spec" }
9
-
10
- # Rails example
11
- watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
12
- # watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
13
- # watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
14
-
15
- # watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
16
- # watch('config/routes.rb') { "spec/routing" }
17
- # watch('app/controllers/application_controller.rb') { "spec/controllers" }
18
-
19
- # Capybara features specs
20
- # watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
21
-
22
- # Wagn mods
23
- watch(%r{^mod/(.+)\.rb}) { |m| "mod/spec/#{m[1]}_spec.rb" }
24
- watch(%r{^tmp/mod/(.+)\.rb}) { |m| "mod/spec/#{m[1]}_spec.rb" }
25
-
26
- # Turnip features and steps
27
- # watch(%r{^spec/acceptance/(.+)\.feature$})
28
- # watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
29
-
30
- # callback(:start_begin) { puts "guard-rspec is watching ..." }
31
- # callback(:run_on_modifications_begin) { puts "<script>document.body.innerHTML = '';</script>" } # use js to clear textmate's html view
32
- end
data/decko.gemspec DELETED
@@ -1,42 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
-
3
- version = File.open(File.expand_path("../../card/VERSION", __FILE__)).read.chomp
4
-
5
- vbits = version.split('.').map &:to_i
6
- vplus = { 0 => 90, 1 => 100 } # can remove and hardcode after 1.0
7
- vminor = vplus[ vbits[0] ] + vbits[1]
8
- card_version = [1, vminor, vbits[2]].compact.map(&:to_s).join "."
9
- # see card.gemspec for explanation of all of this, which has been ham-handedly
10
- # cut and pasted here.
11
-
12
-
13
- Gem::Specification.new do |s|
14
- s.name = "decko"
15
- s.version = version
16
- s.authors = ["Ethan McCutchen", "Lewis Hoffman",
17
- "Gerry Gleason", "Philipp Kühl"]
18
- s.email = ["info@decko.org"]
19
-
20
- # s.date = '2013-12-20'
21
- s.summary = "structured wiki web platform"
22
- s.description = "a wiki approach to stuctured data, dynamic interaction, "\
23
- " and web design"
24
- s.homepage = "http://decko.org"
25
- s.licenses = ["GPL-2.0", "GPL-3.0"]
26
-
27
- s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
28
-
29
- s.bindir = "bin"
30
- s.executables = ["decko"]
31
- s.test_files = s.files.grep(%r{^(test|spec|features)/})
32
- s.require_paths = ["lib"]
33
-
34
- s.required_ruby_version = ">= 2.3"
35
-
36
- [
37
- ["rails", "~> 5.1"],
38
- ["card", card_version]
39
- ].each do |dep|
40
- s.add_runtime_dependency(*dep)
41
- end
42
- end
@@ -1,85 +0,0 @@
1
- @javascript
2
- Feature: File Upload
3
- I want to be able to upload files and images.
4
-
5
- Background:
6
- Given I am signed in as Joe Admin
7
-
8
- Scenario: Block creating a new empty file
9
- When I go to new File
10
- And I fill in "card_name" with "a test file"
11
- And I press "Submit"
12
- Then I should see "Problems with"
13
- And I should see "is missing"
14
-
15
- Scenario: Uploading a file
16
- When I go to new File
17
- And I upload the file "file.txt"
18
- Then I should see "file.txt 9 Bytes"
19
- When I press "Delete"
20
- Then I should see "Add File..."
21
- When I upload the file "file.txt"
22
- And I fill in "card_name" with "a test file"
23
- And I press "Submit"
24
- Then I should see "Download a test file"
25
-
26
- Scenario: Uploading and changing an image
27
- When I go to new Image
28
- And I upload the image "image.png"
29
- Then I should see "image.png 34.3 KB"
30
- And I fill in "card_name" with "a test image"
31
- And I press "Submit"
32
- Then I should see an image of size "large" and type "png"
33
- And I edit "a test image"
34
- And I upload the image "image2.jpg"
35
- Then I should see "image2.jpg 69.8 KB"
36
- And I press "Submit"
37
- Then I should see an image of size "large" and type "jpg"
38
-
39
- Scenario: Changing a coded image
40
- When I edit "*logo"
41
- And I upload the image "image2.jpg"
42
- Then I should see "image2.jpg 69.8 KB"
43
- And I press "Submit"
44
- Then I should see a non-coded image of size "large" and type "jpg"
45
-
46
- Scenario: uploading a file as a field in a form
47
- When I go to "/new Cardtype"
48
- And I fill in "card_name" with "complicated_card"
49
- And I press "Submit"
50
- And I create HTML card "complicated card+*type+*structure" with content "{{+image}}{{+description}}"
51
- And I go to "/new complicated_card"
52
- And I fill in "card_name" with "Vignesh has a complicated relationship"
53
- And I upload the image "image.png"
54
- Then I should see "image.png 34.3 KB"
55
- And I press "Submit"
56
- Then I should see an image of size "medium" and type "png"
57
-
58
- Scenario: updating a file as a field in a form
59
- When I go to "/new Cardtype"
60
- And I fill in "card_name" with "complicated_card"
61
- And I press "Submit"
62
- And I create HTML card "complicated card+*type+*structure" with content "{{+image}}{{+description}}"
63
- And I go to "/new complicated_card"
64
- And I fill in "card_name" with "Vignesh has a complicated relationship"
65
- And I upload the image "image.png"
66
- And I press "Submit"
67
- And I edit "Vignesh has a complicated relationship"
68
- And I upload the image "image2.jpg"
69
- Then I should see "image2.jpg 69.8 KB"
70
- And I press "Submit"
71
- Then I should see an image of size "medium" and type "jpg"
72
-
73
- Scenario: submit a form without updating a file
74
- When I go to "/new Cardtype"
75
- And I fill in "card_name" with "complicated_card"
76
- And I press "Submit"
77
- And I create HTML card "complicated card+*type+*structure" with content "{{+image}}{{+description}}"
78
- And I go to "/new complicated_card"
79
- And I fill in "card_name" with "Vignesh has a complicated relationship"
80
- And I upload the image "image.png"
81
- And I press "Submit"
82
- And I edit "Vignesh has a complicated relationship"
83
- And I press "Submit"
84
- Then I should see "+image"
85
- And I should see an image of size "medium" and type "png"
@@ -1,19 +0,0 @@
1
- @javascript
2
- Feature: autonaming
3
- In order to save effort from thinking up names
4
- As an Editor
5
- I want to be able to skip naming cards where names matter little
6
-
7
- Background:
8
- Given I am signed in as Joe Admin
9
- And I create Phrase card "Book+*type+*autoname" with content "Book_1"
10
-
11
- Scenario: Simple cardtype autoname
12
- When I go to new Book
13
- And I press "Submit"
14
- And I wait for ajax response
15
- Then I should see "Book_1"
16
- And I go to new Book
17
- And I press "Submit"
18
- And I wait for ajax response
19
- Then I should see "Book_2"
@@ -1,41 +0,0 @@
1
- @javascript
2
- Feature: Conflict
3
- When I am editing a card and somebody else changes it at the same time I want to
4
- get a helpful message to solve the conflict.
5
-
6
- Background:
7
- Given I am signed in as Joe Admin
8
- And I create Phrase card "Duck Soup" with content "Laurel and Hardy"
9
-
10
- Scenario: Two edits on a card at the same time
11
- When I edit "Duck Soup" filling in "Stan Hardy"
12
- And I open a new window for Joe User
13
- And I edit "Duck Soup" setting content to "Oliver Laurel"
14
-
15
- # We still have Joe Admin's edit in the first window but we're globally signed in as Joe User.
16
- # We resign-in as Joe Admin in Joe User's window so that we submit Joe Admin's edit as Joe Admin
17
- And I am signed out
18
- And I wait a sec
19
- And I am signed in as Joe Admin
20
- And I close window
21
- And I submit
22
- Then I should see "Conflict!"
23
- And I should see "Joe User has also been making changes."
24
- And I should see "Oliver " in color green
25
- And I should see "Stan" in color red
26
-
27
- Scenario: Two edits on a card at the same time but with the same change
28
- When I edit "Duck Soup" filling in "Stan Laurel"
29
- And I open a new window for Joe User
30
- And I edit "Duck Soup" setting content to "Stan Laurel"
31
- And I am signed out
32
- And I wait a sec
33
- And I am signed in as Joe Admin
34
- And I close window
35
- And I submit
36
- Then I should see "Conflict!"
37
- #And I should see "No difference between your changes and Joe User's version."
38
-
39
-
40
-
41
-
@@ -1,64 +0,0 @@
1
- @wip
2
- @javascript
3
- Feature: Follow interface
4
- In order to make use of notifications
5
- As an Editor
6
- I want simple follow interface on cards
7
-
8
- Background:
9
- Given I am signed in as Joe User
10
-
11
- # Scenario: Anonymous User should not see follow UI
12
- # Given I follow "Sign out"
13
- # When I go to the homepage
14
- # And I open the main card menu
15
- # Then I should not see "follow"
16
- #
17
- # Scenario: Following a Card
18
- # Given Joe User is not watching "Home+*self"
19
- # When I go to the homepage
20
- # And I open the main card menu
21
- # And In the main card menu I should not see "unfollow"
22
- # And In the main card menu I click "follow"
23
- # And I wait a sec
24
- # And I close the modal window
25
- # And I wait a sec
26
- # And I open the main card menu
27
- # Then In the main card menu I should see "unfollow"
28
- # And the card Home+*self+Joe User+*follow should point to "always"
29
- #
30
- # Scenario: Unfollowing a Card
31
- # Given Joe User is watching "Home+*self"
32
- # And the card Home+*self+Joe User+*follow should point to "always"
33
- # And I am on the homepage
34
- # And I open the main card menu
35
- # And In the main card menu I click "unfollow"
36
- # And I wait a sec
37
- # And I close the modal window
38
- # And I wait a sec
39
- # And I open the main card menu
40
- # Then In the main card menu I should see "follow"
41
- # And the card Home+*self+Joe User+*follow should point to "never"
42
- #
43
- #
44
- # Scenario: Following a Cardtype
45
- # When I go to card User
46
- # And I open the main card menu
47
- # Then In the main card menu I should see "follow"
48
- #
49
- # Scenario: A Card whose Cardtype is Followed
50
- # Given Joe User is watching "User+*type"
51
- # And I go to card Joe User
52
- # And I open the main card menu
53
- # Then In the main card menu I should see "(following)|unfollow"
54
- # And I wait a sec
55
-
56
- #too long for menu
57
- #
58
- # Scenario: Watching Cardtypes
59
- # Given Joe User is watching "Cardtype"
60
- # When I go to card User
61
- # Then In the main card footer I should see "watching Cardtype cards | watch User cards"
62
-
63
-
64
-