appscrolls 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog.md CHANGED
@@ -18,6 +18,13 @@
18
18
  * `eycloud` - only unicorn and passenger initially supported
19
19
  * `eycloud` - don't check for available app name - this should be implemented in ey_cli
20
20
 
21
+ ### v0.8.2
22
+
23
+ PUBLIC RELEASE! http://drnicwilliams.com/2012/04/10/instant-new-rails-applications-with-the-app-scrolls/
24
+
25
+ * `delayed_job` - always get admin dashboard
26
+ * `mysql` - always create local databases
27
+
21
28
  ## v0.7
22
29
 
23
30
  New name! "App Scrolls"
@@ -28,7 +28,7 @@ module AppScrollsScrolls
28
28
 
29
29
 
30
30
  def resolve_scrolls
31
- @resolve_scrolls ||= scrolls_with_dependencies.sort
31
+ @resolve_scrolls ||= scrolls_with_dependencies.sort.sort
32
32
  end
33
33
 
34
34
  def scroll_classes
@@ -1,19 +1,18 @@
1
1
  gem 'delayed_job_active_record'
2
2
  gem 'delayed_job_admin'
3
3
 
4
- if config["admin"]
5
- inject_into_class "app/controllers/application_controller.rb", "ApplicationController" do
6
- <<-RUBY
7
-
8
- def delayed_job_admin_authentication
9
- # authentication_logic_goes_here
10
- true
11
- end
4
+ inject_into_class "app/controllers/application_controller.rb", "ApplicationController" do
5
+ <<-RUBY
12
6
 
13
- RUBY
14
- end
15
-
16
- create_file "readmes/delayed_job_admin.md", <<-MD
7
+ def delayed_job_admin_authentication
8
+ # authentication_logic_goes_here
9
+ true
10
+ end
11
+
12
+ RUBY
13
+ end
14
+
15
+ create_file "readmes/delayed_job_admin.md", <<-MD
17
16
  # Delayed Job Admin README
18
17
 
