xing-framework 0.2.6 → 0.2.7.pre.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/default_configuration/base_app/CONTRIBUTING.md +1 -0
  3. data/default_configuration/base_app/Gemfile +0 -1
  4. data/default_configuration/base_app/Gemfile.lock +3 -92
  5. data/default_configuration/base_app/README.md +5 -4
  6. data/default_configuration/base_app/backend/Gemfile.lock +44 -40
  7. data/default_configuration/base_app/backend/config/application.rb +2 -1
  8. data/default_configuration/base_app/backend/config/secrets.yml.ci +1 -0
  9. data/default_configuration/base_app/backend/config/secrets.yml.example +6 -4
  10. data/default_configuration/base_app/frontend/npm-shrinkwrap.json +1760 -1600
  11. data/default_configuration/base_app/frontend/package.json +24 -21
  12. data/default_configuration/templates/CHANGELOG.md +1 -0
  13. data/default_configuration/templates/CODE_OF_CONDUCT.md +50 -0
  14. data/default_configuration/templates/CONTRIBUTING.md +1 -0
  15. data/default_configuration/templates/README.md +22 -0
  16. data/default_configuration/templates/backend/config/secrets.yml +3 -0
  17. data/default_configuration/templates/backend/config/secrets.yml.ci +2 -0
  18. data/default_configuration/templates/backend/config/secrets.yml.example +4 -0
  19. data/lib/xing/cli/generators/new_project/user_input.rb +33 -0
  20. data/lib/xing/cli/generators/new_project.rb +53 -40
  21. data/lib/xing/cli/templaters/code_of_conduct_templater.rb +7 -0
  22. data/lib/xing/cli/templaters/control_files_templater.rb +12 -0
  23. data/lib/xing/cli/templaters/database_yml_templater.rb +9 -0
  24. data/lib/xing/cli/templaters/doc_files_templater.rb +9 -0
  25. data/lib/xing/cli/templaters/secrets_yml_templater.rb +9 -0
  26. data/lib/xing/cli/templaters.rb +28 -0
  27. data/spec/cli/generators/new_project/user_input_spec.rb +41 -0
  28. data/spec/cli/generators/new_project_spec.rb +46 -3
  29. data/spec/cli/templaters_spec.rb +125 -0
  30. metadata +31 -6
  31. data/default_configuration/templates/dot.gitignore +0 -50
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6d7b5686e34f919750bf54ef8117514d21ee0a6
4
- data.tar.gz: 61beda0d548b04a85e0f1c4d8d25afe345e99655
3
+ metadata.gz: 77900a3c51a6ea7ddd7771f32c6fbf4d3baba81e
4
+ data.tar.gz: 19d4480ac65396eeead26c92ab0438ca6aedda58
5
5
  SHA512:
6
- metadata.gz: c37746c8ea0948263bb399701f5a84bb9136f687fc582e93a8df5925ac1d6d473f8866fc8f367799b6c614029c78e1502ecee7090b21402711bf885dd948a8ab
7
- data.tar.gz: 2bd2687d31fd0e07b3046d61ff7cfe1a8491a4cf155f48c7c296643c747c09646d1b105fa35921b379ed9e7d749c18de688d36f39aab731ac91b4618c7fcc9e4
6
+ metadata.gz: 877bca2ecbf2cfa0581c01214003ff274c4fadf40536d208ccd5b3a3711b52cffcb2008a062036d1717fd4ebf62621ca5fe1d95f20bde0d0658c26e03365ec48
7
+ data.tar.gz: aa7a136603164ee251c14ce0b39eb8e5697ac939cd7c617842c63323f46bb9f113538798cadb1d16ee03925f19bb8fcf79db27422b14667271828b64ec5d058c
@@ -0,0 +1 @@
1
+ Coming Soon
@@ -1,5 +1,4 @@
1
1
  source "https://rubygems.org"
2
- gem 'rails', '4.2.2'
3
2
  gem "capistrano"
4
3
  gem 'rack'
5
4
  gem 'compass'
