wagn 1.13.0.pre → 1.13.0.pre1
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 +4 -4
- data/VERSION +1 -1
- data/app/controllers/card_controller.rb +4 -2
- data/db/bootstrap/card_references.yml +443 -408
- data/db/bootstrap/card_revisions.yml +1025 -1116
- data/db/bootstrap/cards.yml +2168 -2151
- data/db/migrate_cards/20140512155840_add_script_cards.rb +1 -0
- data/features/step_definitions/wagn_steps.rb +16 -3
- data/features/watch.feature +1 -1
- data/lib/card/content.rb +1 -1
- data/lib/card/format.rb +6 -4
- data/lib/card/generators/card_migration/USAGE +1 -1
- data/lib/card/mailer.rb +2 -1
- data/lib/card/mailer/confirmation_email.html.erb +6 -2
- data/lib/wagn/all.rb +0 -8
- data/lib/wagn/application.rb +29 -19
- data/lib/wagn/commands.rb +104 -2
- data/{config → lib/wagn/config}/environments/cucumber.rb +0 -0
- data/{config → lib/wagn/config}/environments/development.rb +0 -0
- data/{config → lib/wagn/config}/environments/production.rb +0 -0
- data/{config → lib/wagn/config}/environments/profile.rb +0 -0
- data/{config → lib/wagn/config}/environments/test.rb +0 -0
- data/{config → lib/wagn/config}/initializers/01_init_ruby_extensions.rb +0 -0
- data/{config → lib/wagn/config}/initializers/airbrake.rb +0 -1
- data/{config → lib/wagn/config}/initializers/inflections.rb +0 -0
- data/{config → lib/wagn/config}/initializers/mime_types.rb +0 -0
- data/{config → lib/wagn/config}/initializers/notification.rb +0 -0
- data/{config → lib/wagn/config}/initializers/recaptcha.rb +0 -0
- data/{config → lib/wagn/config}/initializers/secret_token.rb +0 -0
- data/{config → lib/wagn/config}/initializers/session_store.rb +0 -0
- data/{config → lib/wagn/config}/initializers/uuid_state_file.rb +0 -0
- data/lib/wagn/generators/wagn/USAGE +5 -4
- data/lib/wagn/generators/wagn/templates/Gemfile +67 -2
- data/lib/wagn/generators/wagn/templates/config/application.rb +1 -1
- data/lib/wagn/generators/wagn/templates/config/cucumber.yml +1 -0
- data/lib/wagn/generators/wagn/templates/config/databases/frontbase.yml +4 -2
- data/lib/wagn/generators/wagn/templates/config/databases/ibm_db.yml +4 -2
- data/lib/wagn/generators/wagn/templates/config/databases/jdbc.yml +5 -3
- data/lib/wagn/generators/wagn/templates/config/databases/jdbcmysql.yml +4 -2
- data/lib/wagn/generators/wagn/templates/config/databases/jdbcpostgresql.yml +4 -2
- data/lib/wagn/generators/wagn/templates/config/databases/jdbcsqlite3.yml +4 -2
- data/lib/wagn/generators/wagn/templates/config/databases/mysql.yml +5 -10
- data/lib/wagn/generators/wagn/templates/config/databases/oracle.yml +4 -2
- data/lib/wagn/generators/wagn/templates/config/databases/postgresql.yml +4 -15
- data/lib/wagn/generators/wagn/templates/config/databases/sqlite3.yml +4 -6
- data/lib/wagn/generators/wagn/templates/rspec +5 -0
- data/lib/wagn/generators/wagn/wagn_generator.rb +84 -1
- data/lib/wagn/mods_spec_helper.rb +66 -0
- data/lib/wagn/tasks/db.rake +2 -1
- data/lib/wagn/tasks/wagn.rake +5 -1
- data/lib/wagn/wagn_spec_helper.rb +49 -0
- data/mods/core/sets/all/content.rb +3 -3
- data/mods/core/sets/all/phases.rb +1 -2
- data/mods/standard/sets/all/attach.rb +1 -1
- data/mods/standard/sets/all/comment.rb +3 -3
- data/mods/standard/sets/all/rich_html.rb +6 -7
- data/mods/standard/sets/right/account.rb +14 -5
- data/mods/standard/sets/rstar/rules.rb +17 -4
- data/mods/standard/sets/self/signin.rb +2 -2
- data/mods/standard/sets/type/pointer.rb +1 -3
- data/mods/standard/sets/type/scss.rb +1 -1
- data/mods/standard/sets/type/signup.rb +33 -12
- data/mods/standard/sets/type/user.rb +1 -1
- data/spec/javascripts/support/jasmine_runner.rb +1 -1
- data/spec/mods/standard/sets/all/base_spec.rb +4 -0
- data/spec/mods/standard/sets/type/signup_spec.rb +52 -15
- data/spec/spec_helper.rb +12 -53
- data/test/fixtures/card_references.yml +688 -653
- data/test/fixtures/card_revisions.yml +1741 -1832
- data/test/fixtures/cards.yml +3484 -3467
- metadata +20 -21
- data/Gemfile +0 -77
- data/config/application.rb +0 -15
- data/config/boot.rb +0 -8
- data/config/environment.rb +0 -8
- data/lib/wagn/generators/wagn/templates/config/database.yml +0 -35
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wagn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.0.
|
4
|
+
version: 1.13.0.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-06-
|
13
|
+
date: 2014-06-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -194,7 +194,6 @@ files:
|
|
194
194
|
- .tm_properties
|
195
195
|
- CONTRIBUTING.rdoc
|
196
196
|
- GPL
|
197
|
-
- Gemfile
|
198
197
|
- Guardfile
|
199
198
|
- LICENSE
|
200
199
|
- README.rdoc
|
@@ -225,23 +224,6 @@ files:
|
|
225
224
|
- app/controllers/card_controller.rb
|
226
225
|
- bin/wagn
|
227
226
|
- config.ru
|
228
|
-
- config/application.rb
|
229
|
-
- config/boot.rb
|
230
|
-
- config/environment.rb
|
231
|
-
- config/environments/cucumber.rb
|
232
|
-
- config/environments/development.rb
|
233
|
-
- config/environments/production.rb
|
234
|
-
- config/environments/profile.rb
|
235
|
-
- config/environments/test.rb
|
236
|
-
- config/initializers/01_init_ruby_extensions.rb
|
237
|
-
- config/initializers/airbrake.rb
|
238
|
-
- config/initializers/inflections.rb
|
239
|
-
- config/initializers/mime_types.rb
|
240
|
-
- config/initializers/notification.rb
|
241
|
-
- config/initializers/recaptcha.rb
|
242
|
-
- config/initializers/secret_token.rb
|
243
|
-
- config/initializers/session_store.rb
|
244
|
-
- config/initializers/uuid_state_file.rb
|
245
227
|
- config/routes.rb
|
246
228
|
- config/samples/asset_htaccess
|
247
229
|
- config/samples/cucumber.yml
|
@@ -348,6 +330,20 @@ files:
|
|
348
330
|
- lib/wagn/cli.rb
|
349
331
|
- lib/wagn/commands.rb
|
350
332
|
- lib/wagn/commands/application.rb
|
333
|
+
- lib/wagn/config/environments/cucumber.rb
|
334
|
+
- lib/wagn/config/environments/development.rb
|
335
|
+
- lib/wagn/config/environments/production.rb
|
336
|
+
- lib/wagn/config/environments/profile.rb
|
337
|
+
- lib/wagn/config/environments/test.rb
|
338
|
+
- lib/wagn/config/initializers/01_init_ruby_extensions.rb
|
339
|
+
- lib/wagn/config/initializers/airbrake.rb
|
340
|
+
- lib/wagn/config/initializers/inflections.rb
|
341
|
+
- lib/wagn/config/initializers/mime_types.rb
|
342
|
+
- lib/wagn/config/initializers/notification.rb
|
343
|
+
- lib/wagn/config/initializers/recaptcha.rb
|
344
|
+
- lib/wagn/config/initializers/secret_token.rb
|
345
|
+
- lib/wagn/config/initializers/session_store.rb
|
346
|
+
- lib/wagn/config/initializers/uuid_state_file.rb
|
351
347
|
- lib/wagn/exceptions.rb
|
352
348
|
- lib/wagn/generators/wagn/USAGE
|
353
349
|
- lib/wagn/generators/wagn/templates/Gemfile
|
@@ -355,7 +351,7 @@ files:
|
|
355
351
|
- lib/wagn/generators/wagn/templates/config.ru
|
356
352
|
- lib/wagn/generators/wagn/templates/config/application.rb
|
357
353
|
- lib/wagn/generators/wagn/templates/config/boot.rb
|
358
|
-
- lib/wagn/generators/wagn/templates/config/
|
354
|
+
- lib/wagn/generators/wagn/templates/config/cucumber.yml
|
359
355
|
- lib/wagn/generators/wagn/templates/config/databases/frontbase.yml
|
360
356
|
- lib/wagn/generators/wagn/templates/config/databases/ibm_db.yml
|
361
357
|
- lib/wagn/generators/wagn/templates/config/databases/jdbc.yml
|
@@ -370,10 +366,12 @@ files:
|
|
370
366
|
- lib/wagn/generators/wagn/templates/gitignore
|
371
367
|
- lib/wagn/generators/wagn/templates/public/files/htaccess
|
372
368
|
- lib/wagn/generators/wagn/templates/public/robots.txt
|
369
|
+
- lib/wagn/generators/wagn/templates/rspec
|
373
370
|
- lib/wagn/generators/wagn/templates/script/wagn
|
374
371
|
- lib/wagn/generators/wagn/wagn_generator.rb
|
375
372
|
- lib/wagn/location.rb
|
376
373
|
- lib/wagn/migration_helper.rb
|
374
|
+
- lib/wagn/mods_spec_helper.rb
|
377
375
|
- lib/wagn/script_wagn_loader.rb
|
378
376
|
- lib/wagn/tasks/.gitkeep
|
379
377
|
- lib/wagn/tasks/cucumber.rake
|
@@ -381,6 +379,7 @@ files:
|
|
381
379
|
- lib/wagn/tasks/test.rake
|
382
380
|
- lib/wagn/tasks/wagn.rake
|
383
381
|
- lib/wagn/version.rb
|
382
|
+
- lib/wagn/wagn_spec_helper.rb
|
384
383
|
- mods/core/chunks/include.rb
|
385
384
|
- mods/core/chunks/link.rb
|
386
385
|
- mods/core/chunks/literal.rb
|
data/Gemfile
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
source 'http://rubygems.org'
|
2
|
-
#source "http://gems.github.com"
|
3
|
-
|
4
|
-
gemspec
|
5
|
-
|
6
|
-
gem 'wagn', :path=>File.expand_path( '../', __FILE__ )
|
7
|
-
|
8
|
-
gem 'wagn-dev', :path=>File.expand_path( '../../wagn-dev', __FILE__ ), :group=>:development
|
9
|
-
gem "mysql2", "~> 0.3"
|
10
|
-
|
11
|
-
|
12
|
-
#note: handling of pretty much all of the below should be moved to wagn-dev
|
13
|
-
group :assets do
|
14
|
-
gem 'coffee-rails', "~> 3.1" # pretty code; compiles to JS
|
15
|
-
gem 'uglifier' # makes pretty code ugly again. compresses js/css for fast loading
|
16
|
-
|
17
|
-
gem 'jquery-rails', '~> 3.1' # main js framework, along with rails-specific unobtrusive lib
|
18
|
-
gem 'jquery-ui-rails', '~> 4.2' # main js framework, along with rails-specific unobtrusive lib
|
19
|
-
gem "jquery_mobile_rails", "~> 1.4.1"
|
20
|
-
|
21
|
-
gem 'tinymce-rails', '~> 3.4' # wysiwyg editor
|
22
|
-
|
23
|
-
# execjs is necessary for developing coffeescript. mac users have execjs built-in; don't need this one
|
24
|
-
gem 'therubyrhino', :platform=>:ruby # :ruby is MRI rubies, so if you use a mac ruby ...
|
25
|
-
end
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
group :test do
|
30
|
-
|
31
|
-
|
32
|
-
gem 'simplecov', '~> 0.7.1', :require => false #test coverage
|
33
|
-
|
34
|
-
# SPECS see spec dir
|
35
|
-
gem 'rspec-rails', "~> 2.6" # behavior-driven-development suite
|
36
|
-
|
37
|
-
gem 'guard-rspec', '~> 4.2' # trigger test runs based on file edits
|
38
|
-
if RUBY_PLATFORM =~ /darwin/
|
39
|
-
gem 'terminal-notifier-guard', '~> 1.5' # use growler notifications on macs
|
40
|
-
end
|
41
|
-
|
42
|
-
# CUKES see features dir
|
43
|
-
gem 'cucumber-rails', '~> 1.3', :require=>false # feature-driven-development suite
|
44
|
-
gem 'capybara', '~> 2.2.1' # note, selectors were breaking when we used 2.0.1
|
45
|
-
gem 'selenium-webdriver', '~> 2.39'
|
46
|
-
# gem 'capybara-webkit'
|
47
|
-
gem 'launchy' # lets cucumber launch browser windows
|
48
|
-
|
49
|
-
gem 'timecop', '=0.3.5' # not clear on use/need. referred to in shared_data.rb
|
50
|
-
# NOTE: had weird errors with timecop 0.4.4. would like to update when possible
|
51
|
-
|
52
|
-
gem 'spork', '>=0.9'
|
53
|
-
|
54
|
-
gem 'rr'#, '=1.0.0'
|
55
|
-
|
56
|
-
gem 'email_spec' #
|
57
|
-
gem 'database_cleaner', '~> 0.7' # used by cucumber for db transactions
|
58
|
-
|
59
|
-
gem 'turn', "~>0.8.3", :require => false # Pretty printed test output. (version constraint is to avoid minitest requirement)
|
60
|
-
gem 'minitest', "~>4.0"
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
#windows stuff
|
65
|
-
gem 'win32console', '~> 1.3', :platforms => ['mingw', 'mswin']
|
66
|
-
gem 'win32-process', '~> 0.6', :platforms => ['mingw', 'mswin']
|
67
|
-
end
|
68
|
-
|
69
|
-
gem 'ruby-prof', '~>0.12.1', :group=>:profile # profiling
|
70
|
-
|
71
|
-
group :debug do
|
72
|
-
gem 'byebug' if RUBY_VERSION =~ /^2/
|
73
|
-
gem 'debugger'
|
74
|
-
end
|
75
|
-
|
76
|
-
|
77
|
-
|
data/config/application.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'wagn/all'
|
4
|
-
|
5
|
-
|
6
|
-
module WagnTest
|
7
|
-
class Application < Wagn::Application
|
8
|
-
|
9
|
-
config.encoding = "utf-8"
|
10
|
-
|
11
|
-
config.recaptcha_public_key = '6LdhRssSAAAAAFfLt1Wkw43hoaA8RTIgso9-tvtc'
|
12
|
-
config.recaptcha_private_key = '6LdhRssSAAAAAGwzl069pJQBdmzCZigm1nV-dmqK'
|
13
|
-
|
14
|
-
end
|
15
|
-
end
|
data/config/boot.rb
DELETED
data/config/environment.rb
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3
|
3
|
-
#
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
-
# gem 'sqlite3'
|
6
|
-
|
7
|
-
#development:
|
8
|
-
# adapter: sqlite3
|
9
|
-
# database: files/development.sqlite3
|
10
|
-
|
11
|
-
# Warning: The database defined as "test" will be erased and
|
12
|
-
# re-generated from your development database when you run "rake".
|
13
|
-
# Do not set this file to the same as development or production.
|
14
|
-
#test:
|
15
|
-
# adapter: sqlite3
|
16
|
-
# database: files/test.sqlite3
|
17
|
-
#
|
18
|
-
#production:
|
19
|
-
# adapter: sqlite3
|
20
|
-
# database: files/production.sqlite3
|
21
|
-
|
22
|
-
production:
|
23
|
-
encoding: utf8
|
24
|
-
database: dummy
|
25
|
-
adapter: mysql2
|
26
|
-
username: root
|
27
|
-
password: ''
|
28
|
-
host: localhost
|
29
|
-
development:
|
30
|
-
encoding: utf8
|
31
|
-
database: dummy
|
32
|
-
adapter: mysql2
|
33
|
-
username: root
|
34
|
-
password: ''
|
35
|
-
host: localhost
|