decko 0.9.0 → 0.9.1

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
- SHA1:
3
- metadata.gz: 3bfe665a6798cb6d119bb776e202dce24979bf5f
4
- data.tar.gz: abb5cb4c0a969cdbbc16c8dd4db5ad56ac0525c2
2
+ SHA256:
3
+ metadata.gz: b570615d3229e0e2787a1852b4ee244ab253b90d84b94fbf5f8f0768d4bcfc41
4
+ data.tar.gz: 7dffd146a253b8be1d93e1912ef89a4aca2d7f4d26d865565ad50f0e98065d03
5
5
  SHA512:
6
- metadata.gz: ac95d083126c0a2aad3b617f17791b7598fa774ee86ff967c972307a09a7541f2a7729f55a5a1fc70a4845aac613e89d976014445bef24ae0be6980a998a5f7b
7
- data.tar.gz: 8c2fa80ddceb0366c36fceebf0b445dc53c92286b6f7bf1c976f2ab078c420d9bb5218439dc16a9845221a217c7c765e0fc499ab1b216638aef38c7505f82ed3
6
+ metadata.gz: 8a7df9387389e0d937499a03d9ddd61784dada32213e17bc3f50de9ba5e28add135bfcdbfed692c8b142b372d5be8b34cbf6052318a3920a7c5d17d221a5cbd2
7
+ data.tar.gz: 37ad575bd07c5e565eeb439757172ca733b74db9c9c105006306a5876457bcd008e334dba1bdf7873db61917bcdd056746a6de6e9a40c8df8cf0b558a107204a
@@ -92,11 +92,9 @@ Decko.application.class.configure do
92
92
 
93
93
  # Use Pry instead of IRB
94
94
  silence_warnings do
95
- begin
96
- require "pry"
97
- config.console = Pry
98
- rescue LoadError
99
- end
95
+ require "pry"
96
+ config.console = Pry
97
+ rescue LoadError
100
98
  end
101
99
  # config.session_store :cookie_store
102
100
  end
@@ -94,11 +94,9 @@ Decko.application.class.configure do
94
94
 
95
95
  # Use Pry instead of IRB
96
96
  silence_warnings do
97
- begin
98
- require "pry"
99
- config.console = Pry
100
- rescue LoadError
101
- end
97
+ require "pry"
98
+ config.console = Pry
99
+ rescue LoadError
102
100
  end
103
101
  #config.session_store :cookie_store
104
102
  end
@@ -68,10 +68,8 @@ Decko.application.class.configure do
68
68
  config.rescue_all_in_controller = false
69
69
  # Use Pry instead of IRB
70
70
  silence_warnings do
71
- begin
72
- require "pry"
73
- config.console = Pry
74
- rescue LoadError
75
- end
71
+ require "pry"
72
+ config.console = Pry
73
+ rescue LoadError
76
74
  end
77
75
  end
@@ -48,11 +48,9 @@ module Decko
48
48
  ActiveRecord::Base.establish_connection(::Rails.env.to_sym)
49
49
  end
50
50
  ActiveSupport.on_load(:after_initialize) do
51
- begin
52
- require_dependency "card" if Cardio.load_card?
53
- rescue ActiveRecord::StatementInvalid => e
54
- ::Rails.logger.warn "database not available[#{::Rails.env}] #{e}"
55
- end
51
+ require_dependency "card" if Cardio.load_card?
52
+ rescue ActiveRecord::StatementInvalid => e
53
+ ::Rails.logger.warn "database not available[#{::Rails.env}] #{e}"
56
54
  end
57
55
  end
58
56
  end
@@ -30,7 +30,7 @@ gem 'thin'
30
30
  group :test do
31
31
  gem 'capybara-puma'
32
32
  gem 'rspec'
33
- gem 'rspec-rails', '~>3.6.1' # behavior-driven-development suite
33
+ gem 'rspec-rails', '~>4.0.0.beta2' # behavior-driven-development suite
34
34
  gem 'spork', '>=0.9'
35
35
  gem 'rubocop'
36
36
  gem 'rubocop-decko'
@@ -83,7 +83,6 @@ end
83
83
 
84
84
  group :test do
85
85
  gem 'capybara-select2', :git=>'https://github.com/brunocavalcante/capybara-select2'
86
- gem 'fog'
87
86
  gem 'fog-aws'
88
87
  gem 'rails-controller-testing'
89
88
  gem 'rspec-html-matchers', '0.9.1'
@@ -99,7 +98,7 @@ group :test do
99
98
  end