@@ -1,53 +1,15 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- actionmailer (4.2.2)
5
- actionpack (= 4.2.2)
6
- actionview (= 4.2.2)
7
- activejob (= 4.2.2)
8
- mail (~> 2.5, >= 2.5.4)
9
- rails-dom-testing (~> 1.0, >= 1.0.5)
10
- actionpack (4.2.2)
11
- actionview (= 4.2.2)
12
- activesupport (= 4.2.2)
13
- rack (~> 1.6)
14
- rack-test (~> 0.6.2)
15
- rails-dom-testing (~> 1.0, >= 1.0.5)
16
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
17
- actionview (4.2.2)
18
- activesupport (= 4.2.2)
19
- builder (~> 3.1)
20
- erubis (~> 2.7.0)
21
- rails-dom-testing (~> 1.0, >= 1.0.5)
22
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
23
- activejob (4.2.2)
24
- activesupport (= 4.2.2)
25
- globalid (>= 0.3.0)
26
- activemodel (4.2.2)
27
- activesupport (= 4.2.2)
28
- builder (~> 3.1)
29
- activerecord (4.2.2)
30
- activemodel (= 4.2.2)
31
- activesupport (= 4.2.2)
32
- arel (~> 6.0)
33
- activesupport (4.2.2)
34
- i18n (~> 0.7)
35
- json (~> 1.7, >= 1.7.7)
36
- minitest (~> 5.1)
37
- thread_safe (~> 0.3, >= 0.3.4)
38
- tzinfo (~> 1.1)
39
- arel (6.0.0)
40
- builder (3.2.2)
41
4
  calibrate (0.0.1)
42
5
  caliph (0.3.1)
43
6
  capistrano (3.4.0)
44
7
  i18n
45
8
  rake (>= 10.0.0)
46
9
  sshkit (~> 1.3)
47
- capistrano-passenger (0.0.5)
10
+ capistrano-passenger (0.2.0)
48
11
  capistrano (~> 3.0)
49
12
  chunky_png (1.3.4)
50
- colorize (0.7.7)
51
13
  compass (1.0.3)
52
14
  chunky_png (= 1.3.4)
53
15
  compass-core (~> 1.0.2)
@@ -62,78 +24,28 @@ GEM
62
24
  sass (>= 3.2, < 3.5)
63
25
  edict (0.0.1)
64
26
  calibrate (> 0)
65
- erubis (2.7.0)
66
27
  ffi (1.9.8)
67
- globalid (0.3.5)
68
- activesupport (>= 4.1.0)
69
28
  i18n (0.7.0)
70
- json (1.8.3)
71
- loofah (2.0.2)
72
- nokogiri (>= 1.5.9)
73
- mail (2.6.3)
74
- mime-types (>= 1.16, < 3)
75
29
  mattock (0.10.1)
76
30
  calibrate (~> 0.0.1)
77
31
  caliph (~> 0.3)
78
32
  rake (~> 10.0)
79
33
  tilt (> 0)
80
34
  valise (~> 1.1)
81
- mime-types (2.6.1)
82
- mini_portile2 (2.0.0)
83
- minitest (5.7.0)
84
35
  multi_json (1.11.0)
85
36
  net-scp (1.2.1)
86
37
  net-ssh (>= 2.6.5)
87
- net-ssh (2.9.2)
88
- nokogiri (1.6.7.1)
89
- mini_portile2 (~> 2.0.0.rc2)
38
+ net-ssh (3.0.2)
90
39
  rack (1.6.4)
91
- rack-test (0.6.3)
92
- rack (>= 1.0)
93
- rails (4.2.2)
94
- actionmailer (= 4.2.2)
95
- actionpack (= 4.2.2)
96
- actionview (= 4.2.2)
97
- activejob (= 4.2.2)
98
- activemodel (= 4.2.2)
99
- activerecord (= 4.2.2)
100
- activesupport (= 4.2.2)
101
- bundler (>= 1.3.0, < 2.0)
102
- railties (= 4.2.2)
103
- sprockets-rails
104
- rails-deprecated_sanitizer (1.0.3)
105
- activesupport (>= 4.2.0.alpha)
106
- rails-dom-testing (1.0.6)
107
- activesupport (>= 4.2.0.beta, < 5.0)
108
- nokogiri (~> 1.6.0)
109
- rails-deprecated_sanitizer (>= 1.0.1)
110
- rails-html-sanitizer (1.0.2)
111
- loofah (~> 2.0)
112
- railties (4.2.2)
113
- actionpack (= 4.2.2)
114
- activesupport (= 4.2.2)
115
- rake (>= 0.8.7)
116
- thor (>= 0.18.1, < 2.0)
117
40
  rake (10.5.0)
118
41
  rb-fsevent (0.9.5)
119
42
  rb-inotify (0.9.5)
120
43
  ffi (>= 0.5.0)
121
44
  sass (3.4.14)