19
18
  Delayed Job Admin console is available at [/delayed_job_admin](http://localhost:3000/delayed_job_admin).
@@ -45,8 +44,7 @@ def delayed_job_admin_authentication
45
44
  end
46
45
  ```
47
46
 
48
- MD
49
- end
47
+ MD
50
48
 
51
49
  if scroll? "eycloud_recipes_on_deploy"
52
50
  gem 'eycloud-recipe-delayed_job', :group => :eycloud
@@ -71,11 +69,6 @@ RUBY
71
69
  end
72
70
  end
73
71
 
74
- after_everything do
75
- say_custom "readme", "Delayed Job Admin"
76
- run %q{cat "readmes/delayed_job_admin.md"}
77
- end
78
-
79
72
  __END__
80
73
 
81
74
  name: Delayed Job
@@ -86,9 +79,4 @@ exclusive: worker
86
79
  category: worker
87
80
  tags: [worker,background-tasks]
88
81
 
89
- run_after: [eycloud_recipes_on_deploy]
90
-
91
- config:
92
- - admin:
93
- type: boolean
94
- prompt: "Install simple admin interface to Delayed Job?"
82
+ run_after: [eycloud_recipes_on_deploy, mysql, postgresql]
data/scrolls/eycloud.rb CHANGED
@@ -35,6 +35,7 @@ after_everything do
35
35
 
36
36
  # TODO check for app name first
37
37
  app_name = (@repo_name && @repo_name.size > 0) ? @repo_name : @name
38
+ app_name.gsub!(/\W/, '') # only letters and numbers
38
39
  # say_custom "eycloud", "Checking for availability of #{app_name}"
39
40
  # @app_names ||= `bundle exec ey_cli apps | grep "-" | sed "s/.* //"`.split(/\n/)
40
41
  # while @app_names.include?(app_name)
@@ -51,6 +52,7 @@ after_everything do
51
52
  ]
52
53
  else
53
54
  say_custom "eycloud", "Defaulting to single/solo High-CPU medium instance for staging environment"
55
+ cluster_config = "solo"
54
56
  end
55
57
 
56
58
  name = File.basename(".")
data/scrolls/mysql.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  gem "mysql2"
2
2
 
3
3
  after_bundler do
4
- rake "db:create:all" if config['auto_create']
4
+ rake "db:create:all"
5
5
 
6
6
  rakefile("sample.rake") do
7
7
  <<-RUBY
@@ -28,8 +28,3 @@ category: persistence
28
28
  run_before: [eycloud]
29
29
 
30
30
  args: -d mysql
31
-
32
- config:
33
- - auto_create:
34
- type: boolean
35
- prompt: "Create local MySQL databases with default configuration?"
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module AppScrollsScrolls
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscrolls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-04-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &70342722850040 !ruby/object:Gem::Requirement
17
+ requirement: &70099458751060 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.2.2
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70342722850040
25
+ version_requirements: *70099458751060
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: i18n
28
- requirement: &70342722863260 !ruby/object:Gem::Requirement
28
+ requirement: &70099458750140 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70342722863260
36
+ version_requirements: *70099458750140
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: json
39
- requirement: &70342722858780 !ruby/object:Gem::Requirement
39
+ requirement: &70099459329580 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - =
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 1.6.5
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *70342722858780
47
+ version_requirements: *70099459329580
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: activesupport
50
- requirement: &70342722880760 !ruby/object:Gem::Requirement
50
+ requirement: &70099459328240 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '3.0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *70342722880760
58
+ version_requirements: *70099459328240
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: thor
61
- requirement: &70342722879780 !ruby/object:Gem::Requirement
61
+ requirement: &70099459326820 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: '0'
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *70342722879780
69
+ version_requirements: *70099459326820
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rspec
72
- requirement: &70342722878300 !ruby/object:Gem::Requirement
72
+ requirement: &70099459325260 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ~>
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: 2.5.0
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *70342722878300
80
+ version_requirements: *70099459325260
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: guard-rspec
83
- requirement: &70342722874340 !ruby/object:Gem::Requirement
83
+ requirement: &70099459324520 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *70342722874340
91
+ version_requirements: *70099459324520
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: cucumber
94
- requirement: &70342722896460 !ruby/object:Gem::Requirement
94
+ requirement: &70099459323720 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: '0'
100
100
  type: :development
101
101
  prerelease: false
102
- version_requirements: *70342722896460
102
+ version_requirements: *70099459323720
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: guard-cucumber
105
- requirement: &70342722895680 !ruby/object:Gem::Requirement
105
+ requirement: &70099459322860 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ! '>='
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: '0'
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *70342722895680
113
+ version_requirements: *70099459322860
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: bundler
116
- requirement: &70342722893980 !ruby/object:Gem::Requirement
116
+ requirement: &70099459409300 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ~>
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: 1.1.0
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *70342722893980
124
+ version_requirements: *70099459409300
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: guard-bundler
127
- requirement: &70342722892740 !ruby/object:Gem::Requirement
127
+ requirement: &70099459408680 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ! '>='
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: '0'
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *70342722892740
135
+ version_requirements: *70099459408680
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: rails
138
- requirement: &70342722891020 !ruby/object:Gem::Requirement
138
+ requirement: &70099459407860 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ~>
@@ -143,7 +143,7 @@ dependencies:
143
143
  version: '3.0'
144
144
  type: :development
145
145
  prerelease: false
146
- version_requirements: *70342722891020
146
+ version_requirements: *70099459407860
147
147
  description: ! 'The App Scrolls is a magical tool to generate new Rails and modify
148
148
  existing Rails applications (coming) to include your favourite, powerful magic. '
149
149
  email:
@@ -279,7 +279,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
279
279
  version: '0'
280
280
  segments:
281
281
  - 0
282
- hash: 1962164780369127927
282
+ hash: -263310150160290947
283
283
  required_rubygems_version: !ruby/object:Gem::Requirement
284
284
  none: false
285
285
  requirements:
@@ -288,7 +288,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
288
288
  version: '0'
289
289
  segments:
290
290
  - 0
291
- hash: 1962164780369127927
291
+ hash: -263310150160290947
292
292
  requirements: []
293
293
  rubyforge_project:
294
294
  rubygems_version: 1.8.17