100
99
 
101
100
  # CUKES see features dir
102
- gem 'cucumber-rails', '~> 1.6', :require=>false # feature-driven-development suite
101
+ gem 'cucumber-rails', '~> 1.8.0', :require=>false # feature-driven-development suite
103
102
  gem 'capybara', '~> 3.12'
104
103
  gem 'selenium-webdriver', '3.141.0'
105
104
  gem 'chromedriver-helper', '~> 2.1.0'
@@ -112,7 +111,7 @@ group :test do
112
111
  gem 'email_spec' #
113
112
  gem 'database_cleaner', '~> 1.5 ' # used by cucumber for db transactions
114
113
 
115
- gem 'turn', :require => false # Pretty printed test output. (version constraint is to avoid minitest requirement)
114
+ # gem 'turn', :require => false # Pretty printed test output. (version constraint is to avoid minitest requirement)
116
115
  gem 'minitest'
117
116
 
118
117
  gem 'i18n-tasks', '~> 0.9.5' # See if I18n keys are missing or unused
@@ -45,19 +45,19 @@ module <%= app_const_base %>
45
45
  # File storage options (see http://decko.org/file_storage_options)
46
46
  # options include: local, cloud, web, coded
47
47
  # defaults to local
48
- # For cloud storage use the following config options and add the gems
49
- # "fog" and "fog-aws" to your Gemfile.
48
+ # For cloud storage use the following config options and add the corresponding fog gem
49
+ # for your cloud service. For example for AWS add "fog-aws" to your Gemfile.
50
50
  # config.file_default_bucket = :my_bucket
51
51
  # config.file_buckets = {
52
52
  # my_bucket: {
53
- # provider: "fog/aws",
54
53
  # directory: "bucket-name",
55
54
  # subdirectory: "files",
56
55
  # credentials: {
57
56
  # provider: 'AWS', # required
58
57
  # aws_access_key_id: 'key', # required
59
58
  # aws_secret_access_key: 'secret-key', # required
60
- # region: 'eu-central-1', # optional, defaults to 'us-east-1'
59
+ # use_iam_profile: true, # optional, defaults to false
60
+ # region: 'eu-central-1', # optional, defaults to 'us-east-1'
61
61
  # host: 's3.example.com', # optional, defaults to nil
62
62
  # endpoint: 'https://s3.example.com:8080' # optional, defaults to nil
63
63
  # },
@@ -1,3 +1,4 @@
1
+
1
2
  if defined?(CypressDev)
2
3
  CypressDev.configure do |c|
3
4
  c.cypress_folder = File.join Decko.gem_root, "spec", "cypress"
@@ -0,0 +1,2 @@
1
+ class ApplicationController < ActionController::Base
2
+ end
@@ -6,7 +6,7 @@ require_dependency "card/mailer" # otherwise Net::SMTPError rescues can cause
6
6
  # problems when error raised comes before Card::Mailer is mentioned
7
7
 
8
8
  # Decko's only controller.
9
- class CardController < ActionController::Base
9
+ class CardController < ApplicationController
10
10
  include Card::Env::Location
11
11
  include Recaptcha::Verify
12
12
  include Decko::Response
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.9.0
4
+ version: 0.9.1
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: 2019-10-02 00:00:00.000000000 Z
14
+ date: 2019-10-16 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: card
@@ -19,14 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 1.99.0
22
+ version: 1.99.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 1.99.0
29
+ version: 1.99.1
30
30
  description: a wiki approach to stuctured data, dynamic interaction, and web design
31
31
  email:
32
32
  - info@decko.org
@@ -133,6 +133,7 @@ files:
133
133
  - rails/assets/jasmine/500.html
134
134
  - rails/assets/jasmine/card_form.html
135
135
  - rails/assets/jquery.min.map
136
+ - rails/controllers/application_controller.rb
136
137
  - rails/controllers/card_controller.rb
137
138
  - rails/engine-routes.rb
138
139
  - script/autospec
@@ -152,15 +153,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
153
  requirements:
153
154
  - - ">="
154
155
  - !ruby/object:Gem::Version
155
- version: 2.4.1
156
+ version: '2.5'
156
157
  required_rubygems_version: !ruby/object:Gem::Requirement
157
158
  requirements:
158
159
  - - ">="
159
160
  - !ruby/object:Gem::Version
160
161
  version: '0'
161
162
  requirements: []
162
- rubyforge_project:
163
- rubygems_version: 2.6.13
163
+ rubygems_version: 3.0.6
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: structured wiki web platform