122
- sprockets (3.2.0)
123
- rack (~> 1.0)
124
- sprockets-rails (2.3.1)
125
- actionpack (>= 3.0)
126
- activesupport (>= 3.0)
127
- sprockets (>= 2.8, < 4.0)
128
- sshkit (1.7.1)
129
- colorize (>= 0.7.0)
45
+ sshkit (1.8.1)
130
46
  net-scp (>= 1.1.2)
131
47
  net-ssh (>= 2.8.0)
132
- thor (0.19.1)
133
- thread_safe (0.3.5)
134
48
  tilt (2.0.2)
135
- tzinfo (1.2.2)
136
- thread_safe (~> 0.1)
137
49
  valise (1.2.0)
138
50
  xing-root (0.0.9)
139
51
  caliph (~> 0.3)
@@ -148,7 +60,6 @@ DEPENDENCIES
148
60
  capistrano-passenger
149
61
  compass
150
62
  rack
151
- rails (= 4.2.2)
152
63
  xing-root
153
64
 
154
65
  BUNDLED WITH
@@ -1,11 +1,13 @@
1
1
  The Xing Framework
2
2
  ===
3
3
 
4
+ ***To learn more about the Xing Framework, read the [Xing Book](https://xingframework.gitbooks.io/the-xing-framework/content/).***
5
+
4
6
  Xing Application Base
5
7
  ---
6
8
 
7
9
  The Xing Framework is a cutting edge web and mobile development platform by
8
- Logical Reality Design, Inc. It is designed to provide a completely modern
10
+ Logical Reality Design, Inc. It is designed to provide a completely modern
9
11
  (and even somewhat future-proofed) API + SPA web development platform with
10
12
  sensible defaults, solid conventions, and ease of rapid development. Xing uses
11
13
  Rails (4.2) on the backend and AngularJS (1.4) on the frontend. Most of the
@@ -14,11 +16,10 @@ have been pre-solved in Xing.
14
16
 
15
17
  The Xing Application Base contains the starting files for a new Xing Framework application. Don't depend
16
18
  on this repository - it is a temporary solution and will go away soon as we can move these into proper
17
- templates.
19
+ templates.
18
20
 
19
21
 
20
22
  [![Code Climate](https://codeclimate.com/github/XingFramework/xing-application-base/badges/gpa.svg)](https://codeclimate.com/github/XingFramework/xing-application-base)
21
- [![Test Coverage](https://codeclimate.com/github/XingFramework/xing-application-base/badges/coverage.svg)](https://codeclimate.com/github/XingFramework/xing-application-base/coverage)
22
- [![Build Status](https://travis-ci.org/XingFramework/xing-application-base.svg?branch=master)](https://travis-ci.org/XingFramework/xing-application-base)
23
23
  [![Dependency Status](https://gemnasium.com/XingFramework/xing-application-base.svg)](https://gemnasium.com/XingFramework/xing-application-base)
24
24
 
25
+ The Xing Framework strives to be an open and inclusive project. All Contributors to the Xing Framework must abide by our [Code Of Conduct](http://github.com/XingFramework/xing-application-base/blob/master/CODE_OF_CONDUCT.md)
@@ -1,38 +1,38 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- actionmailer (4.2.5)
5
- actionpack (= 4.2.5)
6
- actionview (= 4.2.5)
7
- activejob (= 4.2.5)
4
+ actionmailer (4.2.5.1)
5
+ actionpack (= 4.2.5.1)
6
+ actionview (= 4.2.5.1)
7
+ activejob (= 4.2.5.1)
8
8
  mail (~> 2.5, >= 2.5.4)
9
9
  rails-dom-testing (~> 1.0, >= 1.0.5)
10
- actionpack (4.2.5)
11
- actionview (= 4.2.5)
12
- activesupport (= 4.2.5)
10
+ actionpack (4.2.5.1)
11
+ actionview (= 4.2.5.1)
12
+ activesupport (= 4.2.5.1)
13
13
  rack (~> 1.6)
14
14
  rack-test (~> 0.6.2)
15
15
  rails-dom-testing (~> 1.0, >= 1.0.5)
16
16
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
- actionview (4.2.5)
18
- activesupport (= 4.2.5)
17
+ actionview (4.2.5.1)
18
+ activesupport (= 4.2.5.1)
19
19
  builder (~> 3.1)
20
20
  erubis (~> 2.7.0)
21
21
  rails-dom-testing (~> 1.0, >= 1.0.5)
22
22
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
23
  active_model_serializers (0.9.4)
24
24
  activemodel (>= 3.2)
25
- activejob (4.2.5)
26
- activesupport (= 4.2.5)
25
+ activejob (4.2.5.1)
26
+ activesupport (= 4.2.5.1)
27
27
  globalid (>= 0.3.0)
28
- activemodel (4.2.5)
29
- activesupport (= 4.2.5)
28
+ activemodel (4.2.5.1)
29
+ activesupport (= 4.2.5.1)
30
30
  builder (~> 3.1)
31
- activerecord (4.2.5)
32
- activemodel (= 4.2.5)
33
- activesupport (= 4.2.5)
31
+ activerecord (4.2.5.1)
32
+ activemodel (= 4.2.5.1)
33
+ activesupport (= 4.2.5.1)
34
34
  arel (~> 6.0)
35
- activesupport (4.2.5)
35
+ activesupport (4.2.5.1)
36
36
  i18n (~> 0.7)
37
37
  json (~> 1.7, >= 1.7.7)
38
38
  minitest (~> 5.1)
@@ -61,7 +61,7 @@ GEM
61
61
  capybara-email (2.4.0)
62
62
  capybara (~> 2.4)
63
63
  mail
64
- celluloid (0.17.2)
64
+ celluloid (0.17.3)
65
65
  celluloid-essentials
66
66
  celluloid-extras
67
67
  celluloid-fsm
@@ -84,7 +84,7 @@ GEM
84
84
  concurrent-ruby (1.0.0)
85
85
  connection_pool (2.2.0)
86
86
  database_cleaner (1.3.0)
87
- devise (3.5.3)
87
+ devise (3.5.5)
88
88
  bcrypt (~> 3.0)
89
89
  orm_adapter (~> 0.1)
90
90
  railties (>= 3.2.6, < 5)
@@ -119,10 +119,11 @@ GEM
119
119
  mail (2.6.3)
120
120
  mime-types (>= 1.16, < 3)
121
121
  mime-types (2.99)
122
+ mime-types-data (3.2015.1120)
122
123
  mini_portile2 (2.0.0)
123
- minitest (5.8.3)
124
+ minitest (5.8.4)
124
125
  multi_json (1.11.2)
125
- nokogiri (1.6.7.1)
126
+ nokogiri (1.6.7.2)
126
127
  mini_portile2 (~> 2.0.0.rc2)
127
128
  orm_adapter (0.5.0)
128
129
  pg (0.18.1)
@@ -136,16 +137,16 @@ GEM
136
137
  rack
137
138
  rack-test (0.6.3)
138
139
  rack (>= 1.0)
139
- rails (4.2.5)
140
- actionmailer (= 4.2.5)
141
- actionpack (= 4.2.5)
142
- actionview (= 4.2.5)
143
- activejob (= 4.2.5)
144
- activemodel (= 4.2.5)
145
- activerecord (= 4.2.5)
146
- activesupport (= 4.2.5)
140
+ rails (4.2.5.1)
141
+ actionmailer (= 4.2.5.1)
142
+ actionpack (= 4.2.5.1)
143
+ actionview (= 4.2.5.1)
144
+ activejob (= 4.2.5.1)
145
+ activemodel (= 4.2.5.1)
146
+ activerecord (= 4.2.5.1)
147
+ activesupport (= 4.2.5.1)
147
148
  bundler (>= 1.3.0, < 2.0)
148
- railties (= 4.2.5)
149
+ railties (= 4.2.5.1)
149
150
  sprockets-rails
150
151
  rails-deprecated_sanitizer (1.0.3)
151
152
  activesupport (>= 4.2.0.alpha)
@@ -153,14 +154,14 @@ GEM
153
154
  activesupport (>= 4.2.0.beta, < 5.0)
154
155
  nokogiri (~> 1.6.0)
155
156
  rails-deprecated_sanitizer (>= 1.0.1)
156
- rails-html-sanitizer (1.0.2)
157
+ rails-html-sanitizer (1.0.3)
157
158
  loofah (~> 2.0)
158
159
  rails-rfc6570 (0.3.0)
159
160
  actionpack (>= 4, < 5)
160
161
  addressable (~> 2.3)
161
- railties (4.2.5)
162
- actionpack (= 4.2.5)
163
- activesupport (= 4.2.5)
162
+ railties (4.2.5.1)
163
+ actionpack (= 4.2.5.1)
164
+ activesupport (= 4.2.5.1)
164
165
  rake (>= 0.8.7)
165
166
  thor (>= 0.18.1, < 2.0)
166
167
  rake (10.5.0)
@@ -196,12 +197,12 @@ GEM
196
197
  rspec (>= 3.0, < 3.99)
197
198
  rspec-support (3.1.2)
198
199
  rubyzip (1.1.7)
199
- selenium-webdriver (2.48.1)
200
+ selenium-webdriver (2.49.0)
200
201
  childprocess (~> 0.5)
201
202
  multi_json (~> 1.0)
202
203
  rubyzip (~> 1.0)
203
204
  websocket (~> 1.0)
204
- sidekiq (3.5.3)
205
+ sidekiq (3.5.4)
205
206
  celluloid (~> 0.17.2)
206
207
  connection_pool (~> 2.2, >= 2.2.0)
207
208
  json (~> 1.0)
@@ -212,8 +213,8 @@ GEM
212
213
  multi_json (~> 1.0)
213
214
  simplecov-html (~> 0.9.0)
214
215
  simplecov-html (0.9.0)
215
- sinatra (1.4.6)
216
- rack (~> 1.4)
216
+ sinatra (1.4.7)
217
+ rack (~> 1.5)
217
218
  rack-protection (~> 1.4)
218
219
  tilt (>= 1.3, < 3)
219
220
  sprockets (3.5.2)
@@ -242,20 +243,23 @@ GEM
242
243
  rspec-steps (~> 2.1)
243
244
  text-table (~> 1.2.3)
244
245
  websocket (1.2.2)
245
- xing-backend (0.0.23)
246
+ xing-backend (0.0.25)
246
247
  active_model_serializers (~> 0.9, >= 0.9.3)
247
248
  builder (~> 3.1)
248
249
  hash_validator (~> 0.4)
249
250
  i18n (~> 0.7)
250
251
  json_spec (~> 1.1)
251
252
  rack-cors (~> 0.4)
252
- rails (~> 4.2)
253
+ rails (>= 4.2.5.1, < 4.3)
253
254
  rails-rfc6570 (~> 0.3)
254
255
  selenium-webdriver
255
256
  sidekiq (~> 3.3)
256
257
  sinatra (~> 1.3)
257
258
  typhoeus (~> 0.7)
259
+ xing-dev-assets (> 0, <= 1.0)
258
260
  xing_backend_token_auth (~> 0.1, >= 0.1.31)
261
+ xing-dev-assets (0.0.1)
262
+ rack (~> 1.6)
259
263
  xing_backend_token_auth (0.1.32)
260
264
  devise (~> 3.2)
261
265
  rails (~> 4.1)
@@ -58,9 +58,10 @@ module APP_MODULE
58
58
  # Version of your assets, change this if you want to expire all your assets
59
59
  config.assets.version = '1.0'
60
60
  config.site_title = "Another Quality Xing App"
61
+ allowed_origins = instance.secrets.allowed_origins
61
62
  config.middleware.insert_before Rack::Runtime, Rack::Cors do
62
63
  allow do
63
- origins '*'
64
+ origins allowed_origins
64
65
  resource '*',
65
66
  :headers => :any,
66
67
  :expose => ['Location', 'access-token', 'token-type', 'client', 'expiry', 'uid'],
@@ -17,6 +17,7 @@ test: &test
17
17
  password: password
18
18
  sitemap_base_url: http://localhost:3000/
19
19
  asset_host: http://localhost:3000/
20
+ allowed_origins: '*'
20
21
 
21
22
  development:
22
23
  <<: *test
@@ -11,8 +11,8 @@
11
11
  # if you're sharing your code publicly.
12
12
 
13
13
  development:
14
- secret_key_base:
15
- deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
14
+ secret_key_base:
15
+ deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
16
16
  smtp:
17
17
  address: smtp.CHANGEME.com
18
18
  port: 587
@@ -32,10 +32,11 @@ development:
32
32
  password: password
33
33
  sitemap_base_url: http://localhost:3000/
34
34
  asset_host: http://localhost:3000/
35
+ allowed_origins: '*'
35
36
 
36
37
  test:
37
- secret_key_base:
38
- deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
38
+ secret_key_base:
39
+ deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
39
40
  smtp:
40
41
  address: smtp.CHANGEME.com
41
42
  port: 587
@@ -52,6 +53,7 @@ test:
52
53
  password: password
53
54
  sitemap_base_url: http://localhost:3000/
54
55
  asset_host: http://localhost:3000/
56
+ allowed_origins: '*'
55
57
 
56
58
  # Do not keep production secrets in the repository,
57
59
  # instead read values from the environment.